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
12 4 4 9

Eikon API - multiple duplicate index when ric is expired

When I query a ric that is expired I obtain a time series with multiple duplicate indexes.

Do you know how to fix this?


Example:


import eikon as ek

result = ek.get_timeseries( 'LCON2' )



example.png




eikon-data-api
example.png (179.3 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.

@davide.costanzo

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the 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
Upvote
Accepted
14.2k 30 5 10

hi @davide.costanzo ,

First, to get the expired RIC, get_data can be used to find the RIC of expired instrument

df, err = ek.get_data(['LCON2'], [ 'TR.RIC'])
df

1655958404897.png

The RIC is LCON2^2, then use get_timeseries to retrieve the data. Please see the code and output below

result = ek.get_timeseries( 'LCON2^2')
result

1655958501968.png

Hope this helps


1655958404897.png (9.1 KiB)
1655958501968.png (19.7 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.