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

[Bug] [CLI] Argparse can't handle providers where provider #1 field = 'str' and provider #2 field = choices=[CHOICES]. #6573

Open
deeleeramone opened this issue Jul 10, 2024 · 2 comments
Assignees
Labels
bug Fix bug cli OpenBB Platform CLI

Comments

@deeleeramone
Copy link
Contributor

Describe the bug
^

Constrained choices in one provider impacts the use of all other providers.

To Reproduce

/derivatives/futures/curve --symbol CL --provider yfinance

Screenshots

Screenshot 2024-07-09 at 7 39 19 PM

@deeleeramone deeleeramone added bug Fix bug cli OpenBB Platform CLI labels Jul 10, 2024
@hjoaquim
Copy link
Contributor

This might be an edge case and need to look into how a standard required argument deals with provider specific argument with choices - we've solved a similar issue in the past but for non required arguments.

Another thing is, does it make sense for cboe to only have those two symbols?
image

@deeleeramone
Copy link
Contributor Author

Another thing is, does it make sense for cboe to only have those two symbols?

Yes, this is explicitly defined because those are the only symbols that can be returned by the provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fix bug cli OpenBB Platform CLI
Projects
None yet
Development

No branches or pull requests

2 participants