{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coinxview-com/json-schema/coinxview-com-risk-schema.json",
  "title": "Risk",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coinxview-com-openapi.json#/components/schemas/Risk",
  "type": "object",
  "properties": {
    "symbol": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "risk": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    },
    "risk_level": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high",
        "very_high"
      ]
    },
    "partial": {
      "type": "boolean",
      "description": "True when some components lack data yet."
    },
    "components": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "enum": [
              "liq",
              "vol",
              "ex",
              "spread",
              "age"
            ]
          },
          "name": {
            "type": "string"
          },
          "weight_pct": {
            "type": "number"
          },
          "score": {
            "type": "number",
            "description": "0-100, higher = riskier."
          }
        }
      }
    },
    "hack_penalty": {
      "type": "integer",
      "description": "Points added when the project lost $1M+ to a hack in the last 12 months."
    },
    "method": {
      "type": "string",
      "description": "How the score is calculated."
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "about": {
      "type": "string",
      "format": "uri"
    }
  }
}