{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blockworks/json-schema/blockworks-spot-dex-protocols-by-chain-data-schema.json",
  "title": "SpotDexProtocolsByChainData",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blockworks-spot-dexes-api-openapi.yml#/components/schemas/SpotDexProtocolsByChainData",
  "properties": {
    "point_schema": {
      "items": {
        "properties": {
          "description": {
            "type": "string"
          },
          "field": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "time": {
            "type": "boolean"
          },
          "type": {
            "type": "string"
          },
          "unit": {
            "description": "What the value is denominated in. Absent for a plain number.",
            "enum": [
              "usd",
              "btc",
              "sats",
              "eth",
              "gwei",
              "native-token",
              "percent",
              "count",
              "ratio"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "series": {
      "items": {
        "properties": {
          "entity": {
            "description": "Information about what the series key identifies, from the \"spot-dex-protocol-chains\" model.",
            "properties": {
              "name": {
                "description": "The display name of the deployment, the protocol's short name followed by its version (uniswap v3).",
                "type": [
                  "string",
                  "null"
                ]
              },
              "slug": {
                "description": "The protocol's project slug; null for venues without a project record.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "key": {
            "type": "string"
          },
          "points": {
            "items": {
              "description": "A unix timestamp (seconds) followed by the metric values, in point_schema order.",
              "items": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "type": "array"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "point_schema",
    "series"
  ],
  "type": "object"
}