How do I get the delta value of a stock at all strike prices on a given date through the EIKON API?

Best Answer
-
First, you need to know an option chain RIC for AAPL.O. You can contact the content support team via MyRefinitiv for an option chain. For AAPL.O, the option chain RIC could be 0#AAPL*.U.
Next, you need to know what field can provide the Delta Mid field. The Data Item Browser can be used to find fields. I found this TR.OPWMidDelta field that provides Option Watch Mid Delta.
With the option chain RIC and TR.OPWMidDelta field, the code to get the Delta Mid is:
df, err = ek.get_data('0#AAPL*.U',['PUTCALLIND','EXPIR_DATE','STRIKE_PRC'])
df1,err = ek.get_data(df.dropna()['Instrument'].tolist(),["TR.OPWMidDelta"])
df.dropna(inplace=True)
df.set_index('Instrument',inplace=True)
df1.set_index('Instrument',inplace=True)
df2 = pd.concat([df, df1], axis=1, sort=False)
df20
Answers
-
Hi @yuyang.1958 Thanks for your question. I take it you mean the delta value of an option.
So the screenshot you posted was of the option watch app which has a delta column in it.
From the Data Item Browser app (type DIB into Eikon Search bar) you can see there are different types of delta available (in this example I just used a S&P500 Aug put with the last delta value - but as some options can be illiquid you might also want ask, mid, bid etc based delta to get more recent value):
So you can use the TR.OPWxxx fields depending on your preference.
opw, err = ek.get_data('SPXt212029000.U', fields=['TR.OPWLastDelta'])
opwI hope this can help you.
0 -
Thank you very much for your answer. I have two more questions for you to answer.
1. Please look at the screenshot. On the Eikon client, you can choose the execution price and the specific expiration date. How do I pass parameters when I request data for Eikon python Api?
2. For 0700.HK, what the option chain RIC could be? For other Hong Kong stocks, how do I know his option chain RIC?
0 -
Hi @yuyang.1958
2. You can use "OPTIONS" field.
1. It is not possible to filter out the underlying OPTIONS CHAIN RIC on the get_data()
However you can write your python code to filter out the data inside df dataframe according to your requirement such as EXPIR_DATE should be in some period and STRIKE_PRC should be some value.
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
- 684 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
- 249 ETA
- 554 WebSocket API
- 37 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
- 643 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
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 192 TREP Infrastructure
- 228 TRKD
- 915 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 中文论坛