Also getting the below error whenever I try to stop the script by adding ws.stop() or kws.close() inside on_tick
Connection error: 1006 - connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)…
Hi Zartimus,
Yes you are right. I changed the token and now I am getting the continuous feed.
But whenever I am stopping the script and trying to restart , then I am getting the following error.
"ReactorNotRestartable"
I am running the code from …
I removed the sleep part as you suggested.
output:
calling main function
Established websocket connection
calling KWS.connect
inside on connect
[907777]
[{'volume': 7697, 'last_quantity': 1, 'oi_day_low': 0, 'depth': {'buy': [{'quantity': 1, 'price'…
Hi Vivek/Sujith,
Thank you for your comments.
I have modified the code with ws.stop and removed the try - except block.
from kiteconnect import KiteTicker
import logging
import pprint
import datetime
import sys
import time
import traceback
api_key…