Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

null balance list #24

Open
ffbboy30 opened this issue May 11, 2021 · 0 comments
Open

null balance list #24

ffbboy30 opened this issue May 11, 2021 · 0 comments

Comments

@ffbboy30
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant