I know that there is an option to get an order book in the api, but that's not what I'm looking for.
I need to get the exact number of all take profit and stop loss through the bybit api
Is it possible to implement this and if so, how?
I know that there is an option to get an order book in the api, but that's not what I'm looking for.
I need to get the exact number of all take profit and stop loss through the bybit api
Is it possible to implement this and if so, how?
Brave's Leo suggested this:
This code will retrieve all open orders for the BTCUSDT symbol using the Bybit API, and then filter the results to only include orders with the appropriate status. The
len()
function is used to get the length of each list, which gives us the exact number of take profit and stop loss orders.