# Changelog

Versioned change history for PAX Trader Track API. Follow the [Changelog](https://docs.predictasiax.com/changelog) for release announcements.

## Versioning policy

PAX follows [Semantic Versioning](https://semver.org) for the public API surface:

| Change type | Version bump | Advance notice |
|---|---|---|
| **Breaking** — endpoint removed, field renamed/removed, type changed, auth changed | MAJOR (v1 → v2) | 90 days min; deprecated endpoint returns `Deprecation` header |
| **Additive** — new endpoint, new optional field, new enum value | MINOR (v1.0 → v1.1) | None (safe to deploy anytime) |
| **Fix** — bug fix, spec doc update, non-behavior-changing | PATCH (v1.0.0 → v1.0.1) | None |

## v2.7.96 — 2026-12-05 CURRENT

**The liquidity leaderboard shows real stipend payouts, by public name.**

- `GET /v1/liquidity/leaderboard` (no key) now answers from the stipends actually paid on the platform, the same data as `GET /v1/lqf/leaderboard`. Before this release it read a table that was never filled, so it was always empty.
- Each row is `{ trader, markets, total_paid_usdt, last_epoch_end_ms }`. `trader` is the maker's public name; no account id is returned (the old rows carried `user_id`). Query parameters `days` (1-30, default 7), `market_id` and `top_n` (1-100, default 25) are unchanged, and so is the MCP tool `pax.liquidity_leaderboard`.
- MCP server 2.2.5: a client can discover it before connecting. The server card (MCP SEP-2127) is at `https://mcp.predictasiax.com/mcp/server-card`, and an AI Catalog that points to it is at `/.well-known/ai-catalog.json` on predictasiax.com, docs.predictasiax.com and mcp.predictasiax.com. The tools are unchanged.

## v2.7.95 — 2026-12-05

**Makers qualified today per market; PAX buyback disclosure.**

- `makers_today` on every market of `GET /v1/lqf/pax`: the number of accounts that have met the two-sided 500 USDT condition in that market so far today.
- `GET /v1/pax/buyback` (no key): the [PAX buyback](https://docs.predictasiax.com/fee-architecture#pax-buyback). Status, USDT set aside, spent and waiting, PAX bought, recent purchases with transaction hashes, the PAX/USDT pool on Polygon read from the chain, and what PAX is used for on the platform. Refreshed every minute.
- [Maker rewards](https://predictasiax.com/maker-rewards) shows each market's qualified makers today and what PAX is used for.

## v2.7.94 — 2026-12-05

**PAX quote reward leaderboard and Maker rewards page; SDK package links.**

- `GET /v1/lqf/pax/leaderboard` (no key): PAX quote rewards per trader over the seven UTC days before today, top 25 by public name, with the number of markets and days. Refreshed every minute.
- [predictasiax.com/maker-rewards](https://predictasiax.com/maker-rewards): today's estimated PAX pool and USDT pool for every market, the conditions, your own PAX rewards when signed in, and the leaderboard. The reward badge on market pages now shows what the market's USDT pool can pay today (it showed the daily cap) and today's estimated PAX pool.
- SDKs: Python `pax-api` 3.3.3 and TypeScript `@predictasiax/api` 3.4.2. Package links point to these docs; questions and bug reports go to support@predictasiax.com. No code changes.

## v2.7.93 — 2026-12-05

**Hummingbot connector.**

- Added: [Hummingbot connector](https://docs.predictasiax.com/hummingbot) — run Hummingbot strategies on PredictAsiaX markets. Distributed as a patch to Hummingbot v2.18.0 ([predictasiax-hummingbot-v2.18.0.patch](https://docs.predictasiax.com/downloads/hummingbot/predictasiax-hummingbot-v2.18.0.patch)), with install steps.

## v2.7.92 — 2026-12-05

**The PAX quote reward in public; what a market's USDT stipend can pay.**

- Added: `GET /v1/lqf/pax` (no key) — the [PAX quote reward](https://docs.predictasiax.com/fee-architecture#pax-quote-reward) (10,000,000 PAX over 180 days): parameters, state, the last rewarded day, and today's estimated pool for every open market in the program.
- Added: `pool_balance_usdt` and `payable_today_usdt` on `GET /v1/lqf/config` and `GET /v1/lqf/config/:market_id`. `daily_stipend_usdt` is a cap; a day pays at most `payable_today_usdt`.
- Changed: `GET /v1/lqf/leaderboard` names each maker by its public name (`trader`) and no longer returns `user_id`.

## v2.7.91 — 2026-12-04

**The trade.filled webhook carries the order reply's trade id.** Nothing added or removed.

- Changed: `data.trade_id` of the `trade.filled` webhook is now the same id as `trade_id` in `GET /v1/fills` and the order reply's trade id (completing v2.7.90). `event_id` is unchanged, so an event is still delivered once.

## v2.7.90 — 2026-12-04

**One trade id per fill.** Nothing added or removed.

- Changed: `trade_id` in `GET /v1/fills` is now the same id as the order reply's trade id (`fills[].trade_id` and `mint_fills[].trade_id` from `POST /v1/orders`, `trade_ids` in the WebSocket `order_ack`). Before, the two were different ids for the same fill, so fills could only be matched to a reply by size. Builder attributed fills, market trades, the fee history and a repeated order's reply use the same id. Pages of `next_cursor` are unchanged.
- Changed: if you stored `trade_id` values from `GET /v1/fills`, the same fills now show the order reply's id. Older fills keep a UUID. Treat `trade_id` as an opaque string.

## v2.7.89 — 2026-12-04

**The daily notional cap counts what you take; WebSocket order entry for every builder key; own fills count toward tiers.** Added fields; nothing removed.

- Changed: for an API key of a builder account, the daily notional cap now counts the notional of the account's fills on the side that took liquidity, per UTC day, across the builder account, its subaccounts and all of its keys. Before, each key counted every order's notional when it was placed, whether or not it traded. Resting orders, post-only orders and market-maker quotes no longer use the daily cap; the per-order cap still applies. RFQs, block trades and combos are checked against the same count. See [Rate Limits](https://docs.predictasiax.com/rate-limits#daily-count).
- Changed: every API key of a builder account that places real orders (every tier but `sandbox` and `read_live`) can place and cancel orders on `wss://predictasiax.com/ws`. Before, only keys with no daily cap could. See [Orders on the WebSocket](https://docs.predictasiax.com/rate-limits#ws-orders).
- Changed: the tier ladder graduates on 30-day volume: attributed volume plus the fills of your own builder account and subaccounts on either side, less fills between your own accounts and fills already counted as attributed. `genesis` still ranks on attributed volume. See [How tiers work](https://docs.predictasiax.com/how-tiers-work).
- New: `GET /v1/builders/me/tier-progress` adds `attributed_volume_30d_usdt` and `own_volume_30d_usdt`; `volume_30d_usdt` is their sum.
- Fixed: Tier progression no longer says a `TIER_LIMIT_EXCEEDED` answer carries `Retry-After`; it does not.

## v2.7.88 — 2026-12-04

**Daily notional for orders answered with 503.** No endpoint or field changed.

- Changed: an order answered with `503 SERVICE_UNAVAILABLE` may have been placed, so its notional now stays counted in `used_today_usdt`. Before, it was given back, so an order that had been placed could go uncounted. Send it again with the same `client_order_id`: it is counted once, and if the first order was not placed after all, its notional is given back. See [Rate Limits](https://docs.predictasiax.com/rate-limits#check).

## v2.7.87 — 2026-12-04

**Faster REST order replies.** No endpoint or field changed.

- Changed: `POST /v1/orders` and `DELETE /v1/orders/{id}` are checked and submitted in one step on the server, without passing through a second internal service, as WebSocket orders have been since v2.7.86. The checks, error codes and response fields are the same as before.
- Changed: an order answered with `503 SERVICE_UNAVAILABLE` may or may not have been placed. Send it again with the same `client_order_id`: it is never placed twice, and if the first one was placed, the reply is that order with `duplicate: true`. Check a cancel answered this way with `GET /v1/orders/{id}`. See [Errors](https://docs.predictasiax.com/errors).
- Changed: an order sent again with the `client_order_id` of an order already placed is answered with that order (its `order_id`, `status` and fills) and `duplicate: true`. Before, the reply carried `duplicate: true` without the order.

## v2.7.86 — 2026-12-04

**Faster order replies on the WebSocket.** No endpoint, message or field changed.

- Changed: orders and cancels sent on `wss://predictasiax.com/ws` are checked and submitted in one step on the server, without passing through a second internal service. Server-side handling of an order now takes about 1 to 2 ms. The checks, error codes and results are the same as before.
- Changed: an order answered with `SERVICE_UNAVAILABLE` may or may not have been placed. Send it again with the same `client_order_id`: it is never placed twice, and if the first one was placed, the reply is that order with `replay: true`. See [Orders on the WebSocket](https://docs.predictasiax.com/rate-limits#ws-orders).

## v2.7.85 — 2026-12-04

**Orders on the WebSocket.** New: order entry on `wss://predictasiax.com/ws`; no endpoint or field removed.

- New: `PLACE_ORDER`, `PLACE_ORDERS` (1 to 20), `CANCEL_ORDER` and `CANCEL_ALL` on the socket, answered by `order_ack`, `orders_ack`, `cancel_ack` and `cancel_all_ack` with your `req_id`. For keys at `trade_full`, `genesis` or `partner` with no daily notional cap, signed in with a token from `POST /v1/ws/token`. See [Orders on the WebSocket](https://docs.predictasiax.com/rate-limits#ws-orders).
- New: per-second order and cancel limits by 30-day volume (four rate tiers, from 10 orders a second), cancels at twice the order rate on their own limit, and an open-order cap per tier. The tier moves up and down on its own.
- New: the `authenticated` reply to an API sign-in token carries `order_entry`: your limits, or why the socket cannot place orders.
- Every order command gets its reply. A socket that cannot take a reply within 5 seconds is closed with code `4010`; reconnect and resend with the same `client_order_id` to get the result.
- Changed: the per-minute message limit in the `authenticated` reply (`limits.msgs_per_min`) is now enforced. A command over it is dropped with a `rate_limit` message, `code` `tier_max_msgs`, at most one a second. `ping` and the order commands do not count.
- AsyncAPI 2.3.0: 94 server messages and 12 client messages.

## v2.7.84 — 2026-12-04

**Batches count each item against the order rate limit.** Changed: how batch requests count; no endpoint or field removed.

- Changed: each order in `POST /v1/orders/batch`, each quote in `POST /v1/mm/quotes` and each item in `POST /v1/rfq/batch` and `POST /v1/rfq/quotes/batch` counts as one against `orders:create` (30 a minute). A batch counted as one request before.
- Changed: a request that would take the window past its limit is refused with `429 RATE_LIMITED` and is not counted, so it no longer uses up the rest of the window. For a batch the message ends `(this request counts <n>)` and `error.details` adds `cost` and `used`.
- New: under heavy platform load every per-key limit can be halved for a while, never below 20 a minute. `X-RateLimit-Limit` and `GET /v1/rate-limits` show the limit in force. See [Rate limits](https://docs.predictasiax.com/rate-limits#load).
- Changed: `PAX-NONCE` is at most 256 characters; a longer value returns `401 AUTH_INVALID`. Replay protection is unchanged: a nonce is refused for 600 seconds after first use.
- Changed: an API key's `last_used_at_ms` is updated at most once every 5 minutes.

## v2.7.83 — 2026-12-03

**Your fills, one order by id, and a live order book stream.** New; nothing changed or removed.

- New: `GET /v1/fills` (scope `orders:read`) lists every fill of your account's orders, newest first: `trade_id`, `order_id`, `market_id`, `side`, `action`, `role` (`maker` or `taker`), `price` (yours, in your order's outcome), `size`, `fee_usdt`, `executed_at_ms`. Filters `market_id`, `order_id`, `from_ms`, `to_ms`; keyset pages with `cursor` / `next_cursor`. Fills of orders that rested on the book were only visible as a change in `filled_size` before.
- New: `GET /v1/orders/{order_id}` returns one of your orders, with the same fields as a `GET /v1/orders` item; `404 NOT_FOUND` when it is not yours.
- Both read the key's own account; `on_behalf_of` and `subaccount_slot` return `400 NOT_SUPPORTED` on them. Sandbox keys get their simulated orders and fills.
- Documented: the `book:<market_id>` channel on `wss://predictasiax.com/ws` (no key): `book_snapshot`, then `book_delta` with a `seq` that rises by one per change, `last_trade` for every trade, `book_error`, and the `BOOK_SNAPSHOT` command to resync after a gap. See [Market makers](https://docs.predictasiax.com/market-makers#stream) and the [WebSocket API](https://docs.predictasiax.com/asyncapi).
- Fixed: the download pages counted 78 WebSocket server messages; the spec has 90 with this release.

## v2.7.82 — 2026-12-03

**Both outcome books of a market.** New endpoint; nothing changed or removed.

- New: `GET /v1/markets/{id}/book` returns every resting order on the market for both outcomes: `yes` and `no`, each with `bids` and `asks` as `{price, size}` decimal strings, best price first. A YES buy also fills against NO bids, so a quote or a fill estimate needs both outcomes; `/v1/markets/{id}/orderbook` shows the YES book only. No key needed. See [Market makers](https://docs.predictasiax.com/market-makers#book).
- OpenAPI: `market_id` in `POST /v1/orders` and `POST /v1/orders/batch` is the market id from `GET /v1/markets` (for example `btc-200k-2026`). The spec wrongly required a `pax:market:` prefix that the API has never used.

## v2.7.81 — 2026-12-03

**Oracle API settles platform markets.** Breaking for the preview API; see below.

- A proposal or challenge made through `/v1/oracle/*` is now the same proposal or challenge as at [predictasiax.com/dispute](https://predictasiax.com/dispute): the bond is locked from the PAX on your platform balance, challenges are decided automatically by the independent replay, and the market is paid with the final outcome. See [Oracle](https://docs.predictasiax.com/oracle) for bond sizes and what happens to each bond.
- New: `GET /v1/oracle/proposable` (markets open for a community proposal) and `GET /v1/oracle/attestations` (attestations open for challenges).
- `POST /v1/oracle/attestations` now requires `reason` (20–2000 characters) and at least one `evidence_urls` link, accepts only markets listed by `/v1/oracle/proposable`, and may answer `202` while the bond lock completes. `POST /v1/oracle/attestations/{id}/challenge` takes `reason` and `evidence_urls`; `disputer_outcome` is gone because the replay decides the outcome. Both return `403 PLATFORM_ACCOUNT_REQUIRED` when the key's account has no platform login.
- The attestation object changed: ids are `att_<n>`; `state` is `open`, `final`, `settled` or `superseded`; new `proposed_by`, `outcome_index`, `bond_state`, `bond_released_pax`, `bond_forfeited_pax`, `challenges`, `resolution_note` and `settled_at_ms`; removed `evidence_urls`, the `disputer_*` fields, `disputed_at_ms`, `proposer_won` and `reward_pax`.
- `GET /v1/oracle/bond-account` now reads your platform balance and adds `bonds` and `next_bond_pax`. `GET /v1/oracle/pool` is removed. Provider reputation is updated from settled outcomes.
- Oracle errors are always `{"error": {"code", "message", "trace_id"}}`, including malformed bodies and query strings (`400 INVALID_REQUEST`).
- No preview bond account was ever funded and no preview attestation exists, so no integration loses state. [Builders](https://docs.predictasiax.com/builders): Resolver points to the oracle API.

## v2.7.80 — 2026-12-03

**Oracle: how markets are resolved, and the provider attestation API marked as a preview.** Documentation only; no endpoint changed.

- [Oracle](https://docs.predictasiax.com/oracle) now opens with how platform markets are resolved: the oracle proposes an outcome that is public for 2 hours before anyone is paid, anyone can challenge it with a PAX bond, and challenges are decided automatically by an independent replay. A market the oracle cannot decide can be proposed by anyone with a PAX bond and is open to challenges for 24 hours. Both are done at [predictasiax.com/dispute](https://predictasiax.com/dispute) with the PAX on your platform balance.
- The provider attestation API (`/v1/oracle/*`, `/v1/provider/keys`) is a preview: it runs a separate ledger, accepts only markets in its own registry, keeps bond accounts apart from your platform PAX balance, and does not settle platform markets. The page no longer says that disputed attestations are adjudicated or that bonds are allocated on request.
- [Builders](https://docs.predictasiax.com/builders): the Oracle provider use case is now Resolver, pointing to [predictasiax.com/dispute](https://predictasiax.com/dispute).

## v2.7.79 — 2026-12-02

**Audit anchors: `anchor_proof` matches the anchored object for the batches re-published on 2026-11-22.** Additive fields; no event, hash or Merkle root changed.

- 22,118 batches (batch 1–21,990, 125 batches between 21,993 and 22,465, and batches 31,071, 40,737 and 45,318 ([full list](https://docs.predictasiax.com/downloads/republished-batches-2026-11-22.txt))) were re-published to R2 on 2026-11-22, before the write-once lock was set. Their `anchor_proof` in `/v1/audit/batches/{batch_num}` still gave the earlier file's digests, so it did not match `/v1/audit/anchor/{batch_num}/raw`. It now gives the current `events_content_sha256`, `events_r2_etag` and `metadata_etag`, plus `events_content_size`, `reanchored_at_ms` and the earlier digests as `previous_events_content_sha256`, `previous_events_r2_etag` and `previous_metadata_etag`, the same values the anchored object carries. See [Verify](https://docs.predictasiax.com/verify#republished-2026-11-22).
- [Verify](https://docs.predictasiax.com/verify) says when the write-once lock was set and lists the re-published batches.

## v2.7.78 — 2026-12-02

**Fixes from bug reports: batch results carry the engine's rejection reason, `subaccount_slot` is validated everywhere, oracle reads drop account ids; SDK timestamp checks; fee reservation and split fees documented.**

- `POST /v1/orders/batch`: an order the engine rejects is reported as `{"ok": false, "status": 200, "error": {"code": "ORDER_REJECTED", "message", "reject_reason"}, "data"}`. `reject_reason` and `message` are the engine's own (for example `insufficient_balance`, `market_not_found`), and `data` is the rejection exactly as `POST /v1/orders` returns it. Before, these were all `UPSTREAM_ERROR`, so a batch could not tell a bad market from an unfunded account.
- `subaccount_slot` on `POST /v1/orders` (and each batch order) must be an integer 0–63: a JSON number, or a string of one or two digits. Anything else (`1.5`, `-1`, `64`, `"1e1"`) is `400 VALIDATION_FAILED`. Sandbox keys have only the main account: `subaccount_slot` 1–63 now returns `404 SLOT_NOT_FOUND` instead of trading on the main sandbox balance.
- `GET /v1/oracle/providers`, `GET /v1/oracle/providers/{id}`, `GET /v1/oracle/attestations/{id}` and `GET /v1/oracle/markets/{market_id}/attestation` no longer include `user_id`, `proposer_user_id` or `disputer_user_id`. A provider is identified by its `ovp_` id. Your own `POST` responses and `GET /v1/oracle/bond-account` are unchanged.
- [Oracle](https://docs.predictasiax.com/oracle): every call is on `api.predictasiax.com`; the page named a host that is not reachable from outside. The examples now show timestamps as `*_at_ms` and counts as strings, as the API returns them.
- [Fees](https://docs.predictasiax.com/fee-architecture#trading-fee): a BUY order reserves its price × size plus the fee at the 25 bps ceiling (plus its builder fee rate, if any) until it fills or is cancelled; only the fee actually charged is kept. And when your buy is filled against another trader's buy of the opposite outcome, the two of you split one taker fee: each pays half. `GET /v1/markets/{id}/quote` prices each fill this way, which is why the same amount can show a lower fee on one outcome than the other. `POST /v1/fees/estimate` shows the full fee of a single fill.
- SDKs: Python `pax-api` 3.3.2 and TypeScript `@predictasiax/api` 3.4.1. The audit verifier's `created_at_ms` check rejects a `created_at` with a component out of range (month 13, February 30, hour 24, second 60, year 0000); before, the date was rolled into a neighbouring one and could match. Both SDKs give the same answer on a shared set of test timestamps.
- Unknown paths on this site return `404` with a not-found page. Before, they returned `200`.

## v2.7.77 — 2026-12-02

**Builder grants retired; builder earnings paid automatically every day.** One removal (grants), the rest additive.

- Builder grants are retired. Every `/v1/grants` path answers `410 GRANTS_RETIRED` (it answered `503 GRANTS_CLAIM_PAUSED` for claims). Builder PAX is paid by the weekly rewards; the [Grants](https://docs.predictasiax.com/grants) page is now Builder rewards.
- Automatic daily builder payouts: `payout_mode` is `daily` (default) or `on_demand`. With a verified USDT wallet set as `payout_default_wallet_id` (2FA required), claimable earnings of at least 1 USDT are paid to it once a day after 01:00 UTC. `monthly_10`, `weekly_100` and `threshold_500`, which never paid anything, read as `daily`. See [Payouts](https://docs.predictasiax.com/builders#payouts).
- Payout hold: 24 hours for a builder at least 30 days old with a payout already paid and no wash-trading flag in the last 30 days (it was 3 days); 7 days for a first payout, a builder under 30 days old, or a flag in the last 30 days.

## v2.7.76 — 2026-12-02

**App connections fund in-app; the app directory ranks real trading; builder PAX documented as it runs.** Additive, plus a ranking change.

- App connections add the `deposit_address` scope: `GET /v1/deposit/addresses?on_behalf_of=pxu_...` returns a connected user's own deposit addresses, so your app can show where the user funds the user's own account. See [App connections](https://docs.predictasiax.com/builders#app-connections).
- The app directory (`predictasiax.com/apps`) ranks apps by the connected accounts that traded through the builder in the last 30 days and by their traded volume, with the leaderboard's own-account rule. Connections that never trade no longer raise a rank. Apps of wash-suspended builders are not listed.
- Builder PAX: the grant program section is replaced by the weekly PAX rewards that are live since 2026-11-29 (`mint_status: "weekly_pax"`). Grant claims are paused (`503 GRANTS_CLAIM_PAUSED`) and no grants are being issued.

## v2.7.75 — 2026-12-02

**Builder earnings: the 72-hour reserve is enforced when you claim.** Behaviour change for claims; additive for `pending-balance`.

- A builder fee share, leaderboard bonus award or market-creator fee can be claimed 72 hours after it is booked. `POST /v1/builders/me/withdraw` and `/settle` claim only those; newer earnings stay for a later claim, and with nothing past the window the call returns `409 CONFLICT`. Before, a claim took every unclaimed earning whatever its age, although these docs described a reserve.
- `GET /v1/builders/me/pending-balance` separates the reserve window from the payout hold: `pending_usdt` (all unclaimed), `claimable_builder_usdt` (what a claim takes now), `reserved_in_window_usdt`, `reserve_hours`, `next_claimable_at_ms`; `on_hold_usdt` and `releasing_usdt` are claimed payouts inside and past their payout hold, with `next_claim_hold` and `open_payouts`. `on_hold_usdt` used to mean unclaimed earnings younger than 72 hours. See [REST API reference](https://docs.predictasiax.com/openapi).
- [Compliance](https://docs.predictasiax.com/compliance): the reserve is 72 hours, not the 7 days listed before.

## v2.7.74 — 2026-12-01

**Builder leaderboard bonus, paid from real fills.** Additive.

- The daily builder leaderboard bonus now ranks the real attributed fills (the leaderboard's rule: own-account fills do not count, builders suspended for wash trading are left out) and is booked to the builder balance after each UTC day, claimable with builder fees by `POST /v1/builders/me/settle`. No bonus had been paid before. See [Builders](https://docs.predictasiax.com/builders).
- `GET /v1/builders/me/leaderboard-rank` adds `bonus_prior_day` and `bonus_status`.
- `GET /v1/revenue` adds `leaderboard_bonus_usdt`; `GET /v1/builders/me/pending-balance` includes bonus awards.

## v2.7.73 — 2026-12-01

**Builder attribution you can verify.** Additive, except that the four builder volume readers now return real numbers.

- New `GET /v1/builders/{builder_id}/trades` (public, no key) and `GET /v1/builders/me/trades`: a builder's attributed fills, each with the ledger entries its fee produced and their audit events (`seq`, `event_hash`, `batch_num`), which anyone checks with `/v1/audit/events/{seq}` and `/v1/audit/proof/{seq}`. See [Attribution & Revenue Ledger](https://docs.predictasiax.com/builders).
- `GET /v1/builders/leaderboard`, the `stats` of `GET /v1/builders/{id}` and `GET /v1/builders/me`, and `GET /v1/builders/volume` now count the real fills with the rule used for tier graduation and the Builder Directory. They returned zero before. The leaderboard and platform volume cover verified builders; leaderboard rows add `public_name`, `public_handle`, `tier` and `unique_traders`; responses carry `complete`.
- `GET /v1/builders/me/leaderboard-rank` works (it returned 404).
- If attribution data cannot be read, these endpoints answer 503 instead of zero; the profile's `stats` is then null.
- SDK releases: Python `pax-api` 3.3.1 and TypeScript `@predictasiax/api` 3.4.0 add `quote` (price an order without placing it: average price, fee, total, and whether the book fills it), `wait_for_fill` / `waitForFill` (until the order is filled, cancelled, expired or rejected, or at the first fill) and `wait_for_settlement` / `waitForSettlement`. The waits read the result over REST; a connected WebSocket client only ends them sooner. The order list takes `status`, `market_id`, `from_ms`, `to_ms` and `cursor`. See [Downloads](https://docs.predictasiax.com/downloads#sdks).

## v2.7.71 — 2026-12-01

**Market data needs no key.** Additive; nothing changes for existing integrations.

- `GET /v1/markets` and `GET /v1/markets/{id}` need no key, like the order book and price history already did: list, search and read markets with no credential.
- Requests without a credential get their own rate-limit bucket per client IP address (IPv6 per /64), with the same budgets as a key and the same `X-RateLimit-*` headers. They used to share a single bucket. See [Requests without a key](https://docs.predictasiax.com/rate-limits#ip-limit).
- `GET /v1/rate-limits` works without a credential: it reports the `markets:read` budget of your IP address, with `trading: null`.
- Requests through the API are no longer also subject to the website's per-IP limit on the market list and detail, which counted every API client together.
- MCP server 2.2.2: the 19 tools that read public data (market search, detail, order book, price history, movers, top volume, categories, fee estimate, liquidity leaderboard, templates, resolution evidence, market-maker quotes, access requests, agent examples, health and the two docs tools) work without a key and are marked `_meta.auth: "none"`. A keyless call is limited per client IP address.

## v2.7.70 — 2026-12-01

**Check your own rate limits and trading caps.** Additive; nothing changes for existing integrations.

- New: `GET /v1/rate-limits` returns the calling key's (or OAuth token's) per-minute budget for each rate-limited scope — limit, used in the current window, remaining and reset time — and its trading caps: tier, per-order and daily notional cap, notional used today and remaining, and the daily reset. Any credential; counts against `markets:read`. See [Checking your limits](https://docs.predictasiax.com/rate-limits#check).
- MCP server 2.2.1: `tools/list` gives each tool `_meta.auth` and `manifest.json` an `auth` field — `"none"` for `pax.docs_search` and `pax.docs_read`, `"bearer"` for every other tool — so a client can tell which tools work without a key.

## v2.7.69 — 2026-12-01

**API request log: more reliable delivery.** No change to the API.

- Request-log records that cannot be delivered right away are retried for several seconds, so short interruptions no longer leave gaps in your log.
- Docs: every page, in every language, is also available as Markdown — add `.md` to its URL ([/builders.md](https://docs.predictasiax.com/builders.md)). **Copy page** under each page title copies it as Markdown for an AI assistant; [llms.txt](https://docs.predictasiax.com/llms.txt) links the Markdown pages.
- MCP server 2.2.0: two new tools, 46 in all. `pax.docs_search` searches these docs (guides, every REST endpoint and every WebSocket message, in all eight languages) and returns the matching sections with a link to the exact anchor; `pax.docs_read` returns a page or one section as Markdown. Both work without a credential. See [MCP Server](https://docs.predictasiax.com/downloads#mcp).

## v2.7.68 — 2026-12-01

**API request log for builders.** Additive; nothing changes for existing integrations.

- Every request made with your API keys (Bearer or HMAC) or with an OAuth token of one of your apps is logged for 7 days: method, route, status, error code, latency, key, app and trace id. Metadata only; requests made with an OAuth app token carry no IP or User-Agent. Builder Portal requests are not logged.
- New: `GET /v1/builders/me/request-logs` (filters for status, method, route, error code, app, key and time; cursor paging), `GET /v1/builders/me/request-logs/summary?window=1h|24h|7d` (error rate, latency percentiles, time series, top errors and routes) and `GET /v1/builders/me/request-logs/{trace_id}`. Portal session or scope `builder:read`. See [API request log](https://docs.predictasiax.com/builders#request-logs).
- Builder Portal: new **Ops > API errors** and **Ops > API request logs** pages, with a live tail and trace-id lookup.

## v2.7.67 — 2026-11-30

**Webhook delivery lists leave out withdrawn deliveries.** Nothing changes for deliveries that were sent.

- `GET /v1/webhook-events` and `GET /v1/webhooks/{id}/deliveries` no longer list deliveries PredictAsiaX withdrew before sending them: `dead_letter` with an `error_message` starting `withdrawn:`. Add `include_withdrawn=true` to see them. A withdrawn delivery cannot be replayed (`409 STATE_CONFLICT`).
- The only withdrawn deliveries so far are 4110 `market.resolved` deliveries created on 2026-11-30 for settlements from June and July that a backfill job had re-inserted. None was sent.

## v2.7.66 — 2026-11-30

**Trading competitions: prizes a builder funds, held in escrow and paid out by rank automatically.** Additive; nothing changes for existing integrations.

- New [Trading competitions](https://docs.predictasiax.com/builders#competitions): `POST /v1/competitions` (Builder Portal session + `totp_code`) creates a competition for the users who trade through your app and takes the prize pool from your platform USDT balance into escrow. No platform cut.
- Users are ranked by the volume of their orders your app placed that took liquidity, between `starts_at` and `ends_at`. Your own accounts and accounts frozen for collusion are left out; `min_volume_usdt` sets a minimum. Equal volumes share the prizes of the places they occupy.
- About 15 minutes after the end, prizes are credited to the winners' platform balances and anything not won returns to yours. A competition can be cancelled, with a full refund, only before it starts: `POST /v1/competitions/{id}/cancel`.
- Public, no key: `GET /v1/competitions/{id}` and `GET /v1/competitions/{id}/leaderboard`, with participants shown as per-competition references. `GET /v1/competitions` and `GET /v1/competitions/{id}/results` (with each user's `owner_ref` and payout state) are yours only.

## v2.7.65 — 2026-11-30

**Builder account security: a second check before new API keys and 2FA enrollment.** Changes how key creation and rotation are called; see the first item.

- `POST /v1/builders/me/2fa/enroll` needs a factor the account already has: the account password as `current_password` while 2FA is not active (first enrollment, a pending one, or after 2FA was disabled), otherwise the current 2FA code as `code` or a `recovery_code`. Without it: `403 STEP_UP_MFA_REQUIRED`, with `details.step_up` set to `password` or `totp`. Before, a portal session alone could enroll 2FA on an account that had none.
- `POST /v1/apps/{app_id}/keys` and `POST /v1/apps/{app_id}/keys/{key_id}/rotate` need the same step-up: `totp_code` while 2FA is active, otherwise `current_password`. The sandbox is unchanged.
- A wrong 2FA code or recovery code returns `403 STEP_UP_INVALID` (was `401 AUTH_INVALID`); so does a wrong password. Five wrong codes in a row lock the account's 2FA for 15 minutes; eight wrong passwords in a row, sign-in attempts included, lock the password for 15 minutes. While locked: `429 RATE_LIMITED` with `details.retry_after_ms`.
- A 2FA code is accepted once: activating, disabling and every step-up refuse a code that was already used. Recovery codes now have 10 characters (`XXXXX-XXXXX`); the 6-character recovery codes issued before could not be used and are accepted now.
- `POST /v1/builders/me/team/invite`: an invalid email or role returns `400 VALIDATION_FAILED` (was 401), before the 2FA code is checked. A payout-wallet signature that does not match the wallet address also returns `400 VALIDATION_FAILED` (was 401).
- 2FA verification with a code that is not 6 digits returns `400 VALIDATION_FAILED` instead of `AUTH_INVALID`.
- Rate limits for OAuth access tokens (Builder Portal sessions and third-party app tokens) count per app and account. Before, all tokens of one app shared one bucket.

## v2.7.64 — 2026-11-30

**Webhooks deliver real events, price alerts, and widget trading inside Telegram and LINE; fixes from bug reports: trading-agent approvals reject unknown fields, batch order results report every failure, block trades and RFQ quotes check your own leg.**

- Webhook endpoints now receive the events they subscribe to, not only test fires and replays: `trade.filled`, `market.resolved`, `payout.available`, `payout.paid`, `auth.token.revoked`. Who receives each event and its `data` are on [Webhook Signing](https://docs.predictasiax.com/webhook-signing#events).
- Two new events: `price.alert.triggered` and `fast_round.resolved`. Fast rounds are not sent as `market.resolved`; an endpoint that lists `fast_round.resolved` receives the rounds in which its builder account held a position.
- New [Price Alerts](https://docs.predictasiax.com/price-alerts): `POST` / `GET /v1/price-alerts`, `GET` / `DELETE /v1/price-alerts/{id}`. One-shot alerts on an outcome price, up to 100 active per builder account (one more returns `422 PRICE_ALERT_LIMIT`).
- [Delivery and retries](https://docs.predictasiax.com/webhook-signing#delivery) and [disabling and re-enabling](https://docs.predictasiax.com/webhook-signing#disable) are documented. `PATCH /v1/webhooks/{id}` with `{"active": true}` re-enables an endpoint after checking its URL again and clears `disabled_at_ms` / `disabled_reason`.
- [Downloads](https://docs.predictasiax.com/downloads): the spec is 200 paths / 230 operations across 20 tag groups (Copy trading was missing from the list), and the Postman collection is regenerated from it with 230 requests (it had 221).
- [Widget trading](https://docs.predictasiax.com/builders#widget-trading) connects in in-app browsers (Telegram, LINE and other app views): the consent page opens outside the app and shows a 6-digit code the visitor enters in the widget. Desktop browsers still connect through the pop-up with no code. The widget frame now grows to fit its content.
- New [ready-made page for Telegram Mini Apps and LINE LIFF apps](https://docs.predictasiax.com/builders#telegram-line): `widget.predictasiax.com/miniapp?market=…&app=…`, the trade widget full screen in the host app's theme and language.
- Fix: the OpenAPI spec listed `url` as a field `PATCH /v1/webhooks/{id}` can change. It never could; the writable fields are `label`, `description`, `events` and `active`. To change the URL, create a new endpoint.
- `POST /v1/delegations` rejects a body with a field it does not take: `400 VALIDATION_FAILED`, with the fields named in `details.unknown_fields`. Before, a misnamed limit such as `per_order_cap` or `daily_cap` was ignored and the agent was approved without it. The accepted fields are `delegatee_id`, `scopes`, `max_notional_usdt`, `daily_notional_cap`, `markets_allowlist`, `account_slots`, `expires_at` and `totp_code`. A rejected request does not use up the 2FA code.
- `POST /v1/delegations` checks that `delegatee_id` is a live builder account: `400 INVALID_FIELD` if it is not, `503 SERVICE_UNAVAILABLE` if it cannot be verified.
- `POST /v1/orders/batch`: an order the engine rejected is reported with `ok: false`, its HTTP `status` and the error code and message. Before, it was reported as placed and counted in `ok_count`. An unexpected error on one order returns the generic `INTERNAL_ERROR` message instead of internal error text.
- Block trade proposals and acceptances, and RFQ quotes: your own leg must be backed when you send it. `409 INSUFFICIENT_BALANCE` if your free USDT is below the cash the leg needs, `409 INSUFFICIENT_POSITION` if you hold fewer sellable shares than it sells, `503 BACKING_CHECK_UNAVAILABLE` if this could not be checked. Nothing is reserved; the trade is checked again when it executes. See [Errors](https://docs.predictasiax.com/errors).

## v2.7.63 — 2026-11-29

**Copy trading: the trading fee on copied orders is documented.** Nothing changes for existing integrations.

- [Copy trading](https://docs.predictasiax.com/builders#copy-trading): a copied order pays the trading fee like any other order on the follower's account, at the follower's own VIP tier. The 10% performance fee on profitable closes is separate.

## v2.7.62 — 2026-11-29

**Copy trading limits are the same for every account.** Nothing changes for existing integrations.

- [Copy trading](https://docs.predictasiax.com/builders#copy-trading): every account copies up to 20 leaders at a time, whatever its VIP tier; one more returns `422 SUBSCRIPTION_LIMIT`. There is no daily or weekly copy cap; each copy is bounded by the subscription's `ratio` and `max_stake`, and a connected user's copies also by the app connection's limits.

## v2.7.61 — 2026-11-29

**Copy trading: each leader's 30-day record on the API, and one performance fee for everyone.** Additive; nothing changes for existing integrations.

- [Leaders](https://docs.predictasiax.com/builders#copy-trading) now carry their 30-day record from their own order-book trades: `win_rate_30d`, `roi_30d`, `closed_positions_30d`, `markets_30d`, `active_days_30d`, `sharpe_ratio_30d`, `sortino_ratio_30d`, `drawdown_30d`, `record_updated_at_ms`. `GET /v1/copy/leaders` also sorts by `win_rate_30d` and `roi_30d`.
- Leaders qualify automatically on that record as well as on their record as a market creator.
- The performance fee is 10% of the profit of each copied position that closes in profit, for every account and VIP tier; `performance_fee_pct` shows it.

## v2.7.60 — 2026-11-29

**Copy trading on the API: list leaders, and start or stop copying for your own account or a connected user.** Additive; nothing changes for existing integrations.

- [Copy trading API](https://docs.predictasiax.com/builders#copy-trading): `GET /v1/copy/leaders`, `GET /v1/copy/leaders/{leader_id}`, `GET` / `POST /v1/copy/subscriptions` and `DELETE /v1/copy/subscriptions/{leader_id}`. Leaders are named by a stable `ldr_` id, never by account id.
- With `on_behalf_of=pxu_...` an app copies for a user who connected it: the connection needs the `trade` scope, every copied buy is checked against and counted in the user's limits, and the app sees and stops only the subscriptions it created.
- Only leaders who opted in to be copied, are not suspended and qualified can be copied, on the API and on predictasiax.com.

## v2.7.59 — 2026-11-29

**Fixes from bug reports: payout wallet verification works, oracle keys need a portal session, one marketplace listing per app.**

- `POST /v1/builders/me/payout-wallets/{id}/verify-sig` rejected every valid signature: the server computed the message hash incorrectly. Signatures made with `personal_sign` now verify.
- The signature challenge has a random nonce and expires after 15 minutes. `GET .../verify-sig/challenge` issues a new one each time (`expires_at_ms` in the response). A signature over an expired challenge returns `409 STATE_CONFLICT`.
- `POST .../verify-tx` rejected Polygon and Ethereum transactions because the nodes it queried had stopped serving requests. It now uses working nodes with fallbacks, requires the transaction to be confirmed and successful, and returns `503 SERVICE_UNAVAILABLE` instead of a sender mismatch when no node can be reached.
- `POST /v1/provider/keys` (oracle api-keys) accepts a platform session or a Builder Portal session token only. An OAuth access token that a third-party app received is refused, whatever its scopes. Before, a token granted with `markets:read` could mint an `oracle:write` key.
- `POST /v1/marketplace/listings/apply` keeps one listing per app: applying again updates it and returns the same `listing_id` with `updated: true`. A disabled or delisted listing is not reopened by applying again. Extra copies created before this change were disabled.

## v2.7.58 — 2026-11-29

**Fixes from bug reports: market discovery returns live data, consistent error bodies, IP allowlist validation.**

- `GET /v1/markets/categories` and `GET /v1/markets/top-volume` read the live market list. Before, categories returned a fixed set of seed markets and top-volume returned an empty list. Categories rows are `{category, n_markets, volume_usdt}`; the field `volume_24h_usdt` is now `volume_usdt`, lifetime volume. Top-volume rows are `{id, title, category, status, volume_usdt}`. Volume is tracked per market over its lifetime, so `window` accepts only `all` (the default); `24h`, `7d` and other values return `400 VALIDATION_FAILED` instead of lifetime numbers under a window label.
- Every error proxied from the trading backend now uses the documented envelope `{"error":{"code","message","trace_id"}}`. A few routes returned `{"error":"message"}` as a bare string.
- An unknown `pax_` API key and a malformed or truncated one return the same `401 AUTH_INVALID`, `api key not recognized`. The message no longer reveals which part of a key string is wrong.
- `PUT /v1/apps/{id}/keys/{key_id}/ip-allowlist` needs `builder:keys:write` (was `builder:apps:write`). A missing or non-array `ip_allowlist`, a non-string entry, an invalid address or more than 100 entries return `400 VALIDATION_FAILED`. A key setting its own allowlist must include the IP it is calling from, so it cannot lock itself out.
- `POST /v1/access-requests` is also limited to 5 per hour per browser fingerprint, as `POST /v1/apply` is. Fingerprint limits now include the client's network (ASN and IPv4 /16 or IPv6 /32): before, every client sending the same default headers shared one counter worldwide. See [Rate limits](https://docs.predictasiax.com/rate-limits#ip-limit).
- CORS preflight no longer allows the `X-Debug-Scopes` request header.

## v2.7.57 — 2026-11-28

**Third-party apps: per-user limits for connected orders, widget trading, Sign in with PredictAsiaX, and a public app directory.** Additive; nothing changes for existing integrations.

- Orders placed with `on_behalf_of` (connected users and trading agents) no longer count against your key's tier caps (per-order and daily notional). The account's own limits on the connection bound them, reserved atomically on every order. `read_live` keys still cannot place them (`TIER_UPGRADE_REQUIRED`). Orders on your own account and subaccount slots keep the tier caps. See [Environments & tiers](https://docs.predictasiax.com/auth#env-separation).
- [Widget trading](https://docs.predictasiax.com/builders#widget-trading): `<predictasiax-market mode="trade" app="…">` (or `widget.predictasiax.com/trade`) lets a visitor connect your app once in a pop-up and buy Yes or No inside your page, on their own account and within their own limits. Every order needs a confirmation. 13 languages.
- [Sign in with PredictAsiaX](https://docs.predictasiax.com/auth#signin-with): an OpenID Connect provider at `https://predictasiax.com/api/oidc` (discovery, JWKS, Authorization Code + PKCE S256, userinfo). Identity only, for any PredictAsiaX user: a per-developer `sub` (`pxs_...`) and, if the user agrees, `name` and `email`. Uses your app's `client_id` and registered redirect URIs.
- [App directory](https://docs.predictasiax.com/builders#app-directory): [predictasiax.com/apps](https://predictasiax.com/apps) and `GET https://predictasiax.com/api/connect/directory` rank approved apps by connected accounts, 30-day order volume through the app, or newest, with each app's builder fee.
- `PATCH /v1/apps/{app_id}` accepts `description` (up to 200 characters) and `directory_listed` (boolean, default `true`). `GET /v1/connect/apps/{client_id}` returns `description`, `directory_listed` and `trading_enabled`.

## v2.7.56 — 2026-11-28

**Docs fix: who OAuth is for, and what the market widget does.** No API change.

- [Authentication](https://docs.predictasiax.com/auth#oauth), the home page and the FAQ said OAuth tokens from `connect.predictasiax.com` let an app act for any PredictAsiaX user. That sign-in accepts builder account credentials only. To trade for regular users on their own accounts, use [App connections](https://docs.predictasiax.com/builders#app-connections): the user approves your app on `predictasiax.com/connect` and you trade with your API key and `on_behalf_of=pxu_...`. The Builders tier table row "OAuth IdP for your users" is now "App connections".
- [Builders](https://docs.predictasiax.com/builders): the widget card named a script (`embed.js`) and attribute (`market-id`) that do not exist, promised one-click trading with the visitor's session and attribution by "origin header + widget signature". The widget is `widget.predictasiax.com/widget.js` with `<predictasiax-market market="…" builder="bld_…">` (or the `/iframe` page); it shows the live price, and its Trade link opens the market on predictasiax.com carrying `ref_app=bld_…`, which records the visitor as your acquisition if they sign up.
- `llms.txt` described HMAC signing as enterprise and ops-provisioned; it is live for any active API key.

## v2.7.55 — 2026-11-28

**SDK releases: Python `pax-api` 3.2.3 and TypeScript `@predictasiax/api` 3.3.3, with the 3.2.2 / 3.3.2 audit-verifier and base-URL fixes.**

- Audit verifier: `verify_event` / `verifyEvent` check the served `batch_seq` and the proof's `leaf_index` against the event's position in its batch (`seq - first_seq`) as `position_in_batch`. Results list the served fields nothing verifiable commits to, `batch_id` and `hash_recipe`, as `unauthenticated_fields` / `unauthenticatedFields`; identify a batch by `batch_num`, `first_seq` and `last_seq`, not `batch_id`.
- Since 3.2.2 / 3.3.2: every field `canonical` commits to must be served and must match it, including `created_at_ms` against `canonical.created_at`, and `verify_chain` / `verifyChain` report `fields_mismatch`. Pass the anchored batch `{merkle_root, first_seq, last_seq}` as the root so its bounds set the seq range and proof length (`batch_matches_anchor`); an empty or inverted batch fails.
- Since 3.2.2 / 3.3.2: a base URL with a query, a fragment or embedded credentials is refused, and the audit getters take integers only.
- [Downloads](https://docs.predictasiax.com/downloads#sdks): the SDK table shows the current versions, and the airgapped mirror serves `pax-api` 3.2.3 (the same files as PyPI, SHA-256 listed) instead of 3.0.1.

## v2.7.54 — 2026-11-28

**Rate-limit headers on every limited response.**

- Responses from endpoints in the seven per-key buckets now carry `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (Unix seconds). A `429 RATE_LIMITED` adds `Retry-After` (whole seconds); `error.details.retry_after_ms` stays in the body. Browser clients can read the headers through `Access-Control-Expose-Headers`. See [Rate limits](https://docs.predictasiax.com/rate-limits#response-headers).
- The unauthenticated endpoints and their per-IP limits are now listed on [Rate limits](https://docs.predictasiax.com/rate-limits#ip-limit). Their 429s carry the same headers and a `retry_after_ms`. Market data needs an API key; without one it returns `401` (the page said anonymous reads were IP-throttled).
- OpenAPI: the 429 responses that come from a rate-limit bucket declare the four headers (`components.headers`). `POST /v1/sandbox-keys` returns `RATE_LIMITED`, not `TOO_MANY_REQUESTS`.
- [WebSocket spec](https://docs.predictasiax.com/asyncapi): 8 more account pushes, delivered to your authenticated sockets — `rfq_quote_received`, `rfq_completed`, `rfq_quote_accepted` (makers: confirm before `confirm_by_ms`), `rfq_quote_unconfirmed`, and `block_trade_proposed`, `block_trade_cancelled`, `block_trade_rejected`, `block_trade_completed`. The last six were dropped by the socket until today; the first two were delivered but missing from the spec. 20 account pushes in total.

## v2.7.53 — 2026-11-28

**Geographic availability rewritten to match how the platform works.**

- [Geographic availability](https://docs.predictasiax.com/geographic-availability) described IP blocking at the CDN edge (United States, mainland China, Ontario, EU and UK "docs only", sanctioned countries), an HTTP 451 page, GeoIP and ASN checks and a daily sanctions-list import. None of that runs. The page now says what does: no IP-based geo-blocking; eligibility is set by [API Terms, Section 3](https://docs.predictasiax.com/api-terms#eligibility); withdrawal destinations and wallet sign-ins are screened against the OFAC list (`KYT_SANCTIONED`, `KYT_UNAVAILABLE`, `KYT_NOT_READY`); builder payout wallets are screened with Chainalysis and the OFAC SDN list as fallback; access requests declaring KP, IR, SY, CU, RU or BY are rejected automatically. Removed a reference to `PATCH /v1/builders/me`, which does not exist.
- [Asia-native](https://docs.predictasiax.com/asia-native#locales): the docs are in English only. The page claimed 13 translated docs languages and linked eight translated URLs that do not exist; it now lists the 13 languages of the web app (en, zh-CN, zh-TW, ja, ko, th, vi, id, ms, ar, he, es, fr).
- WebSocket `LOCALE`: the supported list now matches the web app's 13 languages (it listed pt, ru and tr, and missed ms, he and fr).
- [Compliance](https://docs.predictasiax.com/compliance): the sanctions-screening row and the availability note match the above.

## v2.7.52 — 2026-11-28

**Docs audit: the WebSocket spec now matches the live gateway, and every count, limit and header claim was checked against the code.**

- [WebSocket spec](https://docs.predictasiax.com/asyncapi) (AsyncAPI 2.1.0) rebuilt from the gateway's channel ACL: 39 public channels, 16 account channels (SUBSCRIBE after AUTH), 12 account pushes and 11 command replies, each tagged with `x-access`. Added `RFQ_SUBSCRIBE`, `RFQ_UNSUBSCRIBE` and the `ping`/`pong` keepalive. Removed 25 message types the socket does not deliver (for example `normal_market`, `signal`, `circuit_breaker`, `force_logout`). Payload schemas for `ticker`, `fast_tick`, `fast_delta`, `fast_round_*` and `gas_snapshot` now match captured live frames.
- Keepalive: the proxy closes a socket after 60 seconds without traffic; send `{"type":"ping"}` every 30 seconds on a quiet socket. The old text described a server heartbeat that does not exist.
- REST reference: the rendered spec was missing the 7 affiliate campaign, postback and statement paths and the Orders and Auth tag groups. Counts are now 194 paths / 221 operations across 19 tag groups everywhere.
- [Postman collection](https://docs.predictasiax.com/downloads#postman) regenerated: 221 requests (was 72). The environments' `baseUrl` no longer ends in `/v1` (requests resolved to `/v1/v1/…`), and the collection authenticates with the environment's `apiKey`.
- [Rate limits](https://docs.predictasiax.com/rate-limits): responses carry no `X-RateLimit-*` headers and 429 has no `Retry-After` header; the wait is in `error.details.retry_after_ms`. The scope table lists the seven buckets the API enforces; `/v1/data/history` counts against `markets:read`. Removed the "priority lanes" section.
- [Grant tiers](https://docs.predictasiax.com/builders#grants) now state the cliff and vesting ranges the API accepts per tier. Removed the claim of monthly, quarterly and yearly grant budget caps.
- [Error codes](https://docs.predictasiax.com/errors): added `ACCOUNT_MISMATCH` and the RFQ execution codes (`QUOTE_NOT_LIVE`, `QUOTE_EXECUTING`, `QUOTE_SIZE_MISMATCH`, `RFQ_EXECUTING`, `RFQ_QUOTE_FAILED`, `SELF_TRADE`, `RFQ_UNAVAILABLE`).
- [Fee architecture](https://docs.predictasiax.com/fee-architecture): the LP bucket is 2 bps at the PAF centre at every tier.

## v2.7.51 — 2026-11-28

**Fixes from security reports: HMAC-signed sandbox keys, RFQ market checks, Connect consent, verifier and webhook samples.**

- A sandbox key signing with [HMAC](https://docs.predictasiax.com/auth) (`PAX-SIGNATURE`) now runs in the sandbox exactly like a bearer request: simulated balance and orders, and live-platform writes refused. HMAC-signed live keys now apply their own per-key caps.
- Sandbox orders with `on_behalf_of` are refused with `403 DELEGATION_MISSING`.
- `DELETE /v1/mm/quotes/{id}` accepts the `order_id` exactly as `POST /v1/mm/quotes` returns it.
- RFQs and block trades check the market when they are created, as orders do: `404 MARKET_NOT_FOUND`, `422 MARKET_NOT_TRADABLE`, or `503 MARKET_CHECK_UNAVAILABLE` (retry).
- Connect: the consent screen posts a signed ticket bound to your session; a consent request posted from another site is refused.
- [Webhook signing](https://docs.predictasiax.com/webhook-signing) samples: a missing or malformed timestamp now fails, signatures are compared as bytes, and the HMAC is computed over the raw body bytes.
- [Verify](https://docs.predictasiax.com/verify): the in-browser check requires the batch bounds to contain the seq and rejects a canonical string with a repeated key. Without a root you supply it reports the result as consistent with the API's batch root; paste an anchored root to check against it. The Solidity sample derives the proof length from the anchored batch bounds.
- `POST /v1/apply`: `track` is optional and defaults to `self_serve` (the spec listed it as required).

## v2.7.50 — 2026-11-28

**Docs fix: the Grants page now matches the v2.7.49 builder fee model.**

- [Grants](https://docs.predictasiax.com/grants) still listed acquisition and execution builder shares of the platform fee (3 to 5 bps) and an "additive taker fee" set per request. Builders earn the [builder fee](https://docs.predictasiax.com/builders#builder-fee) they set (taker 0–100 bps, maker 0–50 bps) on the orders they place for accounts that approved it; the platform fee carries no builder share.
- Removed Partner Track items that do not exist: per-partner fee curve tuning and an Institutional Liquidity Partner status. Every account at the same tier pays the same published fee. An approved Partner application can still start at the `partner` tier.
- Removed "preferred rate-limit tier" from the Hackathon Track: rate limits are the same at every tier.

## v2.7.49 — 2026-11-28

**Builders earn the builder fee they set; the platform fee carries no builder share.**

- The acquisition and execution builder shares of the platform fee are 0 at every tier (they were 1 and 2 bps at the auto tier, up to 2 and 3 at `genesis` / `partner`). The 3 bps go to `platform_net`, now 10 bps at the PAF centre. The market creator (3), MM stipend pool (5) and LP (2) shares are unchanged. No `FEE_ACQUISITION_BUILDER` or `FEE_EXECUTION_BUILDER` event is written while the shares are 0. See [Fee Architecture](https://docs.predictasiax.com/fee-architecture#trading-fee).
- Builders earn the add-on [builder fee](https://docs.predictasiax.com/builders#builder-fee) they set on the orders they place for other accounts.
- The acquisition and execution builder are still recorded on every fill and count toward builder points and tier graduation. `trade_full`, `genesis` and `partner` keep uncapped API keys; `genesis` and `partner` keep the 1.5× builder points multiplier.
- `commission.share_of_trading_fee_pct` in `GET /v1/builders/me/affiliate/overview` is 0.

## v2.7.48 — 2026-11-28

**Builder promotion, part 2: campaigns, postbacks, sub ids and a monthly statement.**

- New `GET /v1/builders/me/affiliate/statement`: the last 12 UTC months, each with link visits (total and unique), sign-ups, first deposits, active traders, referred trading volume and your acquisition earnings. Portal session or `builder:revenue:read`.
- Campaigns: `GET` / `POST /v1/builders/me/affiliate/campaigns` and `PATCH` / `DELETE /v1/builders/me/affiliate/campaigns/{id}`. A campaign names a `&c=` tag and records its landing page, language and channel; up to 200 per builder. The tag cannot be changed; `DELETE` archives it.
- Postbacks: `GET` / `POST /v1/builders/me/affiliate/postbacks`, `PATCH` / `DELETE /v1/builders/me/affiliate/postbacks/{id}`, `POST /v1/builders/me/affiliate/postbacks/{id}/test` and `GET /v1/builders/me/affiliate/postbacks/log`. PAX calls your HTTPS URL with a `GET` when an account you referred signs up, makes its first deposit or makes its first trade. Macros: `{event}`, `{account}`, `{campaign}`, `{sub_id}`, `{country}`, `{amount}`, `{currency}`, `{timestamp}`, `{builder_id}`. Up to 10 per builder; failed calls are retried after 1 min, 5 min, 30 min, 2 h and 6 h.
- Sub ids: add `&sid=<click id>` (1-100 letters, digits, `_ . : ~ -`) to a referral link. It is kept with the first link a visitor follows, recorded on their sign-up and returned in postbacks as `{sub_id}`.
- `GET /v1/builders/me/affiliate/overview` also returns `commission`: your acquisition share as a percent of the trading fee, its basis, and the 30-day link window.
- Docs fix: `GET /v1/builders/me/affiliate/users` returns `joined_at_ms` and `first_deposit_at_ms` (epoch milliseconds), as the API always has; the spec listed `joined_at` and `first_deposit_at`.
- Docs fix: [Creator Economy](https://docs.predictasiax.com/creator-economy) showed 2 bps for the market creator at `genesis` / `partner`; it is 3 bps at every tier (since v2.7.45).
- Linked-account restrictions now lift automatically once two consecutive daily checks no longer find the link (see [Fee Architecture](https://docs.predictasiax.com/fee-architecture)).
- Builder Portal: campaigns, postbacks, monthly statement and ready-to-post promotion copy in 13 languages.

## v2.7.47 — 2026-11-28

**Market integrity.**

- The account that created a market can no longer trade it on any order path (taker or maker); such orders are rejected. See [Creator Economy](https://docs.predictasiax.com/creator-economy).
- Accounts that the automatic daily check links to each other (shared funding, devices or referrals, or trading mainly against each other) earn no maker rebate, stipend-pool share or PAX reward while linked; locked PAX rewards of the most strongly linked accounts are forfeited. See [Fee Architecture](https://docs.predictasiax.com/fee-architecture).

## v2.7.46 — 2026-11-28

**Promotion reporting for builders: link visits, sign-ups, first deposits and trading.**

- New `GET /v1/builders/me/affiliate/overview?month=YYYY-MM`: for a UTC month, visits to your referral links (total and unique), sign-ups, first deposits, active traders, referred trading volume and your acquisition earnings, with the previous month, all-time totals, a daily series and breakdowns by campaign, country and device. Includes `earnings_gate` (your own-volume progress toward the acquisition share). Portal session or `builder:revenue:read`.
- New `GET /v1/builders/me/affiliate/users?month=YYYY-MM`: each account that signed up through your links, by an anonymous reference (`u_...`), with join date, country, campaign, first-deposit date and volume. No email, user id or wallet is returned.
- Campaign tags: add `&c=<tag>` (1-40 letters, digits, `_ . -`) to a `?ref_app=bld_...` link to compare channels. The tag is kept with the first link a visitor follows and recorded on their sign-up.
- Sign-ups with a crypto wallet are now credited to the referring builder; before this release only email and Google sign-ups were.
- `POST /v1/apply` and `POST /v1/access-requests` also return `portal_email`, `portal_signin_url` and `portal_signin_expires_at_ms`: a single-use link, valid 72 hours, to set your Builder Portal password. These fields are `null` if the link could not be issued.
- Fix: `GET /v1/builders/me/tier` reported $10,000 as the 30-day volume for `trade_full`. The threshold is $50,000, as documented and as applied by auto-graduation.
- Builder Portal: new Promote section with the promotion report, a link and QR builder (any page, 13 languages, campaign tags), the referred-accounts list with CSV export, and banners with embed code.

## v2.7.45 — 2026-11-27

- Builder share of the platform fee is now 3 bps combined at the auto tier (acquisition 1, execution 2), 4 at `trade_full` (execution 3) and 5 at `genesis` / `partner` (acquisition 2, execution 3), at the PAF centre. The difference goes to `platform_net`; the market creator (3), MM stipend pool (5) and LP (2) shares are unchanged and now the same at every tier. Builders earn their own [builder fee](https://docs.predictasiax.com/builders#builder-fee) on top (v2.7.44). `POST /v1/fees/estimate` returns the new split. See [Fee Architecture](https://docs.predictasiax.com/fee-architecture#trading-fee).

## v2.7.44 — 2026-11-27

- New [builder fee](https://docs.predictasiax.com/builders#builder-fee): a builder can charge its own rate (taker 0-100 bps, maker 0-50 bps, on notional) on the orders it places for another account, through App connections or as a trading agent. Paid per fill by that account to the builder, on top of the platform fee. A new rate takes effect 3 days after it is set, at most one change every 7 days.
- An account pays only up to the maximum it approved for that builder; orders above it are refused (`403 BUILDER_FEE_NOT_APPROVED` / `BUILDER_FEE_EXCEEDS_APPROVAL`), never repriced. At most 10 live approvals, revocable at any time.
- New endpoints: `GET` / `PUT /v1/builders/me/fee`, `DELETE /v1/builders/me/fee/pending`, `GET /v1/builders/me/fee-earnings`, `GET /v1/builders/{builder_id}/fee` (public), `GET` / `POST /v1/builder-fee-approvals`, `DELETE /v1/builder-fee-approvals/{builder_id}`. `GET /v1/builders/me` adds a `builder_fee` summary; `POST /v1/fees/estimate` takes `builder_id` and `role`. New ledger events `CLOB_BUILDER_FEE` / `CLOB_BUILDER_FEE_CREDIT`; error codes in [Errors](https://docs.predictasiax.com/errors#builder-fee).

## v2.7.43 — 2026-11-27

- New `PATCH /v1/apps/{id}`: set your app's `redirect_uris` (needed for [App connections](https://docs.predictasiax.com/builders#app-connections)), `homepage_url` and `name`. Portal session or `builder:apps:write`.

## v2.7.42 — 2026-11-27

**App connections: your users connect your app to their own account.**

- New consent page at `predictasiax.com/connect`. A signed-in user approves your app with scopes (`trade`, `close_only`, `read_positions`) and their own limits; you receive an opaque `pax_account=pxu_...`. See [App connections](https://docs.predictasiax.com/builders#app-connections).
- `on_behalf_of` accepts `pxu_...` on `POST /v1/orders`, `DELETE /v1/orders/{id}`, `POST /v1/orders/cancel-all`, `GET /v1/orders`, `/v1/positions`, `/v1/portfolio` and `/v1/balance`. Orders run on the user's account; responses show the `pxu_` reference, never the user's id.
- New public `GET /v1/connect/apps/{client_id}`.
- `GET /v1/delegations/received` also lists user connections (`delegator_type: "user"`).
- Docs: removed the claim that end users authenticate through your own OAuth flow. Builder OAuth sign-in covers builder accounts only; end users connect through App connections.

## v2.7.41 — 2026-11-27

**One automatic program for market makers; fee split and rebate docs match what is charged.**

- `POST /v1/mm/designation-request` enrolls exactly like `POST /v1/mm/apply` (approved on submit), and `GET /v1/mm/designation-status` returns `GET /v1/mm/status`. Both answer with a `Deprecation` header and a successor `Link`. The old handler stored a request as `pending` that nothing ever reviewed, and the 20 bps rebate it quoted was never paid.
- There is no Market Maker Agreement or whitelist. `GET /v1/lqf/mma-tier` returns an empty list.
- Fee split: the operator share is 0 bps while PAX is the only operator, and its 2 bps are carried in `platform_net`. Builder, market creator, MM stipend pool and LP shares are unchanged. See [Fee Architecture](https://docs.predictasiax.com/fee-architecture#trading-fee).
- Maker rebate is documented as charged: 5–20% of the taker fee of each fill, by a tier set daily from the maker's 30-day share of weighted maker volume. The old "3 + 5 × lqf_score bps" formula was not what is paid.
- `sharp_multiplier` on `GET /v1/fees/estimate` is ignored. A trader's fee depends only on the published tier discounts.

## v2.7.40 — 2026-11-27

**Epoch numbers under `*_at` are renamed `*_at_ms`.**

- A numeric timestamp in a field named `*_at` is returned as `*_at_ms` in epoch milliseconds, like every other timestamp, for example `withdrawal_fees.<chain>.updated_at_ms`.

## v2.7.39 — 2026-11-27

**Bare currency amounts are decimal strings.**

- A field named `usdt` or `usd` (or ending in `_usdt` / `_usd`) is a decimal string, for example `withdrawal_fees.<chain>.usdt`.

## v2.7.38 — 2026-11-27

**More amounts are decimal strings.**

- Amounts named with collateral, stake, refund, rebate, revenue, profit or cost are decimal strings, for example `released_collateral` on `DELETE /v1/mm/quotes/{order_id}`.
- `GET /v1/balance`: `total` is a decimal string, like `free` and `reserved`.

## v2.7.36 — 2026-11-27

**Every USDT and USD amount is a decimal string.**

- Fields named in a currency (`*_usdt`, `*_usd`) are now always decimal strings, like other amounts. Some were JSON numbers before, for example `rebate_earned_usdt`, `pending_usdt` and `revenue_usdt`. Parse amounts as decimals, not floats.

## v2.7.34 — 2026-11-27

**Market-maker quotes are real orders.**

- New page: [Market Makers](https://docs.predictasiax.com/market-makers).
- `POST /v1/mm/apply`: enroll with one call, approved on submit. The tier is assigned automatically each day from 30-day maker volume share.
- `POST /v1/mm/quotes` (alias `POST /v1/mm/quote`) places each quote as a post-only order on the platform balance with a time-to-live, and returns a per-quote result. Quotes count against the key's per-order and daily limits like orders.
- `DELETE /v1/mm/quotes/{order_id}` cancels by order id. `GET /v1/mm/quotes?market_id=` now reads live orders, so cancels, expiries and fills show up at once.
- `GET /v1/mm/me/rebates` reports rebates as credited to the balance, with maker volume and fill counts; default window 90 days.
- Sandbox keys get `403 TIER_UPGRADE_REQUIRED` on these endpoints and never earn rewards or rebates.

## v2.7.32 — 2026-11-27

**On-demand weather markets.**

- New page: [Weather Markets](https://docs.predictasiax.com/weather-markets). Open a YES/NO market on the daily highest temperature, lowest temperature or rainfall at one of 133 official stations: Hong Kong Observatory, data.gov.sg, the Japan Meteorological Agency, Taiwan's Central Weather Administration, the US National Weather Service, and airport METAR reports across Asia.
- `GET /v1/weather/stations` lists the stations; `POST /v1/weather/markets` opens the market for a spec, or returns the existing one. The creator deposit is locked only by the caller who opens it.
- Markets settle from the station's final published value for the day. With no final value 7 days after the day, the market is voided and refunded in full.

## v2.7.31 — 2026-11-27

**FIX gateway on a public TLS endpoint, with a self-serve source-IP allowlist.**

- Connect to `fix.predictasiax.com:9879` over TLS 1.2 or later with a publicly trusted certificate. This replaces the Cloudflare Access tunnel described in 2.7.30; no `cloudflared` client is needed.
- A Logon is accepted only from an IP address on the account's FIX allowlist. Manage it in the Builder Portal (**FIX access**) or with `PUT /v1/builders/me/fix-allowlist` from a portal session (plus `totp_code` when 2FA is active). `GET /v1/builders/me/fix-allowlist` reads it with any credential of the account. IPv4 /16–/32, IPv6 /32–/128, at most 20 entries; an empty list means no FIX access. Changes apply to the next Logon.
- A refused Logon is answered with Logout; `58` names the source address.

## v2.7.30 — 2026-11-26

**RFQ last look, batch RFQ, block trades with a named counterparty, and a rebuilt FIX gateway.**

#### RFQ last look

- Accepting a quote on `POST /v1/rfq/{id}/accept` now returns 202 with `state: confirming` and `confirm_by_ms`. The quoting account has 10 seconds to confirm (`POST /v1/rfq/{id}/quotes/{quote_id}/confirm`) or decline (`.../decline`). Confirmed: the trade executes. Declined or not confirmed in time: nothing moves and the RFQ is open again.
- A quote sent with `auto_confirm: true` is firm and executes on acceptance, as before.
- `GET /v1/rfq/stats` shows a quoting account's record over 30 days: accepted, confirmed, declined, not confirmed, and the confirmation rate. It is informational and does not change fees or access.
- While a quote awaits confirmation, the RFQ cannot be cancelled and the quote cannot be withdrawn (409 `RFQ_CONFIRMING` / `QUOTE_CONFIRMING`).

#### Batch RFQ

- `POST /v1/rfq/batch` creates up to 10 RFQs and `POST /v1/rfq/quotes/batch` sends up to 10 quotes. Each item succeeds or fails on its own; `results` lists them in request order with `ok` and, on failure, `error.code`.

#### Block trades

- `POST /v1/block-trades` proposes a trade already agreed with a named account (`counterparty`, a `bld_` id): buyer, seller, side, price and size. Proposing counts as your acceptance; the trade executes, off the public book and with normal fees, when the counterparty accepts on `POST /v1/block-trades/{id}/accept`.
- The seller chooses `seller_uses`: deliver shares it holds (default) or back the trade with USDT. Each party chooses its own `subaccount_slot`.
- `GET /v1/block-trades`, `GET /v1/block-trades/{id}`, `POST /v1/block-trades/{id}/reject` (counterparty) and `.../cancel` (proposer). Proposals expire after `ttl_sec` (60–86400, default 3600).

#### Tier caps

- RFQ and block trades now count against the API key's tier caps: creating an RFQ, quoting and proposing check the per-order cap and remaining daily headroom; accepting, confirming and accepting a block trade count the order value.

#### FIX gateway

- New page: [FIX Gateway](https://docs.predictasiax.com/fix). Logon takes your account id and API key. (Access was through a Cloudflare Access TCP tunnel; superseded by the public TLS endpoint in [2.7.31](https://docs.predictasiax.com/changelog#v2-7-31).)
- Every FIX order, cancel, quote and block trade now goes through the public API with the session's API key, so scopes, tier caps, subaccounts and funding apply exactly as on REST.
- Fixed: the NO outcome could not be traded (new tag `9067`); every accepted order was reported as Filled instead of its real status; cancels used the ClOrdID as the order id; subaccount, expiry and self-trade-prevention fields were silently ignored (expiry is now rejected: orders do not expire); a drop-copy session could mirror accounts other than its own; `SendingTime` was not in FIX format.
- New: fill ExecutionReports, CancelOrdersOnDisconnect (`8013=Y`), market data with standard repeating groups, RFQ with last look (`35=R`/`S`/`AJ`/`Z`) and block trades (`35=s`/`u`).

## v2.7.29 — 2026-11-26

**Tick grid for resting orders; the API takes the engine's full price range.**

- On normal markets, `limit` and `post_only` prices must sit on the tick grid: 0.01 steps from 0.04 to 0.96, 0.001 steps below 0.04 and above 0.96. Off-grid orders are rejected with `rejectReason: invalid_tick` and the `tick` that applies. `ioc`, `fok` and `market` are unchanged. Sandbox keys apply the same rule.
- The API rejected prices outside 0.01–0.99, so the 0.001-step prices at the extremes could not be sent. It now accepts 0.0001–0.9999, the engine's range.

## v2.7.28 — 2026-11-26

**Market, IOC, FOK and post-only orders; a market-order preview; events.**

#### Order types

- `POST /v1/orders` (and each order in `/v1/orders/batch`) takes an optional `order_type`: `limit` (default), `market`, `ioc`, `fok` or `post_only`. `market` takes no `price`; its `size` is shares and its notional is counted as size x 1. To bound a market order's price, send `ioc` with a `price`.
- Orders have no time-based expiry. A request with `expires_at`, `expiration` or `time_in_force` is rejected with 400 instead of being accepted and ignored.
- Sandbox keys accept the same order types.

#### New endpoints

- `GET /v1/markets/{id}/quote` previews a market order against the live order book: `side`, `action`, and `amount` (USDT, buy) or `shares` (sell). It returns the average all-in price, shares, fee, and best and worst price reached. Quoted without account fee discounts.
- `GET /v1/events` and `GET /v1/events/{id}` list events: several markets grouped under one question, with each market's price, volume and settlement state. Optional `category`, `status` and `locale`.

## v2.7.27 — 2026-11-26

**Builder Portal pages that called missing endpoints now work, and the oracle provider endpoints are back.**

#### New endpoints

- `GET /v1/webhook-events` lists delivery attempts across all your webhook endpoints, newest first. Optional `status` (`pending`, `delivering`, `delivered`, `failed`, `dead_letter`), `limit` (max 200) and `days` (default 30, max 90). Re-send a failed delivery with the existing `POST /v1/webhooks/{id}/deliveries/{delivery_id}/replay`.
- `POST /v1/builders/me/notifications/mark-all-read` marks every unread notification as read.
- `GET /v1/builders/me/payout-wallets/{id}/verify-sig/challenge` returns the message a wallet must sign for `verify-sig`. Before this the message was only returned once, when the wallet was registered.

#### Fixes

- Builder Portal: the Webhook events page, Mark all read, Marketplace Listing (now uses `/v1/marketplace/listings/mine` and `/apply`; listings are approved on submit) and wallet verification by signature called routes that did not exist.
- `/v1/oracle/*` reads returned `503 database not configured`. The oracle service now retries its database connection at startup and reconnects on its own if the first attempt fails.
- Spec: the documented scopes of seven endpoints now match the scopes the API enforces (team member removal, notification read, payout wallet update and verification, key IP allowlist, composer proposal detail).

## v2.7.25 — 2026-11-25

**Trading agents: another builder account can trade on yours, within limits you set, after you approve it with 2FA.**

#### Trading agents

- `POST /v1/delegations` approves an agent. It needs a Builder Portal session and a fresh `totp_code` (2FA active for 24 hours); API keys and app tokens cannot approve agents. Fields: `delegatee_id` (a `bld_` account), `scopes`, and the optional `max_notional_usdt`, `daily_notional_cap`, `markets_allowlist`, `account_slots`, `expires_at` (within 365 days).
- Scopes are `trade`, `close_only` (SELL of shares already held, and cancel) and `read_positions`. The `withdraw` scope is removed: agents can never withdraw, move funds between subaccounts or approve other agents.
- The agent sends `on_behalf_of` with your account id on `POST /v1/orders`, `DELETE /v1/orders/{id}`, `POST /v1/orders/cancel-all`, `GET /v1/orders`, `/v1/positions`, `/v1/portfolio` and `/v1/balance`. Orders execute on your account or the `subaccount_slot` named, at your VIP tier, with your attribution. Every order is checked against scope, slot, market, per-order notional and the rolling-24h cap; errors are `DELEGATION_MISSING`, `DELEGATION_SCOPE_MISMATCH` and `DELEGATION_DAILY_CAP_EXCEEDED`.
- One live approval per agent (approving again replaces it), up to 10 per account. `DELETE /v1/delegations/{id}` revokes it for the next request.
- Grants recorded before this release were never usable for trading and have been revoked; approve agents again in the Builder Portal.

#### Subaccounts

- Subaccount slots trade at the main account's VIP tier, and their volume counts toward it. Fills between your own accounts do not count.
- The Builder Portal can create, fund and delete subaccounts.

## v2.7.24 — 2026-11-25

**Builders can withdraw their trading balance from the Builder Portal.**

#### API

- `POST /v1/builders/me/balance/withdraw` `{amount_usdt, wallet_id, totp_code}` withdraws USDT from the main account (slot 0). It needs a Builder Portal session, a fresh 2FA code and a USDT payout wallet that is verified and past its cooldown. Move money in subaccount slots to slot 0 first.
- Withdrawals run the same checks as any account withdrawal, including that deposits have been traded at least once before they can leave. Trading volume across the main account and all its slots counts.
- No API key or app token can withdraw. `POST /v1/builders/me/withdraw` (fee earnings) no longer accepts a `withdrawals:create` scope; it needs the portal session and 2FA, as before for every other caller.
- Portal sessions can read `GET /v1/balance` and `GET /v1/deposit/addresses`.

## v2.7.23 — 2026-11-25

**Trading builders get the subaccount scopes.**

#### API

- The trading tracks include `subaccounts:read` and `subaccounts:manage`, and `POST /v1/apps/{id}/keys` accepts them. Before, no key could hold them and every `/v1/subaccounts` call returned `SCOPE_MISSING`. Existing apps now allow them; existing keys keep their scopes, so mint a new key to use subaccounts.

## v2.7.22 — 2026-11-25

**Builder accounts can be funded: deposit addresses, subaccounts on the real ledger, and sell orders.**

#### API

- `GET /v1/deposit/addresses` (`portfolio:read`) returns the USDT deposit addresses of the account the key trades as. Deposits credit its trading balance.
- `/v1/subaccounts` now manages ledger subaccounts: slots 1 to 63, each its own account with its own balance and positions. `POST /v1/subaccounts` `{slot, name}`, `GET /v1/subaccounts`, `GET /v1/subaccounts/balances`, `GET`/`DELETE /v1/subaccounts/{slot}`, `POST /v1/subaccounts/transfer` `{from_slot, to_slot, asset, amount}`. The earlier subaccounts, subaccount balances and grants could not hold funds and are removed.
- `POST /v1/orders` accepts `action` (`buy` by default, or `sell` to close) and `subaccount_slot`. `funding_mode` is optional; builder accounts trade on their trading balance.
- `DELETE /v1/orders/{id}` accepts `?subaccount_slot=`.

## v2.7.21 — 2026-11-25

**Per-IP and per-browser limits on the unauthenticated endpoints now count a trailing window instead of resetting on the clock.**

#### API

- The IP and browser-fingerprint limits on `POST /v1/apply`, `GET /v1/apply/{code}`, `POST /v1/access-requests`, `GET /v1/access-requests/{id}`, `POST /v1/sandbox-keys`, `GET /v1/builders/public`, `POST /v1/builder-credentials/signin-link/inspect` and `/redeem`, and `GET /v1/audit/anchor/{n}/raw` count the requests made in the trailing hour (or minute, or day). Before, each count reset at the top of the hour, minute or day, so a client could make up to twice the limit across a reset: "5 per hour" let one IP submit 7 applications in 21 minutes.
- An IPv6 client is counted per /64 network, not per address.
- Requests refused with `RATE_LIMITED` count toward the window.

The published limits and the per-key limits are unchanged.

## v2.7.20 — 2026-11-24

**The SDK audit verifiers accept a `canonical` string only when it has exactly one reading, and match an event's fields to it by type as well as value.**

#### SDKs

- Python `pax-api` 3.2.1 and TypeScript `@predictasiax/api` 3.3.1 refuse a `canonical` that repeats a key in any object. JSON parsers disagree on which copy of a repeated key wins, so the same hashed bytes could be read two ways. The event hash, field check and `verify_chain` / `verifyChain` now fail on such a string.
- The field check compares type as well as value: a string matches only the identical string, a number only a number of the same exact decimal value. Before, any numeric-looking string equalled a number (`"1234"`, `1234` and `"1.234e3"` were one value), including in identity fields such as `event_id`. Inside `payload` a number in `canonical` may still be served as its plain decimal string, which is how the API returns numbers a double cannot hold exactly.
- `seq` must be the same number in the event and in `canonical`.

Published audit events verify the same as before; no API change.

## v2.7.19 — 2026-11-24

**The acquisition share and acquisition points now start once a builder's own accounts have traded $10,000.**

#### Acquisition share

- A builder earns the acquisition builder share of the fee, and acquisition points, only once its own accounts have traded **$10,000** in total. Own accounts are the builder account and any account with the same email or wallet as the builder account or its payout address. Real-money buys count, less voided ones, plus order-book fills where only one side is an own account; demo trades do not count.
- Until then the share stays with the platform and the points are not minted; neither is made up later. The acquisition link is still recorded when the user signs up, and the execution share is not affected.

#### API

- `GET /v1/builders/me/tier-progress` adds `acquisition_gate`: `min_own_volume_usdt`, `own_volume_usdt` and `qualified`. The last two are `null` when the volume could not be read.
- `GET /v1/builders/me/tier-progress`, `GET /v1/builders/me/points` and `GET /v1/builders/:userId/points` returned `route not implemented` on the public API; only the `GET /v1/tier-progress` alias was routed. They now work with a key that has `builder:read`.

## v2.7.18 — 2026-11-24

**Builder points now go through the same wash-trading checks as payouts.**

#### Builder points

- A builder suspended for wash trading (3 or more flagged payouts in the last 30 days) earns no points until the suspension lifts, as with its fee shares. Points not minted meanwhile are not minted later.
- About a day after a fill, its points are checked for an account trading with itself, two accounts trading back and forth, and an account buying and selling back the same market with almost no change in what it holds. The points of a flagged fill are reversed by a negative ledger entry (source `wash_reversal:exec` or `wash_reversal:acq`, shown in `GET /v1/builders/me/points` `by_source_type`); the original entry stays. These reversals do not count toward the payout-based wash suspension.

## v2.7.17 — 2026-11-24

**Builder points accrue again for fills on the live order book.**

#### Builder points

- Points were not being minted for fills on the live order book. They now are, for every attributed fill still held on the live order book and for every new fill, with the same formula, multipliers and 5-minute schedule as before.
- No points are minted for a fill taken by the builder's own account (or an account sharing its email or wallet), or while the builder is terminated or a sandbox builder: the same rules that withhold the builder fee share since v2.7.15.

## v2.7.16 — 2026-11-24

**A builder's own trades no longer count toward its attributed volume.**

#### Attributed volume

- A fill whose taker is the builder's own account, or an account with the same email or wallet as the builder account or its payout address, no longer counts toward 30-day attributed volume. That volume decides tier graduation (`read_live` through `partner`), the genesis top-20 ranking, the Builder Directory and `GET /v1/builders/me/tier-progress`. It is the same rule that withholds the builder fee share on those fills since v2.7.15. A builder whose only attributed fills are its own drops out of the Builder Directory.

## v2.7.15 — 2026-11-24

**No builder share on a builder's own trades; wash-trading checks now remove flagged amounts from payouts and suspend repeat offenders automatically.**

#### Builder fee shares

- The execution builder share is no longer credited when the fill's taker is the builder's own account, or an account with the same email or wallet as the builder account or its payout address. This already applied to the acquisition share since v2.7.14. Crediting it there amounted to a fee discount for registering as a builder. The withheld share stays with the platform.
- A builder with 3 or more payouts flagged for wash trading in the last 30 days earns no execution or acquisition share until fewer than 3 flagged payouts fall within the last 30 days. Shares withheld in the meantime are not paid later.

#### Wash-trading checks on payouts

- While a settled payout is held, the fills behind it are checked for an account trading with itself, two accounts trading back and forth, and (new) an account buying and selling back the same market with almost no change in what it holds. These checks previously only reported what they found; the amount from flagged fills is now removed from the payout before it is sent.

## v2.7.14 — 2026-11-24

**Acquisition is set only at sign-up; `X-Builder-Ref` no longer records it; no acquisition share on a builder's own trades.**

#### Builder attribution

- `X-Builder-Ref` on `POST /v1/orders` no longer sets a user's acquisition builder. An API order is placed by the key holder's own account, so the header could only attribute that account to itself or to an arbitrary id. The order is placed as before and the header is ignored. The TypeScript SDK's `attachRef()` helper, which sent this header, is deprecated in `@predictasiax/api` 3.3.0 (now on npm): it no longer sends the header, logs one deprecation warning, and will be removed in 4.0. 3.3.0 also fixes `VERSION` and the `User-Agent`, which still said 3.1.0.
- Acquisition is recorded only when a user creates their account from a builder's widget or `?ref_app=bld_...` link, as described in v2.7.12.
- The acquisition builder share is not credited on a trade whose taker is the builder's own account, or an account with the same email or wallet as the builder account or its payout address. That share stays with the platform, as for a user with no acquisition builder.

## v2.7.13 — 2026-11-24

**Acquisition fee share now covers every trade by a user you acquired, including trades on predictasiax.com; only live, non-sandbox builders are recorded or credited.**

#### Builder attribution

- Trades placed on predictasiax.com by a user whose acquisition builder is your builder now credit you the acquisition builder share of the fee (`FEE_ACQUISITION_BUILDER`), the same as orders routed through the API. Before this release only API orders carried it. The credit shows in `GET /v1/builders/me/revenue`; the split rules and tiers are unchanged.
- An acquisition builder that is a sandbox builder, terminated, or not registered is not credited on any trade.

## v2.7.12 — 2026-11-24

**Sandbox keys now trade in a simulation; `GET /v1/status` returns service status and the audit checkpoint only; one API version everywhere; widget links carry your builder id and sign-ups from them record it.**

#### Sandbox

- A `tier=sandbox` key now fills orders in a simulation instead of being rejected at the balance check. Each key starts with 1,000 virtual USDT. A buy at or above the market's current price fills immediately at that price; a lower limit rests (its amount held in `reserved_usdt`) and fills once the price reaches it, checked whenever the key reads `/v1/orders`, `/v1/positions`, `/v1/balance` or `/v1/portfolio`. `DELETE /v1/orders/{id}`, `POST /v1/orders/{id}/cancel` and `POST /v1/orders/cancel-all` return the reserve. Order ids start with `sbx_ord_`.
- The same order rules (`INVALID_FIELD`, `BELOW_MIN_NOTIONAL`, `ABOVE_MAX_NOTIONAL`) and tier caps ($10 per order, $100 per day) apply as in production. Every simulated response carries `is_simulated: true` in `data` and `meta`.
- Nothing reaches the real book, balances or fee ledger. Positions are marked to the current price and are not settled when a market resolves. RFQ, combo and market-maker quote endpoints are not simulated.

#### Status

- `GET /v1/status` now returns `status` (`online` or `degraded`), `version`, `timestamp_ms` and the `audit` block (`latest_batch_num`, `latest_merkle_root`, `latest_batch_at_ms`, `latest_batch_anchored_at_ms`, `batches_24h`, `event_seq_latest`). The `trading`, `builders` and `health` blocks and `audit.anchor_target` were removed; per-batch anchor details remain at `GET /v1/audit/anchor/{batch_num}`. `degraded` means a core datastore check failed or no audit batch was sealed in the last 15 minutes.
- The docs linked a status page at status.predictasiax.com that no longer exists; those links now point to `GET /v1/status` and this changelog.

#### Version

- `GET /v1/health` reported `0.3.0` and `GET /v1/status` reported `2.4.1`. Both now report the version of the current changelog entry.

#### Widget and sign-up attribution

- The widget's trade link now carries your builder id (`ref_app=bld_...`), resolved from the `app_id` you embed. An unknown, disabled, test or sandbox id is dropped instead of being passed on.
- A visitor who signs up on predictasiax.com after following that link has your builder recorded as their acquisition builder at account creation. The first link within 30 days counts, and the value is set once and never changed. Fee share on trades those users place on predictasiax.com is not paid yet; attributed volume still comes from orders routed through the API with `X-Builder-Ref`.

#### Docs

- Order examples no longer send a placeholder `user_id` (a value other than your own account returns `ACCOUNT_MISMATCH`; omit it) or a market id that does not exist; Getting Started no longer describes 20 seeded markets.

## v2.7.11 — 2026-11-24

**Rejected orders no longer use up the daily cap; webhook targets are checked by resolved address; the MCP server checks the key before running a tool; sign-in failures are limited per address; the market widget shows real prices; the `trade_full` threshold and the sandbox pages now say what the platform does; Python and TypeScript SDKs 3.2.0.** These changes came from security reports.

#### Orders

- An order that was never created (rejected before it reached the book, for example at the balance check) used to count its notional against the key's daily cap. Ten rejected $10 orders filled a sandbox key's $100 day. The reserved amount is now released when no order comes into existence; orders that were created, filled or resting still count.

#### Webhooks

- A webhook target's hostname is now resolved (A and AAAA) when the webhook is created and again before every delivery. A name that resolves to a private, loopback, link-local, shared (100.64/10), multicast or reserved address is refused with `WEBHOOK_URL_INVALID` at creation, and a delivery to it is recorded as failed (`target blocked`) without being sent. A name that cannot be resolved is refused. Before, only literal IP addresses were checked, so a public name pointing at an internal address passed.

#### Authentication

- New `GET /v1/auth/whoami`: for any valid credential it returns `scheme`, `scopes`, `builder_id`, `app_id` and `api_key_id`. An invalid credential gets `401`.
- Password sign-in on `connect.predictasiax.com` (`POST /auth/session` and the OAuth sign-in form) allows 20 failed attempts per client address per hour; after that it returns `429 RATE_LIMITED` with `retry_after_s` until the hour turns. The per-account lock still applies. A locked account now gets the same "invalid email or password" answer as any other failure.
- predictasiax.com accounts: email verification returns one answer, "Invalid or expired code", for every failure (unknown email, already verified, no code, expired or wrong code), so it no longer tells which emails have accounts. Password reset answers an unknown or non-email account the same way as an invalid token.

#### MCP server

- `tools/call` (and `/mcp/call`) checked only that the bearer looked like `sk_live_*` and then granted a fixed scope list. It now validates the credential with the API (`/v1/auth/whoami`) and uses the scopes the credential really has; an invalid credential gets `AUTH_INVALID`. Results are cached for 60 seconds.
- `tools/list` gives each tool `_meta.requires_scopes`.

#### Builder tiers

- `trade_capped` → `trade_full` graduates at **$50,000** of 30-day attributed volume. The graduation cron has enforced $50,000 since 2026-11-16; the guide pages, the API's next-step text and [v2.7.1](https://docs.predictasiax.com/changelog#v2-7-1) still said $10,000. Swept: builders, directory, getting-started, grants, how-tiers-work, onboarding, rate-limits, request-access, sandbox, tier-progression.
- `GET /v1/builders/me/tier-progress` adds `enforced_tier`, the tier that sets your caps. A self-serve key below the `trade_capped` volume floor reported `current_tier: "trade_capped"` (the stored value; same $100 / $1,000 caps) beside a ladder that puts `trade_capped` at $1,000. It now reports `self_serve`, with `trade_full` as the next rung.

#### Sandbox

- The sandbox pages promised fills simulated at mid-price. A sandbox key holds no balance and there is no faucet or deposit endpoint, so an order passes validation and the tier cap and is then rejected at the balance check (`status: "REJECTED"`, `rejectReason: "insufficient_balance"`, no order id). Sandbox, Getting Started, FAQ, Auth, Tiers, Builders, API Terms and the home page now say so. Real fills need a production key.

#### Market widget

- `widget.predictasiax.com/widget-data` returned a placeholder (probability 0.5, zero volume) for every market id, real or not. It now serves the market's title, all-in prices, price change, volume and status, returns `404 MARKET_NOT_FOUND` for an unknown id, and is cached for 30 seconds.
- The [embed](https://docs.predictasiax.com/embed) page called an endpoint that needs an API key and showed an error for every visitor; it now reads the widget endpoint above.
- The widget's trade link carries your `app_id` as `ref_app`. Trades placed on predictasiax.com from that link are not yet credited to your app; attributed volume comes from orders routed through the API with `X-Builder-Ref`. The [Markets](https://docs.predictasiax.com/markets) and embed pages said attribution was built in; corrected.
- The widget pixel no longer writes a counter per hit to shared storage; nothing read those counters.

#### Builder Portal

- `builder.predictasiax.com` sends a Content-Security-Policy header (with `frame-ancestors 'none'` and `object-src 'none'`), `Strict-Transport-Security`, `X-Frame-Options: DENY`, `X-Content-Type-Options: nosniff`, `Referrer-Policy: no-referrer` and a `Permissions-Policy` on every page. Before, the policy existed only as a meta tag, which cannot set `frame-ancestors`.

#### SDKs

- Python `pax-api` 3.2.0 is on PyPI: `verify_chain()` checks that a range of audit events is one unbroken chain (gaps, substituted or edited events); `verify_event` reports `root_source` and `independent`, so a root read from the proof response is not mistaken for an independent check; a 3xx response, or a 2xx body that carries only an `error`, now raises; `PaxWSClient.on_error()` receives refused and revoked sign-ins (`WS_AUTH_DENIED`, `WS_FORCE_LOGOUT`); `api_base_url` is validated like `base_url`.
- TypeScript `@predictasiax/api` 3.2.0 is on npm with the same changes (`AuditResource.verifyChain`, `rootSource` / `independent`, `UNEXPECTED_REDIRECT`, `WS_AUTH_DENIED` / `WS_FORCE_LOGOUT` on `onError`, `apiBaseUrl` validation). It also compares audit payload numbers with `canonical` as exact decimals: before, two amounts that differed only beyond double precision were treated as equal. `ApplicationResult` now types every field `POST /v1/apply` returns.

## v2.7.10 — 2026-11-23

**API clients can sign in on the WebSocket with a single-use token and receive their own order events; `/api/orderbook` no longer answers unknown markets; Python SDK 3.1.0.**

#### WebSocket

- New `POST /v1/ws/token` (scope `orders:read`; API key, HMAC or OAuth) returns a single-use sign-in token valid for 15 minutes. Send it as `{"method":"AUTH","token":"wst_..."}`; the socket is bound to the account the credential trades as. A used, expired or unknown token gets `auth_denied` / `invalid_token`. API keys are never sent on the socket. See [WebSocket authentication](https://docs.predictasiax.com/auth#websocket-auth).
- `user_orders_update` events (placed, filled, partial, rested, cancelled) are now delivered. They were dropped before reaching any client, including the web app.

#### Order book

- `GET /api/orderbook/{id}` on predictasiax.com answered every unknown market id with an empty book and `"mid":"0.50"`. Unknown ids now return `404 MARKET_NOT_FOUND`.
- `mid` is the midpoint only when the book has both sides and the spread is at most 0.10. Otherwise it is the market's reference price, where it used to be 0.50 for an empty or one-sided book.

#### SDKs

- Python `pax-api` 3.1.0 is on PyPI: `create_ws_token()`, and `PaxWSClient` mints a fresh sign-in token for every connect (it used to send the API key itself, which the server rejected). TypeScript `@predictasiax/api` 3.1.0 with the same changes is on npm.

## v2.7.9 — 2026-11-23

**Builder Portal accounts are activated with a single-use sign-in link instead of a delivered password; portal passwords are stored with PBKDF2; signed-in portal sessions load every page; password changes and session sign-outs take effect immediately; TypeScript SDK 3.0.1 is on npm.**

#### Builder Portal sign-in

- An access request approved by an operator no longer generates a portal password or an API key. The approval returns a single-use sign-in link for the applicant, valid for 72 hours. With it the applicant chooses their own password, then creates API keys under **API Keys** in the portal. Only a hash of the link token is stored, and issuing a new link revokes any earlier unused one.
- The portal's sign-in link page uses two public endpoints, both rate-limited per IP: `POST /v1/builder-credentials/signin-link/inspect` `{token}` returns the portal email and expiry, and `POST /v1/builder-credentials/signin-link/redeem` `{token, new_password}` sets the password. A link that is invalid, expired, revoked or already used returns `410 SIGNIN_LINK_INVALID`.
- Portal passwords need at least 12 characters (at most 200) with an upper-case letter, a lower-case letter and a digit. They are stored as PBKDF2-HMAC-SHA256 with a per-account salt; an existing password is re-hashed this way at its next sign-in.

#### Builder Portal sessions

- A signed-in portal session could not load pages served by the backend (attribution, revenue time series, pending balance, fee ledger and others): they returned `401` and the portal sent the user back to sign-in. They now load. `GET /v1/builders/me/tier` also accepts a portal session.
- `POST /v1/builders/me/password` and `POST /v1/builders/me/sessions/revoke-others` required a scope that no credential carried and always returned `403`. They now require a signed-in Builder Portal session; API keys and third-party app tokens get `403 ACCOUNT_SESSION_REQUIRED`.
- Setting a password with a sign-in link, changing the password, and signing out other sessions now end the affected sessions immediately. Before, those sessions kept working until they expired.

#### Authentication

- HMAC nonces are now consumed atomically in strongly consistent storage. Earlier on 2026-11-23 some correctly signed requests failed with `500` when the previous nonce store stopped accepting writes; that is fixed. If replay protection is unavailable, a signed request gets `503 SERVICE_UNAVAILABLE` and is not processed.
- `Idempotency-Key` records moved to the same storage. Behaviour is unchanged; two concurrent requests with the same key can no longer both run.

#### SDKs

- TypeScript `@predictasiax/api` 3.0.1 is on npm.

## v2.7.8 — 2026-11-23

**Public audit events no longer show account identifiers; webhook targets must be public hosts; `Idempotency-Key` works on every write; unknown market ids return 404; MM quotes need `mm:quote`; SDKs 3.0.1.** These changes came from security reports.

#### Audit log

- `GET /v1/audit/events/{seq}` without credentials replaces account identifiers in `payload` with `"[redacted]"`: user, builder, wallet, address, email and key ids, deposit and withdrawal tx hashes, and any other field that contains one of them (for example `credit_account: "user:…"`). Those responses carry `canonical: null`, `canonical_withheld: true` and `redacted_fields`, because the hashed string would reveal the redacted values. Merkle inclusion still verifies. Events that name no account are unchanged.
- Calling with an API key of the account an event names returns the full record and `canonical`. An event that also names another account (a counterparty or referrer) stays redacted for every caller.
- `payload` is served exactly as hashed: key names are no longer converted to snake_case, no `*_ms` fields are added inside it, and numbers stay numbers. A number with more digits than a double can hold is served as its exact decimal string. Every bound field now equals its value inside `canonical`.

#### Authentication

- HMAC: until the signature verifies, every failure returns `401 SIGNATURE_INVALID`, including an unknown key id, so key ids cannot be probed. The nonce is recorded only after the signature verifies. A request with both `Authorization: Bearer` and `PAX-*` signing headers returns `401 AUTH_INVALID`. Details in [Authentication](https://docs.predictasiax.com/auth#hmac).
- `POST /v1/mm/quotes` and `DELETE /v1/mm/quotes/{id}` require the `mm:quote` scope; keys without it get `403 SCOPE_MISSING`. The MCP `mm_quote_post` tool requires `mm:quote` and the composer tool requires `builder:apps:write`.
- WebSocket: the docs said `AUTH` accepts API keys and OAuth tokens. It accepts only a predictasiax.com web session token; API keys get `auth_denied` / `invalid_session`. Read account state over REST and receive events through webhooks. [Authentication](https://docs.predictasiax.com/auth) and the AsyncAPI spec are corrected.

#### Writes and webhooks

- `Idempotency-Key` is honored on every `POST`, `PUT`, `PATCH` and `DELETE` sent with `Authorization: Bearer` or `X-Api-Key`. Repeating a key returns the stored response (2xx, 400, 404, 409, 422) for 24 hours with `Idempotent-Replayed: true`. The same key with a different body returns `409 IDEMPOTENCY_BODY_MISMATCH`; while the first request is still running, `409 IDEMPOTENCY_IN_FLIGHT` with `Retry-After`. Keys are scoped to the credential, method and path.
- Webhook URLs must be `https://` on a public DNS name: IP address hosts, `localhost`, internal names, PredictAsiaX hosts, and ports below 1024 other than 443 are refused with `400 WEBHOOK_URL_INVALID`. The rule is checked again before each delivery, and deliveries do not follow redirects.

#### Markets and errors

- `GET /v1/markets/{id}/orderbook`, `/price-history`, `GET`/`POST /v1/fees/estimate` and `GET /v1/data/history` return `404 MARKET_NOT_FOUND` for an id that does not exist. They used to return 200 with a placeholder book, an empty list, or an error body with status 200.
- `/v1/fees/estimate` validates its input: `price` must be a number in (0, 1) and `size` a positive number, otherwise `400 VALIDATION_FAILED`.
- `GET /v1/data/history` returns the live history as `points: [{ts_ms, yes, no}]` (latest 500); `range` is validated.
- `500 INTERNAL_ERROR` and `502 UPSTREAM_ERROR` bodies are a generic message plus `trace_id`; quote the trace id to support. When the gateway's storage is temporarily unavailable it returns `503 SERVICE_UNAVAILABLE` with `Retry-After`.

#### SDKs 3.0.1

- The API base URL must be `https://` and the WebSocket URL `wss://`; plain `http://` / `ws://` are accepted only for localhost.
- Audit verification also checks that `event_type`, `payload` and the other top-level fields equal the values inside `canonical` (`fields_match_canonical`), so a response cannot pair an honest `canonical` with different fields. An event with `canonical_withheld` returns `ok: false` with a reason.
- Python: response bodies are read with a 10 MiB cap (`RESPONSE_TOO_LARGE`). TypeScript: a stored referral is kept; a `?ref=` in the URL is stored only when none is stored yet.
- Python `pax-api` 3.0.1 is on PyPI. The TypeScript `@predictasiax/api` 3.0.1 followed on npm the same day (v2.7.9).

#### Docs

- The OpenAPI spec marks the 37 read endpoints that need no credentials (`security: []`), among them the audit, leaderboard, LQF config, order book, price history, fee estimate and status routes.
- `GET /v1/audit/proof/{seq}` is documented with the path parameter and response fields it actually has (the spec named it `{evt_id}`).

## v2.7.7 — 2026-11-23

**Orders now have size, price and value limits on every API and FIX entry point; HMAC signatures are bound to the real HTTP method; account actions need a portal session; subaccount reads need `subaccounts:read`.** These changes came from security reports.

#### Orders

- `POST /v1/orders`, the batch endpoint, MM quotes and FIX now apply the same rules as the web app. `size`: plain decimal, at most 6 decimal places. `price`: at most 4 decimal places. Order value (`size × price`; MARKET: `size`): at least 1 USDT and at most 100,000 USDT. Numbers in exponent form (`1e-7`) are rejected.
- Before this the only check was `size > 0`, so an order of a few millionths of a share could reserve $0.00 and fill. New error codes: `INVALID_FIELD`, `BELOW_MIN_NOTIONAL`, `ABOVE_MAX_NOTIONAL` (all 400). Examples in these docs and the SDK READMEs that were under 1 USDT are updated.
- FIX: a `NewOrderSingle` that breaks these rules is rejected with an `ExecutionReport` carrying `OrdStatus=8` (Rejected) and `Text` set to `CODE: message`, for example `BELOW_MIN_NOTIONAL: order notional must be at least 1 USDT`.

#### Authentication

- HMAC: the signature always covers the method the request is sent with. `PAX-METHOD` / `POLY-METHOD` used to replace it, so a signature made for `GET` could be sent as `POST` on the same path. A `PAX-METHOD` header that names a different method now returns `401 AUTH_INVALID`; clients that do not send it, or send the real method, are unaffected.
- 2FA, team, payout wallet, payout settings and withdrawal actions need a signed-in Builder Portal session. API keys and third-party app tokens get `403 ACCOUNT_SESSION_REQUIRED`; withdrawals are also allowed to keys that hold `withdrawals:create`.
- Wallet sanctions screening fails closed: if screening cannot complete, the address is refused with `503 SANCTIONS_SCREEN_UNAVAILABLE` instead of being accepted.
- `GET /v1/subaccounts/balances` and `GET /v1/subaccounts/transfers` now require `subaccounts:read`, like every other subaccount endpoint (they accepted `portfolio:read`). Keys without `subaccounts:read` get `403 SCOPE_MISSING` on these two routes.

## v2.7.6 — 2026-11-23

**The audit log is now reproducible end to end, both SDKs work against the gateway again (3.0.0), and two gateway routes return live data for every market.** Several fixes here came from security reports; thank you to the researchers.

#### Audit log: event hashes can be recomputed

- `GET /v1/audit/events/{seq}` now returns `canonical`, the exact string that was hashed, plus `hash_recipe`: `event_hash = sha256_hex(prev_event_hash + canonical)`. The `payload` field is a display copy (numbers can be stringified or rounded) and cannot be used to recompute the hash; `canonical` can.
- `GET /v1/audit/proof/{seq}` now returns `leaf_index`, `leaf_count` and `expected_proof_length`. A valid proof has exactly that many 32-byte siblings. A verifier that accepts any length can be shown an interior node of the tree as if it were a leaf; `verify_algo`, `verify_snippet` and the [/verify](https://docs.predictasiax.com/verify) page now check the length and bind the leaf to the event.
- The algorithm is SHA-256 over sorted pairs of raw 32-byte digests. Earlier text called this OpenZeppelin-compatible; OpenZeppelin's `MerkleProof.verify` uses keccak256 and does not match. The Solidity sample on [/verify](https://docs.predictasiax.com/verify) uses SHA-256 and takes the expected length.

#### SDKs 3.0.0 (Python `pax-api`, TypeScript `@predictasiax/api`)

- 2.x could not authenticate: it built `/v1/v1/…` paths, sent the key as `X-Api-Key` (the gateway reads `Authorization: Bearer`), and signed HMAC requests with headers and a message format the gateway does not use. 3.0.0 targets `https://api.predictasiax.com`, sends `Authorization: Bearer sk_live_…`, and signs with `PAX-ADDRESS` / `PAX-TIMESTAMP` / `PAX-NONCE` / `PAX-SIGNATURE` exactly as described in [Authentication](https://docs.predictasiax.com/auth#hmac).
- The Python SDK generated a new `Idempotency-Key` on every retry attempt, so a retried write could run twice. Both SDKs now use one key per call, and the order helpers fix `client_order_id` before the first attempt.
- Merkle verifiers require the expected proof length and 32-byte elements; new event-hash and one-call verification helpers (`verify_audit_event` / `pax.audit.verify`).
- Methods now map to routes the gateway serves; methods with no route were removed. Upgrade notes are in each package's CHANGELOG.

#### Gateway

- `GET /v1/markets/{id}/orderbook` and `/price-history` returned empty data for market ids without a hyphen (they read a retired table). They now return the live book and history for every id.
- `GET /v1/markets/templates` was answered by the market-detail route and returned not-found. It now reaches the templates endpoint (API key required, like `GET /v1/markets`).
- `DELETE /v1/keys/self` revokes the calling key, sandbox keys included.
- On the web origin, `POST /api/v1/sandbox-keys` and `POST /api/v1/apply` return `410 ENDPOINT_MOVED` with the gateway URL to use. They used to fail with a 500 after creating a key the caller never received.

#### Docs

- The MCP endpoint is `https://mcp.predictasiax.com/mcp` (streamable HTTP, JSON-RPC). Pages that pointed clients at the legacy REST path `/mcp/call` are corrected.
- `security.txt` carries the fingerprint of the current PGP key.

## v2.7.5 — 2026-11-14

**Application status text now states the rules the API actually enforces, and both intake paths report the same tier.** One response field value changed; the rest is response text and documentation.

#### `POST /v1/access-requests` reports `tier: "self_serve"`

- It returned `"trade_capped"`, while `POST /v1/apply` returns `"self_serve"` for an identical key with identical caps ($100 / order · $1,000 / day). The handler's own comment already said the client should see `self_serve`; only its response disagreed. Both intake paths now report the same tier. The stored tier and every limit are unchanged.

#### Re-application rules corrected

- `POST /v1/access-requests` declines and `GET /v1/access-requests/{req_id}` said "you may re-apply after 90 days". The window intake actually enforces is **30 days**, keyed on the contact handle. The text now says so.
- `GET /v1/apply/{ba_id}` repeated the same 90-day line, but `POST /v1/apply` has no re-application window at all. The line is removed.
- The two status endpoints no longer carry text for `pending`, `under_review` and `nda_sent` — statuses no code path has written since the review queue was retired. That text promised reviewer triage, a compliance review and an NDA, none of which exist.
- An approved access request no longer reads "credentials will be delivered through your channel via 1Password" — that is true only for requests an operator approves by hand. A request approved automatically already received its API key, once, in the submission response, and the status text now says that.

#### Corrections to [v2.7.3](https://docs.predictasiax.com/changelog#v2-7-3)

- **Correction:** v2.7.3 documented `GET /v1/apply/{ba_id}` as returning `rejected` when "intake triage declines an application". `POST /v1/apply` has no intake triage and declines nothing at submit; a `rejected` record can only come from an operator, after the fact.
- **Correction:** v2.7.3 said only `approved` and `rejected` are reachable on both status endpoints. That holds for anything submitted today, but existing records can also read `withdrawn`. No current code path writes it, and both schemas now list it as a legacy value.

## v2.7.4 — 2026-11-13

**Three decisions taken rather than deferred: counts stop being serialized as money, marketplace listing loses its reviewer, and the PAX-holding graduation discount is removed instead of published.** [v2.7.3](https://docs.predictasiax.com/changelog#v2-7-3) left these three open as product calls. All three are now resolved in code on the live edge, and two of them change a response this spec published earlier the same day.

#### Row counts are numbers again, not money strings

- The response canonicaliser decides what to serialize as a decimal string by matching the field name, and its pattern claimed a bare `total`. Every `total` in this API is a row count, so `GET /v1/marketplace/listings` and `GET /v1/marketplace/listings/mine` were returning `"total": "0"` — a count typed as a currency amount. Both now return an integer, and [v2.7.3](https://docs.predictasiax.com/changelog#v2-7-3)'s schema note describing them as decimal strings is corrected.
- The exclusion list it checks was keyed on whole field names, so listing `total_count` exempted only that exact spelling — `total_referred_count` fell straight through. Counts are now matched by suffix, so any `*_count` is excluded by construction rather than by remembering to add it.
- Two fields were splitting the type of their own sibling in the same object: `total_score` shipped as a string beside a numeric `my_score`, and `min_fill_size` as a string beside a numeric `size`. Both are now numbers, matching the field they belong with. Genuine money is untouched and still serializes as a decimal string — `fee_total`, `total_fee`, `total_paid_usdt`, `amount`, `volume_30d_usdt` and the `caps` block all keep their existing type.

#### Marketplace listing: approved on submit, published on first fill

- `POST /v1/marketplace/listings/apply` no longer returns `status: "pending_review"` with "marketplace admin will review within 5 business days". It returns `status: "approved"`. PAX runs with one operator, so that queue had nobody to clear it — the same dead end the application path had until [v2.7.3](https://docs.predictasiax.com/changelog#v2-7-3) deleted its reviewed-track branch.
- Approval is not the same as publication. `GET /v1/marketplace/listings` now also requires the listed app to have recorded **at least one attributed fill**. That is the automated admission test standing in for the reviewer: `POST /v1/apply` is unauthenticated and the names on an application are whatever the applicant typed, so publication waits on something that cannot be typed. Unlike [the directory](https://docs.predictasiax.com/directory)'s rolling 30-day window this floor is permanent once crossed — a volume ranking should drop a quiet builder, a product marketplace should not delist a real integration for having a slow month.
- There is no volume *amount* to reach: one fill is the whole bar. The invented "cross $10k attributed volume" precondition removed in v2.7.3 has not come back in another form.
- `pending_review` and `draft` remain legal values on the stored row for records created out of band, and `disabled` / `delisted` remain the abuse remedies. Only the submit path changed.

#### The PAX-holding graduation discount is gone, not published

- v2.7.3 gated this behind its own flag and left the publish-or-remove call open. It is removed. The mechanism multiplied a holder's attributed-volume graduation requirement *down* by up to 70%, so publishing it would have meant advertising two different ladders for one tier. Same tier means the same effective threshold for everyone, which is a hard rule here, and a ladder whose real rung depends on an unpublished token balance is exactly the hidden per-user adjustment that rule exists to forbid.
- Excised rather than left dormant so it cannot be switched back on: the threshold multiplication is gone from the graduation cron, the helper and its export are removed, and the per-tier values are removed from the holder-tier definitions and from the `benefits` block the holder-tier API returns — no surface advertises a perk that no longer exists. The published **$10,000 / 30 d** for `trade_full` is now unconditional for every builder, which is what [How Tiers Work](https://docs.predictasiax.com/how-tiers-work) has been saying all along. Live behaviour does not change; the discount was already zero.

#### Verified end to end

- A real `POST /v1/apply` on the `genesis` track — the track that returned no key at all until v2.7.3 — now returns `auto_provisioned: true`, `status: "approved"`, a live key, `tier: "self_serve"` and `caps` of `{"max_order_usdt": "100", "daily_notional_usdt": "1000"}`, matching the sample on [Onboarding](https://docs.predictasiax.com/onboarding) field for field. `GET /v1/apply/{ba_id}` reports `approved` for the same record, so the POST, the GET and the stored row agree. The probe's builder record was reclassified as a test record and its key revoked at both the edge and upstream immediately afterwards.

## v2.7.3 — 2026-11-13

**Code, not docs: five published promises that the API did not actually keep are now kept.** [v2.7.1](https://docs.predictasiax.com/changelog#v2-7-1) and [v2.7.2](https://docs.predictasiax.com/changelog#v2-7-2) corrected numbers the docs got wrong. This release goes the other way — auditing the docs against the handlers surfaced five places where the *code* was wrong, and those are fixed on the live edge. One response field set changed; everything else is additive or invisible.

#### Applications now create live builders, so auto-graduation can actually happen

- Both public intake paths (`POST /v1/apply`, `POST /v1/access-requests`) hardcoded `is_test = 1` on the builder record they created. The graduation tick only considers live records, so **no builder created through public intake could ever reach `trade_full`** — while the same handler's `next_step` promised exactly that at $10,000 / 30 d. Public intake is the only intake, so it now writes live records and the published ladder applies to the keys it hands out.
- That makes the unreviewed `org` field on an application publicly consequential, so the two public surfaces that read live builder records grew their own admission test rather than trusting caller-supplied text. [Builder Directory](https://docs.predictasiax.com/directory) (`GET /v1/builders/public`) now requires **at least one attributed fill in the 30-day window** — a directory that ranks on volume has nothing to say about a builder with none. Marketplace listing became opt-in (below).
- Housekeeping in the same pass: the 9 test, QA and probe builder records created since the environment split was introduced were reclassified as test records. No tier, status, or key was changed — only the live/test flag. The directory was publishing them. The genesis roster was not — it could not publish anything (below) — but all 9 carried the `genesis` tier, so repairing that query without this pass would have turned an empty cohort straight into a cohort of 9 probe records.

#### `genesis` and `institutional` really do auto-provision now (the [v2.7.0](https://docs.predictasiax.com/changelog#v2-7-0) promise, actually shipped)

- v2.7.0 announced that all 20 tracks auto-provision and that the reviewed-track branch was gone. **It was not gone.** Those two tracks still took the review branch on the live edge: `auto_provisioned: false`, `status: "pending"`, "we'll email you within 5 business days", a row in a queue with no consumer, and *no API key*. The branch is now deleted — not flag-disabled — so it cannot be switched back on without also re-publishing the review promise. All 20 tracks fall through one auto-provision path.
- No new capability comes with this. Every track provisions at identical caps, and the `mm:quote` scope the two reviewed tracks carried already shipped on two unreviewed tracks.
- The `POST /v1/apply` 200 body now carries `status: "approved"`. It previously had no `status` field at all — only the deleted review branch ever returned one — so the `status: "auto_approved"` published on six pages named a value this API has never returned. `approved` is the value stored on the application record and the value `GET /v1/apply/{code}` reports, so the POST, the GET, and the stored row now share one vocabulary.

#### Marketplace listing is opt-in and actually works

- `POST /v1/marketplace/listings/apply` was a black hole. Its `INSERT` named two columns that do not exist and omitted both required ones, so it threw on **every** call — and the throw was swallowed, so the endpoint returned a `listing_id` and "approved within 5 business days" while writing nothing. `GET /v1/marketplace/listings/mine` selected the same nonexistent columns and so was always empty. Both now match the live table, and a failed write returns an error instead of a fake success.
- `GET /v1/marketplace/listings` did not read listings at all — it read the app registry, publishing **every approved app with no opt-in from its builder**, while genuinely submitted listings could never appear. It now reads approved listings only, which is what its own summary and [For Builders](https://docs.predictasiax.com/builders) always described. **Response field set changed** accordingly (listing fields plus the owning builder's public identity; previously app-registry fields). The former shape was never published in the spec — this endpoint shipped as a bare `200 OK` stub — and both it and the submit, mine, genesis-roster and directory endpoints now carry full request/response schemas.
- [Case Studies](https://docs.predictasiax.com/case-studies) rendered this endpoint using eight field names it has never returned — `product_name`, `name`, `product_url`, `tracks`, `volume_30d_usd`, `fills_30d`, `time_to_first_fill_hours` and `badge` — so every card would have shown blanks and em dashes. Rewritten against the real contract (`title` / `app_name`, `homepage_url`, `verified_badge`, `tier`, `jurisdiction`, `approved_at_ms`), and the page no longer claims its metrics come from two endpoints it does not call. Its "cross $10k attributed volume" precondition for listing was also invented — there is no volume threshold on listing.

#### Genesis roster reported an empty cohort unconditionally

- `GET /v1/marketplace/genesis` filtered on `status IN ('active','approved','pending')`. Two of those are **not legal values for that column** — the CHECK allows `pending` / `genesis` / `verified` / `partner` / `disabled` — and migration 0007 normalised every lifecycle status to `verified`, so the one legal value could not match a granted builder either. `filled` was therefore **always 0** and `cohort` always empty, regardless of who held the tier. It also counted `partner` — a different programme — against the 20 genesis slots. Now: genesis tier, live, verified.

#### The PAX-holding graduation discount got its own switch

- A dormant holder perk multiplied *down* the attributed-volume requirement for graduation, letting a token holder graduate on less volume than the published $10,000 / 30 d. It had no flag of its own — the master holder-tier switch zeroed it only as a side effect. Flipping that master switch on to ship an unrelated holder perk would therefore have made the published graduation threshold silently untrue for holders, with no separate decision taken. It is now gated behind its own flag, default off, mirroring how the holder fee discount is already gated. **Live behaviour is unchanged** — the discount was already zero — but enabling it is now an explicit, reversible act, and the effective threshold has to be published first. Same-tier / same-effective-threshold stays a hard rule.

#### Docs corrected against the handlers

- `status: "auto_approved"` → `status: "approved"` on [For Builders](https://docs.predictasiax.com/builders#flow), [Request access](https://docs.predictasiax.com/request-access) (sample + the live success banner), [Onboarding](https://docs.predictasiax.com/onboarding) (sample + the every-track note), [FAQ](https://docs.predictasiax.com/faq#how-get-key), and the [v2.7.0](https://docs.predictasiax.com/changelog#v2-7-0) entry above.
- The apply-response samples on Onboarding and Request access gave `user_id` as an `app_*` id; it is the `bld_*` builder id, and the samples were missing `builder_id`, `app_id`, `api_key_id`, `client_id`, `tier`, `caps`, `portal_url` and `notice`. Onboarding now shows the full body.
- OpenAPI: the `POST /v1/apply` description still said "Genesis + institutional applications are queued for human review (5 business days)" and its 200 said the key comes back only "if auto-provisioned". [Directory](https://docs.predictasiax.com/directory#raw) claimed the endpoint returns three lifecycle values; it filters on one.
- The Case Studies listing renderer escaped only `<` on builder-supplied text and interpolated a builder-supplied URL straight into an `href`. It now escapes the full set and requires an http(s) scheme client-side as well as on write.
- The two status-poll endpoints — `GET /v1/apply/{ba_id}` and `GET /v1/access-requests/{req_id}` — were schema-less stubs. Both now document their real response bodies, their 30 / hour / IP limit, and the fact that only `approved` and `rejected` are reachable: intake resolves on submit, so there is nothing to wait for. The Postman collection carried the retired "queued for human review (5 business days)" blurb on `POST /v1/apply` and an `nda_sent` sample status that no code path can write; both are replaced.
- The `MMTier` schema documented a four-rung market-maker tier system — with per-rung notional and inventory ceilings, two "admin-approved" rungs and a "signed agreement" rung — hung off `POST /v1/mm/apply`. **That endpoint does not exist**, no request or response on this API references the schema, and quote-sizing and inventory ceilings are per-key risk limits (`GET` / `PUT /v1/mm/me/risk-limits`), not a property of a tier. It is now marked reserved, pointing at the real entry point: `POST /v1/mm/designation-request`, which carries no tier and sets a fixed 20 bps rebate.

## v2.7.2 — 2026-11-13

**Entry-tier caps corrected, and the `POST /v1/sandbox-keys` contract in the OpenAPI spec replaced with the one the endpoint actually serves.** Documentation and spec corrections only; no request/response shape changed and no live limit moved. [v2.7.1](https://docs.predictasiax.com/changelog#v2-7-1) fixed the `sandbox`-minted-as-`self_serve` mislabel on the sandbox path — this release fixes the mirror-image error on the application path, where the `self_serve` rung was published carrying sandbox's caps.

#### `self_serve` is $100/order · $1,000/day — not $10 · $100

- Six pages described the key returned by `POST /v1/apply` as landing on `self_serve` with "$10/order, $100/day caps", several of them adding that this is "the same tier as an anonymous sandbox key" with "the same conservative caps as sandbox". The caps attached to that key are the `self_serve` defaults — **$100/order · $1,000/day**, a 10× rung above sandbox — so applicants were told their key was 10× more restricted than it is.
- Corrected on [For Builders](https://docs.predictasiax.com/builders#flow) (flow step 3 and the starting-tier FAQ), [Request access](https://docs.predictasiax.com/request-access) (track table caption and the live success banner the form renders after a successful mint), and [Onboarding](https://docs.predictasiax.com/onboarding) (the apply-response walkthrough and the auto-graduation section).

#### How Tiers Work — `sandbox` and `self_serve` split into separate rungs

- The ladder's entry box collapsed both mint paths into one "Self-serve" rung at $10/order · $100/day, described as minted "via `POST /v1/sandbox-keys` or any `POST /v1/apply` track". They are two different tiers with different caps. The ladder is now **six linear rungs** plus the genesis ranking overlay, with `sandbox` ($10 · $100, simulated fills, 30-day key expiry) and `self_serve` ($100 · $1,000, persistent org-tagged key) shown separately.
- The same box still claimed "the isolated sandbox at `sandbox.predictasiax.com` mints `sk_test_`" — the separate-host sandbox retired in [v2.0.0](https://docs.predictasiax.com/changelog#v2-0-0). `POST /v1/sandbox-keys` mints an `sk_live_` key on the production host; the tier flag is what caps it.
- "There is exactly one gate — volume" now also names the second condition the graduation tick checks: no open abuse flag on the builder record. Still no human review and still `admin_signoff: false` on every rung.

#### OpenAPI — `POST /v1/sandbox-keys` request, response, and quota rewritten from the handler

- The documented 200 body described an internal shape that the endpoint does not return: `ok`, `key_id` (integer), `key_prefix`, `api_key`, `user_id`, `org_name`, `expires_at` (date-time) and `limits`. The endpoint returns the standard `{ data, meta }` envelope with `sk`, `api_key_id`, `builder_id`, `app_id`, `tier`, `caps`, `expires_at_ms`, `sandbox_url`, `docs_url`, `upgrade_url` and `notice`. `caps` values are decimal *strings*, not numbers — the old schema typed them as `number`.
- Request body: `org_name` was marked required at `maxLength: 80`; it is optional (defaults to `Sandbox Builder`) and truncates at 100. The documented `contact_email` field does not exist — the handler reads `contact_handle`.
- Mint quota was published as "5 mints / hour / IP". The real limit is **1 mint / IP / day** *and* **1 mint / browser fingerprint / day**, and both must clear — the figure [Sandbox](https://docs.predictasiax.com/sandbox/) has carried all along. The operation description and the 429 response text now say so.
- Operation description and the `Sandbox` tag text said the mint returns `tier=self_serve`; it returns `tier=sandbox`. The `bearerAuth` security-scheme tier list was missing `sandbox` entirely. `downloads/openapi.yaml`, `downloads/openapi.json` and `downloads/postman.json` regenerated in step.
- Application-path mislabels on the same theme: the `TIER_LIMIT_EXCEEDED` example on [Error Codes](https://docs.predictasiax.com/errors) showed `"tier": "self_serve"` beside a `"cap": "10"` (a cap only `sandbox` carries), and the SDK trade comment on [Downloads](https://docs.predictasiax.com/downloads) labelled the $10 · $100 step `self_serve` when the snippet above it mints a sandbox key. The [Sandbox](https://docs.predictasiax.com/sandbox/) sample response had a stale `upgrade_url` and omitted `notice`.

## v2.7.1 — 2026-11-13

**Tier surface reconciled against the enforcing code — published thresholds, the genesis floor, and the `BuilderTier` spec text now match what actually gates an order.** Documentation and spec corrections only; no request/response shape changed and no live limit moved.

#### `trade_full` graduates at $10,000 (corrects the $50,000 figure published in [v2.7.0](https://docs.predictasiax.com/changelog#v2-7-0))

- The gate that actually caps a builder order is the per-key `max_order_usdt` check on the API edge, and its graduation tick has always promoted `trade_capped` → `trade_full` at **$10,000** of 30-day attributed volume. The docs and the Node-side ladder advertised $50,000, so builders were told to route 5× more volume than the enforcing code requires.
- The `trade_full` graduation threshold, the admin-bridge copy of the same table, and the `ladder[]` returned by `GET /v1/builders/me/tier-progress` are now **$10,000** — one number across the whole platform. Every rung stays `admin_signoff: false`; nothing about enforcement changed, only the published threshold and the Node-side ceiling that mirrors it.
- Guide pages swept to the same figure: builders, directory, getting-started, grants, how-tiers-work, onboarding, rate-limits, request-access, sandbox, tier-progression (including `meta description` tags and the worked `tier-progress` response example).

#### Genesis floor decoupled — its own $50,000 constant

- The genesis top-20 reconciliation previously read its volume floor off the `trade_full` threshold (the "floored at the `trade_full` threshold" wording in [v2.7.0](https://docs.predictasiax.com/changelog#v2-7-0)). With `trade_full` stated at $10,000 that coupling would have silently dropped the floor 5× and contradicted the `genesis_program.floor_usdt` already reported by `GET /v1/builders/me/tier-progress`.
- The floor is now a dedicated genesis threshold — **$50,000**, unchanged from what the API has been reporting all along, and independent of the linear ladder. Mechanism is otherwise identical: top `BUILDER_GENESIS_SLOTS` (default 20) by 30-day attributed volume, auto-granted and auto-revoked past a 5-slot hysteresis band, logged as `tier_genesis_grant` / `tier_genesis_revoke`.

#### OpenAPI `BuilderTier` — fabricated tier perks removed

- The `BuilderTier` schema description in `openapi/v1.yaml` (and the `downloads/` JSON + YAML artifacts) still carried claims with no implementation behind them: "admin operator approval required" on `trade_full` and `genesis`, "signed partner/institutional agreement" on `partner`, a **10× rate multiplier** for `genesis`, "up to **20× rate multiplier**, dedicated infra" for `partner`, "early access to unreleased endpoints", and an auto-graduation ceiling of `trade_capped`. None of these exist in code — the rate limiter takes no tier input, so **request rate limits are identical at every tier**, and the cron ceiling has defaulted to `partner` since v2.7.0.
- Replaced with the per-tier default caps as coded (`sandbox` $10/order · $100/day, `self_serve` and `trade_capped` $100/order · $1,000/day, `trade_full` / `genesis` / `partner` uncapped), plus three facts the old text omitted: a per-key `max_order_usdt` / `notional_cap_usdt_per_day` overrides the tier default, `read_live` rejects orders with `TIER_UPGRADE_REQUIRED`, and `POST /v1/sandbox-keys` mints tier `sandbox` with a 30-day key expiry.
- The same "early API access" / "early endpoint access" perk was attached to `genesis` on seven guide pages (authentication, FAQ, builders, grants, onboarding, request-access, tier-progression) and is gone everywhere — genesis pays a **10 bps** combined builder fee share, it does not unlock endpoints and it does not raise rate limits. No tier does. On [For Builders](https://docs.predictasiax.com/builders#tiers) the "Early access to unreleased APIs" comparison row was replaced with the one thing the tier actually lifts: uncapped notional.

#### Getting Started — Step 1 response matched to the live mint

- The `POST /v1/sandbox-keys` example on [Getting Started](https://docs.predictasiax.com/getting-started) showed an internal response shape (`ok` / `key_id` / `api_key` / `limits`) and claimed the minted key came back on `self_serve`. The public endpoint returns the standard `{ data, meta }` envelope with `sk`, `api_key_id`, `builder_id`, `app_id`, `tier: "sandbox"`, `caps` and `expires_at_ms` — now reproduced verbatim, matching the example that [Sandbox](https://docs.predictasiax.com/sandbox/) already carried. The `TIER_LIMIT_EXCEEDED` and attribution snippets on the same page were corrected to `tier: "sandbox"` to match.
- [Rate Limits](https://docs.predictasiax.com/rate-limits#upgrade) no longer labels the $10/order · $100/day row `self_serve`: those caps are the `sandbox` tier defaults, and the row now names the one route that mints it. The [Unauthenticated reads](https://docs.predictasiax.com/rate-limits#ip-limit) paragraph made the same slip — minting a key moves you off the anonymous IP budget onto the standard per-key budget, and the key is `tier=sandbox`. There is no per-tier "baseline" to raise: the per-scope limits are the same at every tier.
- The same `sandbox`-minted-as-`self_serve` mislabel sat on six more pages and is fixed in every place it appeared: the [home page](https://docs.predictasiax.com/) quickstart ("sandbox is differentiated by `tier=self_serve`") and the API Key card beside it, the [Postman import](https://docs.predictasiax.com/downloads#postman-import) step and both SDK quickstart comments, the [For Builders FAQ](https://docs.predictasiax.com/builders#faq) and the "Tier-flagged API keys" card on the same page, the [API Terms](https://docs.predictasiax.com/api-terms) definition of "Sandbox", the T0 lane and the "Cap enforcement" paragraph on [Tier Progression](https://docs.predictasiax.com/tier-progression), and the key-prefix answer on the [FAQ](https://docs.predictasiax.com/faq#key-prefix). Several of them additionally attributed the $10/order · $100/day caps to `self_serve` — those caps belong to `sandbox`; `self_serve` is a separate rung at $100/order · $1,000/day, and the T0 lane now shows both sets.

## v2.7.0 — 2026-11-11

**Single-operator automation — every access, tier, payout, and dispute path that used to wait on a human now clears itself.** No wire-breaking changes: request and response shapes are unchanged. What changed is that the manual review / approval steps behind them are retired. PredictAsiaX runs as a one-operator venue, so a queue with no one to clear it is a permanent freeze — access is gated by on-chain-attributable volume downstream, never by a human sign-off.

#### Application intake — all tracks auto-provision (supersedes the reviewed-track routing in [v2.2.2](https://docs.predictasiax.com/changelog#v2-2-2) / [v2.0.0](https://docs.predictasiax.com/changelog#v2-0-0))

- `POST /v1/apply` returns a live `sk_live_*` key on submit for **all 20 tracks**. The `genesis` and `institutional` tracks — previously "routed to human review" — now auto-provision like every other track: `auto_provisioned: true`, starting on `self_serve` ($100 / order · $1,000 / day). There is no reviewed-track branch, no admin Telegram / email handoff, and no `pending_review` state on the apply path.
- **Correction ([v2.7.3](https://docs.predictasiax.com/changelog#v2-7-3)):** for the two reviewed tracks this entry described intent, not shipped behaviour. The reviewed-track branch was still live on the API edge until 2026-11-13 — `genesis` and `institutional` kept returning `auto_provisioned: false` with no key. The response also carried no `status` field at all, so the `status: "auto_approved"` originally quoted here was a value the endpoint never returned. Both are fixed as of v2.7.3; the live value is `status: "approved"`. The `self_serve` caps quoted here were also sandbox's, corrected above per [v2.7.2](https://docs.predictasiax.com/changelog#v2-7-2).
- On `POST /v1/apply`, `institutional` is a label only — it provisions the same `self_serve` key as any other track. Capability comes from the volume-driven tier flag on the key, not from the track name. There is no separate negotiated-contract branch.

#### Tier auto-graduation — ceiling raised to `partner` (supersedes the `trade_capped` cap in [v2.2.2](https://docs.predictasiax.com/changelog#v2-2-2))

- The auto-graduation ceiling changed from `trade_capped` to `partner`. The linear ladder now promotes the whole way on 30-day attributed trading volume with `admin_signoff: false` on every rung: `self_serve` → `read_live` ($100) → `trade_capped` ($1,000) → `trade_full` ($50,000) → `partner` ($1,000,000). The "higher tiers require admin operator approval" step from v2.2.2 is gone.
- Promotes up only; 24-hour dedup per builder; every step writes `builder_attribution_log` with `event='tier_auto_graduate'`. Progress is observable at `GET /v1/builders/me/tier-progress`.

#### Genesis — a live top-N ranking, not an application destination

- Genesis is no longer a threshold tier you graduate *into*, and never a track you apply for. A reconciliation pass holds genesis for the top `BUILDER_GENESIS_SLOTS` builders (default **20**) by 30-day attributed volume, floored at the `trade_full` threshold so it is never granted on a quiet day. Grant and revoke are automatic, with a hysteresis band (`BUILDER_GENESIS_REVOKE_SLACK`, default 5 slots) to stop boundary flapping. Writes `tier_genesis_grant` / `tier_genesis_revoke` to `builder_attribution_log`. A genesis holder still auto-graduates to `partner` at $1,000,000.

#### Builder & creator payouts — amount-scaled time-lock replaces the multi-approver hold

- Self-serve `POST /v1/builders/me/settle` (and the creator equivalent) aggregates unsettled `financial_event` rows, runs the hard-stop guardrails (KYT / OFAC / anomaly / cap checks) *before* anything is scheduled, then opens a `withdrawal_state` row that serves an **amount-scaled hold** (`lib/amountScaledHold`) and broadcasts on-chain automatically once `hold_until` passes. Larger amounts hold longer; they are never frozen for a human approver.
- The earlier "payouts ≥ $10,000 require 2 distinct admin approvers" dual-control policy is retired. Both settle paths set `withdrawal_state.status = 'pending'` unconditionally; the `pending_admin_review` approve / reject queue is no longer written by any code path (left in place dormant, slated for removal).

#### Oracle disputes — economic bond adjudication, no permanent freeze

- Disputes are driven by public, on-chain bonds (`dispute_bond_ledger`) — anyone can post a challenge bond, and the chain-watcher auto-marks receipt. the dispute-bond adjudicator then drives every received bond to a **terminal** outcome: escalate, then resolve. A dispute that cannot be auto-decided after the attempt / age cap resolves to a terminal 50/50 VOID rather than parking in a manual-freeze state. No disputed market waits on an operator.

#### Docs aligned

- The guide surface (onboarding, request-access, authentication, tiers / tier-progression, rate-limits, sandbox, directory, markets, FAQ, security, compliance) was swept to match the above: removed "human review", "an admin operator will contact you", NDA / signed-agreement / negotiated-fee-split language, the `trade_capped` auto-ceiling, and the ≥$10k multi-approver payout line. Genesis is described everywhere as the live top-20 volume ranking; partner as the top auto-graduated tier.

## v2.6.1 — 2026-09-26

**PAF math clarity + MCP tool-count sync — spec doc updates, no behavior changes.**

#### PAF effective range corrected across docs + builder portal

- Because the raw curve is `PAF_BASE × 4·p·(1−p)` and `4·p·(1−p)` peaks at **1** when `p = 0.5`, the raw curve mathematically cannot exceed `PAF_BASE`. With default `PAF_BASE_BPS = 20`, the effective per-fill taker fee is **8–20 bps**, not "8–25 bps".
- Fixed on 6 pages (`fee-architecture`, `faq`, `index`, `creator-economy`, `grants`, `onboarding`) + `builder.predictasiax.com` meta description and Fees section. `PAF_CEILING_BPS = 25` is now clearly labelled as a *dormant configurable safety cap* — only active if PAF_BASE is raised above 20 in a future tuning.
- Added explicit accounting-scaling note in `fee-architecture#trading-fee`: the 7-actor split bps in the tier tables are shares at PAF centre; each actor's absolute allocation on a given fill scales proportionally with the effective clamped fee, so `Σ actor_allocation = effective_taker_fee` always. Verifiable via `Σ financial_event.amount_usdt = fill.taker_fee_usdt` per `trade_id`, or by calling `POST /v1/fees/estimate`.

#### MCP tool count synced to runtime `tools/list`

- MCP root JSON and `manifest.json` both report `tools_count: 44`; runtime `tools/list` also returns 44. Docs updated to match:
  - `security.html`: "41-tool MCP server" → "44-tool"
  - `builders.html`: "7 tools" → "44 tools"
  - `onboarding.html`: two "7 tools" refs → "44 tools"
- **Known backend drift (tracked separately):** MCP root's `tool_categories` array sums to 41 (3 tools missing from category labels), and the JSON-RPC `initialize` `instructions` string still says "41 tools". Runtime `tools/list` = 44 is authoritative; category breakdown + initialize instructions to be re-derived in a follow-up MCP release.

## v2.6.0 — 2026-09-25

**OpenAPI completeness sweep — 20 new documented operations to close the gap between backend routes and the public spec.** Additive only, zero breaking changes. Complements the same-day dual-secret webhook rollover ship + Idempotency-Key drift sweep.

#### New endpoints documented in OpenAPI

- **Webhook lifecycle (6):** `GET /v1/webhooks/{id}`, `PATCH /v1/webhooks/{id}`, `DELETE /v1/webhooks/{id}` (soft-disable), `GET /v1/webhooks/{id}/deliveries`, `POST /v1/webhooks/{id}/deliveries/{evt_id}/replay`, `POST /v1/webhooks/{id}/test`. Response shapes include `secret_scheme`, `grace_expires_at_ms`, `in_grace` for the v2_raw dual-signing path.
- **Markets public data (2):** `GET /v1/markets/{id}/orderbook` (depth 1-20, side yes/no/both), `GET /v1/markets/{id}/price-history` (range 1h/6h/1d/7d/30d/90d, ≤500 points).
- **Composer (3):** `GET /v1/composer/proposals` list, `GET /v1/composer/proposals/{prp_id}`, `GET /v1/composer/templates/{tpl_id}`.
- **Subaccounts (4):** `GET /v1/subaccounts/{id}` (with balance + risk-limits join), `GET/POST /v1/subaccounts/{id}/grants`, `DELETE /v1/subaccounts/{id}/grants/{grn_id}`.
- **Liquidity (2):** `DELETE /v1/mm/quotes/{id}` (cancel resting/partial), `GET /v1/rfq/{id}` (requester full view, MM redacted view).
- **Connect (1):** `DELETE /v1/orders/{id}` canonical cancel (`POST /v1/orders/{id}/cancel` alias documented as equivalent).
- **Audit + Sandbox (2):** `GET /v1/audit/proof/{evt_id}` (chain-replay verification), `GET /v1/access-requests/{req_id}` (poll access-request status).

#### Removed + renamed

- **Removed phantom `GET /v1/apps/{id}`** — backend never had this handler; only `GET /v1/apps` list + `POST /v1/apps/{id}/rotate-secret` + `/keys` sub-routes exist.
- **Renamed path param `/v1/apply/{code}` → `/v1/apply/{ba_id}`** to match backend regex `ba_[0-9a-zA-Z]{6,32}`. Cosmetic — same wire path.

#### Wording + error catalog

- `markets.html` — legacy `/api/creator/markets/*` and `/api/catalog/*` references replaced with the real `/v1/composer/markets` + `/v1/composer/proposals` + `/v1/composer/templates` paths + full submit-body example matching `createComposerProposal`.
- `grants.html` — retired the "20 % of platform fee" legacy stub in favour of the tier-scaled acquisition + execution buckets under PAF; removed phantom "0-50 bps maker" additive (backend only supports 0-100 taker additive); 4-way LP/treasury/builder/creator description → 7-actor PAF; `/v1/access-requests/{id}` → `/{req_id}`.
- `errors.html` — `INSUFFICIENT_BALANCE` → `BALANCE_INSUFFICIENT` (backend spelling); added 4 real backend codes previously undocumented: `MARKET_NOT_FOUND`, `SANCTIONS_HIT`, `CONFLICT`, `SERVICE_UNAVAILABLE`; tagged HMAC codes as *reserved · enterprise HMAC*, MCP codes as *reserved · MCP subsystem*, receiver-side webhook codes as *receiver-side* (PAX doesn't emit these — the user's webhook receiver returns them).
- Builder portal (`builder.predictasiax.com`) meta description "5-actor revenue split" → 7-actor PAX Adaptive Fee Curve (initially phrased "8-25 bps taker + LQF 3-8 bps maker rebate"; the "8-25" wording was corrected to "8-20 bps effective taker" in [v2.6.1](https://docs.predictasiax.com/changelog#v2-6-1)). SEO / LLM crawlers had cached the old summary.

#### Artifacts regenerated

- `downloads/openapi.json`, `downloads/openapi.yaml`, `openapi/v1.yaml` (canonical), `downloads/postman.json` (all 76 ops), `llms-full.txt` (regenerated from HTMLs). Counts across index/downloads: 54 paths / 57 ops → **69 paths / 76 ops** across 16 tag groups.

## v2.5.0 — 2026-09-24

**PAX Adaptive Fee Curve (PAF) + Liquidity Quality Framework (LQF) — full replacement of the flat-fee + weekly-rollup model.** Root-cause ship of the MM incentive redesign — snapshots become autonomous, payouts become daily, fees become price-adaptive.

#### Adaptive Fee Curve (PAF)

- **Formula:** `taker_bps = clamp(PAF_BASE × 4 × price × (1-price), PAF_FLOOR, PAF_CEILING)`. Defaults: `BASE=20 · FLOOR=8 · CEILING=25`. Extreme prices (`<0.10` or `>0.90`) hit the 8 bps floor — competitive with volume-cashback venues without giving away free trades.
- **Maker rebate:** quality-scaled 3-8 bps via `rebate_bps = 3 + 5 × lqf_score`. Old flat 2 bps rebate retired.
- **Attribution:** 6-actor split extended to **7-actor** with new `mm_stipend_pool` bucket (5 bps at auto tier, 4 bps at genesis). Bucket funds daily LQF payouts; no longer routes through the LP holder cron.
- **Env:** `PAF_ENABLED=on` (default on after v2.5.0), `PAF_BASE_BPS=20`, `PAF_FLOOR_BPS=8`, `PAF_CEILING_BPS=25`, `PAF_MAKER_REBATE_BPS=3`, `PAF_MAKER_REBATE_MAX_BPS=8`.

#### Liquidity Quality Framework (LQF)

- **3-layer score:** proximity² × balance × continuity. Filtered fair price (dust-resistant, ≥$10 orders only) replaces naive mid. Balance rule: two-sided required at price extremes, single-sided allowed with 1/3 penalty in [0.10, 0.90] range.
- **60 s snapshot cron** — autonomous, leader-only, single-leader. Independent of quote-post events — MMs cannot game score by posting-and-cancelling.
- **Daily 00:15 UTC payout cron** — computes `user_share × market_liquidity_stipend`, writes a payout record + a balance credit. At most one payout per account, market and day.
- **5-min accumulator** — sweeps `FEE_MM_STIPEND` events into per-market stipend pool.
- **DDL:** new tables `market_lqf_config` (per-market `max_qualifying_spread_bps`, `depth_floor_usdt`, `daily_stipend_usdt`), `mm_quality_snapshots`, a payout record, `mm_stipend_pool_ledger`.
- **New endpoints:** `GET /v1/mm/stipend/estimate` (real-time forecast), `GET /v1/mm/stipend/history`, `GET /v1/liquidity/leaderboard` now returns `lqf_score` + `continuity_pct` + `estimated_stipend_next_epoch`.

#### Retired

- The previous weekly rollup — replaced by daily LQF payout. Old `mm_lp_positions` data preserved 90 days for audit.
- Flat 30 bps taker fee — replaced by `PAF_BASE_BPS = 20`.
- Flat 2 bps `MAKER_REBATE_BPS` — replaced by quality-scaled 3-8 bps.

#### Migration

Existing `fee_ledger` and `financial_event` rows preserved unchanged. New PAF/LQF entries carry `fee_bps` = effective PAF value (not flat 30). CF Worker `apps/api/src/index.ts` `DEFAULT_FEE_BPS` aligned from 400 (simulation) to 20 (mirrors VM PAF_BASE). Docs, SEO, and 14 locales updated in the same release.

## v2.4.1 — 2026-09-06

**100% top-tier polish — 8 remaining gaps closed after v2.4.0 fee-ledger ship.**

#### Backend

#### SDKs bumped to v2.4.0

- `@predictasiax/api@2.4.0` ships new `pax.settle.me()` / `pax.settle.adminBuilder()` / `pax.settle.adminCreator()`.
- `pax-api==2.4.0` ships new `pax.settle_self()` / `pax.admin_settle_builder()` / `pax.admin_settle_creator()`. Also auto-injects `Idempotency-Key` on POST/PUT/PATCH/DELETE and supports `extra_headers`.

#### Docs + spec

- New [**/fee-architecture**](https://docs.predictasiax.com/fee-architecture) — comprehensive reference for the trading fee, its split and LP distribution, file paths, ledger event taxonomy, payout flow. For auditors, VC due-diligence, and builder onboarding.
- OpenAPI spec adds `/v1/builders/me/settle`, `/v1/admin/builders/{userId}/settle`, `/v1/admin/creators/{userId}/settle`.
- Frontend fee-text drift fixed: `components/LimitOrderForm.js` feeEstimate 50 bps → 30 bps; three `/learn` pages (builder-tiers-comparison, attribution-and-builder-programs, prediction-market-vs-futures) updated in both English and Chinese to reflect 30 bps + progressive tier.

## v2.4.0 — 2026-09-06

**Complete fee accounting — LP fee distribution, dynamic fee (env-gated).** Closes architectural gaps found in the fee-flow audit.

#### Added — LP fee distribution

- **The LP fee distribution job** — hourly cron aggregates unsettled `FEE_LP` events (12 bps at auto tier, 5-7 bps at higher) and distributes pro-rata to active `lp_positions` by `shares`. Updates `total_earned` per position + writes audit audit rows + marks the events settled with the distribution ID. Closes gap where the LP share accumulated in `pool:lp` but never reached actual LP holder accounts. Runs hourly; distributions under $0.10 wait for the next run. No active LP positions? that period's LP fees stay with the platform.

#### Added — dynamic fee (env-gated)

- **Dynamic fee curve** — when enabled, taker fee scales as `rate × price × (1 - price) × 4` — industry-standard curve formula. Max fee (30 bps) at 50/50 markets; approaches 0 at extremes (near 0¢ / 100¢). Verified per-price at unit-test level: 50/50=30bps, 70/30=25.2bps, 90/10=10.8bps, 99/1=1.19bps effective. Applied identically on the charge and split paths. — fee-sync-guard boot check remains valid. Default OFF (flat 30 bps stays) — turn on after modeling revenue impact on live volume distribution.

## v2.3.0 — 2026-09-06

**Taker fee cut 50 → 30 bps + progressive tier for builder share.**

#### Changed

- **Taker fee: 50 bps → 30 bps**. Cut to attract trading volume.
- **Progressive tier split** — the platform now applies a builder-tier-aware split at trade time: Higher tiers pull bps out of `operator` + `lp` + `market_creator`, all splits still sum to 30. LP floor: 5 bps at genesis / partner (protects liquidity depth).
  - Auto tier (`self_serve`, `read_live`, `trade_capped`) — 6 acq + 6 exec = **12 bps** combined builder share (40% of the 30 bps fee)
  - `trade_full` — 7 acq + 7 exec = **14 bps** (47% of fee)
  - `genesis`, `partner` — 8 acq + 8 exec = **16 bps** (53% of fee)
- **The fee splitter wired to tier lookup** — the fee splitter now looks up `execution_builder`'s current tier from the builder registry for every trade batch (per-tick cache dedups repeated lookups) and passes to the fee split. Tier changes flow through to `financial_event` automatically.
- **`GET /v1/fees/estimate` accepts `builder_tier`** — preview any tier's split from any key. Backward-compatible; omit for auto tier.

#### Rationale + industry context

- Genesis / partner tier reaches 53% of taker fee — at or above the 50% top of the CEX affiliate revenue-share range, on a much lower base fee.

#### Backward compat

- All existing API responses keep the same `fee` block shape — just different numeric values. Clients that hard-coded `taker_fee_bps: 50` will see `30` now.
- `ACTOR_BPS_*` env vars still work; defaults now sum to 30 not 50. Env validator throws at load time if custom values don't sum to `TAKER_FEE_BPS_TOTAL`.
- Existing `financial_event` rows preserved — historical splits at 50 bps stay as-is; new fills use 30 bps.

## v2.2.2 — 2026-09-06

**Application flow — email notifications + tier auto-graduation.**

#### Added

- **Reviewed-track notifications** — `POST /v1/apply` with track `genesis` or `institutional` now fires three side-effects on submission: (1) admin Telegram alert via the existing tgAlert channel, (2) admin email to `ADMIN_EMAIL` with application details + direct approve/reject curl commands, (3) if the applicant provided an email, a confirmation email with their `application_code` and status-polling URL.
- **Tier auto-graduation cron** — new the tier-graduation job. Scans the builder registry every 15 minutes, computes 30-day attributed trading volume via `execution_builder_id` attribution, and auto-graduates builders across two tier steps: `self_serve → read_live` at $100 30d volume, and `read_live → trade_capped` at $1,000 30d volume. Caps at `trade_capped`; higher tiers (`trade_full`, `genesis`, `partner`) require admin operator approval. 24-hour dedup window per builder. Every graduation writes to `builder_attribution_log` with `event='tier_auto_graduate'` and sends the builder a notification email (if their `contact_email` is set).
- **`TRACK_INITIAL_TIER` map** in the platform — extension point for setting different initial tiers per track. All 18 auto-provisioning tracks currently start on `self_serve` (kept uniform for safety); the map makes future per-track differentiation a one-line change.

## v2.2.1 — 2026-09-06

**Discoverability + SDK metadata sync — no behavior changes.**

#### Changed

- **Docs navigation** — `/verify` is now a top-level entry in the docs navigation on every page (previously only reachable from the migration page). Also cross-linked from the home hero grid and the authentication guide's server-side-verification section.
- **Python SDK `pax-api==2.2.1`** — README rewritten to reflect the v2.2 API surface (sandbox key minting, batch orders, fee estimator, audit verifier). Prior 2.2.0 release included the older v1.0.0 quickstart content, which caused the PyPI project page to display outdated install and usage examples. No client code changes; upgrade with `pip install --upgrade pax-api`.
- **TypeScript SDK `@predictasiax/api@2.2.0`** — unchanged (README already reflected current surface).

## v2.2.0 — 2026-09-05

**Trust Layer — public Merkle verifier over the operational ledger.**

#### Added — public no-auth verifier surface

- **`GET /v1/audit/status`** — live counts of events + Merkle batches + anchored batches + anchor lag. Any third party can hit this to understand the shape of the operational audit chain in real time.
- **`GET /v1/audit/batches/latest`** — most recent Merkle batch metadata (batch_num, merkle_root, first_seq, last_seq, event_count, anchored_at, anchor_target, anchor_ref).
- **`GET /v1/audit/batches/{num}`** — inspect any historical batch by `batch_num`.
- **`GET /v1/audit/events/{seq}`** — inspect a single hash-chained event (event_hash + prev_event_hash + payload + batch linkage — the full hash-chain surface).
- **`GET /v1/audit/proof/{seq}`** — Merkle inclusion proof (sibling hashes) that proves the event is included in its batch's `merkle_root`. Algorithm: sorted-pair SHA-256 over raw 32-byte digests. *Correction (2026-11-23): this entry originally said the roots were compatible with OpenZeppelin `MerkleProof.verify`; that verifier uses keccak256 and does not match. See [/verify](https://docs.predictasiax.com/verify) for a SHA-256 verifier.*
- **`GET /v1/audit/anchor/{num}`** — resolve a batch number to its external anchor URL (Cloudflare R2 signed payload) for out-of-band verification.
- **SDKs bumped to v2.2.0** — `@predictasiax/api@2.2.0` ships `pax.audit.*` resource + static `AuditResource.verifyProof()` / `.verifyProofAsync()` helpers (Node crypto + WebCrypto). `pax-api==2.2.0` ships `pax.audit_*()` methods + `PaxClient.verify_merkle_proof()` static.

#### Why this matters for builders

The event log has been hash-chained and Merkle-batched since v1 — this release exposes it publicly. See [docs.predictasiax.com/verify](https://docs.predictasiax.com/verify) for the full trust model: any auditor, investor, or third-party verifier can independently reconstruct the event chain, verify Merkle inclusion for any event, and check R2 anchor payloads out-of-band. Building on PAX means every fill your app routes carries a cryptographic receipt that outlives the PAX API itself.

## v2.1.0 — 2026-09-05

**Batch trading + pre-trade fee preview.**

#### Added

- **Batch order placement** — `POST /v1/orders/batch` — up to 25 orders per request. Sequential order processing (single-writer per market). Per-item `results[].ok` + top-level `summary` — one bad order does not fail the whole batch. Returns `413 BATCH_TOO_LARGE` when over cap.
- **Batch order cancellation** — `DELETE /v1/orders/batch` — up to 50 cancels per request.
- **Pre-trade fee estimator** — `GET /v1/fees/estimate` — returns identical `fee` block shape as post-trade responses (5-actor `splits` + `attribution` + `breakdown` + `ledger_preview`). Powered by `lib/fiveActorFees` — env-tunable bps (`ACTOR_BPS_*`) flow through automatically, so pre-trade estimates and post-trade settlements can never diverge.
- **SDKs bumped to v2.1.0**:
  - TypeScript `@predictasiax/api@2.1.0`: `pax.orders.placeBatch()`, `pax.orders.cancelBatch()`, new `pax.fees.estimate()` namespace.
  - Python `pax-api==2.1.0`: `pax.place_orders_batch()`, `pax.cancel_orders_batch()`, `pax.estimate_fees()`.

## v2.0.0 — 2026-08-19

**Builder Program v2.0 — full ecosystem infrastructure SHIPPED**

Base URL: `https://api.predictasiax.com/v1`. All endpoints below are live and returning real D1-backed data.

#### Builder Program surface (new)

- **Builders + Apps + API keys** — `GET /v1/builders/me`, `GET /v1/apps`, `GET/POST /v1/apps/{id}/keys`, `DELETE /v1/apps/{id}/keys/{kid}`, `POST /v1/apps/{id}/keys/{kid}/rotate`. Raw secret shown once.
- **Progressive-trust tiers** on every credential — `self_serve` / `verified` / `trade_capped` / `trade_full` / `genesis` / `partner`. Per-order and daily notional caps enforced at fill time. Error code `TIER_LIMIT_EXCEEDED` (429) with breach details.
- **Self-serve sandbox mint** — `POST /v1/sandbox-keys` — public, anonymous, returns `sk_live_*` tagged `tier=self_serve` with $10 per-order / $100 daily caps and 30-day expiry. Same host as production — promote to `verified` by upgrading tier, no code changes.
- **Password + session management** — `POST /v1/builders/me/password`, `GET /v1/builders/me/sessions`, `POST /v1/builders/me/sessions/revoke-others`.
- **Attribution + 5-actor fee ledger** — `GET /v1/attribution/fills`, `GET /v1/revenue`, `GET /v1/revenue/ledger`. Every fill writes idempotent `financial_event` rows on the platform ledger. Total taker fee **50 bps** of notional, split five ways: Recipients resolved from `execution_builder_id`/`acquisition_builder_id` at trade time, backed by the platform. Idempotency key format: `fee_split:<trade_id>:<event_type>`.
  - `acquisition_builder` — 10 bps (20% of taker fee; the builder who first onboarded the user)
  - `execution_builder` — 10 bps (20%; the builder whose app the trade routed through)
  - `operator` — 5 bps (10%; PAX operator running the venue)
  - `market_creator` — 8 bps (16%; whoever composed the market)
  - `lp` — 12 bps (24%; liquidity pool backstop)
  - `platform_net` — 5 bps residual (10%; also absorbs any unfilled attribution role, protecting revenue)

#### Access, OAuth, MCP (upgraded)

- **Application intake** — `POST /v1/apply` — accepts `track` + optional `org` / `url` / `email` / `description`. IP-rate-limited 5/hr. Auto-provisions a live `sk_live_*` API key on submit for 18 tracks (`app` / `agent` / `data` / `distribution` / `market` / `liquidity` / `oracle` / `reviewer` / `operator` / `self_serve` / 8× `rfb-*`); routes `genesis` and `institutional` to human review. Status polling via `GET /v1/apply/{code}`.
- **OAuth 2.1 + PKCE + refresh rotation** at `https://connect.predictasiax.com` — browser HTML login/consent, refresh-token reuse detection revokes entire family (`REFRESH_TOKEN_REUSED` 401).
- **MCP Server** at `https://mcp.predictasiax.com` — 7 tools: `market_search`, `probability_movers`, `resolution_evidence`, `portfolio_read`, `place_order`, `cancel_order`, `sandbox_agent_examples`. Bearer token forwarded to REST.

#### Ecosystem primitives

- **Webhooks CRUD** — `POST/GET/PATCH/DELETE /v1/webhooks` + `POST /v1/webhooks/{id}/rotate-secret` + `GET /v1/webhooks/{id}/deliveries`. 5 event types: `trade.filled`, `market.resolved`, `payout.available`, `payout.paid`, `auth.token.revoked`. HMAC signature, retry with exponential backoff.
- **Subaccounts + delegation grants** — `/v1/subaccounts` full CRUD, `/v1/subaccounts/{id}/grants` for signed delegation.
- **Market Composer** — `GET /v1/composer/templates`, `POST /v1/composer/proposals`.
- **MM quotes + RFQ auction** — `/v1/mm/quotes`, `/v1/rfq`, `/v1/rfq/{id}/quotes`, `/v1/rfq/{id}/accept`.
- **Admin operator endpoints** — `/v1/admin/access-requests`, `/v1/admin/tiers/graduate`, `/v1/admin/builders`, `/v1/admin/audit`, `/v1/admin/abuse-flags`. Gated by `X-Admin-Key` header, timing-safe compared.

#### Foundation surface (live at v2.0.0)

- **Discovery**: `GET /v1/markets`, `GET /v1/markets/{id}`, `GET /v1/markets/templates`, `GET /v1/health`
- **Market Data**: `GET /v1/data/history`, `GET /v1/data/movers`, orderbook, trades, candles
- **Trading**: `POST /v1/orders`, `POST /v1/orders/{id}/cancel`, template-driven market creation with deterministic ID (`m_<sha256[0:16]>`), idempotent under same (template, params, creator) tuple
- **Envelope response**: `{ok, data, meta}` on every canonical response; `meta` includes `request_id`, `server_ts_ms`, `duration_ms`, `server_region`; deep snake_case keys; money as decimal string; `*_at_ms` sibling for every timestamp; full JSON Schema param validation with actionable error details (`details.field`, `details.allowed`, `details.got`)
- **WebSocket**: single-connection multiplex at `wss://predictasiax.com/ws` with 4 client methods (SUBSCRIBE / UNSUBSCRIBE / AUTH / LOCALE) and 48 server event types — Redis Stream sequence numbers on the book stream for client gap-detection resync
- **Distribution**: OpenAPI 3.1 + AsyncAPI 2.6 specs, Redoc + AsyncAPI React viewers, Postman public workspace synced to spec, MCP Registry publication as `com.predictasiax/mcp`, GitHub starter kits, Builder Directory with volume leaderboard
- **Chain-agnostic architecture**: `chain_data` JSONB envelope on core tables carries on-chain settlement metadata without breaking client integrations
- **Web3 privacy**: PII (email/phone/IP) stripped from external responses by default; self-view paths preserve for the owner
- **Public embed widget**: read-only market pages with drop-in `<predictasiax-market>` Web Component, attribution baked in
- **LP-backed market mode**: activated on selected D1 markets; `platform_mm` mode remains the default counterparty for markets without an LP pool

## Deprecation policy

When an endpoint or field is deprecated:

1. Response headers include `Deprecation: <date>` and `Sunset: <date>` (RFC 8594)
2. Announced on the [Changelog](https://docs.predictasiax.com/changelog) + email to all partner contacts
3. Minimum 90 days between deprecation and removal
4. Removed only on MAJOR version bump

## Machine-readable feed

The canonical spec + AsyncAPI spec + Postman environment files at [Downloads](https://docs.predictasiax.com/downloads) are versioned along with each release above.

Source: https://docs.predictasiax.com/changelog
