Skip to main content

stocks_data

Get stocks data based on a list of stocks and the finance key. The function searches for the

Source Code: [link]

openbb.stocks.sia.stocks_data(symbols: List[str] = None, finance_key: str = "ncf", stocks_data: dict = None, period: str = "annual", symbol: str = "USD")

Parameters

NameTypeDescriptionDefaultOptional
symbolslistA list of tickers that will be used to collect data for.NoneTrue
finance_keystrThe finance key used to search within the SA_KEYS for the correct name of item
on the financial statement
ncfTrue
stocks_datadictA dictionary that is empty on initialisation but filled once data is collected
for the first time.
NoneTrue
periodstrWhether you want annually, quarterly or trailing financial statements.annualTrue
symbolstrChoose in what currency you wish to convert each company's financial statement.
Default is USD (US Dollars).
USDTrue

Returns

TypeDescription
dictDictionary of filtered stocks data separated by financial statement