Time series with get_data
Hello,
I am using the below formula that gives me a data frame with historic values of the attached parameters, between two dates, for a list of rics. What FIELDS should I use to obtain CLOSING PRICE and VOLUMES?
Where should I lookg for the appropriate fields for the get_data formula ? I tried TR.Volume, TR.PriceClose, but I get only "na"
df_1,e = ek.get_data(list_rics,['TR.OPENINTEREST.Date','TR.OPENINTEREST'], {'SDate':fst_dt,'EDate':lst_dt})
Thanks in advance.
Best Answer
-
@emmanuel.chaslin - unfortunately that rdp function is only single ric - a multi-ric endpoint is coming soon. I had another look at the instrument and have come up with the following:
df_1,e = ek.get_data('1SB1200P1',['TR.OPENINTEREST.Date','TR.AccumulatedVolume','TR.ClosePrice','TR.SettlementPrice',
'TR.OPENINTEREST'],
{'SDate':'2020-12-01', 'EDate': '0', 'Frq':'D'})
df_1This gets all your fields - so the volume field for derivatives is 'TR.AccumulatedVolume' and instead of using TR.PriceClose i used TR.ClosePrice and it worked fine. I hope this can help.
1
Answers
-
@emmanuel.chaslin please can you give me an example of a RIC that you would use. ALso please be aware you can launch the Data Item Browser app (type DIB into eikon search bar) where you can type in any RIC and it will allow you to search for a term such as Volume and get back a list of field options and their accompanying values - which can quickly help you zero in on what you need. I hope this can help.
0 -
Thanks Jason,
Can you please tell me what field I should use for obtaining historical volume with a get_data formula ? Using below ric example?
1SB1200P1
0 -
@emmanuel.chaslin for this task I would use our RDP library - please see the following code:
import refinitiv.dataplatform as rdp
session = rdp.open_desktop_session('YOUR APP KEY HERE')
df1 = rdp.get_historical_price_summaries(universe = "1SB1200P1",
interval = rdp.Intervals.DAILY,
count=500)
df1As this is an option you should use the official settlement price (SETTLE) as the closing price and volume is (ACVOL_UNS). You can find out more about the RDP libraries here. I hope this can help.
0 -
Thansk Jason,
Can I use this with a list of rics? I want to do that for more than one option.
Why isnt "get_data" appropriate in this case?
0 -
Dear Jason, thanks a lot it works well as below:
df_1,e = ek.get_data(list_rics,['TR.SettlementPrice.date','TR.AccumulatedVolume','TR.SettlementPrice'], {'SDate':fst_dt,'EDate':lst_dt})
Can I push and add one more question ? do you think it would be possible to have the settlement of the main options greeks (Delta, Gamma, Vega, Theta would be nice)? Thanks in advance.
0
Categories
- All Categories
- 6 AHS
- 39 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
- 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 中文论坛