I have used the above code to place the order but I am getting the order placement failed error. While when I replace the kite.ORDER_TYPE_LIMIT with kite.ORDER_TYPE_MARKET. The order gets placed and executed without any error. Can anyone help me what is the error in my code.
The rate limit is 200. And whenever the code trying to place the order it gives the error. As far as I understand from the rate limit I can place 200 orders per minute. Am I right ?
Since the order has not been placed and from the beginning I am getting the same error how the rate limit can be crossed. Since I am not getting any error with same code when limit order is replaced with market order that means everything else is correct in the code.
Order placement is capped at 10 requests per second and 200 per minute. Kite Connect API doesn't differentiate between a MARKET order or LIMIT order. These are just different parameters for the same endpoint. Kite Connect API is being used by tens of thousands of production apps. It includes our internal apps as well that are being used by millions of users everyday. There is no issue with Kite Connect API.
10 requests means 10 orders can be placed in one second. These 10 orders must be visible on the app. But they are not visible on the app. This means order placement failed is coming even when no order has been placed through api.
Secondly I am not saying api differentiate between limit or market. But it is true that same code is working for market order but not for limit order.
If there was no error in kite api then it should work for both which is not happening.
Can you send me screenshot or any other supportive material which justifies your reply that limit order is working properly.
PS: Make sure to remove app and client specific tokens.
Based on the error status code 429, it looks like you are getting rate limited.
Since the order has not been placed and from the beginning I am getting the same error how the rate limit can be crossed. Since I am not getting any error with same code when limit order is replaced with market order that means everything else is correct in the code.
It seems there is bug in api
Kite Connect API is being used by tens of thousands of production apps. It includes our internal apps as well that are being used by millions of users everyday. There is no issue with Kite Connect API.
Secondly I am not saying api differentiate between limit or market. But it is true that same code is working for market order but not for limit order.
If there was no error in kite api then it should work for both which is not happening.
Can you send me screenshot or any other supportive material which justifies your reply that limit order is working properly.