{
  "title": "Polymarket Event Odds & Liquidity Monitor",
  "type": "object",
  "schemaVersion": 1,
  "properties": {
    "eventSlugs": {
      "title": "Event URLs or event slugs",
      "type": "array",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "description": "Paste standard https://polymarket.com/event/slug links. Each event expands to a bounded selection of its contained markets. Leave marketSlugs empty when using events.",
      "default": [],
      "prefill": [],
      "maxItems": 10
    },
    "marketSlugs": {
      "title": "Market slugs or market URLs",
      "type": "array",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "description": "Optional exact Gamma market slugs or /market/slug URLs. Use eventSlugs for standard event share links. Leave both lists empty for bounded market discovery.",
      "default": [],
      "prefill": [],
      "maxItems": 10
    },
    "keywords": {
      "title": "Keywords within the selected window",
      "type": "array",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "description": "Optional case-insensitive text matches in the question or description. These filter the fetched window; they are not a whole-platform search.",
      "default": [],
      "prefill": [],
      "maxItems": 10
    },
    "status": {
      "title": "Market status",
      "type": "string",
      "editor": "select",
      "description": "Open means closed=false; it does not assert that orders are accepted. Source active and acceptingOrders flags remain separate.",
      "enum": [
        "open",
        "closed",
        "all"
      ],
      "default": "open",
      "prefill": "open"
    },
    "sortBy": {
      "title": "Discovery order",
      "type": "string",
      "editor": "select",
      "description": "Ordering for bounded discovery. Exact watchlists preserve input order.",
      "enum": [
        "volume",
        "liquidity",
        "newest"
      ],
      "default": "volume",
      "prefill": "volume"
    },
    "minLiquidityUsd": {
      "title": "Minimum reported liquidity (USD)",
      "type": "integer",
      "description": "Filters lower or unavailable liquidity. Zero retains unknown values as null.",
      "default": 0,
      "prefill": 0,
      "minimum": 0,
      "maximum": 1000000000000
    },
    "itemsPerSource": {
      "title": "Selected markets per source",
      "type": "integer",
      "description": "Selected markets from one discovery page or each event, before filters. Event markets retain source order; no full-universe or historical archive claim.",
      "default": 5,
      "prefill": 5,
      "minimum": 1,
      "maximum": 100
    },
    "maxResults": {
      "title": "Maximum saved results",
      "type": "integer",
      "description": "Output cap. If selected matching observations remain, the run is incomplete and comparison history is not advanced.",
      "default": 10,
      "prefill": 10,
      "minimum": 1,
      "maximum": 500
    },
    "comparePrevious": {
      "title": "Compare with previous observations",
      "type": "boolean",
      "description": "A complete first run establishes private history. Later complete runs compare matching identities. Incomplete runs preserve prior history.",
      "default": false,
      "prefill": false
    },
    "onlyChanges": {
      "title": "Save only new or changed results",
      "type": "boolean",
      "description": "Enables comparison. A complete unchanged run can return zero rows. Missing items are never classified as removed.",
      "default": false,
      "prefill": false
    },
    "snapshotName": {
      "title": "History name",
      "type": "string",
      "editor": "textfield",
      "description": "Use a stable name and avoid overlapping runs for the same selection.",
      "default": "default",
      "prefill": "default",
      "pattern": "^[-\\w]{1,80}$"
    },
    "maxRunSeconds": {
      "title": "Time budget (seconds)",
      "type": "integer",
      "description": "Requests respect the remaining time budget. No requests are made after the deadline.",
      "default": 120,
      "prefill": 120,
      "minimum": 30,
      "maximum": 120
    }
  },
  "required": []
}
