Event:
Cost: 0.2 credits per delivery
price_threshold Cost: 0.2 credits per delivery
price_threshold event fires when an outcome’s price (implied probability) crosses a target level you set. It is edge-triggered: it fires once on the crossing, not on every trade that stays past the level. The full payload schema is in the auto-generated Price Threshold callback reference; this page documents the filters and matching behavior.
price and probability are not the same field:price: the outcome you are looking at (the token inoutcome_index/position_id).probability: always outcome index0(the Yes/Up token), no matter which outcome the payload is about.
outcome_index is 0. On the No side (index 1) they are complements: a price of 0.40 pairs with a probability of 0.60.When to use this
- Alert the moment an outcome crosses up through a level (e.g. YES reaches 75%) or down through one (e.g. YES falls to 25%).
- Build one-time triggers that delete themselves after firing, with
one_shot. - Catch positions that are already past your target when you subscribe, with
fire_if_already_past.
Defining the threshold
Setmin_price for an upward target (fire when the price crosses up to ≥ that value) and max_price for a downward target (fire when the price crosses down to ≤ that value). At least one is required; set both to watch a position from either side.
By default the event waits for a real crossing: it needs a prior observation on the other side of the target before it fires. Set fire_if_already_past to fire immediately when the first observed price is already past the target.
Subscription filters
Add these to thefilters object when you create the subscription. At least one of min_price or max_price is required.
Example
Fire once when a specific market’s YES outcome crosses up through 75%, then delete the subscription:Notes
- The event is edge-triggered: it fires on the transition past the target, then re-arms once the price moves back to the other side (unless
one_shotdeleted the subscription). - The payload reports the crossing
direction("up"or"down"), thethresholdthat was crossed, andprevious_price(the baseline the crossing was measured from). one_shotrequiresposition_idsorcondition_idsso the subscription targets a bounded set of markets.