Get and Count() how many futures open order we have

Hi I would like to make a buy market order only if there is no other futures open order as condition statement, can someone provide the truly needed help ?

You can make use of this endpoint: Binance API Documentation, to check if there are any open orders on your account. If there are no open orders, this endpoint will return an empty JSON. From there. you can place your market order.

1 Like

Thanks, but I’m very novice in python so I would ask to explain the process please.
First how do you make the condition statement about the empty JSON ? On my script, I don’t use JSON but the futures_get_open_orders return empty square brackets.

Moreover, I tried this client.futures_get_open_orders(symbol=‘ADAUSDT’) even with this asset open position , it returns empty square brackets