A canonical API for Asia's prediction markets — trade, resolve, embed, provide liquidity.
Application flow via POST /v1/apply: all 20 tracks auto-provision a live sk_live_* key on submit — genesis and institutional included. Every key starts on self_serve; capability is gated by the automatic 30-day-volume tier ladder, never by application review.
Submit an application via POST /v1/apply. Every track returns a live sk_live_* API key in the response body immediately — genesis and institutional included. There is no pending_review state and no admin operator in the loop.
All 20 tracks auto-provision: app, agent, data, distribution, market, liquidity, oracle, reviewer, operator, self_serve, genesis, institutional, and 8× rfb-*. The track is an attribution label and starting context — it does not change the instant-key behaviour. See the application form for the full track catalog.
Fill the web form or POST directly to /v1/apply. Rate-limited to 5/hour/IP. All fields except track and description are optional.
Response returns status: "approved" + a live sk_live_* API key (self_serve tier — $100/order, $1,000/day caps) in the body. Same for every track, genesis and institutional included — there is no pending_review state and no admin operator in the loop. Save the key from the response body — it's shown once. Poll the application record any time via GET /v1/apply/{ba_id} (the URL parameter uses the application_code value). Go straight to Getting Started.
Every key starts on self_serve. The auto-graduation cron promotes on 30-day attributed volume — read_live at $100, trade_capped at $1,000, trade_full at $10,000, partner at $1,000,000 — with no admin approval at any step. genesis is granted automatically to the top-20 builders by 30-day attributed volume, and auto-revoked when you leave the top 20.
POST /v1/apply endpoint inserts a row in builder_applications, and — for every track — synchronously provisions a the builder registry entry and mints a live sk_live_* API key via the same key store that powers all production keys. The API key returned in the response body is the same shape and same key store that a Portal-minted key would use.
Prefixed sk_live_*, differentiated by the tier
flag on the key — sandbox for sandbox keys ($10/$100 daily caps,
simulated fills), read_live / trade_capped / trade_full
for production. Wrong-tier operations return actionable TIER_LIMIT_EXCEEDED
— impossible to accidentally over-scope a bot.
api.predictasiax.com/v1Dashboard at builder.predictasiax.com — first-party
email + password login, 12h sessions, revoke everywhere on logout.
Your app becomes an OAuth client. End-users click "Sign in with PredictAsiaX", consent to scopes, your app gets scoped access tokens. PKCE S256 required.
GET /oauth/authorizePOST /oauth/token (code + refresh grants)Every fill routed through your app is signed + written to a Merkle-batched audit chain. Any third party can independently confirm inclusion — no PAX cooperation required.
GET /v1/attribution/fills — recent attributed fillsGET /v1/builders/me/revenue — accrual + settled totalsGET /v1/builders/me/payouts — payout historyGET /v1/audit/proof/{seq} — Merkle proof + verifier JS (/verify)GET /v1/builders/me/tier-progress — 30d volume vs. next thresholdX-Builder-Ref header on POST /v1/orders — first-order-time acquisition (see SDK helper below)Record scoped, capped grants from your account to another user or your own agent. Grants can be created, listed and revoked today. The order endpoints do not accept an order placed on a grantor's behalf at present, so every order is still placed by the account that holds the balance.
POST /v1/delegations — create with scopes + caps + expiryGET /v1/delegations — what you've issuedGET /v1/delegations/received — what you holdDELETE /v1/delegations/{id} — revoketrade · close_only · read_positions · withdrawmax_notional_usdt · daily_notional_cap · markets_allowlist · expires_atwithdraw requires max_notional_usdt (policy guard)Every attributed fill mints points to your builder ledger — deterministic per-fill accrual, append-only, verifiable. Idempotency by (source_type, source_ref): same fill never credits twice. Runs automatically every 5 minutes.
GET /v1/builders/me/points — total, breakdown by epoch + source, my rankGET /v1/builders/:userId/points — public read (rank + total only)points = attributed_volume_usdt × epoch_multipliergenesis / partner → 1.5× · everything else → 1.0×. Multiplier follows your tier automatically — when auto-graduation promotes you, points scale up on the next fill.mint_status field: currently accruing; no promise of mint timingPublic ranking of builders by attributed trading volume for a rolling window. Distinct from the MM liquidity leaderboard (which ranks makers by rebate).
GET /v1/builders/leaderboard?window=1d|7d|30d[&limit=N] — public top-NGET /v1/builders/me/leaderboard-rank?window=1d|7d|30d — my volume + rankplatform_net residual — no manual pool number to maintain, scales with platform revenue, degrades to $0 when there's no residual.builder_leaderboard_bonus_award with bonus_awarded_usdt per row. Pool total is internal and not published.The @predictasiax/api TypeScript SDK ships an attachRef() helper: it reads a builder ref from ?ref=BLD_..., persists in cookie / localStorage / memory, and injects the X-Builder-Ref header into subsequent order requests — the same header the backend reads for first-order-time acquisition attribution.
import { PaxClient, attachRef } from "@predictasiax/api";
const { headers } = attachRef({ storage: "cookie" });
const pax = new PaxClient({ apiKey: "sk_live_...", defaultHeaders: headers });
attribution.ref_applied for confirmationHMAC-signed event streams — trade.filled,
market.resolved, payout.available,
payout.paid, auth.token.revoked. Exponential
backoff 8-retry policy.
POST /v1/webhooksYour builder identity works via
mcp.predictasiax.com/mcp — Claude Desktop / Cursor
users add one line and get 44 tools (market_search / place_order / portfolio_read / order_cancel / builder_apply etc — call tools/list for the full runtime enumeration).
llms.txt for AI discoverabilityEach category maps to a set of scopes + endpoints. Request only the scopes you need — least-privilege is enforced.
Claude / Cursor / a custom agent uses your builder's MCP endpoint to discover markets, read portfolio, place idempotent orders.
Full-featured trading UI on top of the REST + WS API. End-users authenticate via your OAuth flow or a Portal-issued session.
Drop <predictasiax-market market-id="…"> into
any page. Live prices, one-click trade with the visitor's session.
Framework-agnostic web component.
OHLC candles, order book snapshots, resolution history, oracle feeds. Query historical data for backtesting.
Publish resting quotes, respond to RFQs. MM scoring feeds into incentive payouts — top MMs get rebates + priority routing.
Create markets directly — YES/NO binaries, over/unders, multi-outcome.
Each submission self-serve-creates a real market (settlement status
open) immediately — no approval step; you earn creator fees
on every fill.
Post resolution evidence for markets — earn bond returns + reputation score. Challenge-and-defend model with public evidence URLs.
Run each strategy in its own isolated sub-account and record signed, capped grants to your app. Grants are stored and revocable; orders against a sub-account are placed by its owner (delegated order placement is not accepted at present).
Wrap the API under your own brand for your end-users, keep your
treasury separate, route to PAX for liquidity. The operator
track auto-provisions a live key instantly, same as every other track.
One automatic ladder governs a builder account — the tier field on the the builder registry record:
self_serve → read_live → trade_capped → trade_full → genesis → partner
Every step is granted automatically — 30-day attributed-volume thresholds for most tiers (see §3 above), and genesis is the live top-20 by 30-day attributed volume, auto-granted and auto-revoked. There is no separate status to negotiate and no human sign-off at any step. In the table below, Verified means any active builder (tiers self_serve…trade_full), Genesis the current top-20, and Partner the $1,000,000 30-day-volume tier.
| Verified (default) |
Genesis (top 20 by volume) |
Partner ($1M 30d volume) |
|
|---|---|---|---|
| Portal + API keys | ✓ | ✓ | ✓ |
| Full endpoint access | ✓ | ✓ | ✓ |
| MCP endpoint | ✓ | ✓ | ✓ |
| OAuth IdP for your users | ✓ | ✓ | ✓ |
| API rate limits | Identical published fair-use limits at every tier — see Rate Limits | ||
| Featured on /builders | — | ✓ | ✓ |
| Grant program eligible | ✓ | ✓ | ✓ |
| Grant range (PAX) | 0.5 k – 50 k | 5 k – 100 k | 100 k – 500 k |
| Builder fee share (combined) | 6–8 bps | 10 bps | 10 bps |
| Uncapped notional | At trade_full ($10 k 30d) | ✓ | ✓ |
claim() to move them into custody. Same semantics as Sablier
/ OpenZeppelin VestingWallet.
Weekend hackathon winners, first integrations, tiny experiments. No cliff · 6 months linear vest · 48 h decision · public GitHub + demo required.
Independent devs shipping a real product on PAX. 3-month cliff · 12 months linear vest · weekly cohort · requires live URL > 30 days uptime, ≥ 100 users or $10 k routed volume.
Exchanges routing flow, market makers, mainstream integrations. 6-month cliff · 24 months linear · 4 milestone gates (25 % each) · monthly decision cohort · co-marketing + dedicated channel.
Budget caps enforced in code: 2 M PAX / month · 5 M PAX / quarter · 15 M PAX / year.
Apply beyond cap → GRANT_BUDGET_EXCEEDED immediately.
import { PaxClient } from "@predictasiax/api";
const pax = new PaxClient({ apiKey: process.env.PAX_LIVE_KEY });
// List your grants + live vesting calc
const grants = await pax.grants.list();
for (const g of grants) {
console.log(g.id, g.tier, "claimable:", g.vesting.claimable, "PAX");
}
// Move vested-but-unclaimed into custody
const result = await pax.grants.claim("grant_abc123");
console.log("credited", result.claimed_now, "PAX");
Q: How long does application-to-key take?
A: Seconds — for every track. The POST /v1/apply response body contains the live sk_live_* key, genesis and institutional included. There is no review queue and no admin operator in the loop. Poll the application record via GET /v1/apply/{ba_id}.
Q: Can I go straight to production without an application?
A: POST /v1/sandbox-keys gives you an anonymous sandbox-tier key in 30 seconds (no application, no email, no signup — see /sandbox). The sandbox tier is capped at $10/order + $100/day, and the key expires 30 days from mint. Higher tiers (read_live, trade_capped, trade_full, partner) are reached automatically as your 30-day attributed volume grows — no application step gates them. An application just gives you a persistent, org-tagged key with attribution wired in.
Q: What tier do auto-provisioning tracks start on?
A: self_serve — one rung above an anonymous sandbox key. The application flow gives you a persistent, org-tagged key with attribution wired in, and lifts the caps from sandbox's $10/order + $100/day to $100/order + $1,000/day. Higher tiers are reached automatically as your 30-day attributed volume grows (see below).
Q: How does tier auto-graduation work?
A: A background cron scans the builder registry every 15 minutes and auto-graduates builders on their 30-day attributed trading volume (execution_builder_id attribution). Volume thresholds:
self_serve → read_live — $100 30d volumeread_live → trade_capped — $1,000 30d volumetrade_capped → trade_full — $10,000 30d volume (8 bps builder combined share)trade_full → partner — $1,000,000 30d volume (10 bps combined)genesis is handled separately: it is granted automatically to the top 20 builders by 30-day attributed volume and auto-revoked when you drop out of the top 20 — it carries 10 bps combined share (request rate limits are identical at every tier), so it is a live ranking, not a volume milestone. Every graduation writes to the builder_attribution_log audit trail; you can watch your own progress via GET /v1/builders/me/tier-progress. If you provided an email during application, you receive a notification. A 24-hour dedup window prevents the same builder from being graduated multiple times in a day.
Q: How do I independently verify an attributed fill?
A: Every fill routed through your app becomes a hash-chained financial_event row that is periodically Merkle-batched and anchored. To verify: (1) get the audit_seq field from the POST /v1/orders response body (added at the time of the fill), (2) call GET /v1/audit/proof/{seq} which returns { leaf, root, proof: [siblings], anchor } plus a minimal verifier JS snippet, (3) run the snippet locally or in your build to prove leaf → root. No PAX cooperation required — the anchor field points to the batch's off-platform anchor. See /verify for a 4-language interactive verifier + Fee Architecture / financial_event taxonomy for the ledger schema.
Q: Do genesis / institutional tracks get special treatment at application time?
A: No. Every track returns the same instant self_serve key — the track is an attribution label and starting context, not a capability grant. There is no review, no admin operator, and no signed document anywhere in the flow. genesis is earned afterwards as a live top-20 ranking (10 bps builder fee share); institutional is just a track label — its key still climbs the same volume ladder as everyone else.
Q: I'm building for an operator (white-label). What's different?
A: Use the operator or institutional track — both auto-provision a live key instantly, same as every other track. The track is an attribution label; capability still climbs via the volume ladder (§3). There is no separate agreement to sign.
Q: Do I need to provide a contact channel?
A: It's optional — the key issues without one. An email on the application gets you auto-graduation notification emails and a status-poll record; a Telegram / Signal / Discord / Matrix handle in the description helps us feature you in the builder directory. Nothing is required to receive the key itself.
Q: Grants — see the grant program above for full mechanics. Jump to Grant Program.