riingo_news {riingo} | R Documentation |
Get news articles cultivated by Tiingo
Description
This function retrieves news articles filtered by tickers, tags, or sources. It returns them as a data frame with one row per article. The original URL to the article, its description, and a number of other features are returned.
Usage
riingo_news(
ticker = NULL,
start_date = NULL,
end_date = NULL,
tags = NULL,
source = NULL,
limit = 100,
offset = 0
)
Arguments
ticker |
One or more tickers to download data for from Tiingo. Can be a stock, mutual fund, or ETF. A character vector. |
start_date |
The first date to download data for.
A character in the form YYYY-MM-DD, or a |
end_date |
The last date to download data for.
A character in the form YYYY-MM-DD, or a |
tags |
A character vector of one word tags to filter with, such as
|
source |
A character vector of URLs corresponding to news sources to
collect articles from (such as |
limit |
The maximum number of articles to be retrieved. The default is 100, the maximum is 1000. |
offset |
A single integer representing the "pagination". This is
generally used in combination with |
Details
Returns a data frame of news article descriptions, urls, sources, and more.
Examples
## Not run:
riingo_news(ticker = "QQQ")
# Filter by either source URL or tag
riingo_news(ticker = "QQQ", source = "bloomberg.com")
riingo_news(ticker = "QQQ", tags = "Earnings")
# A ticker is not required
riingo_news(tags = "Earnings")
## End(Not run)