financial_news {eodhd} | R Documentation |
Financial news
Description
This function retrieves financial news data from the API.
Usage
financial_news(
api_token,
s = NULL,
t = NULL,
from_date = NULL,
to_date = NULL,
limit = NULL,
offset = NULL
)
Arguments
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. |
Value
A list containing the financial news.
Examples
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)
[Package eodhd version 1.0.4 Index]