Hi Sujith & Kailash, I'm using Kite API to get historical data and placing order. When I send an request to get frequently I'm getting Uncaught DataException error.
Hi @epraveen92, You need to handle the exception and retry. It is not really meant for polling.
The historical data API is provided for backtesting purpose only. You can generate candles at your end using the live market data provided via websockets for liver strategies. You can check out this thread to get started.
It could be because of many reasons may be a network issue at client end or server end or request might have timed out before the read operation on the database is completed.
You need to handle the exception and retry. It is not really meant for polling.
The historical data API is provided for backtesting purpose only. You can generate candles at your end using the live market data provided via websockets for liver strategies.
You can check out this thread to get started.
This error is coming from historical data API or Order API ?
Please reply both