#NEWLINE# def convert_to_usd( self ) : #NEWLINE# #INDENT# if ( self . currency == 'USD' ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# for direction in ( 'asks' , 'bids' ) : #NEWLINE# #INDENT# for order in self . depth [ direction ] : #NEWLINE# #INDENT# order [ 'price' ] = self . fc . convert ( direction [ 'price' ] , self . currency , 'USD' )