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 0

Can Eikon Python API call historical forward values? i.e. what M+5 Brent was on the 01/01/2019 like Eikon Forward Curve Chart app does.

Can Eikon Python API call historical forward values?

i.e. what M+5 Brent (0#LCO:) was on the 01/01/2019 like Eikon Forward Curve Chart app does.

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apihistoricalforwards
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.

1 Answer

· Write an Answer
Upvotes
Accepted
39.4k 77 11 27

@dmitry.pak2

You can construct expired future RICs for the curve date and use these RICs to retrieve close values of those futures as of the curve date. E.g. the 5th nearest contract on 01/01/2019 was the Jun19 contract (RIC LCOM9^1). The following code snippet retrieves the close value for this future as of 01/01/2019.

curve_date = dt.datetime(2019,1,1)
ek.get_timeseries('LCOM9^1', 'CLOSE', start_date=curve_date + dt.timedelta(-10),
                  end_date=curve_date, count=1)
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.