Description Usage Arguments Details Examples
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.
1 2 3 4 5 6 7 8 9 |
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 |
Returns a data frame of news article descriptions, urls, sources, and more.
1 2 3 4 5 6 7 8 9 10 11 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.