Python grid bot

Hello everyone, I’m writing my robot, I ran into a problem that orders disappear after a while, there is no database, all orders are stored in lists, somehow you can catch an error, maybe the status of the order, as I remember, should output 200 there
Maybe someone has faced a similar problem


symbols[symbol]['buy'].append(new_buy_order)
symbols[symbol]['buy'].remove(order)

Please check our API document, there are a few endpoints that you could query your orders:

  • GET /api/v3/allOrders all orders
  • GET /api/v3/openOrders open orders
  • GET /api/v3/order query an order

There are similar endpoints for futures.

https://binance-docs.github.io/apidocs/spot/en/#cancel-all-open-orders-on-a-symbol-trade