I want historical option data for NSE/BSE related Index options

Hi I have been able to navigate a bit using a lot of your articles but reconstructing the expired rics is tricky without examples
Below was my attempt which was sucessful for recent expiry dates but not historical.
index_ric = '.NSEI'
options_contracts = rd.discovery.search(view = rd.discovery.Views.EQUITY_QUOTES,top = 10000,filter = f"( SearchAllCategoryv2 eq 'Options' and ((UnderlyingQuoteRIC eq '{index_ric}') and (StrikePrice ge 2 and StrikePrice le 85000)))",select = "DTSubjectName,AssetState,BusinessEntity,PI,SearchAllCategoryv3,SearchAllCategoryv2,SearchAllCategory,ExchangeName,CallPutOption,StrikePrice,ExpiryDate,RIC,UnderlyingQuoteRIC,UnderlyingIssuerName,UnderlyingRCSAssetCategoryLeaf")options_contracts
RIC = options_contracts.loc[0,'RIC']start =(pd.to_datetime(options_contracts.loc[0,'ExpiryDate']) - pd.DateOffset(months =3)).strftime(format='%Y-%m-%d')end = options_contracts.loc[0,'ExpiryDate'].strftime(format='%Y-%d-%m')print(start,end)vals = rdp.get_historical_price_summaries(RIC, start = start, end = end, interval = rdp.Intervals.DAILY)# fields = ['BID','ASK','TRDPRC_1', 'IMP_VOLT', 'OPINT_1','OPEN_PRC',])vals
Answers
-
Thank you for reaching out to us.
You may refer to the following articles:
0 -
As i mentioned , there isnt a methodology for expired RIC for NSE , I have already gone through it and failed to retrieve it .
0 -
Thank you for reaching out to us.
This forum is dedicated to software developers using LSEG APIs. The moderators on this forum do not have deep expertise in every bit of content available through LSEG products, which is required to answer content questions such as this one.
The best resource for content questions is the Helpdesk support team, which can be reached by submitting queries through LSEG Support. The support team will either have the required content expertise ready available or can reach out to relevant content experts to get the answer for you.
You need to ask for the Excel formula, such as =RDP.Data, that can be used to retrieve the required data.
Then, we can help you converting that formula to Python code.
Please include the URL of this discussion in your raised question to prevent it from being redirected back to this Q&A forum.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 37 Alpha
- 167 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 707 Datastream
- 1.5K DSS
- 633 Eikon COM
- 5.3K Eikon Data APIs
- 14 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 6 Trading API
- 3K Elektron
- 1.5K EMA
- 259 ETA
- 570 WebSocket API
- 41 FX Venues
- 16 FX Market Data
- 2 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 26 Messenger Bot
- 4 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 284 Open PermID
- 47 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 25 RDMS
- 2.2K Refinitiv Data Platform
- 8 CFS Bulk File/TM3
- 901 Refinitiv Data Platform Libraries
- 5 LSEG Due Diligence
- 1 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
- 126 Open DACS
- 1.1K RFA
- 108 UPA
- 196 TREP Infrastructure
- 232 TRKD
- 921 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 106 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛