{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pzero-studio/json-schema/pzero-studio-market-stats-schema.json",
  "title": "MarketStats",
  "description": "Live corridor snapshot. DIEM quantities are decimal strings; USDC amounts are decimal strings with six places.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pzero-studio-openapi.json#/components/schemas/MarketStats",
  "type": "object",
  "properties": {
    "ready": {
      "type": "boolean"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "corridor": {
      "type": "object",
      "properties": {
        "floorCents": {
          "type": "integer"
        },
        "capCents": {
          "type": "integer"
        },
        "bucketStepCents": {
          "type": "integer"
        }
      }
    },
    "availableDepth": {
      "type": "object",
      "additionalProperties": true
    },
    "supplyDepth": {
      "type": "object",
      "additionalProperties": true
    },
    "demandDepth": {
      "type": "object",
      "additionalProperties": true
    },
    "clearedVolumeToday": {
      "type": "object",
      "additionalProperties": true
    },
    "clearPriceCents": {
      "type": "object",
      "additionalProperties": true
    },
    "buyerSavings": {
      "type": "object",
      "properties": {
        "avgClearingPriceCents": {
          "type": "number"
        },
        "avgDiscountVsFacePercent": {
          "type": "number"
        },
        "clearsCount": {
          "type": "integer"
        },
        "diemCleared": {
          "type": "string"
        },
        "grossGmvUsdc": {
          "type": "string"
        }
      },
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}