{
  "$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-market-sentiment-response-schema.json",
  "title": "CryptoMarketSentimentResponse",
  "description": "Service-level Reddit Crypto market sentiment across all tracked assets.",
  "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/CryptoMarketSentimentResponse",
  "properties": {
    "buzz_score": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 100.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Buzz Score",
      "description": "Service-wide Reddit Crypto heat score relative to the trailing 90-day baseline for the selected period"
    },
    "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)."
    },
    "mentions": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Mentions",
      "description": "Total Reddit mentions across the selected period, including inherited thread-context mentions"
    },
    "unique_posts": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Unique Posts",
      "description": "Exact distinct Reddit post count across the selected UTC period"
    },
    "subreddit_count": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Subreddit Count",
      "description": "Distinct subreddits contributing in the selected period"
    },
    "total_upvotes": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Total Upvotes",
      "description": "Total upvotes across attributed mentions in the selected period"
    },
    "active_tickers": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Active Tickers",
      "description": "Number of crypto symbols with activity in the selected period"
    },
    "sentiment_score": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 1.0,
          "minimum": -1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Sentiment Score",
      "description": "Service-wide average sentiment score across the selected period"
    },
    "positive_count": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Positive Count",
      "description": "Deprecated. Prefer bullish_pct with mentions for public analysis; retained for v1 compatibility.",
      "deprecated": true
    },
    "negative_count": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Negative Count",
      "description": "Deprecated. Prefer bearish_pct with mentions for public analysis; retained for v1 compatibility.",
      "deprecated": true
    },
    "neutral_count": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Neutral Count",
      "description": "Deprecated. Prefer bullish_pct, bearish_pct and mentions for public analysis; retained for v1 compatibility.",
      "deprecated": true
    },
    "bullish_pct": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 0.0,
      "title": "Bullish Pct",
      "description": "Bullish mention percentage"
    },
    "bearish_pct": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 0.0,
      "title": "Bearish Pct",
      "description": "Bearish mention percentage"
    },
    "trend_history": {
      "items": {
        "type": "number"
      },
      "type": "array",
      "title": "Trend History",
      "description": "Daily service-wide Reddit Crypto heat scores (oldest→newest), each calibrated relative to the trailing 90-day baseline. Length = max(requested_days, 7) for successful requests; windows before platform availability return HTTP 422."
    },
    "drivers": {
      "items": {
        "$ref": "#/$defs/CryptoMarketSentimentDriver"
      },
      "type": "array",
      "title": "Drivers",
      "description": "Top assets by current buzz_score driving the service-level reading"
    }
  },
  "type": "object",
  "required": [
    "buzz_score",
    "mentions",
    "unique_posts",
    "subreddit_count",
    "total_upvotes",
    "active_tickers",
    "positive_count",
    "negative_count",
    "neutral_count",
    "bullish_pct",
    "bearish_pct"
  ],
  "$defs": {
    "CryptoMarketSentimentDriver": {
      "properties": {
        "symbol": {
          "type": "string",
          "title": "Symbol",
          "description": "Crypto symbol"
        },
        "mentions": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Mentions",
          "description": "Attributed Reddit mentions in the selected period, including inherited thread-context mentions"
        },
        "buzz_score": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 100.0,
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Buzz Score",
          "description": "Asset buzz score in the selected period"
        },
        "sentiment_score": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 1.0,
              "minimum": -1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Sentiment Score",
          "description": "Average sentiment score for this asset"
        }
      },
      "type": "object",
      "required": [
        "symbol",
        "mentions",
        "buzz_score"
      ],
      "title": "CryptoMarketSentimentDriver",
      "description": "Top asset contributing to the service-level Reddit Crypto market sentiment."
    }
  }
}