rdp.get_data gives incorrect results (while older ek.get_data is correct)
As I used Eikon Python API.
rdp version:
rdp.get_data(['EEMATMIV.U'], ['TR.30DAYATTHEMONEYIMPLIEDVOLATILITYINDEXFORPUTOPTIONS.Date', 'TR.30DAYATTHEMONEYIMPLIEDVOLATILITYINDEXFORPUTOPTIONS'], {'SDate': '2000-01-01', 'EDate': '2022-08-25'})
ek version:
ek.get_data(['EEMATMIV.U'], ['TR.30DAYATTHEMONEYIMPLIEDVOLATILITYINDEXFORPUTOPTIONS.Date', 'TR.30DAYATTHEMONEYIMPLIEDVOLATILITYINDEXFORPUTOPTIONS'], {'SDate': '2000-01-01', 'EDate': '2022-08-25'})[0]
Rdp returns an incorrect date columns, which fills 2020-01-03 with value (and all values are shifted against the dates). These two codes are expected to give same result. I highly prefer newer RDP as it could be assessed without desktop session opened (Or is there anything equivalent to rdp.open_platform_session for ek API?)
Or alternatively, how could obtain entire historical values through rdp with correct date returned?
Grateful for your answer. Thanks.
Answers
-
Hi @rknyip
I would recommend you use the newer RD Python Library instead of the older RDP Library (for more information please see the position statement from the RD Product Team)
Regards your actual query, I tried the above code snippets using RD Python Library and Eikon API and the results appear to be identical
You also mention that your prefer using RDP library because it does not require a Desktop session. However, please note that the RDP or RD library not using a Desktop session cannot always access the same data as a Desktop session e.g. the TR. fields. This is mostly due to 3rd party licence/usage rules which only allow some data to be used on a Desktop. It is always possible that much of the data can also be access via an alterntative RDP API - depending on the actual data.
1 -
Hi @umer.nalla, appreciate for the clarification and suggestion using RD library. However, rd.get_data() still fails to work out the correct timestamp in a platform session, with code below and screenshot:
import refinitiv.data as rd
rd_session = rd.session.platform.Definition(app_key='xxxxxx', grant=rd.session.platform.GrantPassword('xxxxxx', 'xxxxx')).get_session()
rd_session.open()
rd.session.set_default(rd_session)
rd.get_data(['EEMATMIV.U'], ['TR.30DAYATTHEMONEYIMPLIEDVOLATILITYINDEXFORPUTOPTIONS.Date', 'TR.30DAYATTHEMONEYIMPLIEDVOLATILITYINDEXFORPUTOPTIONS'],
{'SDate': '2000-01-01', 'EDate': '2022-08-25'})I do prefer to use a platform session to be able to work in Linux. Grateful if there is any solution for Linux.
0 -
hi @rknyip ,
We're really sorry for the problem you have been facing.
However, as this is a technical issue on an APIs and the ticket to the Refinitiv helpdesk can be submitted at MyRefinitiv so they can refer the case to the technical support team. For this case, I'm raising a ticket for you and the support team is going to contact you directly to assist with this, the ticket number is 11535863
Hope this helps
0 -
Hi @rknyip ,
There seems to be a bug related to this that is under investigation, I'll keep you updated.
0 -
Please, thanks!
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛