DEVELOPER 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.
Bearer 인증 (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 + 코드 생성
Postman 컬렉션 + 샌드박스/프로덕션 환경. openapi-generator는 50개 이상의 타겟 언어를 지원합니다.
파일 받기 →
샌드박스 — 지금 바로 사용 가능
프로덕션과 동일한 호스트, self_serve 티어 (주문당 10 USDT, 일일 명목 한도 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 키 요청, 파트너 등급 레이트 리밋, 통합 관련 문의.
트위터
@PredictAsiaX_AD
릴리스 공지, 사고 업데이트, 커뮤니티.
API 약관
predictasiax.com/terms
API 사용에 관한 서비스 약관.