{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cryptodataapi-com/json-schema/cryptodataapi-com-oidivergence-response-schema.json",
  "title": "OIDivergenceResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cryptodataapi-com-liquidity-market-depth-api-openapi.yml#/components/schemas/OIDivergenceResponse",
  "properties": {
    "as_of": {
      "type": "integer",
      "title": "As Of"
    },
    "universe_size": {
      "type": "integer",
      "title": "Universe Size"
    },
    "rows": {
      "items": {
        "$ref": "#/$defs/OIDivergenceRow"
      },
      "type": "array",
      "title": "Rows"
    }
  },
  "type": "object",
  "required": [
    "as_of",
    "universe_size",
    "rows"
  ],
  "$defs": {
    "OIDivergenceRow": {
      "properties": {
        "coin": {
          "type": "string",
          "title": "Coin"
        },
        "price": {
          "title": "Price",
          "type": [
            "number",
            "null"
          ]
        },
        "open_interest_usd": {
          "title": "Open Interest Usd",
          "type": [
            "number",
            "null"
          ]
        },
        "price_change_1h_pct": {
          "title": "Price Change 1H Pct",
          "type": [
            "number",
            "null"
          ]
        },
        "price_change_4h_pct": {
          "title": "Price Change 4H Pct",
          "type": [
            "number",
            "null"
          ]
        },
        "price_change_24h_pct": {
          "title": "Price Change 24H Pct",
          "type": [
            "number",
            "null"
          ]
        },
        "oi_change_1h_pct": {
          "title": "Oi Change 1H Pct",
          "type": [
            "number",
            "null"
          ]
        },
        "oi_change_4h_pct": {
          "title": "Oi Change 4H Pct",
          "type": [
            "number",
            "null"
          ]
        },
        "oi_change_24h_pct": {
          "title": "Oi Change 24H Pct",
          "type": [
            "number",
            "null"
          ]
        },
        "divergence_4h": {
          "title": "Divergence 4H",
          "description": "oi_change_4h_pct - price_change_4h_pct (positive = OI rising faster than price)",
          "type": [
            "number",
            "null"
          ]
        }
      },
      "type": "object",
      "required": [
        "coin"
      ],
      "title": "OIDivergenceRow"
    }
  }
}