HitBTC Order creation Failed
See original GitHub issueVersion: ccxt==1.18.188 Language: Python
I create an order with the following parameters:
side = buy price = 3448.59 symbol = BTC/TUSD amount = 52.7222
self.exchange.create_order(symbol, ord_type, side, amount, price=price)
The error is: ccxt.base.errors.InvalidOrder: hitbtc order was rejected by the exchange {“id”:“1548911740564”,“info”:{“orderId”:“N/A”,“latestOrderId”:“N/A”,“clientOrderId”:“1548911740564”,“orderStatus”:“rejected”,“participateDoNotInitiate”:false,“userId”:“user_3178015”,“symbol”:“BTCTUSD”,“side”:“buy”,“price”:“3448.59”,“quantity”:527222,“type”:“limit”,“timeInForce”:“GTC”,“lastQuantity”:0,“lastPrice”:“”,“leavesQuantity”:0,“cumQuantity”:0,“averagePrice”:“0”,“created”:1548911740689,“execReportType”:“rejected”,“orderRejectReason”:“orderExceedsLimit”},“timestamp”:null,“datetime”:null,“lastTradeTimestamp”:null,“status”:“rejected”,“symbol”:“BTC/TUSD”,“type”:“limit”,“side”:“buy”,“price”:3448.59,“cost”:181817.251698,“amount”:52.7222,“filled”:52.7222,“remaining”:0.0,“fee”:{“cost”:null,“currency”:“TUSD”,“rate”:null}}
As can be been that the quanity is being sent as 52722 instead of 52.722. I am assuming that it’s dividing/multiplying by the lots? If so, the new version of HitBTC API docs doesn’t mention this.
Issue Analytics
- State:
- Created 5 years ago
- Comments:24 (13 by maintainers)
That’s easy, for example (just to demonstrate it, you should override the actual mapping how you want for your needs):
You are awesome for taking the time and helping!