Skip to main content

earnings

Get earnings data.

Source Code: [link]

openbb.stocks.fa.earnings(symbol: str, source: str = "YahooFinance", quarterly: bool = False)

Parameters

NameTypeDescriptionDefaultOptional
symbolstrStock tickerNoneFalse
sourcestrSource to use, by default "AlphaVantage"YahooFinanceTrue
quarterlyboolFlag to get quarterly data (AlphaVantage only), by default False.FalseTrue

Returns

TypeDescription
pd.DataFrameDataframe of earnings

Examples

from openbb_terminal.sdk import openbb
aapl_earnings = openbb.stocks.fa.earnings("AAPL", source ="YahooFinance)
To obtain quarterly earnings, use the quarterly flag with AlphaVantage
aapl_earnings = openbb.stocks.fa.metrics("earnings", source ="AlphaVantage, quarterly=True)