Skip to main content
The core Trade API endpoints are: GET /trade/markets - Get all active markets and details (public) POST /trade/quote - To get price and number of shares to purchase based on amount to bet (public) POST /trade - Create a trade intent and get calldata (AMM) or EIP-712 typed data (CLOB). Requires a platform API key. POST /trade/save - Send the transaction hash after broadcasting a trade for origin attribution (requires a platform API key) GET /trade/positions - Fetch active or resolved positions for a wallet (public) POST /trade/redeem - Generate redeem calldata for a resolved market. Requires a platform API key.
Authentication. /trade/markets, /trade/quote, and /trade/positions are public. /trade and /trade/redeem require a platform API key, sent as the X-Platform-API-Key header (or Authorization: Bearer <apiKey>). Iframe partner tokens are additionally gated on the trade / redeem capability.
chainId. Trading endpoints accept an optional chainId; when omitted the API resolves the market’s chain automatically and falls back to the default chain for legacy markets. /trade/complete (deprecated) requires chainId.
Below is the Swagger API yaml for reference: