[Bug] Input should be 'fmp', 'intrinio', 'polygon' or 'tiingo' [type=literal_error, input_value='yfinance', input_type=str]
fayssal-el-elmofatiche opened this issue · comments
Fayssal El Mofatiche commented
Describe the bug
yfinance is not supported when trying to load equity historical price data.
To Reproduce
df_daily = obb.equity.price.historical(symbol = "spy", provider="yfinance")
df_daily.to_df().head(1)
Desktop (please complete the following information):
- OS: MacOS M2
- Python version 3.11
Theodore Aptekarev commented
Hi 👋 @fayssalelmofatiche
yfinance is not shipped by default (at least not yet).
When you install openbb you can do pip install openbb[yfinance]
to get openbb with yfinance
Fayssal El Mofatiche commented
Many thanks for the quick response, @piiq ! Indeed, installing openbb with all extensions and restarting the notebook did the trick 👍 .