Price Alerts

A price alert watches one outcome price of one market. The first time the price reaches your threshold, PAX sends a signed price.alert.triggered event to your webhook endpoints. Alerts belong to a builder account.

Before you start

An alert fires whether or not an endpoint is subscribed at that moment, and fires once. An endpoint added later does not receive it.

Endpoints

Method and pathScopeRate-limit bucket
POST /v1/price-alertsbuilder:apps:writewebhooks:manage
GET /v1/price-alertsbuilder:apps:readmarkets:read
GET /v1/price-alerts/{id}builder:apps:readmarkets:read
DELETE /v1/price-alerts/{id}builder:apps:writewebhooks:manage

The buckets and their per-minute budgets are on Rate Limits.

Create an alert

curl -sX POST "https://api.predictasiax.com/v1/price-alerts" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"market_id":"fed-cut-3x-2026","outcome":"yes","condition":"above","price":"0.6","label":"breakout"}'
FieldRequiredRules
market_idYesThe market's id as GET /v1/markets returns it. The market must be open.
outcomeNo (default yes)yes or no on a two-outcome market. On a market with three or more outcomes, the outcome's 0-based index in the market's outcome list (0 to 31).
conditionYesabove: fires when the price is at or above price. below: fires when it is at or below.
priceYesBetween 0 and 1, both excluded, with at most 4 decimals. A string ("0.6") or a number.
labelNoYour own text, at most 100 characters. Returned with the alert and in the event.

Any other field is rejected with 400 VALIDATION_FAILED. The response is 201 with the alert and the outcome's price at creation time:

{
  "ok": true,
  "data": {
    "alert": {
      "id": "pa_x7Kq2mVb9TzR4wLs",
      "market_id": "fed-cut-3x-2026",
      "outcome": "yes",
      "condition": "above",
      "price": "0.6000",
      "label": "breakout",
      "status": "active",
      "created_at_ms": 1796020000000,
      "triggered_at_ms": null,
      "triggered_price": null,
      "ended_at_ms": null
    },
    "current_price": "0.5500"
  }
}

On a market with three or more outcomes, outcome comes back as a number. current_price is null when the market has no price for that outcome yet.

When an alert fires

The event

The data of the delivery is the alert as GET /v1/price-alerts/{id} returns it, now triggered. The event_id is the same on every retry, so use it to de-duplicate.

{
  "event_id": "pa_trig_pa_x7Kq2mVb9TzR4wLs",
  "event_type": "price.alert.triggered",
  "is_test_event": false,
  "created_at_ms": 1796022000000,
  "data": {
    "alert": {
      "id": "pa_x7Kq2mVb9TzR4wLs", "market_id": "fed-cut-3x-2026", "outcome": "yes",
      "condition": "above", "price": "0.6000", "label": "breakout", "status": "triggered",
      "created_at_ms": 1796020000000, "triggered_at_ms": 1796022000000,
      "triggered_price": "0.6100", "ended_at_ms": 1796022000000
    }
  }
}

Delivery, retries and dead letters work as for every other event: see Delivery and retries.

List and read alerts

GET /v1/price-alerts returns your alerts, newest first, as data.alerts[]. Query parameters, all optional:

ParameterValues
statusactive, triggered, cancelled or expired
market_idOnly alerts on this market
limit1 to 200, default 50

GET /v1/price-alerts/{id} returns one alert as data.alert.

Cancel an alert

DELETE /v1/price-alerts/{id} cancels an active alert. It stays in your list with status cancelled and ended_at_ms set. An alert that has already triggered, expired or been cancelled returns 409 STATE_CONFLICT, with the alert in error.details.alert.

Statuses

StatusMeaning
activeBeing checked
triggeredThe condition held; the event was sent
cancelledYou cancelled it
expiredThe market closed or settled first; no event

Errors

HTTPCodeWhen
400VALIDATION_FAILEDA field breaks the rules above, an unknown field, or an outcome the market does not have
403SCOPE_MISSINGThe key lacks the scope, or does not belong to a builder account
404MARKET_NOT_FOUNDNo market with that market_id
404NOT_FOUNDNo alert with that id in your account
409STATE_CONFLICTCancelling an alert that is not active
422MARKET_CLOSEDThe market is not open
422PRICE_ALERT_LIMITYou already have 100 active alerts
429RATE_LIMITEDThe rate-limit bucket is spent; retry after Retry-After

All codes are listed on Error Codes.

Spec version 2.7.82 · Last updated 2026-12-03