earnings
Get earnings data.
Source Code: [link]
openbb.stocks.fa.earnings(symbol: str, source: str = "YahooFinance", quarterly: bool = False)
Parameters
Name | Type | Description | Default | Optional |
---|---|---|---|---|
symbol | str | Stock ticker | None | False |
source | str | Source to use, by default "AlphaVantage" | YahooFinance | True |
quarterly | bool | Flag to get quarterly data (AlphaVantage only), by default False. | False | True |
Returns
Type | Description |
---|---|
pd.DataFrame | Dataframe 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)