How to get all positions(not yet closed) in Futures?

Hi guys,

I can’t find any existing endpoint for retrieving ordered/positions on binance api. I tried to call the get all orders but it also displays other closed positions.

I s there any endpoint that only retrieve current/not yet closed positions?

For SPOT you can use the Account Information endpoint to obtain your positions

https://binance-docs.github.io/apidocs/spot/en/#account-information-user_data

.get_position()

https://github.com/Binance-docs/Binance_Futures_python/blob/master/example/trade/get_position.py

You can use Position Information V2 (USER_DATA)

https://binance-docs.github.io/apidocs/futures/en/#position-information-v2-user_data