API Reference
REST Sketch
Section titled “REST Sketch”GET /api/marketsGET /api/markets/{marketId}GET /api/markets/{marketId}/bookGET /api/markets/{marketId}/tradesGET /api/markets/{marketId}/rules
POST /api/ordersPOST /api/orders/{orderId}/cancelPOST /api/orders/cancel-allGET /api/accounts/{address}/portfolioGET /api/accounts/{address}/ordersGET /api/accounts/{address}/tradesGET /api/accounts/{address}/redeemableGET /api/markets/{marketId}/redemption
POST /api/paper/faucet/claimGET /api/paper/marketsGET /api/paper/markets/{marketId}GET /api/paper/markets/{marketId}/bookGET /api/paper/markets/{marketId}/tradesGET /api/paper/markets/{marketId}/rulesGET /api/paper/accounts/{address}/portfolioGET /api/paper/accounts/{address}/positionsGET /api/paper/accounts/{address}/fillsPOST /api/paper/ordersPOST /api/paper/orders/{orderId}/cancelPOST /api/paper/settlement/runPOST /api/paper/markets/{marketId}/live-events/simulatePOST /api/paper/markets/{marketId}/closePOST /api/paper/markets/{marketId}/resolvePOST /api/paper/markets/{marketId}/resolution/finalizePOST /api/paper/markets/{marketId}/redeemGET /api/paper/statusWS /api/paper/ws
GET /api/contract-registryGET /api/paper/contract-registryGET /api/statusWebSocket Sketch
Section titled “WebSocket Sketch”WS /ws
market:{marketId}:bookmarket:{marketId}:tradesmarket:{marketId}:statusmarket:{marketId}:live-statepaper:statusaccount:{address}:ordersaccount:{address}:fillsaccount:{address}:portfolioPaper WebSocket events use concrete event names while the production channel contract is still maturing:
paper_market_bookpaper_matched_pending_fillpaper_settlement_confirmedpaper_account_positionspaper_market_lifecyclepaper_redemption_confirmedpaper_market_live_statepaper_statusSettlement And Portfolio Semantics
Section titled “Settlement And Portfolio Semantics”matchedPendingfills are not confirmed Outcome Shares.- Settlement confirmation is required before portfolio positions appear.
- Primary binary matching creates YES/NO Outcome Shares through CTF Collateral splitting.
- Secondary resale transfers existing Outcome Shares.
- Redeemable Markets appear only after final resolution.
- Redemption APIs must prepare direct CTF redemption data, not a claim against an Arenaton balance.
Public Market Data
Section titled “Public Market Data”Public APIs should expose market list/detail, best bid/ask, recent trades, volume, open interest, resolution source, market status, and selected WebSocket updates.
Private account APIs require authentication and must enforce geo/risk restrictions for trading actions.
External CTF Market Data
Section titled “External CTF Market Data”Arenaton can consume public third-party CTF market data for browsing and research surfaces. External market-data APIs must not become Arenaton order intake, settlement authority, or registry configuration.
GET /markets — List all active CTF markets (up to 500)GET /market?condition_id= — Single market detailsGET /book?token_id= — Order book for a tokenPOST /prices — Batch prices for up to 500 token IDsWS wss://ws-subscriptions-clob.polymarket.com/ws/market
Third-party contract addresses are references only. Arenaton clients must read live addresses from /api/contract-registry or /api/paper/contract-registry. See Gnosis CTF Model for the contract-boundary rules.
Compatibility Routes
Section titled “Compatibility Routes”The pulse server still exposes compatibility routes for current health checks, event data, and GraphQL probes while the exchange API matures.