Cant reproduce new Refinitiv R package

I am trying to reproduce the new Refinitiv R library as in the following link
https://rdrr.io/github/GreenGrassBlueOcean/RefinitivR/f/README.md
After successfully installing the R package, I was able to run the following command successfully
Data <- EikonGetData(EikonObject = Eikon, rics = c("MMM", "III.L"), = c("TR.PE(Sdate=0D)/*P/E (LTM) - Diluted Excl*/", "TR.CompanyName"))
However, when I am trying to reproduce time series command using the following command:
Timeseries <- EikonGetTimeseries( EikonObject = Eikon, rics = c("MMM", "III.L"), , start_date = "2020-01-01T01:00:00", , end_date = paste0(Sys.Date(), "T01:00:00"))
I am getting the following error:
EikonGetTimeseries request returned with length 4
Error in data.table::rbindlist(TimeSeriesList, use.names = TRUE, fill = TRUE) :
Column 2 of item 1 is length 2 inconsistent with column 1 which is length 905. Only length-1 columns are recycled.
In addition: Warning messages:
1: In FUN(X[[i]], ...) :
is.na() applied to non-(list or vector) of type 'environment'
2: In FUN(X[[i]], ...) :
is.na() applied to non-(list or vector) of type 'environment'
3: In cbind(Date = c(FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, :
number of rows of result is not a multiple of vector length (arg 2)
Best Answer
-
I am the author of this package.
I have made yesterday and today a number of commitments to:
- To be able to work with the latest Eikon Python api version 1.1.6.post2
- Take out the dependency on python pandas, which caused the issue you mentioned. As the default version of pandas is now 1 in stead of 0.2.5. Pandas now requires additional information which I can not provide by the r interface.
- A new parsing engine, to do the conversion from nested list from the api to a R data.frame.
- if verbose = TRUE you can notice the new download manager who tries to retrieve requests multiple times in order to prevent/overcome 400 and 408 errors as much as possible.
- Many more unit tests to better deal with nested lists. (over 110)
I therefore suggest to download the latest version from github.
I guess that @jirapongse.phuriphanvichai was using an older version of the python api and the R RefinitivR package. Therefore his requests turned out ok without issue. You were I guess using an intermediate version. I therefore suggest to regularly download the latest version from Github to ensure you are running the latest version.
0
Answers
-
Hello @azam.yahya123
The Refinitiv R is not official Refinitiv product, it is a community API. I strongly suggest you submit the issue to the API's developer directly via GitHub issue page.
0 -
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 685 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 556 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 652 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛