Multiprocessing with kite API

Zen8_ith
Hi,
I want to run same algorithm on multiple stocks using multiprocessing . Is it possible with kite Api? I wrote a piece of code but it did not work out.

Lets Example: def strategy()
logic code

processes = [multiprocessing.Process(target= strategy, args=(symbol,)) for symbol in stocks]

# Start and run the processes concurrently
for process in processes:
process.start()


# Wait for all processes to finish
for process in processes:
process.join()
  • sujith
    You can run any number of processes you want, as long as your request count is below the rate limits.
  • Zen8_ith
    Can you look into my code, it is not working?
  • sujith
    Kite Connect is purely an execution platform. We don't provide support or solution to write code.
  • Zen8_ith
    Thanks . I did this thing. Now you can close this discussion
This discussion has been closed.