WTCLc1 historical tick data in Eikon API

Hi team, we are trying to get the historical tick for WTCLc1 in Eikon API but its showing NA


ek.set_app_key('DEFAULT_CODE_BOOK_APP_KEY')

data = ek.get_timeseries("WTCLc1",

fields = ['BID'],

start_date='2023-11-22T00:00:00',

end_date='2023-11-22T23:59:59',

interval = 'tick')

print(data)


I checked in Eikon excel if we have values and excel populated the data just fine using the below formula:

=@RHistory("WTCLc1","BID.Timestamp;BID.Value","INTERVAL:TICK",,"CH:Fd")




Best Answer

  • Hi @HannaCP ,


    I would suggest using our latest RD Libraries for python for that request:

    import refinitiv.data as rd
    rd.open_session()
    data = rd.get_history("WTCLc1", fields = ['BID'], start='2023-11-22T00:00:00', end='2023-11-22T23:59:59', interval = 'tick')

    data

    screenshot-2023-11-23-at-100955.png

    Also if you don't provide the field parameter it will return all available fields for the instrument which will you with other fields you might be interested in.


    I hope this will help.


    Best regards,

    Haykaz

Answers