Skip to content

null balance list #24

@ffbboy30

Description

@ffbboy30

I've a problem in the function GetBalance.
When I list all my balance with this code
Object.entries(balances) .filter((arr) => parseFloat(arr[1].available) > 0) .forEach((arr) => { newBalance[arr[0]] = arr[1] console.log(chalk.yellow(YOU HAVE ${newBalance[arr[0]].available} ${arr[0]})) })

I've as result
YOU HAVE 235.68000000 EUR
YOU HAVE 0.00000000 BTC

But In the next step
console.log(chalk.yellow(YOU HAVE ${newBalance[TRADE_IN].available} ${TRADE_IN})
I get
YOU HAVE 0.00000000 BTC

On my binance Account I've
Spot balance = 0
Fiat balance = 235.8
What is wrong with my config.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions