{
  "$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-market-sentiment-response-schema.json",
  "title": "PolymarketMarketSentimentResponse",
  "description": "Service-level Polymarket market sentiment across all tracked stocks.",
  "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/PolymarketMarketSentimentResponse",
  "properties": {
    "buzz_score": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 100.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Buzz Score",
      "description": "Service-wide Polymarket heat score relative to the service's trailing 90-day baseline. Around 50 = normal activity, higher values = hotter-than-usual Polymarket activity."
    },
    "trend": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "rising",
            "falling",
            "stable"
          ]
        },
        {
          "type": "null"
        }
      ],
      "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. Null when the selected window has no measurable Polymarket heat. For `from`/`to`, anchors at `to` (or now when `to` is today)."
    },
    "trade_count": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Trade Count",
      "description": "Service-wide trade count in the selected period"
    },
    "market_count": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Market Count",
      "description": "Sum of ticker-level catalog lifetime-overlap market counts in the selected UTC window; not a cross-ticker global condition-id union"
    },
    "current_market_count": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Current Market Count",
      "description": "Sum of ticker-level currently open markets in the latest UTC-day snapshot; use this for live-only market breadth"
    },
    "unique_traders": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Unique Traders",
      "description": "Exact service-wide observed participant/proxy-wallet union in the selected period; null when retained wallet-level trades do not fully cover the requested window"
    },
    "total_liquidity": {
      "type": "number",
      "minimum": 0.0,
      "title": "Total Liquidity",
      "description": "Windowed aggregated liquidity signal in USD over the selected period"
    },
    "active_tickers": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Active Tickers",
      "description": "Number of tickers with market activity in the selected period"
    },
    "sentiment_score": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 1.0,
          "minimum": -1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Sentiment Score",
      "description": "Service-wide weighted orderbook-aware implied sentiment score"
    },
    "positive_count": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Positive Count",
      "description": "Deprecated. Outcome-aware bullish market count retained for v1 compatibility; prefer bullish_pct with trade_count and market_count for public analysis.",
      "deprecated": true
    },
    "negative_count": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Negative Count",
      "description": "Deprecated. Outcome-aware bearish market count retained for v1 compatibility; prefer bearish_pct with trade_count and market_count for public analysis.",
      "deprecated": true
    },
    "neutral_count": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Neutral Count",
      "description": "Deprecated. Outcome-aware neutral/unclassified market count retained for v1 compatibility; prefer bullish_pct, bearish_pct, trade_count and market_count for public analysis.",
      "deprecated": true
    },
    "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"
    },
    "trend_history": {
      "items": {
        "type": "number"
      },
      "type": "array",
      "title": "Trend History",
      "description": "Daily service-wide buzz scores (oldest→newest) using the same relative baseline calibration. Length = max(requested_days, 7) for successful requests; windows before platform availability return HTTP 422."
    },
    "drivers": {
      "items": {
        "$ref": "#/$defs/PolymarketMarketSentimentDriver"
      },
      "type": "array",
      "title": "Drivers",
      "description": "Top assets by current buzz_score driving the service-level reading"
    }
  },
  "type": "object",
  "required": [
    "buzz_score",
    "trade_count",
    "market_count",
    "current_market_count",
    "total_liquidity",
    "active_tickers",
    "positive_count",
    "negative_count",
    "neutral_count",
    "bullish_pct",
    "bearish_pct"
  ],
  "$defs": {
    "PolymarketMarketSentimentDriver": {
      "properties": {
        "ticker": {
          "type": "string",
          "title": "Ticker",
          "description": "Stock ticker symbol"
        },
        "trade_count": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Trade Count",
          "description": "Trade count for this asset in the selected period"
        },
        "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": "Implied sentiment score for this asset in the selected period"
        }
      },
      "type": "object",
      "required": [
        "ticker",
        "trade_count",
        "buzz_score"
      ],
      "title": "PolymarketMarketSentimentDriver",
      "description": "Top asset contributing to the service-level Polymarket market sentiment."
    }
  }
}