Maximum allowed order requests exceeded.

er_surendra_sharma
Hi,

I am using Java client API to perform algo trading today my algo platform posted total 12 orders. Now algo application is not able to send request and giving this exception
2021-03-03 11:02:46,718 [tick-task-30] INFO o.t.algo.manager.ZerodhaKiteConnect - Evaluate exit and place order for HCLTECH PRODUCT_MIS
2021-03-03 11:02:47,088 [tick-task-30] INFO o.t.algo.manager.ZerodhaKiteConnect - Kite API session expired
2021-03-03 11:02:47,088 [tick-task-30] WARN o.t.algo.manager.ZerodhaKiteConnect - null
com.zerodhatech.kiteconnect.kitehttp.exceptions.TokenException: null
at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.dealWithException(KiteResponseHandler.java:48)
at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.handle(KiteResponseHandler.java:20)
at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.getRequest(KiteRequestHandler.java:53)
at com.zerodhatech.kiteconnect.KiteConnect.getOrders(KiteConnect.java:373)
at org.trading.algo.manager.ZerodhaKiteConnect.evaluateAndPlaceExitOrder(ZerodhaKiteConnect.java:785)
at org.trading.algo.manager.ZerodhaKiteConnect.access$1500(ZerodhaKiteConnect.java:88)
at org.trading.algo.manager.ZerodhaKiteConnect$TickStoreTask.targetExit(ZerodhaKiteConnect.java:1361)
at org.trading.algo.manager.ZerodhaKiteConnect$TickStoreTask.priceStopLossOrTarget(ZerodhaKiteConnect.java:1339)
at org.trading.algo.manager.ZerodhaKiteConnect$TickStoreTask.priceEvent(ZerodhaKiteConnect.java:1245)
at org.trading.algo.manager.ZerodhaKiteConnect$TickStoreTask.run(ZerodhaKiteConnect.java:1238)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2021-03-03 11:02:47,088 [tick-task-30] WARN o.t.algo.manager.ZerodhaKiteConnect - com.zerodhatech.kiteconnect.kitehttp.exceptions.TokenException
org.trading.exception.TradingException: com.zerodhatech.kiteconnect.kitehttp.exceptions.TokenException
at org.trading.algo.manager.ZerodhaKiteConnect.evaluateAndPlaceExitOrder(ZerodhaKiteConnect.java:790)
at org.trading.algo.manager.ZerodhaKiteConnect.access$1500(ZerodhaKiteConnect.java:88)
at org.trading.algo.manager.ZerodhaKiteConnect$TickStoreTask.targetExit(ZerodhaKiteConnect.java:1361)
at org.trading.algo.manager.ZerodhaKiteConnect$TickStoreTask.priceStopLossOrTarget(ZerodhaKiteConnect.java:1339)
at org.trading.algo.manager.ZerodhaKiteConnect$TickStoreTask.priceEvent(ZerodhaKiteConnect.java:1245)
at org.trading.algo.manager.ZerodhaKiteConnect$TickStoreTask.run(ZerodhaKiteConnect.java:1238)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.zerodhatech.kiteconnect.kitehttp.exceptions.TokenException: null
at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.dealWithException(KiteResponseHandler.java:48)
at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.handle(KiteResponseHandler.java:20)
at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.getRequest(KiteRequestHandler.java:53)
at com.zerodhatech.kiteconnect.KiteConnect.getOrders(KiteConnect.java:373)
at org.trading.algo.manager.ZerodhaKiteConnect.evaluateAndPlaceExitOrder(ZerodhaKiteConnect.java:785)
... 8 common frames omitted

When I try to exit open position either from Kite mobile app or Kite web I am getting error message "Maximum allowed order requests exceeded.". Can you suggest what could go wrong? and how to fix this issue if in future I face same issue?
Sign In or Register to comment.