not able to run kite.orders() in on_ticks().

sanket_one
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:443
DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "GET /orders HTTP/1.1" 200 None
code:
def on_ticks(ws, ticks):
ohlc_maker(ticks)
print(kite.orders())

i am able to get ticks but as soon as i add print(kite.orders()) in on_ticks this pops up and after this msg order information gets printed.
This discussion has been closed.