Can we execute the place_order() method of single instance in multiple threads simultaneously.

Aniket781
I want to place multiple orders simultaneously, can i call the place_order() method if a single kiteconnect instance in multiple threads using threadpool with taking into consideration the API rate limit, since the method doesn't modify any instance attributes or any other shared data there shouldn't be any issues of race conditions, and thread-safety. Is this understanding correct?
  • rakeshr
    Yes, you can use multi-threading instance to place order, make sure it’s within the rate limit.
Sign In or Register to comment.