{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/resolvedmarkets-com/json-schema/resolvedmarkets-com-market-schema.json",
  "title": "Market",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/resolvedmarkets-com-openapi.json#/components/schemas/Market",
  "type": "object",
  "properties": {
    "market_id": {
      "type": "string"
    },
    "conditionId": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "question": {
      "type": "string"
    },
    "category": {
      "type": "string"
    },
    "subcategory": {
      "type": "string"
    },
    "crypto": {
      "type": "string"
    },
    "timeframe": {
      "type": "string"
    },
    "tokenIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "tokenIdUp": {
      "type": "string"
    },
    "tokenIdDown": {
      "type": "string"
    },
    "endDate": {
      "type": "string",
      "format": "date-time"
    },
    "expired": {
      "type": "boolean"
    },
    "expiresIn": {
      "type": "integer",
      "description": "Milliseconds until endDate; 0 if expired."
    }
  }
}