It looks like you're new here. If you want to get involved, click one of these buttons!
.Net API client
.Net / VBA / Excel (3rd party)
Algorithms and Strategies
Mobile and Desktop apps
Market data (WebSockets)
In this Discussion
Getting my api_key and access_token correct but returning error 'ReactorNotRestartable' during live data. Following is the code:
kws = KiteTicker(data['api_key'], data['access_token'])
def on_ticks(ws, ticks):
# Callback to receive ticks.
def on_connect(ws, response):
# Callback on successful connect.
# Subscribe to a list of instrument_tokens (RELIANCE and ACC here).
# Set RELIANCE to tick in `full` mode.
def on_close(ws, code, reason):
# On connection close stop the event loop.
# Reconnection will not happen after executing `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.
#python #ticker #marketdata
You can refer to FAQs
Thanks for response. But Seems the code is inline with the mentioned comment. Little more specific help will be appreciated.
It ran successfully. Thanks
This discussion has been closed.