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

Error StreamlitAPIException when checking balance in Portfolio page when account has 0 balance #161

Open
lanphan opened this issue Jul 6, 2024 · 7 comments
Labels
🐙 Bot Orchestration bug Something isn't working

Comments

@lanphan
Copy link

lanphan commented Jul 6, 2024

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

  1. Open Dashboard
  2. Following instruction from https://hummingbot.org/installation/hummingbot-deploy/quickstart/#managing-instances , after entering Credential (binance perpetual), got error in Portfolio page
Screenshot 2024-07-06 at 09 45 13 Screenshot 2024-07-06 at 09 45 20

Release version

latest version

Type of installation

Docker

Attach required files

No response

@lanphan lanphan added the bug Something isn't working label Jul 6, 2024
@lanphan
Copy link
Author

lanphan commented Jul 6, 2024

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

@rapcmia
Copy link
Contributor

rapcmia commented Jul 8, 2024

I am able to reproduce this issue after creating a sub account with no assets (tests on kucoin and binance sub accounts)
image

@rapcmia rapcmia transferred this issue from hummingbot/hummingbot Jul 17, 2024
@rapcmia
Copy link
Contributor

rapcmia commented Jul 17, 2024

Moved github ticket to dashboard repo

@saltypalo
Copy link

Screenshot 2024-08-22 at 14 44 54

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

@nikspz
Copy link
Contributor

nikspz commented Aug 23, 2024

hyperliquid_perpetual is okay.
image

@AD-QT
Copy link

AD-QT commented Sep 4, 2024

I am also getting the same error in OKX. I have some non-usdt coins in the account. How do we resolve this ?

image

@nikspz
Copy link
Contributor

nikspz commented Sep 10, 2024

I am also getting the same error in OKX. I have some non-usdt coins in the account. How do we resolve this ?

image

Can't reproduce for both okx and okx_perpetual

image
image
image

May be you have 0 balance on exchange

image
image

@nikspz nikspz changed the title Error in Portfolio page after entering Credential in Dashboard Error StreamlitAPIException when checking balance in Portfolio page when account has 0 balance Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐙 Bot Orchestration bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants