Incorrect data for historical_data

sriraj1122
Hello,
Am trying to fetch kite.historical_data for NIFTY22OCTFUT. But there is an error in fetching the data when we use intervals other than "day".

E.g; When we use "5minute" interval for the api kite.historical_data for NIFTY22OCTFUT with "from_date" as 2022-10-13 and "to_date" as 2022-10-20, api is returning the data from 2022-10-14to 2022-10-20. API is not returning the data for 2022-10-13.Facing same issue for other intervals as well(e.g; 10minute, 15minute, 1hour et al)


But when we use "day" interval for the same api kite.historical_data for NIFTY22OCTFUT with "from_date" as 2022-10-13 and "to_date" as 2022-10-20, api is returning the data correctly from 2022-10-13 to 2022-10-20.

Can you please check why this difference for different intervals. ? Has there been any changes to this API ?

Regards,
Sriraj K

  • rakeshr
    It's working fine. DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "GET /instruments/historical/13299458/5minute?from=2022-10-13&to=2022-10-20&interval=5minute&continuous=0&oi=0 HTTP/1.1" 200"
    2022-10-13 09:15:00+05:30,17085.25,17086.8,17055.05,17063.45,482350
    Can you paste here the debug log for the request?
  • sriraj1122
    Yes. it is working good now. Thank you @rakeshr
This discussion has been closed.