OpenBBTerminal icon indicating copy to clipboard operation
OpenBBTerminal copied to clipboard

[Bug] `obb.stocks.load()` doesn't correctly parse symbols list

Open jjfantini opened this issue 8 months ago • 0 comments

Describe the bug Using openbb SDK v4, I checked the types expected by obb.stocks.load(). I found you could upload a List[str] of symbols. Passing a list to the command though results in an OBBError for both fmp and yfinance providers.

To Reproduce Steps(from the start) and commands to reproduce the behavior: 1.

from openbb import obb

obb.account.login(pat="<pat>")

stocks = ["AAPL", "TSLA"]
data = obb.stocks.load(symbol=stocks, provider="yfinance")

Screenshots openbb-v4-stocks-list-error openbb-v4-stocks-list-error2

Desktop (please complete the following information):

  • OS: Windows 11
  • Python version: 3.10.12
  • openbb: 4.0.0a3

Additional context

jjfantini avatar Oct 24 '23 13:10 jjfantini