{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/liquidvision-app/json-schema/liquidvision-app-webhook-body-schema.json",
  "title": "WebhookBody",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/liquidvision-app-openapi.json#/components/schemas/WebhookBody",
  "properties": {
    "type": {
      "type": "string",
      "pattern": "^(cascade|hl_near_liq|cluster_sweep|detective|condition|position)$",
      "title": "Type"
    },
    "url": {
      "type": "string",
      "maxLength": 500,
      "minLength": 10,
      "title": "Url"
    },
    "symbol": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[A-Za-z0-9]{2,20}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Symbol"
    },
    "min_usd": {
      "type": "number",
      "minimum": 10000.0,
      "title": "Min Usd",
      "default": 1000000
    },
    "x_normal": {
      "type": "number",
      "minimum": 2.0,
      "title": "X Normal",
      "default": 8
    },
    "max_dist_pct": {
      "type": "number",
      "maximum": 25.0,
      "exclusiveMinimum": 0.0,
      "title": "Max Dist Pct",
      "default": 3
    },
    "metric": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(funding_apr_pct|oi_chg_1h_pct|oi_chg_24h_pct|liq_1h_usd|liq_24h_usd|price_chg_1h_pct|price_chg_24h_pct|long_pct)$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Metric"
    },
    "op": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(gt|lt)$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Op"
    },
    "threshold": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Threshold"
    },
    "side": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(long|short)$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Side"
    },
    "entry": {
      "anyOf": [
        {
          "type": "number",
          "exclusiveMinimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Entry"
    },
    "leverage": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 500.0,
          "exclusiveMinimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Leverage"
    },
    "notional_usd": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 10000000000.0,
          "exclusiveMinimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Notional Usd"
    },
    "venue": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[a-z]{2,12}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Venue"
    }
  },
  "type": "object",
  "required": [
    "type",
    "url"
  ]
}