Company News
Implementation details
Class names
| Model name | Parameters class | Data class |
|---|---|---|
CompanyNews | CompanyNewsQueryParams | CompanyNewsData |
Import Statement
from openbb_core.provider.standard_models.company_news import (
CompanyNewsData,
CompanyNewsQueryParams,
)
Parameters
- standard
- benzinga
- fmp
- intrinio
- polygon
- tiingo
- tmx
- yfinance
symbol: str | None | list[str | None]
Symbol to get data for. Multiple items allowed for provider(s): benzinga, fmp, intrinio, polygon, tiingo, tmx, yfinance.
start_date: date | None | str
Start date of the data, in YYYY-MM-DD format.
end_date: date | None | str
End date of the data, in YYYY-MM-DD format.
limit: int | None
The number of data entries to return.
symbol: str | None | list[str | None]
Symbol to get data for. Multiple items allowed for provider(s): benzinga, fmp, intrinio, polygon, tiingo, tmx, yfinance.
start_date: date | None | str
Start date of the data, in YYYY-MM-DD format.
end_date: date | None | str
End date of the data, in YYYY-MM-DD format.
limit: int | None
The number of data entries to return.
date: date | None | str
A specific date to get data for.
display: Literal['headline', 'abstract', 'full'] | None
Default: full
Specify headline only (headline), headline + teaser (abstract), or headline + full body (full).
updated_since: int | None
Number of seconds since the news was updated.
published_since: int | None
Number of seconds since the news was published.
sort: Literal['id', 'created', 'updated'] | None
Default: created
Key to sort the news by.
order: Literal['asc', 'desc'] | None
Default: desc
Order to sort the news by.
isin: str | None
The company's ISIN.
cusip: str | None
The company's CUSIP.
channels: str | None
Channels of the news to retrieve.
topics: str | None
Topics of the news to retrieve.
authors: str | None
Authors of the news to retrieve.
content_types: str | None
Content types of the news to retrieve.
symbol: str | None | list[str | None]
Symbol to get data for. Multiple items allowed for provider(s): benzinga, fmp, intrinio, polygon, tiingo, tmx, yfinance.
start_date: date | None | str
Start date of the data, in YYYY-MM-DD format.
end_date: date | None | str
End date of the data, in YYYY-MM-DD format.
limit: int | None
The number of data entries to return.
page: int | None
Default: 0
Page number of the results. Use in combination with limit.
press_release: bool | None
When true, will return only press releases for the given symbol(s).
symbol: str | None | list[str | None]
Symbol to get data for. Multiple items allowed for provider(s): benzinga, fmp, intrinio, polygon, tiingo, tmx, yfinance.
start_date: date | None | str
Start date of the data, in YYYY-MM-DD format.
end_date: date | None | str
End date of the data, in YYYY-MM-DD format.
limit: int | None
The number of data entries to return.
source: Literal['yahoo', 'moody', 'moody_us_news', 'moody_us_press_releases'] | None
The source of the news article.
sentiment: Literal['positive', 'neutral', 'negative'] | None
Return news only from this source.
language: str | None
Filter by language. Unsupported for yahoo source.
topic: str | None
Filter by topic. Unsupported for yahoo source.
word_count_greater_than: int | None
News stories will have a word count greater than this value. Unsupported for yahoo source.
word_count_less_than: int | None
News stories will have a word count less than this value. Unsupported for yahoo source.
is_spam: bool | None
Filter whether it is marked as spam or not. Unsupported for yahoo source.
business_relevance_greater_than: float | None
News stories will have a business relevance score more than this value. Unsupported for yahoo source. Value is a decimal between 0 and 1.
business_relevance_less_than: float | None
News stories will have a business relevance score less than this value. Unsupported for yahoo source. Value is a decimal between 0 and 1.
symbol: str | None | list[str | None]
Symbol to get data for. Multiple items allowed for provider(s): benzinga, fmp, intrinio, polygon, tiingo, tmx, yfinance.
start_date: date | None | str
Start date of the data, in YYYY-MM-DD format.
end_date: date | None | str
End date of the data, in YYYY-MM-DD format.
limit: int | None
The number of data entries to return.
order: Literal['asc', 'desc'] | None
Default: desc
Sort order of the articles.
symbol: str | None | list[str | None]
Symbol to get data for. Multiple items allowed for provider(s): benzinga, fmp, intrinio, polygon, tiingo, tmx, yfinance.
start_date: date | None | str
Start date of the data, in YYYY-MM-DD format.
end_date: date | None | str
End date of the data, in YYYY-MM-DD format.
limit: int | None
The number of data entries to return.
offset: int | None
Default: 0
Page offset, used in conjunction with limit.
source: str | None
A comma-separated list of the domains requested.
symbol: str | None | list[str | None]
Symbol to get data for. Multiple items allowed for provider(s): benzinga, fmp, intrinio, polygon, tiingo, tmx, yfinance.
start_date: date | None | str
Start date of the data, in YYYY-MM-DD format.
end_date: date | None | str
End date of the data, in YYYY-MM-DD format.
limit: int | None
The number of data entries to return.
page: int | None
Default: 1
The page number to start from. Use with limit.
symbol: str | None | list[str | None]
Symbol to get data for. Multiple items allowed for provider(s): benzinga, fmp, intrinio, polygon, tiingo, tmx, yfinance.
start_date: date | None | str
Start date of the data, in YYYY-MM-DD format.
end_date: date | None | str
End date of the data, in YYYY-MM-DD format.
limit: int | None
The number of data entries to return.
Data
- standard
- benzinga
- fmp
- intrinio
- polygon
- tiingo
- tmx
- yfinance
date: datetime | str
The date of the data. The date of publication.
title: str
Title of the article.
author: str | None
Author of the article.
excerpt: str | None
Excerpt of the article text.
body: str | None
Body of the article text.
images: Any | None
Images associated with the article.
url: str
URL to the article.
symbols: str | None
Symbols associated with the article.
date: datetime | str
The date of the data. The date of publication.
title: str
Title of the article.
author: str | None
Author of the article.
excerpt: str | None
Excerpt of the article text.
body: str | None
Body of the article text.
images: Any | None
Images associated with the article.
url: str
URL to the article.
symbols: str | None
Symbols associated with the article.
channels: str | None
Channels associated with the news.
tags: str | None
Tags associated with the news.
updated: datetime | None
Updated date of the news.
id: str
Article ID.
original_id: str | None
Original ID of the news article.
date: datetime | str
The date of the data. The date of publication.
title: str
Title of the article.
author: str | None
Author of the article.
excerpt: str | None
Excerpt of the article text.
body: str | None
Body of the article text.
images: Any | None
Images associated with the article.
url: str
URL to the article.
symbols: str | None
Symbols associated with the article.
source: str
Name of the news site.
date: datetime | str
The date of the data. The date of publication.
title: str
Title of the article.
author: str | None
Author of the article.
excerpt: str | None
Excerpt of the article text.
body: str | None
Body of the article text.
images: Any | None
Images associated with the article.
url: str
URL to the article.
symbols: str | None
Symbols associated with the article.
source: str | None
The source of the news article.
summary: str | None
The summary of the news article.
topics: str | None
The topics related to the news article.
word_count: int | None
The word count of the news article.
business_relevance: float | None
How strongly correlated the news article is to the business
sentiment: str | None
The sentiment of the news article - i.e, negative, positive.
sentiment_confidence: float | None
The confidence score of the sentiment rating.
language: str | None
The language of the news article.
spam: bool | None
Whether the news article is spam.
copyright: str | None
The copyright notice of the news article.
id: str
Article ID.
security: IntrinioSecurity | None
The Intrinio Security object. Contains the security details related to the news article.
date: datetime | str
The date of the data. The date of publication.
title: str
Title of the article.
author: str | None
Author of the article.
excerpt: str | None
Excerpt of the article text.
body: str | None
Body of the article text.
images: Any | None
Images associated with the article.
url: str
URL to the article.
symbols: str | None
Symbols associated with the article.
source: str | None
Source of the article.
tags: str | None
Keywords/tags in the article
id: str
Article ID.
amp_url: str | None
AMP URL.
publisher: PolygonPublisher
Publisher of the article.
date: datetime | str
The date of the data. The date of publication.
title: str
Title of the article.
author: str | None
Author of the article.
excerpt: str | None
Excerpt of the article text.
body: str | None
Body of the article text.
images: Any | None
Images associated with the article.
url: str
URL to the article.
symbols: str | None
Symbols associated with the article.
tags: str | None
Tags associated with the news article.
article_id: int
Unique ID of the news article.
source: str
News source.
crawl_date: datetime
Date the news article was crawled.
date: datetime | str
The date of the data. The date of publication.
title: str
Title of the article.
author: str | None
Author of the article.
excerpt: str | None
Excerpt of the article text.
body: str | None
Body of the article text.
images: Any | None
Images associated with the article.
url: str
URL to the article.
symbols: str | None
Symbols associated with the article.
source: str | None
Source of the news.
date: datetime | str
The date of the data. The date of publication.
title: str
Title of the article.
author: str | None
Author of the article.
excerpt: str | None
Excerpt of the article text.
body: str | None
Body of the article text.
images: Any | None
Images associated with the article.
url: str
URL to the article.
symbols: str | None
Symbols associated with the article.
source: str | None
Source of the news article