Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 1

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.

@BSeed

Hi,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS


Upvotes
Accepted
79.1k 250 52 74

@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
14.2k 30 5 10

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 1

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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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