{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adanos-market-sentiment-api/json-schema/adanos-market-sentiment-api-trending-stock-schema.json",
  "title": "TrendingStock",
  "description": "Trending stock with buzz metrics from Reddit.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adanos-market-sentiment-api-reddit-stocks-api-openapi.yml#/components/schemas/TrendingStock",
  "properties": {
    "ticker": {
      "type": "string",
      "title": "Ticker",
      "description": "Stock ticker symbol"
    },
    "company_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Company Name",
      "description": "Company name from ticker_reference (null if not found)"
    },
    "buzz_score": {
      "type": "number",
      "maximum": 100.0,
      "minimum": 0.0,
      "title": "Buzz Score",
      "description": "Buzz Score (0-100). Asymptotic scaling above 50."
    },
    "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, upvotes and subreddit breadth; not price movement. For `from`/`to`, anchors at `to` (or now when `to` is today)."
    },
    "mentions": {
      "type": "integer",
      "title": "Mentions",
      "description": "Total attributed mentions, including inherited thread-context mentions"
    },
    "unique_posts": {
      "type": "integer",
      "title": "Unique Posts",
      "description": "Number of unique posts"
    },
    "subreddit_count": {
      "type": "integer",
      "title": "Subreddit Count",
      "description": "Number of subreddits with mentions"
    },
    "sentiment_score": {
      "type": "number",
      "maximum": 1.0,
      "minimum": -1.0,
      "title": "Sentiment Score",
      "description": "Average sentiment score (-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"
    },
    "total_upvotes": {
      "type": "integer",
      "title": "Total Upvotes",
      "description": "Total upvotes across attributed mentions"
    },
    "trend_history": {
      "items": {
        "type": "number"
      },
      "type": "array",
      "title": "Trend History",
      "description": "Daily buzz scores (oldest→newest). Length follows the resolved period, with a minimum of 7 values. Values 0-100."
    }
  },
  "type": "object",
  "required": [
    "ticker",
    "buzz_score",
    "trend",
    "mentions",
    "unique_posts",
    "subreddit_count",
    "sentiment_score",
    "bullish_pct",
    "bearish_pct",
    "total_upvotes"
  ]
}