Exception in thread "main" com.zerodhatech.kiteconnect.kitehttp.exceptions.NetworkException at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.dealWithException(KiteResponseHandler.java:58) at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.handle(KiteResponseHandler.java:20) at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.getRequest(KiteRequestHandler.java:82) at com.zerodhatech.kiteconnect.KiteConnect.getOHLC(KiteConnect.java:535)
Hi @aakashps1995, I tried with the same param and I got success response {"status":"success","data":{"NSE:NIFTY BANK":{"instrument_token":260105,"last_price":27041.2, "ohlc":{"open":26940.5,"high":27074.9,"low":26841.2,"close":26909.5}}}}
Are you sure you have the updated jar? You can download new jar from repository's release page.
Hii @sujith see this screen shot I got error when i call kiteConnect,getOHCL() method second time i already updated jar file, No how can i solve this ??
I tried with the same param and I got success response
{"status":"success","data":{"NSE:NIFTY BANK":{"instrument_token":260105,"last_price":27041.2,
"ohlc":{"open":26940.5,"high":27074.9,"low":26841.2,"close":26909.5}}}}
Are you sure you have the updated jar?
You can download new jar from repository's release page.
see this screen shot
I got error when i call kiteConnect,getOHCL() method second time
i already updated jar file,
No how can i solve this ??
Can you paste the error message from server or response from the server?
i am getting this error message
{"status": "error", "message": "Too many requests", "error_type": "NetworkException"}
You can make only one request per second to that endpoint.
You will have to basically request for all the instruments in one call.
Ok