InCorrect Candle Close in MCX Future ( Sometimes Only)

Harsh1993
We have checked the chart at 17.02 in the evening at that time chart was showing close of 29/05 16.59 as 304.90
As shown in Image


Also at the same time in the API Call it was giving below response
https://api.kite.trade/instruments/historical/114243847/minute?from=2025-05-23+17:00:00&to=2025-05-29+17:00:00
17:00:08,701 INFO PID:4 NATURALGASNEAR FUT HistoricalData Last 10 Value:[{"candleTime":"2025-05-29T16:50:00+05:30","open":305.0,"high":306.1,"low":304.8,"close":304.8,"volume":487.0,"oi":0.0},{"candleTime":"2025-05-29T16:51:00+05:30","open":304.8,"high":305.0,"low":304.6,"close":305.0,"volume":124.0,"oi":0.0},{"candleTime":"2025-05-29T16:52:00+05:30","open":305.0,"high":305.3,"low":304.6,"close":304.8,"volume":70.0,"oi":0.0},{"candleTime":"2025-05-29T16:53:00+05:30","open":304.8,"high":305.3,"low":304.8,"close":305.2,"volume":85.0,"oi":0.0},{"candleTime":"2025-05-29T16:54:00+05:30","open":305.2,"high":305.3,"low":305.0,"close":305.0,"volume":78.0,"oi":0.0},{"candleTime":"2025-05-29T16:55:00+05:30","open":305.0,"high":305.2,"low":305.0,"close":305.2,"volume":28.0,"oi":0.0},{"candleTime":"2025-05-29T16:56:00+05:30","open":305.0,"high":305.3,"low":305.0,"close":305.1,"volume":113.0,"oi":0.0},{"candleTime":"2025-05-29T16:57:00+05:30","open":305.1,"high":305.3,"low":304.9,"close":305.0,"volume":70.0,"oi":0.0},{"candleTime":"2025-05-29T16:58:00+05:30","open":305.0,"high":305.3,"low":304.8,"close":305.0,"volume":113.0,"oi":0.0},{"candleTime":"2025-05-29T16:59:00+05:30","open":304.9,"high":305.0,"low":304.5,"close":304.9,"volume":153.0,"oi":0.0}]


now after 1 min when we checked again it changed the Close value in chart and API both
https://api.kite.trade/instruments/historical/114243847/minute?from=2025-05-23+17:01:00&to=2025-05-29+17:01:00
17:01:07,622 INFO PID:4 NATURALGASNEAR FUT HistoricalData Last 10 Value:[{"candleTime":"2025-05-29T16:51:00+05:30","open":304.8,"high":305.0,"low":304.6,"close":305.0,"volume":124.0,"oi":0.0},{"candleTime":"2025-05-29T16:52:00+05:30","open":305.0,"high":305.3,"low":304.6,"close":304.8,"volume":70.0,"oi":0.0},{"candleTime":"2025-05-29T16:53:00+05:30","open":304.8,"high":305.3,"low":304.8,"close":305.2,"volume":85.0,"oi":0.0},{"candleTime":"2025-05-29T16:54:00+05:30","open":305.2,"high":305.3,"low":305.0,"close":305.0,"volume":78.0,"oi":0.0},{"candleTime":"2025-05-29T16:55:00+05:30","open":305.0,"high":305.2,"low":305.0,"close":305.2,"volume":28.0,"oi":0.0},{"candleTime":"2025-05-29T16:56:00+05:30","open":305.0,"high":305.3,"low":305.0,"close":305.1,"volume":113.0,"oi":0.0},{"candleTime":"2025-05-29T16:57:00+05:30","open":305.1,"high":305.3,"low":304.9,"close":305.0,"volume":70.0,"oi":0.0},{"candleTime":"2025-05-29T16:58:00+05:30","open":305.0,"high":305.3,"low":304.8,"close":305.0,"volume":113.0,"oi":0.0},{"candleTime":"2025-05-29T16:59:00+05:30","open":304.9,"high":305.0,"low":304.5,"close":305.0,"volume":158.0,"oi":0.0},{"candleTime":"2025-05-29T17:00:00+05:30","open":305.0,"high":305.0,"low":304.9,"close":305.0,"volume":35.0,"oi":0.0}]


We tried with .net DLL as well as direct rest API call facing the same challenge

Can you guide us on the same.??

Our requirement is to get the candle close immdetialy after it gets over new candel start.

  • Harsh1993
    @sujith @rakeshr your intevention will be helpfull here
  • rakeshr
    https://api.kite.trade/instruments/historical/114243847/minute?from=2025-05-23+17:00:00&to=2025-05-29+17:00:00
    17:00:08,701 INFO PID:4
    {"candleTime":"2025-05-29T16:59:00+05:30","open":304.9,"high":305.0,"low":304.5,"close":304.9,"volume":153.0,"oi":0.0}]
    It appears that for the first historical data request, you made the call before candle completion, as highlighted by the log timestamp.
    17:01:07,622 INFO PID:4,
    {"candleTime":"2025-05-29T16:59:00+05:30","open":304.9,"high":305.0,"low":304.5,"close":305.0,"volume":158.0,"oi":0.0},
    This request time looks fine.
  • Harsh1993
    for data of 16:59 we have made the API call at 17:00:08 which is 8 second late still it gave in correct data

    To Time was 17:00:00 in the API call

    https://api.kite.trade/instruments/historical/114243847/minute?from=2025-05-23+17:00:00&to=2025-05-29+17:00:00
    17:00:08,701 INFO PID:4
    {"candleTime":"2025-05-29T16:59:00+05:30","open":304.9,"high":305.0,"low":304.5,"close":304.9,"volume":153.0,"oi":0.0}]

    and when we checked the same candle after few 1 minute that is at 15:00:01 we got correct data of 16:59 candle
    which is almost 2 Candle (1 min candle ) difference


    What is need is the candle close price immeditely once the candle is over can you suggest what From time and To Time is to be used
    Example at 17:00:01 i want the candle of 16:59:00 ( Open Time) - 17:00:00 ( Close Time) 1 min timeframe

    and this is happing randomly like out of 15-20 candle only 1 candle give missmatch when we are checking previous candle data.
  • Harsh1993
    let me know if any additional details required ..?
Sign In or Register to comment.