Hi Guys…
I am making a React/NodeJS app…but running into a problem…
I am retrieving a list of all my coins with a “free” value with an API call to /api/v3/account…
I am also getting the current USDT price for all those coins using a WebSocket stream to display the price in real time…
These 2 things work fine…my problem is converting the “free” amount of each coin into the BTC Value, USDT Value and GBP Value…
I have tried setting USDT Value by multiplying free amount by current USDT price…but the values don’t match what shows on the Binance Spot Wallet Dashboard values…
e.g.
Coin: BETA
AMOUNT: 0.75074960
USDT Price: $2.18868000
USDT Value: (0.75074960 * 2.19300000) $1.65
Value on spot wallet is slightly out…
I was then calculating the GBP Value from the exchange rate from USDT to GBP but again the values are slightly different to the values shown in the wallet…
I tried to get each coins BTC value from web socket info but some coins like SHIB don’t have a BTC trading pair…for the ones that did have a pair the BTC Value was also slightly off…
Any help on getting the same values in my app that are shown on the Binance website would be much appreciated…