DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "GET /instruments/NSE?ex change=NSE HTTP/1.1" 200 161014 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "GET /instruments/NSE?ex change=NSE HTTP/1.1" 200 161014 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "GET /user/margins/equit y?segment=equity HTTP/1.1" 200 None {u'available': {u'adhoc_margin': 0, u'collateral': 0, u'intraday_payin': 0, u'ca sh': 8540.14}, u'net': 8538.44, u'enabled': True, u'utilised': {u'payout': 0, u' debits': 1.7, u'span': 0, u'holding_sales': 0, u'm2m_realised': -1.7, u'm2m_unre alised': 0, u'turnover': 0, u'exposure': 0, u'option_premium': 0}} cash:8538.440000 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "GET /orders/19051400093 9840?order_id=190514000939840 HTTP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None cash:8538.440000 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "GET /orders/19051400094 0576?order_id=190514000940576 HTTP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None cash:8538.440000 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "GET /orders/19051400094 0735?order_id=190514000940735 HTTP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanl y (None) ERROR:kiteconnect.ticker:Connection closed: 1006 - connection was closed unclean ly (None) DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "GET /instruments/NSE?ex change=NSE HTTP/1.1" 200 161014 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "GET /instruments/NSE?ex change=NSE HTTP/1.1" 200 161014 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "GET /user/margins/equit y?segment=equity HTTP/1.1" 200 None {u'available': {u'adhoc_margin': 0, u'collateral': 0, u'intraday_payin': 0, u'ca sh': 8540.14}, u'net': 7711.77, u'enabled': True, u'utilised': {u'payout': 0, u' debits': 828.37, u'span': 0, u'holding_sales': 0, u'm2m_realised': -2.35, u'm2m_ unrealised': 0, u'turnover': 0, u'exposure': 0, u'option_premium': 0}} DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None cash:7711.770000 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "GET /orders/19051400094 2081?order_id=190514000942081 HTTP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None cash:7711.770000 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanl y (None) ERROR:kiteconnect.ticker:Connection closed: 1006 - connection was closed unclean ly (None) DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "GET /instruments/NSE?ex change=NSE HTTP/1.1" 200 161014 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "GET /instruments/NSE?ex change=NSE HTTP/1.1" 200 161014 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "GET /user/margins/equit y?segment=equity HTTP/1.1" 200 None {u'available': {u'adhoc_margin': 0, u'collateral': 0, u'intraday_payin': 0, u'ca sh': 8540.14}, u'net': 5867.6079, u'enabled': True, u'utilised': {u'payout': 0, u'debits': 2672.5321, u'span': 0, u'holding_sales': 0, u'm2m_realised': -2.5964, u'm2m_unrealised': 0, u'turnover': 0, u'exposure': 0, u'option_premium': 0}} DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "GET /orders/19051400094 2458?order_id=190514000942458 HTTP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:4 43 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /orders/regular HT TP/1.1" 200 None Unhandled Error Traceback (most recent call last): File "pyTrade_v3.py", line 368, in mainWS.connect() File "build\bdist.win-amd64\egg\kiteconnect\ticker.py", line 534, in connect File "C:\Python27\lib\site-packages\twisted\internet\base.py", line 1272, in r un self.mainLoop() File "C:\Python27\lib\site-packages\twisted\internet\base.py", line 1281, in m ainLoop self.runUntilCurrent() --- --- File "C:\Python27\lib\site-packages\twisted\internet\base.py", line 875, in ru nUntilCurrent f(*a, **kw) File "C:\Python27\lib\site-packages\twisted\internet\base.py", line 636, in st op "Can't stop reactor that isn't running.") twisted.internet.error.ReactorNotRunning: Can't stop reactor that isn't running. Unhandled Error Traceback (most recent call last): File "pyTrade_v3.py", line 368, in mainWS.connect() File "build\bdist.win-amd64\egg\kiteconnect\ticker.py", line 534, in connect File "C:\Python27\lib\site-packages\twisted\internet\base.py", line 1272, in r un self.mainLoop() File "C:\Python27\lib\site-packages\twisted\internet\base.py", line 1281, in m ainLoop self.runUntilCurrent() --- --- File "C:\Python27\lib\site-packages\twisted\internet\base.py", line 875, in ru nUntilCurrent f(*a, **kw) File "C:\Python27\lib\site-packages\twisted\internet\base.py", line 636, in st op "Can't stop reactor that isn't running.") twisted.internet.error.ReactorNotRunning: Can't stop reactor that isn't running. Unhandled Error Traceback (most recent call last): File "pyTrade_v3.py", line 368, in mainWS.connect() File "build\bdist.win-amd64\egg\kiteconnect\ticker.py", line 534, in connect File "C:\Python27\lib\site-packages\twisted\internet\base.py", line 1272, in r un self.mainLoop() File "C:\Python27\lib\site-packages\twisted\internet\base.py", line 1281, in m ainLoop self.runUntilCurrent() --- --- File "C:\Python27\lib\site-packages\twisted\internet\base.py", line 875, in ru nUntilCurrent f(*a, **kw) File "C:\Python27\lib\site-packages\twisted\internet\base.py", line 636, in st op "Can't stop reactor that isn't running.") twisted.internet.error.ReactorNotRunning: Can't stop reactor that isn't running. ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanl y (peer dropped the TCP connection without previous WebSocket closing handshake) ERROR:kiteconnect.ticker:Connection closed: 1006 - connection was closed unclean ly (peer dropped the TCP connection without previous WebSocket closing handshake )