historical option strike chain

I'm using below code for getting historical option chain data for AAPL....Please provide the symbol for US Stock BRK.B to get the below data :
df, err = ek.get_data(
instruments = ['0#AAPL*.U'],
fields = ['PUTCALLIND','STRIKE_PRC','EXPIR_DATE']
)
Best Answer
-
Hi @peeush
For the active ones you can either use chain from Refinitiv Data Libraries as advised here in your previous question or use Eikon as suggested above:
df, err = ek.get_data(
instruments = ['0#CL+'],
fields = ['PUTCALLIND','STRIKE_PRC','EXPIR_DATE']
)
dfThis will return the monthly contract chains. Then for each chain:
df, err = ek.get_data(
instruments = ['0#/CLJ24+'],
fields = ['PUTCALLIND','STRIKE_PRC','EXPIR_DATE']
)
dfAs for the expired ones, those are not accessible directly and you need to reconstruct them following the RIC construction Rules. You can reach out to Helpdesk for more details by posting a question.
I have build similar workflows for equity options and futures here and here which might be useful when attempting to build one for options on futures yourself. You may need help from Helpdesk to learn the construction Rules.
Hope this helps.
Best regards,
Haykaz
0
Answers
-
Thank you for reaching out to us.
Is it this one?
df, err = ek.get_data(
instruments = ['0#BRKB*.U'],
fields = ['PUTCALLIND','STRIKE_PRC','EXPIR_DATE']
)
dfYou can use the RIC Seach tool to search for RICs.
Otherwise, you can contact the helpdesk support team directly via MyRefinitiv. The helpdesk team can find RICs for you.
0 -
0
-
0
-
From the list above , i tried to fetch data for CL25D24 contract ..but not getting any data ..is it data availability issue ..or some issue in the syntax below :
#df = ek.get_timeseries(["CL25D24"],start_date="2023-01-01", end_date="2025-02-20", interval="minute")
df, e = ek.get_data('CL25D24', ['ASK', 'BID'])
0 -
Hi @peeush ,
Whether it gets removed, I would advice talking to the Helpdesk. As it comes to the historical prices, I would advice using get_timeseries or get_history from RD Libraries. Finally, your code with ek.get_timeseries is correct and seems there is no data for your request. I have tried the same call with RD Libs (which returns all available fields if fields parameter is skipped) and this is what I got:
rd.get_history('CL25D24', start="2023-01-01", end="2025-02-20", interval = '1min')
if you see from the df OHLC is not available but there are other available fields which might be useful
Best regards,
Haykaz
0 -
0
-
Weekly RICs may have different specification. Please see below:
And I would advice contacting the helpdesk for other content related questions, if any.
Best regards,
Haykaz
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
- 615 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 中文论坛