DEVELOPER API · v2.5.0

Build on Web3-native prediction markets

REST + WebSocket · Uniform response shape · Deterministic market IDs · Bearer sk_live_* + OAuth 2.1 · Anonymous sandbox tier · OpenAPI 3.1 + AsyncAPI 2.6 specs

Get StartedREST ReferenceSign in to get keys
Uniform response shape
Top-level fields are a single canonical envelope across product surfaces. { data, meta: { ts_ms, trace_id, is_simulated? } }.
Deterministic market IDs
Idempotent create — network retries never double-book. IDs are unforgeable without server-side inputs.
Web3 privacy first
Email, phone, IP stripped from external responses by default. Self-view paths preserve. X-PII-Redacted header on every reply.
Money as decimal string
USDT 6dp, BTC 8dp, ETH 18dp — never JavaScript numbers. Zero precision loss on client parse.
Anonymous sandbox tier
Same host, no email required. self_serve tier caps orders at 10 USDT / 100 USDT daily notional. Simulated fills at mid-price. Promote to production by upgrading the key's tier — no code changes, no host switch.
Bearer auth (sk_live_*)
Send Authorization: Bearer sk_live_… on every request. OAuth 2.1 + PKCE for hosted apps. Enterprise HMAC path documented for ops-provisioned partners.

Get running in 30 seconds

1. Mint an anonymous sandbox key (no auth, no email):
curl -X POST https://api.predictasiax.com/v1/sandbox-keys \
  -H "Content-Type: application/json" \
  -d '{"org_name":"my-test"}'
# → { "api_key": "sk_live_...", "tier": "self_serve", ... }
2. List markets:
curl https://api.predictasiax.com/v1/markets \
  -H "Authorization: Bearer sk_live_YOUR_KEY_HERE"
3. Subscribe to real-time ticks (uppercase command verbs per AsyncAPI):
wscat -c wss://predictasiax.com/ws
> {"op":"SUBSCRIBE","params":["fast_tick"]}
4. Place an order (Bearer + Idempotency-Key):
IDEM=$(uuidgen | tr -d '-' | cut -c1-24)
curl -X POST https://api.predictasiax.com/v1/orders \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: ${IDEM}" \
  -d '{"market_id":"m_...","side":"yes","price":"0.55","size":"2","client_order_id":"cli-001"}'

Specs, tooling & SDKs

OpenAPI 3.1 (REST)
69 paths / 76 operations across 16 tag groups — Discovery, Builders, Apps, Attribution, Revenue, Connect, Subaccounts, Composer, Liquidity, Data, Webhooks, Marketplace, Oracle, Sandbox, Audit, Portfolio.
Open Redoc →
AsyncAPI 2.6 (WebSocket)
54 event messages + 4 client commands (AUTH / SUBSCRIBE / UNSUBSCRIBE / LOCALE) on wss://predictasiax.com/ws.
Open AsyncAPI →
Postman + codegen
Postman collection + sandbox/prod environments. openapi-generator supports 50+ target languages.
Get files →
Sandbox — live now
Same host as production, self_serve tier (10 USDT per order, 100 USDT daily notional cap, simulated fills at mid-price). Zero risk to real funds. Anonymous mint via POST /v1/sandbox-keys.
Read overview →
Authentication
Bearer sk_live_* (live) · OAuth 2.1 + PKCE for hosted apps (live) · Enterprise HMAC path documented for ops-provisioned partners.
Read auth guide →
Errors & rate limits
40+ typed error codes with resolution steps. Sliding-window rate limits with clear headers.
Read errors →

Who's building on PAX

Trading bots
Systematic strategies, arbitrage bots, market-making. Bearer sk_live_* per request, WebSocket for real-time fills, multiple keys per account via the Portal.
Aggregators
Multi-venue dashboards showing PAX markets alongside other prediction sources. Public read endpoints, no auth needed for market data.
Hosted apps (OAuth)
Apps that act on behalf of a PAX user. OAuth 2.1 + PKCE flow via connect.predictasiax.com; rotating refresh tokens; per-scope grant.
Mobile clients
Bearer auth for machine partners; OAuth for user-scoped mobile flows. WebSocket for live prices and account events. Multi-locale support (13 languages).
Data providers
Historical trades tape (30d), OHLCV candles (90d), settlement records. Full public Merkle audit trail per market via /v1/audit/*.
Research / academic
Public read-only access. Prediction market research on Asia-focused events. No cost for read endpoints during early access.

Support

Partners & onboarding
[email protected]
API key requests, partner-tier rate limits, integration questions.
Twitter
@PredictAsiaX_AD
Release announcements, incident updates, community.
API Terms
predictasiax.com/terms
Terms of service governing API usage.