Data variation while fetching tick data for same script, same code, different accounts

YateshKandoi
KiteConnect version used:
github.com/zerodha/gokiteconnect/v4

Script Details:
Exchange = "MCX"
Segment = "MCX-FUT"
Name = "NATURALGAS"
InstrumentToken = 119257351
TradingSymbol = "NATURALGAS26JANFUT"
Expiry = "2026-01-27"

Scenario:
2 separate incidents, using same Go client for KiteConnect is being used to fetch the tick data. The code base is identical, the only difference is the different Zerodha Accounts. I typically start by script to fetch and work on my algo every trading day, between 8 AM - 8:45 AM.

Frequency of Scenario:
In the past 45 days of so, I have witnessed the variation the most, in the following 2 scenarios:
(a) If there is a gap in launching the code by more than 2 minutes
(b) If the code is launched somewhere between 8:10-8:20 AM

Example difference:
Here are the google drive links to the fetched data (in CSV format) for above mentioned script from January 14, 2026
- File 1 - https://drive.google.com/file/d/1EujY88GRV94iQTCZ-HYUxdpU-yn5HJAQ/view?usp=sharing
- File 2 - [with missing nearly 1200 entries] - https://drive.google.com/file/d/1ib93xAiVCfM2QqiT8-kC_vNjjQwC2GMb/view?usp=sharing

I am running my code on AWS spot instances, thought, my instance size was small, and perhaps there were memory leakages, but, have checked and have not been able to find any issues even after increasing the instance size so far. After much deliberation and with utter cluelessness - reaching out to the forum - in the hope to get help in fixing this issue; everyone understands - what would missed data means - a lot of missed/bad decisions by the algorithm.

Appreciate your attention to my query. Thank you.
Sign In or Register to comment.