{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adanos-market-sentiment-api/json-schema/adanos-market-sentiment-api-news-trending-sector-schema.json",
  "title": "NewsTrendingSector",
  "description": "Trending sector with aggregated buzz metrics from news.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adanos-market-sentiment-api-news-stocks-api-openapi.yml#/components/schemas/NewsTrendingSector",
  "properties": {
    "buzz_score": {
      "type": "number",
      "maximum": 100.0,
      "minimum": 0.0,
      "title": "Buzz Score",
      "description": "Aggregated Buzz Score (0-100)"
    },
    "trend": {
      "type": "string",
      "enum": [
        "rising",
        "falling",
        "stable"
      ],
      "title": "Trend",
      "description": "Activity momentum over the current 3 UTC days vs previous 3 UTC days using mentions/articles and source breadth; not price movement. For `from`/`to`, anchors at `to` (or now when `to` is today)."
    },
    "mentions": {
      "type": "integer",
      "title": "Mentions",
      "description": "Total mentions"
    },
    "unique_tickers": {
      "type": "integer",
      "title": "Unique Tickers",
      "description": "Number of unique tickers mentioned"
    },
    "source_count": {
      "type": "integer",
      "title": "Source Count",
      "description": "Number of distinct news sources with mentions"
    },
    "sentiment_score": {
      "type": "number",
      "maximum": 1.0,
      "minimum": -1.0,
      "title": "Sentiment Score",
      "description": "Weighted average sentiment (-1 bearish to +1 bullish)"
    },
    "bullish_pct": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 0.0,
      "title": "Bullish Pct",
      "description": "Percentage of bullish mentions"
    },
    "bearish_pct": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 0.0,
      "title": "Bearish Pct",
      "description": "Percentage of bearish mentions"
    },
    "trend_history": {
      "items": {
        "type": "number"
      },
      "type": "array",
      "title": "Trend History",
      "description": "Daily dimension buzz scores (oldest to newest). Length follows the resolved period, with a minimum of 7 values. Every slot describes only its UTC calendar day. The live final value describes today so far and can differ from period buzz_score. Closed historical windows end at `to`."
    },
    "top_tickers": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 5,
      "title": "Top Tickers",
      "description": "Top 5 tickers by mentions"
    },
    "sector": {
      "type": "string",
      "title": "Sector",
      "description": "Industry sector name"
    }
  },
  "type": "object",
  "required": [
    "buzz_score",
    "trend",
    "mentions",
    "unique_tickers",
    "source_count",
    "sentiment_score",
    "bullish_pct",
    "bearish_pct",
    "trend_history",
    "top_tickers",
    "sector"
  ]
}