Using Binance API, I want to get my total account balance in BTC (or USD)
I am able to get the spot
wallet balance by querying /api/v3/account
endpoint.
In my case, the total balance is the SUM of spot wallet + earn wallet
.
const totalBalance = spot + earn
With only spot
, I am not able to calculate totalBalance
nor earn
.
Using the Binance API, how can I get the totalBalance
or earn
?