question

Upvotes
Accepted
1 1 1 2

How to obtain the OPEN, HIGH, LOW, CLOSE historical data of options in EIKON API?

eikon-data-api
icon clock
10 |1500

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

1 Answer

Upvotes
Accepted
61 1 0 2

Hi @yuyang ,


You can use ek.get_timeseries to obtain historical price data for options. See and example below:

ek.get_timeseries(['AAPLF172209500.U'], start_date = '2022-03-02',end_date = '2022-06-08', 
                  interval='daily',fields = ['CLOSE', 'OPEN', 'HIGH', 'LOW'])

And here is the output:

screen-shot-2022-06-09-at-112601.png

Additionally you may find the functions introduced in this article useful if you don't know the exact option RIC and want to construct them based on option parameters.


Hope this is helpful and let me know should you have any further questions.


Best regards,

Haykaz


icon clock
10 |1500

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