For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
54 1 1 7

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

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!

eikon-data-api#technologypython api
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.

1 Answer

Upvote
Accepted
56.2k 145 45 65

@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

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.