I am using the .historical_data method to get options historical data candles. After requesting the data again and again, I observed that options candle data changes.
I tried using this method simultaneously on two different accounts.
I have concluded that Zerodha has two data sources for FNO candles, and with every request, we are getting data from data-sources randomly. and there are a few differences between these two data sources.
How do I ensure that I consistently get the same data again and again?
After requesting the data again and again, I observed that options candle data changes.
Are you polling this in the live market? Can you paste the complete candle data with the requested timestamp? We will debug this. There is a single data source for all charts(APIs, kite web, apps, etc). So, the possibility of this happening would be rare, until you are polling for real-time candles.
I am using the Historical data function to get Option Candle data instead of WebSocket as of now. And I am requesting the Historical data function multiple times during the minute
Is this what you call Polling ? - that, I am doing repetitive API calls to verify data.
Yes, historical data on the Kite Connect API is provided only for backtesting purposes. You can construct candles at your end for the live market strategies.
Can you paste the complete candle data with the requested timestamp? We will debug this.
There is a single data source for all charts(APIs, kite web, apps, etc). So, the possibility of this happening would be rare, until you are polling for real-time candles.
Is this what you call Polling ?
- that, I am doing repetitive API calls to verify data.
or do you mean something else?
is it the reason ?
What is the recommendation for getting historical data ?
Shall I prepare my own candles using websocket