Balance of all my differents wallets

Hi,
In Binance we have differents wallets (spot, margin, futures…)
I have my bot connected to Binance API and I need to get the different balances per asset to set them in my UI (front page)

Example:
Spot wallet: 1BTC, 1ETH
Future wallet: USD M Future 10.000USDT CoinM Futures 1BTC

Does anyone could help me with this. I cant find it in https://binance-docs.github.io/apidocs/futures/en/#change-log API document

Regards

There are two approaches:

  • Daily account snapshots
    You can query the Daily Account Snapshot endpoint which provides balance data of all three wallets (SPOT/MARGIN/FUTURES), however, this data is updated every 24hrs therefore it is best to assume that the data recieved is stale.

  • Individual requests
    Query seperate endpoints for: Spot, Isolated Margin, Cross Margin, USD-M and COIN-M.

If you would like to synchronise account info in real-time, I suggest making use of the accounts’ respective websocket rather than repeatedly sending requests to the previously mentioned endpoints.

1 Like

@tantialex How can I get the info by calling an endpoint Where is the command??