Hi, My plan is to place/modify multiple orders in parallel. Each order will be placed and managed by a different thread till the order is executed. Questions: Do I need to create a separate instance of KiteConnect object in each thread? If not, do I need to use a lock to avoid simultaneous access of the KiteConnect object created in the main thread?
Yes, it's just an object that holds the key and uses it in every api call. However, there is a limit on how many websocket connection you can open, it is limited to 3 per key.
That's my understanding.