OpenBBTerminal
OpenBBTerminal copied to clipboard
[Bug] API openbb.stocks.load not accepting optional arguments
This was reported by users:
openbb.stocks.load("GME") works fine
But openbb.stocks.load("GME", None, None, None, None, None) doesn't work
Users should be able to pass in their own default values.
openbb.stocks.load("GME", None, None, None, None, None) doesn't work since the None overwrites the default values so the function gets unfunctional input. Proof of this is that openbb.stocks.load("GME", 1, 1, 1, 1, 1) generates the same error.
openbb.stocks.load accepts optional arguments, see picture:
So this shouldn't be an issue at all
So it only accepts "some optional" arguments, but not all. Can we have it such that all optional arguments can be set and not generating that type of error?
Here is every argument possible set and it works:
I am going to close this issue. The arguments do not accept None because they need default values.