開発者API · v2.5.0

Web3ネイティブの予測マーケットで構築

REST + WebSocket · 統一レスポンス形式 · 決定的なマーケットID · Bearer sk_live_* + OAuth 2.1 · 匿名サンドボックスティア · OpenAPI 3.1 + AsyncAPI 2.6 仕様

始めるRESTリファレンスキーを取得するにはサインインしてください
統一レスポンス形式
Top-level fields are a single canonical envelope across product surfaces. { data, meta: { ts_ms, trace_id, is_simulated? } }.
決定的なマーケットID
Idempotent create — network retries never double-book. IDs are unforgeable without server-side inputs.
Web3プライバシーファースト
Email, phone, IP stripped from external responses by default. Self-view paths preserve. X-PII-Redacted header on every reply.
金額は小数文字列
USDT 6dp, BTC 8dp, ETH 18dp — never JavaScript numbers. Zero precision loss on client parse.
匿名サンドボックスティア
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.
ベアラ認証 (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.

30秒で動作開始

1. 匿名サンドボックスキーを発行(認証・メール不要):
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. マーケット一覧を取得:
curl https://api.predictasiax.com/v1/markets \
  -H "Authorization: Bearer sk_live_YOUR_KEY_HERE"
3. リアルタイムティックに購読(AsyncAPI準拠の大文字コマンド動詞を使用):
wscat -c wss://predictasiax.com/ws
> {"op":"SUBSCRIBE","params":["fast_tick"]}
4. 注文の発行 (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"}'

仕様、ツール & SDK

OpenAPI 3.1 (REST)
16のタググループにまたがる69パス / 76操作 — Discovery, Builders, Apps, Attribution, Revenue, Connect, Subaccounts, Composer, Liquidity, Data, Webhooks, Marketplace, Oracle, Sandbox, Audit, Portfolio。
Redocを開く →
AsyncAPI 2.6 (WebSocket)
wss://predictasiax.com/ws での54イベントメッセージ + 4クライアントコマンド (AUTH / SUBSCRIBE / UNSUBSCRIBE / LOCALE)。
AsyncAPIを開く →
Postman + codegen
Postmanコレクション + サンドボックス/本番環境。openapi-generatorは50以上のターゲット言語をサポートしています。
ファイルを取得 →
サンドボックス — 現在稼働中
本番環境と同じホスト、self_serveティア(1注文あたり10 USDT、1日あたり名目上限100 USDT、ミッドプライスでのシミュレート約定)。実資金へのリスクはゼロ。匿名でのミントは POST /v1/sandbox-keys.
概要を読む →
認証
Bearer sk_live_* (live) · ホスト型アプリ向け OAuth 2.1 + PKCE (live) · 運用プロビジョニングパートナー向けエンタープライズHMACパスをドキュメント化。
認証ガイドを読む →
エラーとレート制限
解決手順付きの型付きエラーコード40種以上。明確なヘッダー付きスライディングウィンドウレート制限。
エラーを読む →

PAX上で構築しているのは誰ですか

取引ボット
Systematic strategies, arbitrage bots, market-making. Bearer sk_live_* per request, WebSocket for real-time fills, multiple keys per account via the Portal.
アグリゲーター
Multi-venue dashboards showing PAX markets alongside other prediction sources. Public read endpoints, no auth needed for market data.
ホスト型アプリ (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.
モバイルクライアント
Bearer auth for machine partners; OAuth for user-scoped mobile flows. WebSocket for live prices and account events. Multi-locale support (13 languages).
データプロバイダー
Historical trades tape (30d), OHLCV candles (90d), settlement records. Full public Merkle audit trail per market via /v1/audit/*.
リサーチ / 学術
Public read-only access. Prediction market research on Asia-focused events. No cost for read endpoints during early access.

サポート

パートナー & オンボーディング
[email protected]
APIキーの申請、パートナーティアのレート制限、統合に関するお問い合わせ。
Twitter
@PredictAsiaX_AD
リリース情報、インシデント更新、コミュニティ。
API利用規約
predictasiax.com/terms
API利用に関する利用規約。