Ticking only once

Simon
Using python kiteconnect 3.9.2. What could be going wrong for tick happening only once and stops there? PFB console log and python code.

Console log
DEBUG:root:Ticks: [{'tradable': True, 'mode': 'quote', 'instrument_token': 857857, 'last_price': 782.9, 'last_quantity': 2, 'average_price': 0.0, 'volume': 0, 'buy_quantity': 0, 'sell_quantity': 0, 'ohlc': {'open': 788.0, 'high': 791.4, 'low': 779.3, 'close': 782.9}, 'change': 0.0}]


Python Code

# Initialise
kws = KiteTicker(API_KEY, ACCESS_TOKEN)


def on_ticks(ws, ticks):
# Callback to receive ticks.
logging.debug("Ticks: {}".format(ticks))


def on_connect(ws, response):
# Callback on successful connect.
ws.subscribe([857857])

# Set XX to tick in `full` mode.
ws.set_mode(ws.MODE_QUOTE, [857857])


def on_close(ws, code, reason):
# On connection close stop the main loop
# Reconnection will not happen after executing `ws.stop()`
ws.stop()


# Assign the callbacks.
kws.on_ticks = on_ticks
kws.on_connect = on_connect
kws.on_close = on_close


# Infinite loop on the main thread. Nothing after this will run.
# You have to use the pre-defined callbacks to manage subscriptions.
kws.connect()
This discussion has been closed.