{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ticktape-cc/json-schema/ticktape-cc-preflight-trade-request-schema.json",
  "title": "PreflightTradeRequest",
  "description": "Identify the market by slug + outcome, or by token_id.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ticktape-cc-openapi.json#/components/schemas/PreflightTradeRequest",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "description": "Polymarket market or event slug; full event URLs accepted."
    },
    "outcome": {
      "type": "string",
      "description": "Outcome to price (partial match OK for multi-outcome events)."
    },
    "token_id": {
      "type": "string",
      "description": "CLOB token id - alternative to slug + outcome."
    },
    "side": {
      "type": "string",
      "enum": [
        "BUY",
        "SELL"
      ],
      "default": "BUY"
    },
    "usd": {
      "type": "number",
      "default": 100,
      "exclusiveMinimum": 0,
      "description": "Order size in USD."
    },
    "max_slippage_c": {
      "type": "number",
      "default": 1.0
    },
    "veto_slippage_c": {
      "type": "number",
      "default": 3.0
    },
    "max_book_age_s": {
      "type": "number",
      "default": 60
    }
  }
}