Incorrect Historical Data - High price mismatch between web and api client

vidhyaramkumar
Historial data shows wrong which caused the slippage in the profit points.

Symbol: BANKNIFTY20DEC30000CE
Time Frame : 5 Minute

Zerodha Web Client:



Zerodha API Client:
curl --location --request GET 'https://api.kite.trade/instruments/historical/10510594/5minute?from=2020-12-24+09:15:00&to=2020-12-24+09:15:00' \
--header 'X-Kite-Version: 3' \
--header 'Authorization: token apikey:apitoken' \
Result:

{
"status": "success",
"data": {
"candles": [
[
"2020-12-24T09:15:00+0530",
377.95,
399.8,
363.25,
397.9,
31475
]
]
}
}
Issue:
High Price is not matched with Web Client and API Client
  • rakeshr
    5minute?from=2020-12-24+09:15:00&to=2020-12-24+09:15:00'
    For 5minute candle, you don't seem to be requesting the correct interval. Instead, to and fro should be:
    5minute?from=2020-12-24+09:15:00&to=2020-12-24+09:19:59'
    You can go through this thread to know more.
  • vidhyaramkumar
    Thanks & MyBad. Today, I learned.
Sign In or Register to comment.