It looks like you're new here. If you want to get involved, click one of these buttons!
kws = KiteTicker(api_key, access_token)
get_token()
def on_ticks(ws, ticks):
print(ticks)
def on_connect(ws, response):
ws.subscribe(token_list)
ws.set_mode(ws.MODE_FULL,token_list)
def on_close(ws, code, reason):
# On connection close stop the main loop
# Reconnection will not happen after executing `ws.stop()`
ws.stop()
kws.on_ticks = on_ticks
kws.on_connect = on_connect
kws.on_close = on_close
kws.connect(threaded=True)