Same API, same host, four paths in. Pick the one that matches how you already work — the underlying platform is identical.
Anonymous sandbox key in 30 seconds. No email, no signup. Same production URL, tier-capped for safety. Move to production when ready.
Read Solo dev path →PAX ships the 5-header HMAC signing pattern (PAX-ADDRESS / PAX-TIMESTAMP / PAX-NONCE / PAX-SIGNATURE). Swap URL + credentials, adapt endpoint shapes via the migration guide.
Published in the official MCP Registry as com.predictasiax/mcp. One-line config, 46 agent tools available immediately (market_search, place_order, portfolio_read, cancel_order, docs_search, RFQ + subaccount + composer-resolution + webhook + access-request tools, ...).
Submit an application via POST /v1/apply with your track. Every track — including genesis and institutional — returns a live sk_live_* key in the response body immediately. No human-review queue; capability climbs the automatic volume ladder.
Public endpoint, no authentication, no email. Rate-limited to 1 mint per IP + 1 per browser fingerprint per day. Same host as production — sandbox tier is a flag on the key, not a separate URL.
Mint an anonymous sandbox key
curl -X POST https://api.predictasiax.com/v1/sandbox-keys \
-H "Content-Type: application/json" \
-d '{"org_name":"my-app"}'
Save the key (shown once) + set env
export SK=sk_live_7d40ce10_12b638913cadfbbd...
Install an official SDK — or stick with curl
# Python (3.0.0+ required for the current gateway)
pip install "pax-api>=3"
# TypeScript / Node (3.0.0+)
npm i @predictasiax/api@3
# Or use curl / Postman collection — no SDK required
Place your first order (Python)
from pax_api import PaxClient
# pip install "pax-api>=3"
with PaxClient(api_key="$SK") as pax:
markets = pax.list_markets(category="crypto", limit=5)
order = pax.place_order( # limit BUY of the YES outcome
market_id=markets["data"]["markets"][0]["id"],
side="yes", price="0.55", size="2",
client_order_id="my-first-order",
)
print(order)
Ready for production? Sandbox caps orders at $10 each / $100 daily. The caps lift automatically as your 30-day volume grows — trade_capped at $1,000, trade_full at $50,000 30-day volume. Same URL, same key format; the tier flag updates in place on its own. No upgrade request, no human step.
Any bot that speaks Authorization: Bearer ports directly — no request-signing rewrite needed for the standard live surface. Endpoint shapes and market conventions differ from other venues; the guide below maps them one-for-one.
Read the endpoint mapping table
Get sandbox credentials
Same 30-second flow as Solo path: POST /v1/sandbox-keys. Every key can sign requests — the same credential works as Authorization: Bearer or as an HMAC signature (PAX-* headers); no separate "signing key" to mint.
Point your client at PAX
BASE_URL = "https://api.predictasiax.com/v1"
# PAX HMAC headers (POLY-* aliases also accepted):
# PAX-ADDRESS = <api_key_id> # the api_... id, NOT the secret
# PAX-TIMESTAMP = <unix_seconds>
# PAX-NONCE = <fresh random per request>
# PAX-SIGNATURE = base64(HMAC_SHA256(apiSecret, signingString))
#
# apiSecret = your full sk_live_... / sk_test_... value
# signingString = [timestamp, nonce, method, path, body].join("\n")
# path includes query string; body is "" when empty
# Existing signer using POLY-* header names? Keep them, repoint the canonical
# string to the five newline-joined fields above. Full example: /auth#hmac
Adapt response shape
All PAX responses use a top-level data envelope; monetary fields are decimal strings (never floats). Market IDs are m_<sha256[0:16]> — deterministic and idempotent. See REST reference for full schemas.
Verify fills independently
Every fill is recorded in a hash-chained event log, Merkle-batched, and anchored to R2. Reconstruct inclusion proofs client-side via /verify — six no-auth /v1/audit/* endpoints, sorted-pair SHA-256 over raw 32-byte digests.
PredictAsiaX is published in the official Model Context Protocol Registry as com.predictasiax/mcp. Claude Desktop, Cursor, Windsurf and other MCP clients can discover and connect natively.
Get a PAX API key
Any tier works. For personal use: mint via Solo path (POST /v1/sandbox-keys). For a distributed product: Org path.
Add the MCP server config
The server speaks Streamable HTTP at https://mcp.predictasiax.com/mcp; the key goes in the Authorization header.
Claude Code:
claude mcp add --transport http predictasiax https://mcp.predictasiax.com/mcp \
--header "Authorization: Bearer sk_live_YOUR_KEY"
Cursor (~/.cursor/mcp.json); in Windsurf (~/.codeium/windsurf/mcp_config.json) the URL key is serverUrl:
{
"mcpServers": {
"predictasiax": {
"url": "https://mcp.predictasiax.com/mcp",
"headers": { "Authorization": "Bearer sk_live_YOUR_KEY" }
}
}
}
Claude Desktop starts local servers from claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/), so it connects through the mcp-remote bridge (needs Node.js):
{
"mcpServers": {
"predictasiax": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.predictasiax.com/mcp", "--header", "Authorization:${PAX_AUTH}"],
"env": { "PAX_AUTH": "Bearer sk_live_YOUR_KEY" }
}
}
}
The 19 tools that read public data work without a key: market search, detail, order book and price history, movers, top volume, categories, fee estimate, liquidity leaderboard, market templates, resolution evidence, market-maker quotes, access requests, agent examples, health, and pax.docs_search and pax.docs_read. tools/list marks them _meta.auth: "none"; a client connected with no header can already read the markets and search these docs.
Restart the client
The agent will discover 46 tools on connect (call tools/list for the full runtime enumeration).
Available tools
| Tool | Purpose |
|---|---|
market_search | Full-text + facet search across live markets |
probability_movers | Markets with the largest recent probability shift |
resolution_evidence | Pull the underlying source data for a resolved market |
portfolio_read | Positions + P&L for the calling key |
place_order | Submit a trade (tier caps apply) |
cancel_order | Cancel an open order |
sandbox_agent_examples | Guided sample prompts + market scenarios for agent testing |
Talk to your agent
You: "Find any crypto markets where the probability shifted more than 5% in the last hour."
Agent: [calls probability_movers → market_search → returns summary]
You: "Buy 5 shares of YES on the BTC-150k market at 0.42 if it's still open."
Agent: [calls place_order with tier-appropriate caps]
Submit an application via POST /v1/apply with your track. All 20 tracks auto-provision a live sk_live_* key on submit — genesis and institutional included. The track is an attribution label; capability climbs the automatic volume ladder.
Pick a track
The track field tags attribution and sets the starting context. Provisioning is instant for every track — the key always mints on submit.
| Track family | Members | Provisioning |
|---|---|---|
| Standard (18 tracks) | app, agent, data, distribution, market, liquidity, oracle, reviewer, operator, self_serve, rfb-japan-app, rfb-ai-agent, rfb-telegram-bot, rfb-news-media, rfb-sports, rfb-election, rfb-terminal, rfb-mm-stack |
Returns a live sk_live_* key in the response body. Ready to trade in seconds. Starts on self_serve tier. |
| Labelled (2 tracks) | genesis (later granted as a top-20 ranking: uncapped API keys and 1.5× builder points)institutional (attribution label only) |
Identical behaviour: returns a live sk_live_* key in the response body on submit, on self_serve tier. No review, no out-of-band step. Capability climbs the automatic volume ladder. |
Submit the application
curl -X POST https://api.predictasiax.com/v1/apply \
-H "Content-Type: application/json" \
-d '{
"track": "app",
"org": "my-project",
"url": "https://my-project.com",
"description": "AI-first prediction market UI for Japan retail."
}'
Or use the web form. Rate-limited to 5 applications per hour per IP. Every field is optional (track defaults to self_serve) — org and url enrich your attribution record and directory listing.
Response — auto-provisioning track
{
"ok": true,
"application_code": "ba_<24-hex>",
"track": "app",
"status": "approved",
"auto_provisioned": true,
"api_key": "sk_live_xxxxxx_...", // shown ONCE — save now
"key_prefix": "xxxxxx",
"builder_id": "bld_<12-hex>",
"app_id": "app_<12-hex>",
"api_key_id": "api_<12-hex>",
"client_id": "client_<12-hex>",
"user_id": "bld_<12-hex>", // alias of builder_id
"tier": "self_serve",
"caps": { "max_order_usdt": "100", "daily_notional_usdt": "1000" },
"next_step": "https://docs.predictasiax.com/getting-started",
"portal_url": "https://builder.predictasiax.com/",
"notice": "Save the api_key — it is returned ONCE. …"
}
The key is a live sk_live_* on the self_serve tier — one rung above an anonymous sandbox key, at $100/order + $1,000/day caps. Send it as Authorization: Bearer sk_live_…. Save the application_code — you'll use it later to check your application status.
Every track returns the same response
There is no separate "reviewed track" response — genesis and institutional return the identical status: "approved" body shown above, with a live sk_live_* key on the self_serve tier. No pending_review state, no admin operator, no out-of-band delivery. Poll the application record any time:
curl https://api.predictasiax.com/v1/apply/ba_<24-hex>
Tier auto-graduation
Every key starts on self_serve ($100/order + $1,000/day caps — one rung above an anonymous sandbox key's $10/order + $100/day). A background cron scans every 15 minutes and auto-graduates on 30-day volume (fills routed through your builder by execution_builder_id attribution, plus your own accounts' fills):
| From tier | To tier | Threshold (30d volume, USDT) |
|---|---|---|
self_serve | read_live | $100 |
read_live | trade_capped | $1,000 |
trade_capped | trade_full | $50,000 |
trade_full | partner | $1,000,000 |
Every step is automatic — no admin sign-off anywhere. genesis is separate: it is granted automatically to the top 20 builders by 30-day attributed volume (floored at a dedicated $50,000 genesis floor) and auto-revoked when you drop out. Every auto-graduation writes to the builder_attribution_log audit trail and, if you provided an email during application, you receive a notification email. Dedup window: 24 h between graduations for the same builder.
Configure & ship
/v1/apply works as Authorization: Bearer or as an HMAC signature over the PAX-ADDRESS / TIMESTAMP / NONCE / SIGNATURE headers (POLY-* aliases accepted). No ops provisioning — every active key can sign. See Auth → HMAC.financial_event platform ledger. Split at PAF centre, the same at every tier (effective fee 20 bps at 50/50; floor 8 bps at 0¢/100¢; 25 bps ceiling is a dormant configurable cap): acquisition_builder 0 / execution_builder 0 / operator 0 / market_creator 3 / mm_stipend_pool 5 / lp 2 / platform_net 10 residual. Each bucket scales proportionally with the effective clamped fee. Your income is the builder fee you charge on top of the platform fee on orders you place for other accounts. See Fee Architecture.GET /v1/attribution/fills · GET /v1/revenue · GET /v1/revenue/ledger. Settle self-serve with POST /v1/builders/me/settle (or from the Portal) — no admin operator. It needs wallet_id of a verified payout wallet and a totp_code: 2FA is mandatory for withdrawals, and payouts unlock 24h after 2FA is activated or replaced. Accrued fees roll into a withdrawal_state row, serve an amount-scaled hold window (anti-abuse reserve), then broadcast on-chain automatically; larger amounts hold longer but are never frozen for manual approval.POST /v1/webhooks registers HMAC-signed event streams: trade.filled, market.resolved, payout.available, payout.paid, auth.token.revoked.See Builders page for the full builder-program spec and tier upgrade path.
Every path lands on the same platform. These invariants hold regardless of how you onboarded:
https://api.predictasiax.com/v1 — sandbox and production share one host. Tier caps are enforced on the key, not by URL swap.
5-header HMAC pattern (PAX-*) for machine-to-machine. Bearer for sandbox. Your users connect your app to their own account on the consent page (App connections); you trade for them with on_behalf_of.
PAF Adaptive taker fee — effective range 8–20 bps (peak at 50/50 = PAF_BASE 20 bps because 4·p·(1−p) ≤ 1; floor 8 bps at 0¢/100¢; 25 bps is a configurable ceiling, dormant with default PAF_BASE=20). See PAF_BASE_BPS in apps/api/src/index.ts. 7-actor split, the same at every tier (shares scale proportionally with the effective clamped fee): acquisition_builder 0 / execution_builder 0 / operator 0 / market_creator 3 / mm_stipend_pool 5 / lp 2 (+ platform_net 10 residual that absorbs unfilled attribution). Builders earn the builder fee they set.
Every fill is hash-chained, Merkle-batched, and R2-anchored. Six no-auth /v1/audit/* endpoints let any third party independently verify inclusion.
REST responses wrap payload in data; errors surface in error with typed code. Money is always a decimal string.
All writes accept an Idempotency-Key header. Safe to retry within 24h. Deterministic market_id — repeated create returns the same market.
Full 6-step curl walkthrough. Mint sandbox key → list markets → place order → see fee ledger → cancel.
Full request/response schemas across every public tag group, including the audit + portfolio endpoints.
Event catalog + 6 client commands (AUTH / SUBSCRIBE / UNSUBSCRIBE / LOCALE + RFQ_SUBSCRIBE / RFQ_UNSUBSCRIBE for market makers).
Bearer sk_live_* + OAuth 2.1 PKCE; live HMAC request signing.
Interactive Merkle proof verifier + 4-language snippets. Reconstruct proofs client-side.
Full spec: tiers, attribution model, weekly PAX rewards, payouts.
OpenAPI + AsyncAPI in YAML/JSON. Postman collection + SDKs (Python + TypeScript). Codegen ready.
Typed error codes across all surfaces. Actionable messages, correlation via request_id.
Independent fair-use buckets per endpoint category — the same published limits at every tier.