@rakeshr
That's OK, I want to close the running program cleanly so that I could call it again without error.
Mostly I use Ctrl+C to terminate the running program, is there any other means to terminate cleanly so that I can connect again.
One last thing,
I am able to run this only once:
def just_data():
kws = KiteTicker(api_key,access_token)
def on_ticks(ws,ticks):
print(ticks)
def on_connect(ws, response):
ws.subscribe([*])
ws.set_mode(ws.MODE_FULL,[*])
def on_close(ws, …
Thanks, Got that through,
Now stuck at
kite.request_access_token(request_token="obtained_request_token",
secret="your_api_secret")
it says,
AttributeError: 'KiteConnec…
I am not able to place orders,
getting this message PUT ORDER REQ RECEIVED on kite orderbook, but trade is not going through
kite.order_place(tradingsymbol="NATURALGAS17JUNFUT", quantity=1, exchange="MCX", transaction_type="SELL", order_type="MARKE…
got the
kws.enable_reconnect(reconnect_interval=5, reconnect_tries=50)
had to copy the entire __init__ from https://github.com/rainmattertech/pykiteconnect/blob/reconnection/kiteconnect/__init__.py
Thanks for your support
Yeah, i tried the same, but enable_reconnect is not showing in its list of attributes,
Does "kws.reconnect" serve the same purpose???
Default values are
reconnect_interval=5,
reconnect_tries=300
Dear @sujith I tried kws.enable_reconnect with new version of kiteconnect, it is giving error
AttributeError: 'WebSocket' object has no attribute 'enable_reconnect'
Now the error I am getting is
kiteconnect.exceptions.GeneralException: Route not found
This is syntax i used:
kite.order_cancel(order_id="161122000412518",variety="CO",parent_order_id="161122000412517")
I have tried both these codes:
kite.order_cancel(order_id="161115000491500")
kite.order_cancel(order_id="161115000491500",parent_order_id="161115000491499")
but the error message i got is this:
kiteconnect.exceptions.OrderException: The order could…
No sir, full exit, I am just a novice trader, started with kite APIs recently, and just trying out with single quantity in Naturalgas16novfut. I am able to place order but not able to exit it.
I am using these formats, tell me if I am wrong
kite.ord…
No sir, I have tried it a lot of times, The order which I am trying to cancel are present on the OPEN ORDERS list, I am able to place orders easily, but Exit using kite.order_cancel(order_id) is not working for me.
kite.order_cancel(parent_order_id="") is not working for naturalgas16novfut,
I had placed an CO on naturalgas, was not able to exit the order using the above statement, the error received was
TypeError: order_cancel() missing 1 required positional …