Skip to main content

news

Get news for a given term. [Source: NewsAPI]

Source Code: [link]

openbb.etf.news(query: str, limit: int = 10, start_date: Optional[str] = None, show_newest: bool = True, sources: str = "")

Parameters

NameTypeDescriptionDefaultOptional
querystrterm to search on the news articlesNoneFalse
start_dateOptional[str]date to start searching articles from formatted YYYY-MM-DDNoneTrue
show_newestboolflag to show newest articles firstTrueTrue
sourcesstrsources to exclusively show news from (comma separated)True

Returns

TypeDescription
pd.DataFrameDataFrame with columns Date, Description, URL