Eikon Data API

bferguson
bferguson Newcomer
edited December 2024 in Eikon Data APIs

I have two questions

  1. Is there any endpoint I can hit to get me metadata for a given RIC?

I have tried searching the lseg.data api or eikon api and could not find anything,

2. No data coming out of:

Or more specifically, the entire timeseries comes out as NaNs

ek.get_timeseries(

rics = ['SYB-2YNOLAF-F'],   

start_date=str('2019-01-01'),   

fields=["CLOSE"],   

interval="daily",)


which is surprising because the same call returns data via the lseg.data api.

I want to use the eikon wrapper because it seems like I can access longer history via those endpoints. Any help here would be great.

Thank you

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @bferguson

    Thank you for reaching out to us.

    You can remove the fields parameter to see all available fields. I found that this RIC provides the VALUE field.

    df = ek.get_timeseries(
        rics = ['SYB-2YNOLAF-F'],   
        start_date=str('2019-01-01'),   
        #fields=["CLOSE"],  
        interval="daily",)
    df
    
    image.png

    To get the historical data of other real-time fields, you need to use the get_history method in the LSEG Data Library for Python instead.

    df = ld.get_history(universe=['SYB-2YNOLAF-F'],    
        start="2019-01-01",
        end="2019-02-01")
    df
    
    image.png

    Please explain more about the meta data that you want to retrieve.

    You can use the Data Item Browser tool to search for available fields. Then, use the get_data method to retieve the values of those fields.