For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 0 5

Historical Strike Price for constant maturity option

Hi,

I'm trying to pull historical strike prices for constant maturity oprions:

data = ek.get_timeseries('SPX24MO=R',fields = 'STRIKE_PRC',start_date='2019-09-30', end_date='2019-10-22')

which returns:

SPX24MO=R   STRIKE_PRC
Date                  
2019-09-30         NaN
2019-10-01         NaN
2019-10-02         NaN
2019-10-03         NaN
2019-10-04         NaN
2019-10-07         NaN
2019-10-08         NaN
2019-10-09         NaN
2019-10-10         NaN
2019-10-11         NaN
2019-10-14         NaN
2019-10-15         NaN
2019-10-16         NaN
2019-10-17         NaN
2019-10-18         NaN
2019-10-21         NaN
2019-10-22         NaN

however, using Excel formula builder with following formula "=RHistory("SPX2WO=R","STRIKE_PRC.Timestamp;STRIKE_PRC.Value","INTERVAL:1D",,"TSREPEAT:NO CH:Fd",B2)"

returns the data I'm looking for:

is there a way to pull the historical strikes to python?


Thanks,

Steffen

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
1572015003063.png (173.1 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
23k 22 9 14

Hello @steffen.fuchs,

According to my lookup via Data Item Browser (Eikon search -> Data Item Browser),

Implied Volatility is not populated for this instrument



However, the moderators of this forum are developers.

For in-depth content expertise, it is best to either refer to Refinitiv Helpdesk online or call your local Refinitiv Helpdesk, and to have your question be answered by a Refinitiv content expert.


20191028.gif (256.0 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
23k 22 9 14

Hello @steffen.fuchs,

Would this call return the data you are looking for:

ek.get_data(['SPX24MO=R'],['TR.STRIKEPRICE'],{'sdate':'09/30/2019', 'edate':'10/22/2019'})
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
3 0 0 5

Thanks, it does indeed. Can it also return the value date of the data in a row?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

@steffen.fuchs

You need to add TR.STRIKEPRICE.Date field.

ek.get_data(['SPX24MO=R'],['TR.STRIKEPRICE.Date','TR.STRIKEPRICE'],{'sdate':'09/30/2019', 'edate':'10/22/2019'})
Upvotes
3 0 0 5

Thanks, is it also possible to include the Implied Volatility in this request or do I have to put in a separate request like the one below

ek.get_timeseries('SPX24MO=R',start_date='2018-01-02', end_date='2018-01-30')


TR.IMPLIEDVOLATILITY returns NaN for me


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea