Skip to main content
Triggers are rules that automatically kick off agent sessions or runs when a condition is met. There are two trigger types: quote-based (fires when a market condition is true) and time-based (fires on a schedule).

List triggers

Response

List trigger firings

Returns the history of when triggers have fired. Useful for debugging why a session was started.

Response

Create a trigger

Quote-based conditions

Response

Requires the triggers:write scope. New triggers start in the draft state.

Change trigger state

Triggers move through a lifecycle:
| State | Meaning | |---|---|---| | draft | Created but not yet armed. Does not fire. | | active | Armed. The scheduler evaluates the condition. | | retired | Decommissioned. No longer fires. Kept for audit. |

Response

Dry-run a trigger

Evaluates the trigger condition against the latest market data without firing it. Useful for testing a condition before arming it.

Response