Get_data or get_timeseries?

Hello,


Is there any difference in retrieving historical data from get_data and get_timeseries function? Is one more efficient than the other?


Thanks.

Best Answer

  • chavalit-jintamalit
    Answer ✓

    Hi @victor.koyama

    On Eikon Data API(Python):


    get_data() function can retrieve any data fields available on "Data Item Browser".

    If the field support timeseries, you can also use get_data() with appropriate parameters to get timeseries data from the field as well.

    This get_data is equivalent to =TR function on Eikon Excel

    Please refer to this tutorial for "Data Item Browser"


    get_timeseries() function can retrieve only timeseries data from a default view.

    This get_timeseries is similar to =RHistory on Eikon Excel except that you cannot select view of the data. (only default view is accessible from this API)


    It is not about which one is more efficient but it is more about where the data you are looking for.

Answers

  • Thanks for the explanation!

    There's just one thing I'd like to check: when you mentioned "default view", were you referring to the default fields retrieved by the API (e.g CLOSE, OPEN, HIGH etc)?

  • Hi @victor.koyama

    Yes, but do note that it is per instrument so different instruments may result in the different fields sets.