Issues with new kiteconnect python package 4.1.0

sanjeet
We have recently upgraded the kiteconect package 4.1.0 and are seeing significant WS connection issues.
Snap Shot of the program:

def on_error(ws, code, reason):
print('** Real Time Trading Direct data Read from Zerodha------inside the error block-----')
........

def on_close(ws, code, reason):
print('** Closing the Real Time Trading WS connection')

def on_connect(ws, response):
print('** Real Time Trading Tick Capture Successful -------')

ws.set_mode(ws.MODE_FULL, trading_tokens)

the above capture program very frequently gets into connection errors and we get the following on console

** Real Time Trading Direct data Read from Zerodha------inside the error block-----
** Closing the Real Time Trading WS connection
** Real Time Trading Tick Capture Successful -------

Though the capture recovers but we suspect data loss. Our question is :
1. Why is this frequent connection issues happening - using 300MBS fiber optic link
2. Is there any data loss happening?
3. Did not see these kind of frequent errors in the previous version - what has changed in the new version
4. Some field names have changed in the new version like timestamp earlier is now exchange_timestamp.
5. Are there any other changes we should be aware off ?

Please help resolve the connection issue.
  • rakeshr
    We have recently upgraded the kiteconect package 4.1.0
    You are on the older version, v4.1.0 went live on May 2022. The latest version is v4.2.0. Go through the readme to know the older breaking changes, same was notified/announced on the forum 9 months ago, when we went live with v4.1.0.
  • sanjeet
    Thanks. Moved to v4.2.0 as advised. Hope this works. Let me observe the connection issue for few more days and I shall come back with final status.
Sign In or Register to comment.