The Bitcoin API cannot create orders through code, but platform testing can buy and sell through the 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

iquantSorry, the intrinsic truncate function forgot to add self, causing class and float to multiply, printing Exception found a problem, disturbed.