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.
0
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
- 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
- 616 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 中文论坛