{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/resolvedmarkets-com/json-schema/resolvedmarkets-com-trade-schema.json",
  "title": "Trade",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/resolvedmarkets-com-openapi.json#/components/schemas/Trade",
  "type": "object",
  "properties": {
    "market_id": {
      "type": "string"
    },
    "asset_id": {
      "type": "string",
      "description": "CLOB token id of the traded outcome; equals token_id in /snapshots."
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "Our capture time of the trade."
    },
    "price": {
      "type": "number",
      "description": "Trade price (0-1)."
    },
    "size": {
      "type": "number",
      "description": "Trade size in shares."
    },
    "side": {
      "type": "string",
      "enum": [
        "BUY",
        "SELL"
      ],
      "description": "Aggressor side of the fill."
    },
    "category": {
      "type": "string"
    },
    "subcategory": {
      "type": "string"
    },
    "token_side": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "UP",
        "DOWN"
      ],
      "description": "Derived from asset_id; may be null on some closed markets when ?side= is omitted."
    }
  }
}