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 1 1 1

Historical futures prices

Good afternoon,

I need to download the historical futures prices on brent oil for the period jan-march of 2020 with expiration in april 2020 . How i can do it ?

eikoneikon-data-apirefinitiv-dataplatform-eikonworkspaceworkspace-data-apicommodities
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.

Hello @gestyri ,

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

If yes, please click the 'Accept' text next to the 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


1 Answer

· Write an Answer
Upvotes
Accepted
39.4k 77 11 27

Brent future that expires in April is the June contract. The RIC code for June 2020 contract is LCOM0^2. To retrieve close price history for it between your dates use

import refinitiv.dataplatform as rdp
rdp.open_desktop_session('YOUR_APP_KEY')
rdp.get_historical_price_summaries('LCOM0^2',
                                   fields=['TRDPRC_1'],
                                   start = '2020-01-01',
                                   end = '2020-03-31')
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.