balance
Get balance sheet.
Source Code: [link]
openbb.stocks.fa.balance(symbol: str, quarterly: bool = False, ratios: bool = False, source: str = "YahooFinance", limit: int = 10)
Parameters
Name | Type | Description | Default | Optional |
---|---|---|---|---|
symbol | str | Symbol to get balance sheet for | None | False |
source | str | Data source for balance sheet, by default "YahooFinance" Sources: YahooFinance, AlphaVantage, FinancialModelingPrep, Polygon, EODHD | YahooFinance | True |
quarterly | bool | Flag to get quarterly data | False | True |
ratios | bool | Flag to return data as a percent change. | False | True |
limit | int | Number of statements to return (free tiers may be limited to 5 years) | 10 | True |
Returns
Type | Description |
---|---|
pd.DataFrame | Dataframe of balance sheet |
Examples
from openbb_terminal.sdk import openbb
balance_sheet = openbb.stocks.fa.balance("AAPL", source="YahooFinance")
If you have a premium AlphaVantage key, you can use the quarterly flag to get quarterly statements
quarterly_income_statement = openbb.stocks.fa.balance("AAPL", source="AlphaVantage", quarterly=True)