Web3-native prediction market API
REST + WebSocket · Engine-agnostic · Deterministic IDs · HMAC + Bearer + API key auth · Sandbox with faucet
18 endpoints across Discovery, Market Data, Account, Trading, Sandbox, Keys. Envelope response + Money as decimal string.
Open Redoc →Single connection with subscription filtering. 48 event types across market data, fast round, account, security, ops. High-throughput multiplexed stream.
Open AsyncAPI →Dedicated environment at sandbox.predictasiax.com with faucet, reset, mock oracle. sk_test_*
Read blueprint →Mint key → faucet 10k USDT → place order → subscribe to fills. 5-minute curl walkthrough.
Start now →3 schemes: API Key, HMAC (Polymarket-compatible 5-header), Session Bearer. Signing code in Python / Node / Bash.
Read auth guide →OpenAPI + AsyncAPI in YAML/JSON. Postman collection + sandbox/prod environments. Codegen ready.
Get files →Sign in on predictasiax.com → Settings → API Keys. Get sk_live_* for prod or sk_test_* for sandbox.
curl https://predictasiax.com/api/v1/markets \
-H "X-Api-Key: sk_live_..."
wscat -c wss://predictasiax.com/ws
> {"method":"SUBSCRIBE","params":["fast_tick"]}
Top-level response never leaks AMM vs CLOB. One price field, one size field. meta.fill_venue optional if you need to debug routing.
Market IDs are m_<sha256[0:16]> — idempotent create. Repeat POST /v1/markets returns the same market.
Email, phone, IP stripped from external responses by default. Self-view paths (/v1/account) preserve. X-PII-Redacted header always present.
USDT 6dp, BTC 8dp, ETH 18dp — never JavaScript numbers (loses precision). "1000.234567" not 1000.234567.
{ok, data, meta} on every canonical response. Deep snake_case keys. Timestamps have *_at_ms sibling for easy Date construction.
Every core table has chain_data JSONB nullable — reserved for on-chain settlement metadata when we ship Base L2.
Send X-Api-Key: sk_live_... header. Simple auth for machine-to-machine, creator profiles, aggregators. Wrong-env key returns 401 WRONG_ENV_KEY.
5 headers: POLY_ACCESS_KEY, POLY_TIMESTAMP, POLY_PASSPHRASE, POLY_SIGNATURE. Signature = base64(HMAC-SHA256(secret, ts + method + path + body)).
Authorization: Bearer <session_token> — for browser / mobile client flows. Get token via POST /api/auth/login. Not intended for machine partners.
Per API key, sliding-window. Response headers X-RateLimit-Remaining and Retry-After (on 429) tell you the state.
60 req/min read · 30 req/min trade · 10 req/min create.
Upgrade tier via partner agreement.
10× production baseline. Load-test partners upgradable to 50×. Circuit breaker at 80% VM CPU regardless of tier.