get_sentiment_data {eodhd} | R Documentation |
Get sentiment data.
Description
This function retrieves sentiment data from the API.
Usage
get_sentiment_data(api_token, s, from_date = NULL, to_date = NULL)
Arguments
api_token |
The API token for authentication. |
s |
Parameter to your URL and you will be able to get data for multiple tickers at one request, all tickers should be separated with a comma. |
from_date |
Format: YYYY-MM-DD. |
to_date |
Format: YYYY-MM-DD. |
Value
A list containing the sentiment data.
Examples
api_token <- "demo"
from_date <- "2017-09-10"
to_date <- "2017-09-12"
s <- "AAPL.MX"
result <- get_sentiment_data(api_token, s, from_date, to_date)
[Package eodhd version 1.0.4 Index]