never able to post an order

parth_rana
Unhandled Error
Traceback (most recent call last):
in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
in callWithContext
return func(*args, **kw)
--- ---
in _doReadOrWrite
why = getattr(selectable, method)()
, in doRead
return self._dataReceived(data)
, in _dataReceived
rval = self.protocol.dataReceived(data)
in dataReceived
self._flushReceiveBIO()
in _flushReceiveBIO
ProtocolWrapper.dataReceived(self, bytes)
, in dataReceived
self.wrappedProtocol.dataReceived(data)
in dataReceived
self._dataReceived(data)
in _dataReceived
self.consumeData()
in consumeData
while self.processData() and self.state != WebSocketProtocol.STATE_CLOSED:
in processData
fr = self.onFrameEnd()
in onFrameEnd
self._onMessageEnd()
in _onMessageEnd
self.onMessageEnd()
in onMessageEnd
self._onMessage(payload, self.message_is_binary)
in _onMessage
self.onMessage(payload, isBinary)
in onMessage
self.factory.on_message(self, payload, is_binary)
in _on_message
self.on_ticks(self, self._parse_binary(payload))
, in on_ticks
placing_sell_order(price_list_sell_first)
in placing_sell_order
order_id = kite.place_order(tradingsymbol="MARUTI",
in place_order
return self._post("order.place",
in _post
return self._request(route, "POST", url_args=url_args, params=params, is_json=is_json, query_params=query_params)
, in _request
raise e
, in _request
r = self.reqsession.request(method,
, in request
resp = self.send(prep, **send_kwargs)
, in send
r = adapter.send(request, **kwargs)
in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7)

ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)
ERROR:kiteconnect.ticker:Connection closed: 1006 - connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)

every time condition is being met, at the time of palcing order this error is coming. the code then after the requested time out runs fine.... the orders are no getting paced at all from past 2 days on same code.

help me fix it
Tagged:
Sign In or Register to comment.