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 API key of your builder account with builder:apps:write to create and cancel alerts, and builder:apps:read to list them.
- A webhook endpoint whose events include price.alert.triggered. Create one with POST /v1/webhooks, or add the event to an existing endpoint with PATCH /v1/webhooks/{id}. Verify each delivery as described in Webhook Signing.
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 path | Scope | Rate-limit bucket |
|---|---|---|
| POST /v1/price-alerts | builder:apps:write | webhooks:manage |
| GET /v1/price-alerts | builder:apps:read | markets:read |
| GET /v1/price-alerts/{id} | builder:apps:read | markets:read |
| DELETE /v1/price-alerts/{id} | builder:apps:write | webhooks: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"}'
| Field | Required | Rules |
|---|---|---|
| market_id | Yes | The market's id as GET /v1/markets returns it. The market must be open. |
| outcome | No (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). |
| condition | Yes | above: fires when the price is at or above price. below: fires when it is at or below. |
| price | Yes | Between 0 and 1, both excluded, with at most 4 decimals. A string ("0.6") or a number. |
| label | No | Your 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 price compared is the outcome price GET /v1/markets shows for that market. Active alerts are checked every 2 seconds.
- One-shot. At the first check where the condition holds, the alert becomes triggered with triggered_price and triggered_at_ms, and the price.alert.triggered event is queued in the same step. An alert never fires twice. To keep watching, create a new alert.
- If the condition already holds when you create the alert, it fires at the next check, within seconds.
- If the market closes or settles before the alert fires, the alert ends as expired and no event is sent.
- A builder account can hold at most 100 active alerts at a time. Triggered, cancelled and expired alerts do not count.
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:
| Parameter | Values |
|---|---|
| status | active, triggered, cancelled or expired |
| market_id | Only alerts on this market |
| limit | 1 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
| Status | Meaning |
|---|---|
| active | Being checked |
| triggered | The condition held; the event was sent |
| cancelled | You cancelled it |
| expired | The market closed or settled first; no event |
Errors
| HTTP | Code | When |
|---|---|---|
| 400 | VALIDATION_FAILED | A field breaks the rules above, an unknown field, or an outcome the market does not have |
| 403 | SCOPE_MISSING | The key lacks the scope, or does not belong to a builder account |
| 404 | MARKET_NOT_FOUND | No market with that market_id |
| 404 | NOT_FOUND | No alert with that id in your account |
| 409 | STATE_CONFLICT | Cancelling an alert that is not active |
| 422 | MARKET_CLOSED | The market is not open |
| 422 | PRICE_ALERT_LIMIT | You already have 100 active alerts |
| 429 | RATE_LIMITED | The 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