Historical API gave today's(5th Dec, 2023) data even though from date was of 30th Nov, 2023

rakeshkr114
I want to understand why did Historical API gave data from today's(5th Dec, 2023) date even though from date was set to 30th Nov, 2023.
I am using python client to make this call: kite.historical_data(token, startdate, enddate, interval='minute')

Logs:
05/12/2023 10:05:46 AM https://api.kite.trade:443 "GET /instruments/historical/10534658/minute?from=2023-11-30+10%3A05%3A46&to=2023-12-05+10%3A05%3A46&interval=minute&continuous=0&oi=0 HTTP/1.1" 200 None

Interestingly, I made another call for a different instrument with same date, there I got data with proper date:
05/12/2023 10:05:47 AM https://api.kite.trade:443 "GET /instruments/historical/10512386/minute?from=2023-11-30+10%3A05%3A46&to=2023-12-05+10%3A05%3A46&interval=minute&continuous=0&oi=0 HTTP/1.1" 200 None

Note: Now I am seeing proper response with the exact request, But I want to understand what happened around that time.
Tagged:
  • rakeshr
    GET /instruments/historical/10534658/minute?from=2023-11-30+10%3A05%3A46&to=2023-12-05
    Token- 10534658(BANKNIFTY23D0647400CE), this instrument has not received any trade/tick before 5th December, so you are getting data from 2023-12-05 09:15:00. If there is no trade in the instrument, we don't receive a tick from the exchange for that instrument to plot charts.
    https://api.kite.trade:443 "GET /instruments/historical/10512386/minute?
    Token-10512386(BANKNIFTY23D0646400PE), has data from 2023-12-04 09:15:00 respectively.
Sign In or Register to comment.