Can someone say how to get current positions by python-binance? Like "WAVESUSDT" on screen.

Here is the documentation, but I can't find there this method. Could someone help me, please? https://python-binance.readthedocs.io/en/latest/account.html#account
Found, yeah!
client = Client(api,key)
client.futures_account()['positions']
I have got the open positions from this url
https://testnet.binancefuture.com/fapi/v2/positionRisk?
(Note if no position is open it will return 2 dummy position)
return await axios
.get(`https://testnet.binancefuture.com/fapi/v2/positionRisk?symbol=${token_pair}×tamp=${timestamp}&signature=${signature}`, {
headers: {
'Content-Type': 'application/json',
'X-MBX-APIKEY': api_key
}
})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With