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 ?
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
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 ?
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
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')