#NEWLINE# def get_transactions( self , max_id = None , count = None , instrument = 'all' , ids = None ) : #NEWLINE# #INDENT# ' Get a list of transactions.\n\n            Parameters\n            ----------\n            max_id : int\n                The server will return transactions with id less than or\n                equal to this, in descending order (for pagination).\n            count : int\n                Maximum number of open transactions to return. Default:\n                50. Max value: 500.\n            instrument : str\n                Retrieve open transactions for a specific instrument\n                only. Default: all.\n            ids : list\n                A list of transactions to retrieve. Maximum number of\n                ids: 50.  No other parameter may be specified with the\n                ids parameter.\n\n            See more:\n            http://developer.oanda.com/rest-live/transaction-history/#getTransactionHistory\n            http://developer.oanda.com/rest-live/transaction-history/#transactionTypes\n        ' #NEWLINE# url = '{0}/{1}/accounts/{2}/transactions' . format ( self . domain , self . API_VERSION , self . account_id ) #NEWLINE# params = { #NEWLINE# #INDENT# 'maxId' : ( int ( max_id ) if ( max_id and ( max_id > 0 ) ) else None ) , #NEWLINE# 'count' : ( int ( params ) if ( count and ( count > 0 ) ) else None ) , #NEWLINE# 'instrument' : instrument , #NEWLINE# 'ids' : ( ',' . join ( ids ) if ids else None ) , #NEWLINE# #UNINDENT# } #NEWLINE# try : #NEWLINE# #INDENT# return self . _Client__call ( uri = url , params = params , method = 'get' ) #NEWLINE# #UNINDENT# except RequestException : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# except AssertionError : #NEWLINE# #INDENT# return False