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
1
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 -
how can i search for CL futures options in the same tool ..like i'm trying to find Nymex CL future options both active and expired RIC's0
-
hi want to understand one thing...e.g. if one of the options is expiring today ...and i try to fetch its data using option chain as you mentioned above ...actually i am trying to fetch the historical prices ....will the contract will still be available in this list for sometime or it will immediately gets removed since contract expired ..also when i'm putting bid and ask in the fields it is giving me single entries ...do i have to use get_timeseries to get minute data and the RIC's only i can get from here ?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 -
hi need to know does this include weekly contracts also ..if not how can we get the weekly contract chains0
-
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
- 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 中文论坛