Build on PredictAsiaX

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.

On this page

1. How to become a builder

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.

1

Pick a track

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.

2

Submit application

Fill the web form or POST directly to /v1/apply. Rate-limited to 5/hour/IP. All fields except track and description are optional.

3

Every track — instant key

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.

4

Tier upgrade later

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.

What the API actually does on submit. The 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.

2. What you get

Tier-flagged API keys

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.

  • Base URL: api.predictasiax.com/v1
  • Sandbox: same host, sandbox tier (see Sandbox)

Builder Portal

Dashboard at builder.predictasiax.com — first-party email + password login, 12h sessions, revoke everywhere on logout.

  • Apps · API keys · Webhooks
  • Attribution ledger · Revenue · Payouts
  • Subaccounts · Delegation grants

OAuth 2.1 identity provider

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/authorize
  • POST /oauth/token (code + refresh grants)
  • Refresh rotation with family reuse detection

Attribution & Revenue Ledger

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 fills
  • GET /v1/builders/me/revenue — accrual + settled totals
  • GET /v1/builders/me/payouts — payout history
  • GET /v1/audit/proof/{seq} — Merkle proof + verifier JS (/verify)
  • GET /v1/builders/me/tier-progress — 30d volume vs. next threshold
  • X-Builder-Ref header on POST /v1/orders — first-order-time acquisition (see SDK helper below)

Session Keys (scoped delegations)

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 + expiry
  • GET /v1/delegations — what you've issued
  • GET /v1/delegations/received — what you hold
  • DELETE /v1/delegations/{id} — revoke
  • Scopes: trade · close_only · read_positions · withdraw
  • Caps: max_notional_usdt · daily_notional_cap · markets_allowlist · expires_at
  • withdraw requires max_notional_usdt (policy guard)

Points ledger (airdrop-track accrual)

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 rank
  • GET /v1/builders/:userId/points — public read (rank + total only)
  • Formula: points = attributed_volume_usdt × epoch_multiplier
  • Roles: execution builder full multiplier · acquisition builder 0.5×
  • Epoch is derived from your builder tier: genesis / 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 timing

Attribution leaderboard + daily bonus

Public 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-N
  • GET /v1/builders/me/leaderboard-rank?window=1d|7d|30d — my volume + rank
  • Daily bonus pool is self-funded: sized automatically each morning UTC as a fraction of prior-day platform_net residual — no manual pool number to maintain, scales with platform revenue, degrades to $0 when there's no residual.
  • 1d window join: prior UTC day awards from builder_leaderboard_bonus_award with bonus_awarded_usdt per row. Pool total is internal and not published.

Referral SDK helper

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 });
  • Never overwrites existing acquisition attribution (sticky, rug-pull-safe)
  • Server response echoes attribution.ref_applied for confirmation

Webhooks

HMAC-signed event streams — trade.filled, market.resolved, payout.available, payout.paid, auth.token.revoked. Exponential backoff 8-retry policy.

  • CRUD via POST /v1/webhooks
  • Signing secret shown once, rotatable
  • Live delivery log per endpoint

MCP endpoint for AI agents

Your 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).

  • OpenAPI + AsyncAPI + llms.txt for AI discoverability
  • Bearer forwarding to backend

3. What you can build

Each category maps to a set of scopes + endpoints. Request only the scopes you need — least-privilege is enforced.

AI & MCP

Autonomous trading agent

Claude / Cursor / a custom agent uses your builder's MCP endpoint to discover markets, read portfolio, place idempotent orders.

mcp.predictasiax.com/mcp
POST /v1/orders (Idempotency-Key required)
scopes: markets:read, orders:create, portfolio:read
Trading UI

Web / mobile trading app

Full-featured trading UI on top of the REST + WS API. End-users authenticate via your OAuth flow or a Portal-issued session.

GET /v1/markets, /v1/markets/movers, /v1/markets/{id}
POST /v1/orders · DELETE /v1/orders/{id}
WS: wss://predictasiax.com/ws (57 event messages)
Widget

Embeddable market widget

Drop <predictasiax-market market-id="…"> into any page. Live prices, one-click trade with the visitor's session. Framework-agnostic web component.

widget.predictasiax.com/embed.js
Attribution: origin header + widget signature
Data

Data terminal / research tool

OHLC candles, order book snapshots, resolution history, oracle feeds. Query historical data for backtesting.

GET /v1/data/history · /v1/data/oracles
scopes: data:history:read, data:history:premium
Liquidity

Market maker bot

Publish resting quotes, respond to RFQs. MM scoring feeds into incentive payouts — top MMs get rebates + priority routing.

POST /v1/mm/quotes · POST /v1/rfq/{id}/quotes
scopes: builder:apps:write (writes are app-signed)
Market creator

Market composer

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 /v1/composer/markets (legacy alias: /v1/composer/proposals)
GET /v1/composer/templates (6 kinds seeded)
Oracle

Oracle provider

Post resolution evidence for markets — earn bond returns + reputation score. Challenge-and-defend model with public evidence URLs.

POST /v1/oracle/attest · /v1/oracle/challenge
Bonded — PAX stake required per attestation
Copy trading

Copy-trading / strategy provider

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).

POST /v1/subaccounts · POST /v1/subaccounts/{id}/grants
scopes: subaccounts:manage, delegation:trade
Operator

White-label operator

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.

Full endpoint set + operator_id tagging
operator track — instant key, no signed agreement

4. Builder tier & benefits

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 limitsIdentical published fair-use limits at every tier — see Rate Limits
Featured on /builders—✓✓
Grant program eligible✓✓✓
Grant range (PAX)0.5 k – 50 k5 k – 100 k100 k – 500 k
Builder fee share (combined)6–8 bps10 bps10 bps
Uncapped notionalAt trade_full ($10 k 30d)✓✓

5. Grant program (paid in PAX)

Zero fiat. All grants paid in PAX — the platform's native token. Cliff + linear vesting, on-chain-migration-ready. Pull claims — vested tokens sit on the platform until you call claim() to move them into custody. Same semantics as Sablier / OpenZeppelin VestingWallet.

🚀 Hackathon — 500 – 2,000 PAX

Weekend hackathon winners, first integrations, tiny experiments. No cliff · 6 months linear vest · 48 h decision · public GitHub + demo required.

🛠 Builder — 5,000 – 50,000 PAX

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.

🤝 Partner — 100,000 – 500,000 PAX

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.

Claim vested PAX (SDK)

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");

FAQ

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:

Every step is automatic — no admin sign-off anywhere. 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.

→ Request access Try sandbox first