{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cryptodataapi-com/json-schema/cryptodataapi-com-market-health-response-schema.json",
  "title": "MarketHealthResponse",
  "description": "Full market health score response.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cryptodataapi-com-market-health-api-openapi.yml#/components/schemas/MarketHealthResponse",
  "properties": {
    "total_score": {
      "type": "integer",
      "title": "Total Score"
    },
    "long_term_score": {
      "type": "integer",
      "title": "Long Term Score"
    },
    "short_term_score": {
      "type": "integer",
      "title": "Short Term Score"
    },
    "state": {
      "type": "string",
      "title": "State"
    },
    "sentiment": {
      "type": "string",
      "title": "Sentiment"
    },
    "long_term_sentiment": {
      "type": "string",
      "title": "Long Term Sentiment"
    },
    "short_term_sentiment": {
      "type": "string",
      "title": "Short Term Sentiment"
    },
    "components": {
      "items": {
        "$ref": "#/$defs/ComponentScoreSchema"
      },
      "type": "array",
      "title": "Components"
    },
    "long_term_components": {
      "items": {
        "$ref": "#/$defs/ComponentScoreSchema"
      },
      "type": "array",
      "title": "Long Term Components"
    },
    "short_term_components": {
      "items": {
        "$ref": "#/$defs/ComponentScoreSchema"
      },
      "type": "array",
      "title": "Short Term Components"
    },
    "details": {
      "additionalProperties": true,
      "type": "object",
      "title": "Details",
      "default": {}
    },
    "indicators": {
      "title": "Indicators",
      "additionalProperties": true,
      "type": [
        "object",
        "null"
      ]
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "title": "Timestamp"
    }
  },
  "type": "object",
  "required": [
    "total_score",
    "long_term_score",
    "short_term_score",
    "state",
    "sentiment",
    "long_term_sentiment",
    "short_term_sentiment",
    "components",
    "long_term_components",
    "short_term_components",
    "timestamp"
  ],
  "$defs": {
    "ComponentScoreSchema": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "score": {
          "type": "integer",
          "title": "Score"
        },
        "weight": {
          "type": "number",
          "title": "Weight"
        },
        "description": {
          "type": "string",
          "title": "Description"
        },
        "details": {
          "additionalProperties": true,
          "type": "object",
          "title": "Details",
          "default": {}
        }
      },
      "type": "object",
      "required": [
        "name",
        "score",
        "weight",
        "description"
      ],
      "title": "ComponentScoreSchema",
      "description": "Individual component score."
    }
  }
}