#NEWLINE# def _buildOrder( self , price , amount ) : #NEWLINE# #INDENT# jsonDict = { #NEWLINE# #INDENT# 'id' : self . __nextOrderId , #NEWLINE# 'datetime' : str ( datetime . datetime . now ( ) ) , #NEWLINE# 'type' : ( 0 if ( amount > 0 ) else 1 ) , #NEWLINE# 'price' : str ( price ) , #NEWLINE# 'amount' : str ( abs ( amount ) ) , #NEWLINE# #UNINDENT# } #NEWLINE# self . __nextOrderId += 1 #NEWLINE# return httpclient . Order ( jsonDict )