print("[I] CONNECTING TO THE SOCKET CLIENT") self.kws.connect()
def on_connect(self, ws, response): print("[+] CONNECTED TO THE SOCKET CLIENT")
def on_order_update(self, ws, data): # Handle order updates # TODO: Here we need to add code to place the order print(f"[+] NEQ ORDER UPDATE: {data}") Thread(target=place_orders, args=(data,), daemon=True).start()
def on_close(self, ws, code, reason): # On connection close stop the main loop # Reconnection will not happen after executing `ws.stop()` print(f"[!] SOCKET CLOSED REASON:{reason} | CODE: {code}") ws.stop()
it was due to multiple order being passed in one go for clients... was more than 15 in one go... how can we get copy trade in all cclients in one go with not breaking zerodha api order limit ...can you suggest ?
how can we get copy trade in all cclients in one go with not breaking zerodha api order limit ...can you suggest ?