call to get_data returns either open interest data or other fields data but not all at the same time
I need to retrieve the following options fields for all days in 2020.
The following call to get_data either returns open interests data with NaN in all other columns OR the value of all columns except Open Interst.
Could you please point what I'm doing wrong?
data_temp, err = ek.get_data(instruments = '/TFMB1900N1', \
fields = ['DSPLY_NAME',\
'PUTCALLIND',\
'STRIKE_PRC',\
'CF_CLOSE',\
'TR.OPENINTEREST',\
'TR.OPENINTEREST.Date',\
'IMP_VOLT',\
'EXPIR_DATE'],
parameters = {'SDate':'2020-01-01','EDate':'2020-10-14'})
Best Answer
-
Hi @clangevin
You can easily use "Data Item Browser" to confirm that the fields do not support timeseries on get_data() API call.
I capture 3 fields for your example:
DSPLY_NAME, PUTCALLIND = do not support timeseries
TR.OPENINTEREST = support time series
0
Answers
-
Hi @clangevin
DSPLY_NAME, PUTCALLIND, STRIKE_PRC, CF_CLOSE, IMP_VOLT and EXPIR_DATE fields are from realtime database. They do no support timeseries data.
TR.OPENINTEREST and TR.OPENINTEREST.Date support timeseries data.
0 -
@ chavalit.jintamalit Can you check with your colleagues? It makes no sense that
DSPLY_NAME, PUTCALLIND, STRIKE_PRC, CF_CLOSE, IMP_VOLT and EXPIR_DATE
come from realtime data as those are not realtime data by nature.
I should be able to display all of the above along with the open interest data at close each day.
I'm certain this is possible, could you please check further?
0 -
Thanks, my point was that the nature of the data isn't realtime, why Refinitiv implements it that way is another discussion...
I'll try to see what I can get using 'TR.OPENINTEREST(-1d)' calls.
0 -
Running the call to get_data below, as of today (16/10/2020):
data_temp, err = ek.get_data(instruments = 'TFMB1900N1', \
fields = ['DSPLY_NAME',\
'PUTCALLIND',\
'STRIKE_PRC',\
'CF_CLOSE',\
'TR.OPENINTEREST(-1m)',\
'TR.OPENINTEREST(-1m).Date',\
'EXPIR_DATE'])Returns:
Why is the date 31/08/2020? That doesn't see to be 1 month ago.
How should I edit the call to get-data above to retrieve open interest for that RIC as of a month ago?
Thanks
0 -
Actually even the -1d call doesn't return yesterday's value:
data_temp, err = ek.get_data(instruments = 'TFMB1900N1', \
fields = ['DSPLY_NAME',\
'PUTCALLIND',\
'STRIKE_PRC',\
'CF_CLOSE',\
'TR.OPENINTEREST(-1d)',\
'TR.OPENINTEREST(-1d).Date',\
'EXPIR_DATE'])Why does it return the 14th of October instead of the 15th?
0 -
Hi @clangevin
For the -1m, I think the parameter effects the field to be in monthly period.
For -1d, I cannot answer the content behavior related question as I am not a content expert.
If you wish to clarify a specific field with its parameters behavior, you can open a ticket to Refinitiv Content Helpdesk at https://my.refinitiv.com/
The helpdesk can use Eikon Excel to retrieve the same field with parameters and clarify your question.
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 162 App Studio
- 4 Block Chain
- 5 Bot Platform
- 17 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
- 370 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
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛