火币API无法通过代码创建订单,但是平台上测试可以通过API买卖

Author: iquant, Created: 2020-11-27 19:47:59, Updated:

self.exchange.Sell(self.truncate(price), self.truncate(amount))
order_id = self.exchange.Buy(self.truncate(price), self.truncate(amount))

More

iquant Sorry,类内函数truncate忘记添加self,导致类和float相乘,打印Exception发现了问题,打扰了。