It looks like you're new here. If you want to get involved, click one of these buttons!
.....handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))Can I not run KiteTicker as a thread? How can I get rid of this annoying error?
builtins.ValueError: signal only works in main thread
[{'tradable': True, 'mode': 'full', 'instrument_token': 12247298, 'last_price': 12354.3, ......//......, {'quantity': 150, 'price': 12354.8, 'orders': 1}]}}]
I missed parenthesis while creating thread and that gave me a nightmare.
t1 = threading.Thread(target=KiteTicker) caused the issue and t1 = threading.Thread(target=KiteTicker()) fixed it
so to run further threads I should run it like
t1 = threading.Thread(target=KiteTicker)
t1.start()
but that leaves me the error mentioned in the initial post - kind of a dead lock scenario
So my question is still open and any advice from anyone who faced this will be appreciated.
I am working towards a workaround; will post if I can figure out anything.