def load_commodities(self):
        """
        Load the commodities for Amounts in this object.
        """
        base, quote = self.market.split("_")
        if isinstance(self.price, Amount):
            self.price = Amount("{0:.8f} {1}".format(self.price.to_double(), quote))
        else:
            self.price = Amount("{0:.8f} {1}".format(self.price, quote))
        if isinstance(self.amount, Amount):
            self.amount = Amount("{0:.8f} {1}".format(self.amount.to_double(), base))
        else:
            self.amount = Amount("{0:.8f} {1}".format(self.amount, base))
        if isinstance(self.exec_amount, Amount):
            self.exec_amount = Amount("{0:.8f} {1}".format(self.exec_amount.to_double(), base))
        else:
            self.exec_amount = Amount("{0:.8f} {1}".format(self.exec_amount, base))
def load_commodities ( self ) : base , quote = self . market . split ( "_" ) if isinstance ( self . price , Amount ) : self . price = Amount ( "{0:.8f} {1}" . format ( self . price . to_double ( ) , quote ) ) else : self . price = Amount ( "{0:.8f} {1}" . format ( self . price , quote ) ) if isinstance ( self . amount , Amount ) : self . amount = Amount ( "{0:.8f} {1}" . format ( self . amount . to_double ( ) , base ) ) else : self . amount = Amount ( "{0:.8f} {1}" . format ( self . amount , base ) ) if isinstance ( self . exec_amount , Amount ) : self . exec_amount = Amount ( "{0:.8f} {1}" . format ( self . exec_amount . to_double ( ) , base ) ) else : self . exec_amount = Amount ( "{0:.8f} {1}" . format ( self . exec_amount , base ) )
Load the commodities for Amounts in this object.