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' )
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
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' )
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
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
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
Hope this helps