View source: R/FinancialNewsAPI.R
financial_news | R Documentation |
This function retrieves financial news data from the API.
financial_news(
api_token,
s = NULL,
t = NULL,
from_date = NULL,
to_date = NULL,
limit = NULL,
offset = NULL
)
api_token |
The API token for authentication. |
s |
(required if t empty) - The ticker code to get news for. |
t |
(required if s empty) - The tag to get news on a given topic. |
from_date |
date from with format Y-m-d |
to_date |
date from with format Y-m-d |
limit |
The number of results should be returned with the query |
offset |
The offset of the data. |
A list containing the financial news.
api_token <- "demo"
s <- "balance sheet"
t <- NULL
from_date <- "2017-09-10"
to_date <- "2017-09-12"
limit <- "50"
offset <- "100"
result <- financial_news(api_token, s, t, from_date, to_date, limit, offset)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.