OpenBB-finance / OpenBB

Investment Research for Everyone, Everywhere.
https://openbb.co
Other
29.58k stars 2.77k forks source link

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

Open deeleeramone opened 1 month ago

deeleeramone commented 1 month ago

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

hjoaquim commented 1 month ago

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 commented 1 month ago

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.