Skip to main content

company

Company News. Get news for one or more companies.

Examples

from openbb import obb
obb.news.company(provider='benzinga')
obb.news.company(limit=100, provider='benzinga')
# Get news on the specified dates.
obb.news.company(symbol='AAPL', start_date='2024-02-01', end_date='2024-02-07', provider='intrinio')
# Display the headlines of the news.
obb.news.company(symbol='AAPL', display=headline, provider='benzinga')
# Get news for multiple symbols.
obb.news.company(symbol='aapl,tsla', provider='fmp')
# Get news company's ISIN.
obb.news.company(symbol='NVDA', isin=US0378331005, provider='benzinga')

Parameters

symbol: str | list[str]
Symbol to get data for. Multiple items allowed for provider(s): benzinga, fmp, intrinio, polygon, tiingo, tmx, yfinance.

start_date: date | str
Start date of the data, in YYYY-MM-DD format.

end_date: date | str
End date of the data, in YYYY-MM-DD format.

limit: Annotated[int, Ge(ge=0)]
The number of data entries to return.


Returns

results: list[CompanyNews]

Serializable results.

provider: Optional[Literal['benzinga', 'fmp', 'intrinio', 'polygon', 'tiingo', 'tmx', 'yfinance']]

Provider name.

warnings: Optional[list[Warning_]]

list of warnings.

chart: Optional[Chart]

Chart object.

extra: dict[str, Any]

Extra info.


Data

date: Union[datetime, str]
The date of the data. The date of publication.

title: str
Title of the article.

author: str
Author of the article.

excerpt: str
Excerpt of the article text.

body: str
Body of the article text.

images: Any
Images associated with the article.

url: str
URL to the article.

symbols: str
Symbols associated with the article.