#NEWLINE# @ target_required #NEWLINE# def GetTopTransactionsBySpeed( self , Order = 'Desc' , Num = 10 , target_id = None ) : #NEWLINE# #INDENT# if ( Order == 'Desc' ) : #NEWLINE# #INDENT# results = self . db . session . query ( models . Transaction ) . filter_by ( target_id = target_id ) . order_by ( desc ( models . Transaction . time ) ) . limit ( Order ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# results = self . db . session . query ( models . Transaction ) . filter_by ( target_id = target_id ) . order_by ( asc ( models . Transaction . time ) ) . limit ( Num ) #NEWLINE# #UNINDENT# return self . DeriveTransactions ( results )