No Initial Balance and No Assests, new Spot Testnet API. How can I tests without it?

I made a new account at Spot Testnet API in order to check a code bot. I logged in at https://testnet.binance.vision/ with my github credentials as this page said. Then I generated a new api key and secret key and I can see them with TRADE, USER_DATA, USER_STREAM, MARKET_DATA, SECURE_WEB_SOCKET permisions. I’d like test my bot, but when I run it and query for balances, response says I have no funds in any token, instead show 8 Objects. Below is my code and server response:

Code :

/ baseUrl = https://testnet.binance.vision
// path = /api/v3/account
axios.get(baseUrl+path,bot.signQuery(
{
timestamp : Date.now()
// resolve → ?timestamp=1648556538560&signature=0f76ff7d…
}
)).then((response)=>{
console.log(response);
}).catch((error)=>{
console.log(error);
})

Server Response:

data: {
makerCommission: 0,
takerCommission: 0,
buyerCommission: 0,
sellerCommission: 0,
canTrade: true,
canWithdraw: false,
canDeposit: false,
updateTime: 1648492218297,
accountType: ‘SPOT’,
balances: [
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object], [Object]
],
permissions: [ ‘SPOT’ ]
}

How can I get those fake balance? Or What am i doing wrong?

You may access the each position by iterating the balances property of the response.

for (const balance of response.data.balances) {
    console.log(balance);
}
1 Like