Need to fetch options historical data
i need to fetch close and settlement prices for expired options and futures contracts . please assist for the following :
1. Please let know the exact syntax for constructing the RICs for expired contracts for both futures and options .
2. second need to know the exact command to get the close and settlement prices for the contracts since there are lot of commands like get_history , get_data etc. so getting confused among them ...or please let know the syntax for all if data available from all commands .
Best Answer
-
Thank you for reaching out to us.
For the first question, please refer to the Reconstructing RICs for expired futures contracts article. For more information, you may need to contact the content support team directly via MyRefinitiv regarding constructing RICs.
For the second question, typically there are two types of fields (TR fields and real-time fields). The TR fields are prefixed with TR, such as TR.SETTLEMENTPRICE and TR.ClosePrice. The real-time fields don't have the TR prefixed, such as BID, ASK, and TRDPRC_1.
The get_data method can be used to retreive the current values of both TR fields and real-time fields.
Regarding historical data, some TR fields can provide historical data. You can use the Data Item Browser tool to verify which TR fields can provide historical data.
To get historical data, you can use either the get_data or get_history method.
rd.get_data(
universe=['LSEG.L', 'VOD.L'],
fields=['TR.Revenue.date', 'TR.Revenue'],
parameters = {'SDate':0, 'EDate':-3}
)Important note: get_data can be used with SDate and EDate parameters to retrieve fundamental time series. However, this practice (shown in the following two examples) is not recommended because it can cause alignment issues. This is due to the nature of get_data which was designed for retrieving current data. For time series please use get_history().
rd.get_history(universe=["LSEG.L", "VOD.L"], fields="TR.Revenue", interval="1Y", start="2015-01-01", end="2020-10-01")
However, to get historical data of the real-time fields, you need to use the get_history method and some real-time fields can provide historical data via the get_history method. For example:
Regarding RIC root, you can use the search functinality in the RD library to search for items. For example:
df = rd.discovery.search(
view = rd.discovery.Views.SEARCH_ALL,
top = 10,
query = "nifty",
select = "BusinessEntity,DocumentTitle, RIC, RicRoot"
)
dfYou can refer to the examples on GitHub.
0
Answers
-
how to fetch the RIC root dynamically for any asset ....i need to know e.g. i have nifty index ...how will i find the RIC root for nifty index through api or any other medium ?
0 -
Hi ,
I need to know the ohlc values of one US asset ( e.g. CLF24 ) for 08th december 2023 at IST time 15:30 i.e. need the ohlc values for this specific minute...i have got lots of US assets for which i need these values ..how to do that
0 -
Hi @peeush ,
Please be informed that the answer has been provided in your another post.
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 中文论坛