Which formula do you recommend me to use in order to retrieve time series and last value of TR.Turno

Which formula do you recommend me to use in order to retrieve time series and last value of TR.Turnover indicator?


What is the difference between using first script and second one:

1)

import refinitiv.dataplatform.eikon as ek


ek.set_app_key('DEFAULT_CODE_BOOK_APP_KEY')


df, err = ek.get_data(

instruments = ['TSLA.O'],

fields = ['TR.TURNOVER(Frq=D,SDate=2022-11-01,EDate=2022-11-20,Curn=USD),TR.TURNOVER(Frq=D,SDate=2022-11-01,EDate=2022-11-20,Curn=USD).date']

)


display(df)



2)

import refinitiv.dataplatform.eikon as ek

import refinitiv.data as rd

rd.open_session()

data = rd.get_history(universe='TSLA.O', fields=['TR.TURNOVER'], interval='1D', start='2022-11-01', end='2022-11-20')

display(data)

rd.close_session()


Which one do you recommend us to use?


Which one is the best in retrieving time series?

Or perhaps you could recomment totally different method.


And which script do you recommend in order to retrieve the last value pf TR.TURNOVER?


Thanks!

Best Answer

  • Jirapongse
    Jirapongse admin
    Answer ✓

    @alekseenkova.marina

    Thanks for reaching out to us.

    The refinitiv.data library is newer than Eikon Data API.

    I recommend using the refinitiv.data library.

    Both ek.get_data and rd.get_history functions retrieve data (TR fields) from the same endpoint.

    I hope that this information is of help