Historical api not returning data

waifo
Historical api was returning data, all of a sudden, it is returning empty array
Is there any problem with historical api?
  • SRIJAN
    What are the parameters you are passing in the historical data function??
  • waifo
    waifo edited June 2022
    const resp = await k.getHistoricalData(
    instrument_token,
    TIME_FRAME,
    dateFrom,
    dateTo,
    0,
    1
    );

    This was working for a long time, from yesterday i am getting empty array for this call
  • SRIJAN
    Seriously?? How would anybody know the values of these variables??

    Paste the exact parameters.
  • waifo
    waifo edited June 2022
    Come on !! if i am not giving you any specific values that means it's not working for any valid values for those variables, you can substitute it with any valid values and it's returning empty data for it
    For example
    const resp = await k.getHistoricalData(
    "256265",
    "5minute",
    2022-06-11T09:15:00.000Z,
    2022-06-11T09:20:00.000Z,
    0,
    1
    );
  • SRIJAN
    Wasn't 11 June 2022 a Saturday and Indian Markets were closed??
  • waifo
    Yeah good catch, i was doing it for 10th june then changed unknowingly to 11th june , for 10th june only 9:15-9:20 is returning empty array for other time slots it's working fine
    Thank you for pointing it out
Sign In or Register to comment.