Versioned change history for PAX Trader Track API. Follow the Changelog for release announcements.
PAX follows Semantic Versioning 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 |
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.
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.user_orders_update events (placed, filled, partial, rested, cancelled) are now delivered. They were dropped before reaching any client, including the web app.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.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.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.
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.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.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.@predictasiax/api 3.0.1 is on npm.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.
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.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.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.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.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 and the AsyncAPI spec are corrected.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.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.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.https:// and the WebSocket URL wss://; plain http:// / ws:// are accepted only for localhost.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.RESPONSE_TOO_LARGE). TypeScript: a stored referral is kept; a ?ref= in the URL is stored only when none is stored yet.pax-api 3.0.1 is on PyPI. The TypeScript @predictasiax/api 3.0.1 followed on npm the same day (v2.7.9).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}).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.
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.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.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.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.403 ACCOUNT_SESSION_REQUIRED; withdrawals are also allowed to keys that hold withdrawals:create.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.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.
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 page now check the length and bind the leaf to the event.MerkleProof.verify uses keccak256 and does not match. The Solidity sample on /verify uses SHA-256 and takes the expected length.pax-api, TypeScript @predictasiax/api)/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.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.verify_audit_event / pax.audit.verify).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.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.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.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""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.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.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.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.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.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 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.
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's schema note describing them as decimal strings is corrected.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.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.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 deleted its reviewed-track branch.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'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.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.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 has been saying all along. Live behaviour does not change; the discount was already zero.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 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.Code, not docs: five published promises that the API did not actually keep are now kept. v2.7.1 and 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.
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.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 (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).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 promise, actually shipped)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.mm:quote scope the two reviewed tracks carried already shipped on two unreviewed tracks.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.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 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.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.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.status: "auto_approved" → status: "approved" on For Builders, Request access (sample + the live success banner), Onboarding (sample + the every-track note), FAQ, and the v2.7.0 entry above.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.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 claimed the endpoint returns three lifecycle values; it filters on one.< 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.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.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.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 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 · $100POST /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.sandbox and self_serve split into separate rungsPOST /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.sandbox.predictasiax.com mints sk_test_" — the separate-host sandbox retired in v2.0.0. POST /v1/sandbox-keys mints an sk_live_ key on the production host; the tier flag is what caps it.admin_signoff: false on every rung.POST /v1/sandbox-keys request, response, and quota rewritten from the handlerok, 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.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.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.TIER_LIMIT_EXCEEDED example on Error Codes showed "tier": "self_serve" beside a "cap": "10" (a cap only sandbox carries), and the SDK trade comment on Downloads labelled the $10 · $100 step self_serve when the snippet above it mints a sandbox key. The Sandbox sample response had a stale upgrade_url and omitted notice.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)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.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.meta description tags and the worked tier-progress response example).trade_full threshold (the "floored at the trade_full threshold" wording in 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.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.BuilderTier — fabricated tier perks removedBuilderTier 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.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.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 the "Early access to unreleased APIs" comparison row was replaced with the one thing the tier actually lifts: uncapped notional.POST /v1/sandbox-keys example on 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 already carried. The TIER_LIMIT_EXCEEDED and attribution snippets on the same page were corrected to tier: "sandbox" to match.self_serve: those caps are the sandbox tier defaults, and the row now names the one route that mints it. The Unauthenticated reads 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.sandbox-minted-as-self_serve mislabel sat on six more pages and is fixed in every place it appeared: the home page quickstart ("sandbox is differentiated by tier=self_serve") and the API Key card beside it, the Postman import step and both SDK quickstart comments, the For Builders FAQ and the "Tier-flagged API keys" card on the same page, the API Terms definition of "Sandbox", the T0 lane and the "Cap enforcement" paragraph on Tier Progression, and the key-prefix answer on the FAQ. 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.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.
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.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.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.partner (supersedes the trade_capped cap in v2.2.2)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.builder_attribution_log with event='tier_auto_graduate'. Progress is observable at GET /v1/builders/me/tier-progress.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.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.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).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.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.PAF math clarity + MCP tool-count sync — spec doc updates, no behavior changes.
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".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.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.tools/listmanifest.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"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.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.
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.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).GET /v1/composer/proposals list, GET /v1/composer/proposals/{prp_id}, GET /v1/composer/templates/{tpl_id}.GET /v1/subaccounts/{id} (with balance + risk-limits join), GET/POST /v1/subaccounts/{id}/grants, DELETE /v1/subaccounts/{id}/grants/{grn_id}.DELETE /v1/mm/quotes/{id} (cancel resting/partial), GET /v1/rfq/{id} (requester full view, MM redacted view).DELETE /v1/orders/{id} canonical cancel (POST /v1/orders/{id}/cancel alias documented as equivalent).GET /v1/audit/proof/{evt_id} (chain-replay verification), GET /v1/access-requests/{req_id} (poll access-request status).GET /v1/apps/{id} — backend never had this handler; only GET /v1/apps list + POST /v1/apps/{id}/rotate-secret + /keys sub-routes exist./v1/apply/{code} → /v1/apply/{ba_id} to match backend regex ba_[0-9a-zA-Z]{6,32}. Cosmetic — same wire path.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.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). SEO / LLM crawlers had cached the old summary.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.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.
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.rebate_bps = 3 + 5 × lqf_score. Old flat 2 bps rebate retired.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.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.user_share × market_liquidity_stipend, writes a payout record + a balance credit. At most one payout per account, market and day.FEE_MM_STIPEND events into per-market stipend pool.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.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.mm_lp_positions data preserved 90 days for audit.PAF_BASE_BPS = 20.MAKER_REBATE_BPS — replaced by quality-scaled 3-8 bps.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.
100% top-tier polish — 8 remaining gaps closed after v2.4.0 fee-ledger ship.
@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./v1/builders/me/settle, /v1/admin/builders/{userId}/settle, /v1/admin/creators/{userId}/settle.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.Complete fee accounting — LP fee distribution, dynamic fee (env-gated). Closes architectural gaps found in the fee-flow audit.
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.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.Taker fee cut 50 → 30 bps + progressive tier for builder share.
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)operator + lp + market_creator, all splits still sum to 30. LP floor: 5 bps at genesis / partner (protects liquidity depth).
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.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.financial_event rows preserved — historical splits at 50 bps stay as-is; new fills use 30 bps.Application flow — email notifications + tier auto-graduation.
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.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.Discoverability + SDK metadata sync — no behavior changes.
/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.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.@predictasiax/api@2.2.0 — unchanged (README already reflected current surface).Trust Layer — public Merkle verifier over the operational ledger.
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 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.@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.The event log has been hash-chained and Merkle-batched since v1 — this release exposes it publicly. See 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.
Batch trading + pre-trade fee preview.
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.DELETE /v1/orders/batch — up to 50 cancels per request.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.@predictasiax/api@2.1.0: pax.orders.placeBatch(), pax.orders.cancelBatch(), new pax.fees.estimate() namespace.pax-api==2.1.0: pax.place_orders_batch(), pax.cancel_orders_batch(), pax.estimate_fees().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.
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.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.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.POST /v1/builders/me/password, GET /v1/builders/me/sessions, POST /v1/builders/me/sessions/revoke-others.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:
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)execution_builder_id/acquisition_builder_id at trade time, backed by the platform. Idempotency key format: fee_split:<trade_id>:<event_type>.
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}.https://connect.predictasiax.com — browser HTML login/consent, refresh-token reuse detection revokes entire family (REFRESH_TOKEN_REUSED 401).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.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./v1/subaccounts full CRUD, /v1/subaccounts/{id}/grants for signed delegation.GET /v1/composer/templates, POST /v1/composer/proposals./v1/mm/quotes, /v1/rfq, /v1/rfq/{id}/quotes, /v1/rfq/{id}/accept./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.GET /v1/markets, GET /v1/markets/{id}, GET /v1/markets/templates, GET /v1/healthGET /v1/data/history, GET /v1/data/movers, orderbook, trades, candlesPOST /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{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)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 resynccom.predictasiax/mcp, GitHub starter kits, Builder Directory with volume leaderboardchain_data JSONB envelope on core tables carries on-chain settlement metadata without breaking client integrations<predictasiax-market> Web Component, attribution baked inplatform_mm mode remains the default counterparty for markets without an LP poolWhen an endpoint or field is deprecated:
Deprecation: <date> and Sunset: <date> (RFC 8594)The canonical spec + AsyncAPI spec + Postman environment files at Downloads are versioned along with each release above.