#NEWLINE# def getUserTransactions( self , transactionType = None ) : #NEWLINE# #INDENT# url = 'https://www.bitstamp.net/api/user_transactions/' #NEWLINE# jsonResponse = self . _post ( url , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# if ( transactionType is not None ) : #NEWLINE# #INDENT# jsonUserTransactions = filter ( ( lambda jsonUserTransaction : ( jsonUserTransaction [ 'type' ] == transactionType ) ) , jsonResponse ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# jsonUserTransactions = jsonResponse #NEWLINE# #UNINDENT# return [ UserTransaction ( jsonUserTransaction ) for jsonUserTransaction in jsonUserTransactions ]