For backtesting, you can use historical data API. For live strategies, I would suggest generating candles at your end using the websocket live market data.
You mean OHLC? OHLC is day's data it won't change for every tick. It will only change when there is an LTP more than high or LTP which is lesser than low of the day. Open and close are anyways fixed.
@sujith Thanks for your help, it worked. One thing I noticed, some times I receive just from the WebSocket, total bytes recd are 12, but when I read firt 2 bytes to get number of packets it return huge number. I am not using official Clients, developing my own to work with iOS.
Are you using big-endian or little-endian? Are you comfortable with any other technology other than Objective-C or swift? You can check out any of the client libraries to know more about parsing binary data.
You need to use on_ticks callback to listen to ticks(live market data).
Kite Ticker only sends tick when there is a change in data.
Open and close are anyways fixed.
Are you comfortable with any other technology other than Objective-C or swift?
You can check out any of the client libraries to know more about parsing binary data.