Error StreamlitAPIException when checking balance in Portfolio page when account has 0 balance
Describe the bug
Portfolio page doesn't show "Select tokens" field, instead it shows error below:
StreamlitAPIException: Every Multiselect default value must exist in options
Traceback:
File "/home/dashboard/frontend/pages/orchestration/portfolio/app.py", line 84, in <module>
tokens_available = st.multiselect("Select Tokens", token_options, token_options)
Steps to reproduce
- Open Dashboard
- Following instruction from https://hummingbot.org/installation/hummingbot-deploy/quickstart/#managing-instances , after entering Credential (binance perpetual), got error in Portfolio page
Release version
latest version
Type of installation
Docker
Attach required files
No response
I think I found the root cause of this bug: when my sub account doesn't have any asset, Portfoilo page will show that bug. After I deposit some USDT, the error has gone, and show "Select tokens: USDT" in my Portfolio page. --> I think we need to update code to cover case when user account doesn't have any asset
I am able to reproduce this issue after creating a sub account with no assets (tests on kucoin and binance sub accounts)
Moved github ticket to dashboard repo
Hey, having the same issue but with Hyperliquid, and the thing is, I already have balance on my account, and still encountering it. So effectively, can't use Hyperliquid with Hbot right now
hyperliquid_perpetual is okay.
I am also getting the same error in OKX. I have some non-usdt coins in the account. How do we resolve this ?
I am also getting the same error in OKX. I have some non-usdt coins in the account. How do we resolve this ?
Can't reproduce for both okx and okx_perpetual
May be you have 0 balance on exchange
Nicely spotted. I had the same issue a few weeks back in the Dashboard I believe there it was with an empty KuCoin account.
Dashboard has been updated and this error on my tests does not occur
- however reproduce another KeyError when adding 0 balance connector https://github.com/hummingbot/dashboard/issues/255#issue-3241875044
