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-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikoncommodities
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.

1 Answer

Upvotes
Accepted
39.2k 75 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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea