☰
Login
Signup
Home
›
Python client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
13.9K
All Categories
0
Incidents
156
Node JS client
40
Go client
793
.Net API client
380
Kite Publisher
537
.Net / VBA / Excel (3rd party)
458
Algorithms and Strategies
998
Java client
1.1K
API clients
404
PHP client
4K
Python client
347
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
June 2022
SRIJAN
June 2022
Sourabh_Kumar
order cancellation issue
Sourabh_Kumar
June 2022
in
Python client
Even though order placed is showing success I am facing issue while cancelling it
image.png
93.7K
Sourabh_Kumar
June 2022
Screenshot 2022-06-10 131623.png
14.3K
Sourabh_Kumar
June 2022
Screenshot 2022-06-10 131740.png
18.2K
Sourabh_Kumar
June 2022
edited June 2022
Screenshot 2022-06-10 132110.png
7.2K
Sourabh_Kumar
June 2022
'order_id': '220610201367645',
'exchange_order_id': '1500000032052372',
'parent_order_id': None,
'status': 'COMPLETE',
SRIJAN
June 2022
edited June 2022
How can you cancel a completed order?? Only the open orders can be cancelled .
https://kite.trade/docs/connect/v3/orders/#cancelling-orders
Also,exit_order method is only to squareoff Cover Orders positions .
To squareoff other regular positions,you need to place a reverse transaction type order with the same quantity you have.
Sourabh_Kumar
June 2022
so isn't there any method as of now to automatically square off and set trailing stoploss as BO orders has been discontinued
SRIJAN
June 2022
You can use OCO GTT Orders as a replacement for BO,to set both stoploss and target .
https://kite.trade/docs/connect/v3/gtt/#two-leg
Although,the trailing stoploss isn't automatic now,you have to modify the gtt order to trail your stoploss or target also if you want.
https://kite.trade/docs/connect/v3/gtt/#modify-trigger
Sign In
or
Register
to comment.
'exchange_order_id': '1500000032052372',
'parent_order_id': None,
'status': 'COMPLETE',
https://kite.trade/docs/connect/v3/orders/#cancelling-orders
Also,exit_order method is only to squareoff Cover Orders positions .
To squareoff other regular positions,you need to place a reverse transaction type order with the same quantity you have.
https://kite.trade/docs/connect/v3/gtt/#two-leg
Although,the trailing stoploss isn't automatic now,you have to modify the gtt order to trail your stoploss or target also if you want.
https://kite.trade/docs/connect/v3/gtt/#modify-trigger