Incorrect start date whiDownload multiple stock price data from Eikon python API

Hi, I am trying to download historical price data for multiple stocks from 2015 to 2024. When I download data for a single stock, it starts from the earliest available date. However, when I download data for multiple stocks, whether using the normalize option or not, the data is trimmed. How can I download the stock price data so that each stock's data starts from the correct date? Thanks!

eikon_instruments = ['LIH.BX','ROSMTL.BX','ROCC.BX','RO2P.BX','NLMK.MM','ENPG.MM','VKCO.MM','BOK.RW','IMR.RW','MTNR.RW']
ek.get_timeseries(eikon_instruments[0], fields = 'Close',start_date = "2015-01-01", end_date = "2024-05-01", interval="daily")
ek.get_timeseries(eikon_instruments, fields = 'Close',start_date = "2015-01-01", end_date = "2024-05-01", interval="daily")
ek.get_timeseries(eikon_instruments, fields = 'Close',start_date = "2015-01-01", end_date = "2024-05-01", interval="daily",normalize=True)



1719543063155.png

1719543162884.png

Best Answer

  • Hi @libacq,


    I believe that this is an issue that was put forward in the past, and inproved upon in the new version of EDAPI, the RD Lib. for Python. You can use it in this way:


    import refinitiv.data as rd

    rd.open_session()

    df1 = rd.get_history(
    universe=[
    # "IBM.N",
    # "VOD.L",
    "LIH.BX",
    "MTNR.RW"],
    fields=["TR.Close"],
    interval="1D",
    start="2015-01-01",
    end="2024-05-01")

    display(df1)

    rd.close_session()

    1719584284762.png


    Do let me know if it returns the data you are after.

Answers