Open GamerClassN7 opened 3 years ago
As long as the bot continues, you can ignore this error. Sometimes the order is not filled immediately, but the bot keeps trying until it is.
Would it be useful to log the retries? Or maybe make the message more explicit.
This error is normal when Binance doesn't complete the order immediately. Making the message more insightful is probably a good idea.
This error is normal when Binance doesn't complete the order immediately. Making the message more insightful is probably a good idea.
Yep, if the bot is waiting for the order filling, and because it know that is still on the book, a simple "waiting for filling" message would be good idea.
something like:
def father_function(foo, bar):
order_api_call > get order id
while order_id not onbook:
self.logger.info(exception) -- > "APIError(code=-2013): Order does not exist"
while executed_qty != order_qty:
self.logger.info('Waiting order filling')
self.logger.info('Order filled')
(please ignore obvious semantic errors :D)
Will try to work on this on my spare time
When an order is placed, you have to pause the code for a 250ms because it takes that long for the placed order to appear in the order status. I would pause a full second as it sometimes take slightly longer or shorter than 250ms.
Hi am getting this error in log all the times. 2021-02-16 11:37:53,993 - crypto_trader_logger - INFO - APIError(code=-2013): Order does not exist.
can anybody help me ?