revenue_per_segment
Get the revenue breakdown by business segment for a given company over time.
Examples
from openbb import obb
obb.equity.fundamental.revenue_per_segment(symbol='AAPL', provider='fmp')
obb.equity.fundamental.revenue_per_segment(symbol='AAPL', period=quarter, provider='fmp')
Parameters
- standard
- fmp
Name | Type | Description | Default | Optional |
---|---|---|---|---|
symbol | str | Symbol to get data for. | False |
Name | Type | Description | Default | Optional |
---|---|---|---|---|
symbol | str | Symbol to get data for. | False | |
period | Literal['quarter', 'annual'] | Time period of the data to return. | annual | True |
Returns
OBBject
results : List[RevenueBusinessLine]
Serializable results.
provider : Optional[Literal['fmp']]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
chart : Optional[Chart]
Chart object.
extra : Dict[str, Any]
Extra info.
Data
- standard
- fmp
Name | Type | Description |
---|---|---|
period_ending | date | The end date of the reporting period. |
fiscal_period | str | The fiscal period of the reporting period. |
fiscal_year | int | The fiscal year of the reporting period. |
filing_date | date | The filing date of the report. |
business_line | str | The business line represented by the revenue data. |
revenue | Union[int, float] | The total revenue attributed to the business line. |
Name | Type | Description |
---|---|---|
period_ending | date | The end date of the reporting period. |
fiscal_period | str | The fiscal period of the reporting period. |
fiscal_year | int | The fiscal year of the reporting period. |
filing_date | date | The filing date of the report. |
business_line | str | The business line represented by the revenue data. |
revenue | Union[int, float] | The total revenue attributed to the business line. |