Title: | Eikon API Downloader |
---|---|
Description: | This package aims to give the user the ability to download the data they require from the Eikon API. |
Authors: | Oliver Collargol Frisvoll [aut, cre] |
Maintainer: | Oliver Collargol Frisvoll <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.1.1108 |
Built: | 2024-11-24 14:50:48 UTC |
Source: | https://github.com/OliverFrisvoll/EikonDownloader |
Fetches Eikon port from file
ek_fetch_port(debug = FALSE)
ek_fetch_port(debug = FALSE)
debug |
|
Fetches the Eikon API_KEY
ek_get_APIKEY()
ek_get_APIKEY()
Getting the port that is set
ek_get_port()
ek_get_port()
Check status
ek_get_status(port)
ek_get_status(port)
port |
|
This function is used to set the app_key to be used in the package. To get an app_key you need to have the Eikon desktop app or the newer Refinitiv terminal installed. You can then get an app_key from the app by typing in appkey in the search field and then creating a new app_key.
ek_set_APIKEY(api_key = NULL, debug = FALSE)
ek_set_APIKEY(api_key = NULL, debug = FALSE)
api_key |
|
debug |
|
Just needed to incase it doesn't work on the automatically detected port, this can sometimes be the case after the system hibernates with Eikon or the Refintiv terminal running.
ek_set_port(port = NULL)
ek_set_port(port = NULL)
port |
|
Before this function words you need to run the function ek_app_key() with a working app_key from the Eikon/Refinitiv desktop
get_datagrid(instrument, fields, ..., settings = list(raw = FALSE))
get_datagrid(instrument, fields, ..., settings = list(raw = FALSE))
instrument |
|
fields |
|
... |
|
settings |
|
This package downloads information from the Eikon datagrid. The function is a wrapper around the Rust function that does the actual work. To use this function you simply need to have an Eikon APP key, which you get from the Eikon desktop app or the newer Refinitiv terminal. The function will then fetch the information from the Eikon datagrid and return it as a dataframe. The desktop app needs to be running for this to work.
Error messages are passed from Rust (unless of course the issue is R type releated, then it is catched directly in this function), if the error message displayed is along the line of "... panicked" this means you have gotten an error I did not expect at all and you should file an issue with reproducible code and the error message at github.com/OliverFrisvoll/EikonDownloader/issues
dataframe or a list of raw data. At the moment i do not parse any column to a specific type, so all columns are of type character. This is something I might change in the future, but only if i find a robust way of doing this.
Returns a timeseries of data for the given rics for the given timeperiod and interval. The fields can be specified, by default it returns all the fields
get_timeseries( rics, fields = "*", startdate, enddate = NULL, interval = "daily" )
get_timeseries( rics, fields = "*", startdate, enddate = NULL, interval = "daily" )
rics |
|
fields |
|
startdate |
|
enddate |
|
interval |
|
A dataframe with the data requested