{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adanos-market-sentiment-api/json-schema/adanos-market-sentiment-api-crypto-compare-response-schema.json",
  "title": "CryptoCompareResponse",
  "description": "Comparison response for multiple crypto symbols.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adanos-market-sentiment-api-reddit-crypto-api-openapi.yml#/components/schemas/CryptoCompareResponse",
  "properties": {
    "period_days": {
      "type": "integer",
      "title": "Period Days",
      "description": "Analysis period in days"
    },
    "tokens": {
      "items": {
        "$ref": "#/$defs/CryptoCompareTokenItem"
      },
      "type": "array",
      "title": "Tokens",
      "description": "Requested tokens sorted by buzz_score descending"
    }
  },
  "type": "object",
  "required": [
    "period_days",
    "tokens"
  ],
  "$defs": {
    "CryptoCompareTokenItem": {
      "properties": {
        "symbol": {
          "type": "string",
          "title": "Symbol"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name"
        },
        "buzz_score": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 100.0,
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Buzz Score"
        },
        "trend": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "rising",
                "falling",
                "stable"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Trend",
          "description": "Activity momentum over the current 3 UTC days vs previous 3 UTC days using mentions, upvotes and subreddit breadth; not price movement. For `from`/`to`, anchors at `to` (or now when `to` is today). Null when no qualifying data exists."
        },
        "mentions": {
          "type": "integer",
          "title": "Mentions",
          "description": "Attributed mentions in the selected period, including inherited thread-context mentions"
        },
        "unique_posts": {
          "type": "integer",
          "title": "Unique Posts",
          "description": "Unique Reddit post count"
        },
        "subreddit_count": {
          "type": "integer",
          "title": "Subreddit Count",
          "description": "Unique subreddit count"
        },
        "sentiment_score": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 1.0,
              "minimum": -1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Sentiment Score"
        },
        "bullish_pct": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 100.0,
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Bullish Pct"
        },
        "bearish_pct": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 100.0,
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Bearish Pct"
        },
        "total_upvotes": {
          "type": "integer",
          "title": "Total Upvotes",
          "description": "Total upvotes from attributed mentions"
        },
        "trend_history": {
          "items": {
            "type": "number"
          },
          "type": "array",
          "title": "Trend History",
          "description": "Daily buzz scores (oldest to newest). Length follows the resolved period, with a minimum of 7 values when data exists. Empty when no qualifying data exists."
        }
      },
      "type": "object",
      "required": [
        "symbol",
        "buzz_score",
        "mentions",
        "unique_posts",
        "subreddit_count",
        "total_upvotes"
      ],
      "title": "CryptoCompareTokenItem",
      "description": "Individual crypto token in a compare response."
    }
  }
}