You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a dict of tickers and company names fails due to a (deprecated?) API call:
Copy-pasta from cell from repo:
# List of other retail chains
tickers = ["COST", "BJ", "DLTR", "DG", "WMT", "BIG", "M", "KSS", "TJX"]
# Create a dictionary of tickers and company names.
names = {
ticker: obb.equity.fundamental.overview(ticker, provider="fmp").results[0].name
for ticker in tickers
}
# Create a column for each.
fcf_yield = pd.DataFrame()
for ticker in tickers:
fcf_yield[names[ticker]] = (
obb.equity.fundamental.metrics(ticker, provider="fmp", period="annual", limit=10)
.to_df()
.reset_index()
.set_index("calendar_year")
.sort_index(ascending=False)
["free_cash_flow_yield"]
)
fcf_yield.transpose()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[17], line 5
2 tickers = ["COST", "BJ", "DLTR", "DG", "WMT", "BIG", "M", "KSS", "TJX"]
4 # Create a dictionary of tickers and company names.
----> 5 names = {
6 ticker: obb.equity.fundamental.overview(ticker, provider="fmp").results[0].name
7 for ticker in tickers
8 }
9 # Create a column for each.
10 fcf_yield = pd.DataFrame()
Cell In[17], line 6, in <dictcomp>(.0)
2 tickers = ["COST", "BJ", "DLTR", "DG", "WMT", "BIG", "M", "KSS", "TJX"]
4 # Create a dictionary of tickers and company names.
5 names = {
----> 6 ticker: obb.equity.fundamental.overview(ticker, provider="fmp").results[0].name
7 for ticker in tickers
8 }
9 # Create a column for each.
10 fcf_yield = pd.DataFrame()
AttributeError: 'ROUTER_equity_fundamental' object has no attribute 'overview'
To Reproduce
Run all cells from the example notebook. At 1.2.2. Free Cash Flow Yield code steps out.
Screenshots
Desktop (please complete the following information):
OS: Linux Debian Bookworm
Python version [e.g. 3.11, Anaconda]
Additional context
obb.equity.fundamental.overview was probably renamed, but I cannot find out to what since I just started running the samples and creating the API keys. Fascinating project. Want to learn more.
The text was updated successfully, but these errors were encountered:
Describe the bug
Creating a dict of tickers and company names fails due to a (deprecated?) API call:
Copy-pasta from cell from repo:
Source:
https://github.com/OpenBB-finance/OpenBB/blob/develop/examples/financialStatements.ipynb
Error trace:
To Reproduce
Run all cells from the example notebook. At 1.2.2. Free Cash Flow Yield code steps out.
Screenshots
Desktop (please complete the following information):
Additional context
obb.equity.fundamental.overview
was probably renamed, but I cannot find out to what since I just started running the samples and creating the API keys. Fascinating project. Want to learn more.The text was updated successfully, but these errors were encountered: