Minutely stock price get_timeseries()

Hello,

I want to retrieve the stock price minutely in a time range:

df = ek.get_timeseries([".AXJO"], start_date = "2023-03-01", end_date = "2023-03-13", interval="minute")

but it shows error: No data available for the requested time range

1715215031027.png


When I remove the end_date, it shows the results, which I want to achieve but in different time range as below:

1715215130304.png

Please help to check how can I retrieve stock price minutely in a specific time range!

Thank you very much

Best Answer

  • Jirapongse
    Answer ✓

    @Hana

    Thank you for reaching out to us.

    I checked and found that the Intraday time series database only stores up to 1 year of history.

    This is why it returns No data available for the requested time range when request data for Mar 2023.

    To get older data, you may need to use another product, such as LSEG Tick History. For more information, please contact your LSEG account team or sales team directly.


Answers

  • I have changed the time range but it still shows the same error:

    Can you please help to check the code if it works? Thank you very much

    df = ek.get_timeseries(["MSFT.O"], start_date = "2024-05-15T15:04:05",end_date = "2024-05-16T15:04:05", interval="tick")

  • I think it is 90 days for tick data.

    df = ek.get_timeseries(["MSFT.O"], start_date = "2024-02-07T15:04:05",end_date = "2024-02-07T17:04:05", interval="tick")
    df
  • Hello,

    I've changed the code to minute and it still shows the same result:

    df = ek.get_timeseries(["MSFT.O"], start_date = "2024-05-15T15:04:05",end_date = "2024-05-16T15:04:05", interval="minute")

    EikonError: Error code -1 | MSFT.O: No data available for the requested date range |

    Can you please check if it works from your end. thank you


  • @Hana

    The year (2024) is incorrect. It should be 2023.

    df = ek.get_timeseries(["MSFT.O"], start_date = "2023-05-15T15:04:05",end_date = "2023-05-16T15:04:05", interval="minute")
    df

    1715308205094.png