def sell(self, amount, price, client_id=None):
"""Orders are always priced in CNY"""
local_currency_price = self.fc.convert(price, "CNY", self.currency)
logging.verbose("Sell %f BTC at %f %s (%f CNY) @%s" % (amount,
local_currency_price, self.currency, price, self.name))
if client_id:
return self._sell(amount, local_currency_price, client_id)
else:
return self._sell(amount, local_currency_price)
评论列表
文章目录