☰
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
11.1K
All Categories
69
Node JS client
21
Go client
648
.Net API client
312
Kite Publisher
513
.Net / VBA / Excel (3rd party)
350
Algorithms and Strategies
837
Java client
845
API clients
368
PHP client
3K
Python client
298
Mobile and Desktop apps
1.1K
Market data (WebSockets)
2.7K
General
In this Discussion
June 10
SRIJAN
June 10
Sourabh_Kumar
order cancellation issue
Sourabh_Kumar
June 10
in
Python client
Even though order placed is showing success I am facing issue while cancelling it
image.png
93.7K
Sourabh_Kumar
June 10
Screenshot 2022-06-10 131623.png
14.3K
Sourabh_Kumar
June 10
Screenshot 2022-06-10 131740.png
18.2K
Sourabh_Kumar
June 10
edited June 10
Screenshot 2022-06-10 132110.png
7.2K
Sourabh_Kumar
June 10
'order_id': '220610201367645',
'exchange_order_id': '1500000032052372',
'parent_order_id': None,
'status': 'COMPLETE',
SRIJAN
June 10
edited June 10
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 10
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 10
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