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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 0

Eikon Python API - option prices after market closes for sugar No.11 (SBC) and sugar No.5 (LSUc)

Hi, what code do I use to get the option prices for sugar No.11 (SBC) and sugar No.5 (LSUc) after the market closes using eikon api in python ?

eikon-data-apipython apithomson-reuters
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.

Upvotes
Accepted
53.2k 138 44 63

@BSeed

You may need to contact the Eikon Excel support team via MyRefinitiv and ask for RICs and fields that can be used with the =TR function in Eikon Excel to retrieve the required data.

After that, if RICs and fields are available, you can use them with Eikon Data API to retrieve the same data.


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.

Upvote
6.9k 14 5 8

hi @BSeed ,

You can use the code below to retrieve their daily prices.

import eikon as 
ek.set_app_key('#### YOUR APP KEY ####')

df = ek.get_timeseries(['SBc1','LSUc1'])
df

1658461819115.png

To retrieve daily close price, the field CLOSE can be added to the code

df = ek.get_timeseries(['SBc1','LSUc1'], 'CLOSE')
df

1658461862599.png

Here's the Eikon Data API Quick Start guide. Please let us know in case you have any further questions.


1658461819115.png (45.5 KiB)
1658461862599.png (27.9 KiB)
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.

Upvotes
1 0 0 0

Hi thank you, i am looking to get the option prices like below. I know how to get the close price but not options.1658764964046.png


1658764964046.png (80.0 KiB)
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.