Kotak-Neo / kotak-neo-api

120 stars 112 forks source link

place_order method times out when running from a different thread #222

Closed puneetkp closed 3 months ago

puneetkp commented 3 months ago

I create the 'client' object as mentioned in documentation using the NeoAPI constructor. Then if I call, client.place_order(...) and client.order_report() from the same thread it works fine.

But when I pass client object to another Thread, and try calling client.place_order(...) or client.order_report() from this different thread, the call doesn't return and it times out.

Is this expected behaviour, or am I missing something here ?

Thanks!