{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adanos-market-sentiment-api/json-schema/adanos-market-sentiment-api-polymarket-trending-stock-schema.json",
  "title": "PolymarketTrendingStock",
  "description": "Trending stock from Polymarket in Reddit/X-compatible shape.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adanos-market-sentiment-api-polymarket-stocks-api-openapi.yml#/components/schemas/PolymarketTrendingStock",
  "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"
    },
    "buzz_score": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 100.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Buzz Score",
      "description": "Polymarket activity/flow discovery score (0-100); not directional sentiment"
    },
    "trend": {
      "type": "string",
      "enum": [
        "rising",
        "falling",
        "stable"
      ],
      "title": "Trend",
      "description": "Flow momentum over the current 3 UTC days vs previous 3 UTC days using trades, volume, market breadth and liquidity; not price movement. For `from`/`to`, anchors at `to` (or now when `to` is today)."
    },
    "trade_count": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Trade Count",
      "description": "Trade count in selected period"
    },
    "market_count": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Market Count",
      "description": "Distinct markets that existed for ticker within the selected UTC window, counted by market-catalog lifetime overlap"
    },
    "current_market_count": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Current Market Count",
      "description": "Number of currently open markets in the latest UTC-day snapshot for ticker; use this for live-only market breadth"
    },
    "unique_traders": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Unique Traders",
      "description": "Exact distinct union of observed proxy and explicit maker wallet hashes for the delivered scope and UTC window; null when retained wallet-level trades do not fully cover the window; not a complete market-wide participant census"
    },
    "sentiment_score": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 1.0,
          "minimum": -1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Sentiment Score",
      "description": "Orderbook-aware implied sentiment (-1 to +1); null when no directional sentiment evidence exists in the selected period"
    },
    "bullish_pct": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 0.0,
      "title": "Bullish Pct",
      "description": "Outcome-aware bullish market percentage"
    },
    "bearish_pct": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 0.0,
      "title": "Bearish Pct",
      "description": "Outcome-aware bearish market percentage"
    },
    "total_liquidity": {
      "type": "number",
      "minimum": 0.0,
      "title": "Total Liquidity",
      "description": "Windowed aggregated liquidity signal in USD over the selected period; not a current snapshot"
    },
    "trend_history": {
      "items": {
        "type": "number"
      },
      "type": "array",
      "title": "Trend History",
      "description": "Recent buzz history (oldest→newest). Length follows the resolved period, with a minimum of 7 values. Closed historical windows end at `to`."
    }
  },
  "type": "object",
  "required": [
    "ticker",
    "buzz_score",
    "trend",
    "trade_count",
    "market_count",
    "current_market_count",
    "bullish_pct",
    "bearish_pct",
    "total_liquidity"
  ]
}