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
symbol: str
Symbol to get data for.
symbol: str
Symbol to get data for.
period: Literal['quarter', 'annual']
Default: annual
Time period of the data to return.
Returns
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
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.
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.