Hi @Amitesh, It is not guaranteed that a minute candle will be available at the end of the minute or at the beginning of the next minute.
The way historical data service works is, it will capture all the ticks in a minute and then generate a candle out of it. The new candle is written to the database. This happens for all the instruments that are being traded for the day. There can be a delay since write operation to the database itself is uncertain. If one of the writes delayed then the following writes will also be delayed.
I would suggest generating candle at your end using the live market data provided by Kite Ticker.
Yes I wrote code to manipulate ticks data to generate candle sticks. But suppose, I ran the code at 10 AM, in that case I will miss all the data starting from 9:15 AM to 9:59 AM. In another scenario, If somehow I loss internet connection for couple of minutes or even couple of seconds then also I will miss data and I don't see any way to get those data. And if I loss Data, I will not be able to generate indicators until I wait and collect a huge amount of data and this could stop me trading all over the day. Are you guy's providing any solution for this. As I suppose it is not logical to wait whole day for missing a single minute data.
Also we could loss data if Kite Ticker is somehow failing to forward ticks data.
@Amitesh, OMS can also go down when things go wrong. There have been scenarios wherein exchange was not sending ticks during the market hours. Technical issues can happen because of thousands of reasons. You need to always make sure you handle all the exceptions. We provide historical data only for backtesting purposes. Many people are already generating candles using live market data. Once you set up your system to convert ticks to candles then you can consider pushing it to cloud.
@sujith but if sometimes it taking time for database query to update last candle data then no need to send the wrong data. You can wait for 1 seconds only. I don't think that it will take more than 1 second to for previous candle update. And this is happening consecutively. You send candle only if it completely formed
It is not wrong, it is sending data with whatever tick data available with that system. Hence it is not recommending to use it for live market strategies.
It is not guaranteed that a minute candle will be available at the end of the minute or at the beginning of the next minute.
The way historical data service works is, it will capture all the ticks in a minute and then generate a candle out of it. The new candle is written to the database. This happens for all the instruments that are being traded for the day. There can be a delay since write operation to the database itself is uncertain. If one of the writes delayed then the following writes will also be delayed.
I would suggest generating candle at your end using the live market data provided by Kite Ticker.
Thanks for your response.
Yes I wrote code to manipulate ticks data to generate candle sticks. But suppose, I ran the code at 10 AM, in that case I will miss all the data starting from 9:15 AM to 9:59 AM. In another scenario, If somehow I loss internet connection for couple of minutes or even couple of seconds then also I will miss data and I don't see any way to get those data. And if I loss Data, I will not be able to generate indicators until I wait and collect a huge amount of data and this could stop me trading all over the day. Are you guy's providing any solution for this. As I suppose it is not logical to wait whole day for missing a single minute data.
Also we could loss data if Kite Ticker is somehow failing to forward ticks data.
Thanks
Amitesh
OMS can also go down when things go wrong. There have been scenarios wherein exchange was not sending ticks during the market hours. Technical issues can happen because of thousands of reasons. You need to always make sure you handle all the exceptions.
We provide historical data only for backtesting purposes. Many people are already generating candles using live market data. Once you set up your system to convert ticks to candles then you can consider pushing it to cloud.
You can check out this thread to know how to get started.