The side parameter accepts the market’s custom ticker names. For example, if a market uses UP/DOWN tickers, pass "side": "UP" or "side": "DOWN". You can also always use the canonical YES/NO.
Always get a quote first to preview the trade. All amounts are in raw units (6 decimals, matching USDC).
If you attempt to buy on a non-active market (resolved, cancelled), you’ll receive a 409 Conflict response including marketStatus and winningSide (if resolved) so you can handle it without a separate API call.
{ "success": false, "error": "Market is resolved, not active. Cannot trade.", "marketStatus": "resolved", "winningSide": "YES"}