@girish400 No, you will not receive disconnection lost ticks.We are checking same at our end, but haven't encountered any disconnection.Can you paste here, complete error traceback?
Why Connection error: 1006 is occurring in every 5-10 minutes. Also its takes at least 20-30 sec to reconnect and some time it is taking more than 1-2 minutes. I am unable to get correct data for 5,10 min candles. Please find below errors at different times in a matter of just 1.5 hours. Please note : I am fetching data foe Nifty Bank Index (260105)
0 2019-01-14 09:34:45 27253.6 ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanly (None) ERROR:root:closed connection on error: 1006 connection was closed uncleanly (None) ERROR:kiteconnect.ticker:Connection closed: 1006 - connection was closed uncleanly (None) 0 2019-01-14 09:35:03 27251.95
Below it took more than 1 min 0 2019-01-14 09:38:03 27265.35 ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanly (None) ERROR:root:closed connection on error: 1006 connection was closed uncleanly (None) ERROR:kiteconnect.ticker:Connection closed: 1006 - connection was closed uncleanly (None) ERROR:kiteconnect.ticker:Retrying connection. Retry attempt count: 1. Next retry in around: 3 seconds ERROR:kiteconnect.ticker:Retrying connection. Retry attempt count: 2. Next retry in around: 10 seconds 0 2019-01-14 09:39:15 27264.55
0 2019-01-14 10:00:29 27231.05 ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanly (None) ERROR:root:closed connection on error: 1006 connection was closed uncleanly (None) ERROR:kiteconnect.ticker:Connection closed: 1006 - connection was closed uncleanly (None) 0 2019-01-14 10:00:36 27228.7
0 2019-01-14 10:12:54 27231.85 ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanly (None) ERROR:root:closed connection on error: 1006 connection was closed uncleanly (None) ERROR:kiteconnect.ticker:Connection closed: 1006 - connection was closed uncleanly (None) ERROR:kiteconnect.ticker:Retrying connection. Retry attempt count: 1. Next retry in around: 3 seconds 0 2019-01-14 10:13:23 27224.65
0 2019-01-14 10:26:03 27231.6 ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanly (None) ERROR:root:closed connection on error: 1006 connection was closed uncleanly (None) ERROR:kiteconnect.ticker:Connection closed: 1006 - connection was closed uncleanly (None) ERROR:kiteconnect.ticker:Retrying connection. Retry attempt count: 1. Next retry in around: 2 seconds 0 2019-01-14 10:26:33 27233.7
No, you will not receive disconnection lost ticks.We are checking same at our end, but haven't encountered any disconnection.Can you paste here, complete error traceback?
Can you log complete traceback, instead of just exception?
Please log tick disconnection error and paste complete traceback here, so we can check?
Please note : I am fetching data foe Nifty Bank Index (260105)
0 2019-01-14 09:34:45 27253.6
ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanly (None)
ERROR:root:closed connection on error: 1006 connection was closed uncleanly (None)
ERROR:kiteconnect.ticker:Connection closed: 1006 - connection was closed uncleanly (None)
0 2019-01-14 09:35:03 27251.95
Below it took more than 1 min
0 2019-01-14 09:38:03 27265.35
ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanly (None)
ERROR:root:closed connection on error: 1006 connection was closed uncleanly (None)
ERROR:kiteconnect.ticker:Connection closed: 1006 - connection was closed uncleanly (None)
ERROR:kiteconnect.ticker:Retrying connection. Retry attempt count: 1. Next retry in around: 3 seconds
ERROR:kiteconnect.ticker:Retrying connection. Retry attempt count: 2. Next retry in around: 10 seconds
0 2019-01-14 09:39:15 27264.55
0 2019-01-14 10:00:29 27231.05
ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanly (None)
ERROR:root:closed connection on error: 1006 connection was closed uncleanly (None)
ERROR:kiteconnect.ticker:Connection closed: 1006 - connection was closed uncleanly (None)
0 2019-01-14 10:00:36 27228.7
0 2019-01-14 10:12:54 27231.85
ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanly (None)
ERROR:root:closed connection on error: 1006 connection was closed uncleanly (None)
ERROR:kiteconnect.ticker:Connection closed: 1006 - connection was closed uncleanly (None)
ERROR:kiteconnect.ticker:Retrying connection. Retry attempt count: 1. Next retry in around: 3 seconds
0 2019-01-14 10:13:23 27224.65
0 2019-01-14 10:26:03 27231.6
ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanly (None)
ERROR:root:closed connection on error: 1006 connection was closed uncleanly (None)
ERROR:kiteconnect.ticker:Connection closed: 1006 - connection was closed uncleanly (None)
ERROR:kiteconnect.ticker:Retrying connection. Retry attempt count: 1. Next retry in around: 2 seconds
0 2019-01-14 10:26:33 27233.7
Can you remove ws.close() and then check?
If still facing issue ,paste your Websocket code here.