Trigger Order
Open a basket when a market condition is met.
A trigger order rests off-book and opens the basket when a condition is met, evaluated against live oracle prices.
Create one with POST /triggers/open (SDK: sdk.core.triggers.open). Supported conditions include a single asset's price, a pair's price ratio, a basket's weighted ratio, BTC dominance, and prediction-market outcomes. Each condition sets a direction (above or below a threshold).
List active triggers with GET /triggers; cancel one with PATCH /triggers/:triggerId/cancel, or all with PATCH /triggers/cancel-all. When a trigger fires it converts into an open position, surfaced over the WebSocket as trigger.triggered, then position.created.
The exact condition schema is defined by @pear-protocol/types and the API Specification.