How do I use Cancel order to cancel all open orders or a specific Order ID?
How Do I Use Cancel Order To Cancel All Open Orders or a Specific Order ID?
The Cancel order action in Automate helps you automatically cancel open or pending orders when your automation reaches a specific trigger, condition, or exit path.
You can either cancel all open orders or cancel a specific pending order by entering its Order ID. This is useful for risk control and avoiding unintended executions when your strategy conditions change.
What does cancel order do?
When a Cancel order action node is executed:
A cancel request is sent to the order book.
Only open or pending orders are targeted for cancellation.
Orders that are already executed, rejected, or cancelled are not affected.
The cancellation scope depends on the option you choose.
Types of cancel order
1) Cancel all orders
Cancels all open or pending orders across segments.
2) Cancel specific order
Cancels one pending order based on the entered Order ID.
Other open or pending orders remain unaffected.
Steps to use the Cancel order action in Automate
Follow these steps when building a new automation:
Log in to FYERS Web and go to Automate → Dashboard.
Click Create automation.
Add the required start, trigger, or condition nodes on the workflow canvas.
In the left panel, open the Actions tab.
Expand Cancel order.
Drag and drop one of the following onto the canvas:
Cancel all orders
Cancel specific order
If you chose Cancel specific order, enter the required Order ID.
Connect the Cancel order node to the required trigger or condition path.
Click Start to run the automation after configuring and connecting all nodes.
Use Cancel all orders before squaring off positions to prevent pending orders from executing after your exit logic.
The Modify order action in Automate lets you change the details of a pending order during an automation run using its Order ID. It is useful when an order is placed but not yet executed, and you want to update its parameters based on changing market ...
The place order action in Automate lets you place a live trade automatically when your automation reaches a specific trigger, condition, or step. Based on the order type you select, you can place options, futures, or a direct order for a symbol, and ...
Each node can produce output values (data) when it runs. The Output section is where you view and copy those values so you can reuse them in later nodes. Output values are the list of data fields a node exposes (for example: order_id, filled_price, ...
Orderbook check is a Trigger type in FYERS Automate that lets your automation move forward only after a specific number of orders reach a selected orderbook status during the same automation run. This trigger is used to control the flow of your ...
Order status is a Trigger type in FYERS Automate. It allows your automation to move forward only when a specific order (placed earlier in the same automation run) reaches the status you choose. This trigger does not place orders by itself. Use Order ...