For a SPOT wallet, I can get all balances of the wallet by making a request to https://api.binance.com/sapi/v1/capital/config/getall (with correct API key, signature, etc.).
How can I query MARGIN / ISOLATED balances? I don't see an obvious answer in Binance API docs.
In the terms of Binance, each isolated balance is a separate account like spot, cross margin, or futures.
For query isolated balances you can use this endpoint
GET /sapi/v1/margin/isolated/account
For details please read the docs. https://binance-docs.github.io/apidocs/spot/en/#query-isolated-margin-account-info-user_data
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