How does the Order status trigger work, and which statuses can I wait for?

How does the Order status trigger work, and which statuses can I wait for?

Order status is a Trigger type in FYERS Automate. It lets your automation 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 status when your next step depends on what happened to an order—for example, place a stop-loss only after an entry order is executed, or take a different action if an order is rejected or cancelled.

How the Order status trigger works

After you add this trigger, Automate keeps checking the selected order’s status. Once the order reaches the chosen status, the automation is allowed to continue to the next connected step.

Order status trigger types you can wait for

1) Order execution

Triggers when a specific order is executed (completed in the market).

Example: Your automation places a buy order. You use Order execution to continue only after the buy order is executed, and then place a stop-loss order.

2) Order rejection

Triggers when a specific order is rejected.

Example: You place an order, but it gets rejected due to a reason like invalid parameters or insufficient funds. If you select Order rejection, the automation can move forward to a step like sending a notification or stopping the run.

3) Order pending

Triggers when a specific order is in pending status (placed but not executed yet).

Example: You want the automation to take an alternate path if the order is still waiting in the market (pending). You select Order pending to proceed when the order is confirmed to be in pending status.

4) Cancelled order

Triggers when a specific order is cancelled.

Example: If an order is cancelled (by you or by the system), selecting Cancelled order lets the automation continue to the next step—such as placing a fresh order, sending an alert, or ending the automation.

How configuration works

The Order status trigger is configured on the canvas by selecting the trigger, selecting the specific order from your workflow, and choosing the trigger type you want to wait for (Order execution, Order rejection, Order pending, or Cancelled order).

Note: The automation moves forward only when the selected trigger type is met. If the order reaches a different status than the one you selected, the automation will not proceed from this trigger.

What if...

ScenarioWhat happens
I selected Order execution, but the order gets rejectedThe automation will not move forward from this trigger because the selected status (execution) was not reached.
I want different actions for execution and rejectionUse different Order status trigger branches—one waiting for Order execution and another waiting for Order rejection.
I used Order pending but the order later gets executedThe trigger is met as soon as the order becomes pending. After that, the automation continues based on your workflow design.
I want the automation to respond when an order is cancelledSelect the Cancelled order trigger type so the automation continues only when cancellation happens.

Last updated: 22 Dec 2025