{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/worldmonitor-app/json-schema/worldmonitor-app-worldmonitor-market-v1-analyze-stock-response-schema.json",
  "title": "worldmonitor_market_v1_AnalyzeStockResponse",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/worldmonitor-app-openapi.json#/components/schemas/worldmonitor_market_v1_AnalyzeStockResponse",
  "type": "object",
  "properties": {
    "available": {
      "type": "boolean"
    },
    "symbol": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "display": {
      "type": "string"
    },
    "currency": {
      "type": "string"
    },
    "currentPrice": {
      "type": "number",
      "format": "double"
    },
    "changePercent": {
      "type": "number",
      "format": "double"
    },
    "signalScore": {
      "type": "number",
      "format": "double",
      "description": "Technical-analysis score (0-100), retained as a stable pair with signal for clients that predate the fundamentals-blended rating."
    },
    "signal": {
      "type": "string",
      "description": "Technical-only signal paired with signal_score. New clients should use rating_signal with composite_score for the surfaced investment rating."
    },
    "trendStatus": {
      "type": "string"
    },
    "volumeStatus": {
      "type": "string"
    },
    "macdStatus": {
      "type": "string"
    },
    "rsiStatus": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "action": {
      "type": "string"
    },
    "confidence": {
      "type": "string"
    },
    "technicalSummary": {
      "type": "string"
    },
    "newsSummary": {
      "type": "string"
    },
    "whyNow": {
      "type": "string"
    },
    "bullishFactors": {
      "$ref": "#/$defs/WM15"
    },
    "riskFactors": {
      "$ref": "#/$defs/WM15"
    },
    "supportLevels": {
      "$ref": "#/$defs/WM43"
    },
    "resistanceLevels": {
      "$ref": "#/$defs/WM43"
    },
    "headlines": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/worldmonitor_market_v1_StockAnalysisHeadline"
      }
    },
    "ma5": {
      "type": "number",
      "format": "double"
    },
    "ma10": {
      "type": "number",
      "format": "double"
    },
    "ma20": {
      "type": "number",
      "format": "double"
    },
    "ma60": {
      "type": "number",
      "format": "double"
    },
    "biasMa5": {
      "type": "number",
      "format": "double"
    },
    "biasMa10": {
      "type": "number",
      "format": "double"
    },
    "biasMa20": {
      "type": "number",
      "format": "double"
    },
    "volumeRatio5d": {
      "type": "number",
      "format": "double"
    },
    "rsi12": {
      "type": "number",
      "format": "double"
    },
    "macdDif": {
      "type": "number",
      "format": "double"
    },
    "macdDea": {
      "type": "number",
      "format": "double"
    },
    "macdBar": {
      "type": "number",
      "format": "double"
    },
    "provider": {
      "type": "string"
    },
    "model": {
      "type": "string"
    },
    "fallback": {
      "type": "boolean"
    },
    "newsSearched": {
      "type": "boolean"
    },
    "generatedAt": {
      "type": "string"
    },
    "analysisId": {
      "type": "string"
    },
    "analysisAt": {
      "$ref": "#/$defs/WM5"
    },
    "stopLoss": {
      "type": "number",
      "format": "double"
    },
    "takeProfit": {
      "type": "number",
      "format": "double"
    },
    "engineVersion": {
      "type": "string"
    },
    "analystConsensus": {
      "$ref": "#/$defs/worldmonitor_market_v1_AnalystConsensus"
    },
    "priceTarget": {
      "$ref": "#/$defs/worldmonitor_market_v1_PriceTarget"
    },
    "recentUpgrades": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/worldmonitor_market_v1_UpgradeDowngrade"
      }
    },
    "dividendYield": {
      "type": "number",
      "format": "double"
    },
    "trailingAnnualDividendRate": {
      "type": "number",
      "format": "double"
    },
    "exDividendDate": {
      "$ref": "#/$defs/WM5"
    },
    "payoutRatio": {
      "type": "number",
      "format": "double"
    },
    "dividendFrequency": {
      "type": "string"
    },
    "dividendCagr": {
      "type": "number",
      "format": "double"
    },
    "marketSession": {
      "type": "string",
      "description": "US-equity trading session at analysis time: \"regular\", \"pre\", \"post\" or \"closed\". Empty when session detection does not apply (non-US symbols)."
    },
    "extendedPrice": {
      "type": "number",
      "format": "double",
      "description": "Latest pre/post-market price from Yahoo extended-hours candles. Only set when market_session is \"pre\" or \"post\" and extended data is available."
    },
    "extendedChangePercent": {
      "type": "number",
      "format": "double",
      "description": "Extended-hours change % vs the last regular-session close. Only set when extended_price is set."
    },
    "fundamentals": {
      "$ref": "#/$defs/worldmonitor_market_v1_Fundamentals"
    },
    "fundamentalScore": {
      "type": "number",
      "format": "double",
      "description": "Fundamental health score (0-100) blended from the quality/growth/leverage fundamentals above. Unset when too few fundamentals are available to score, in which case composite_score falls back to signal_score."
    },
    "compositeScore": {
      "type": "number",
      "format": "double",
      "description": "Blend of signal_score (technicals) and fundamental_score that drives rating_signal, so a Strong buy/sell no longer fires on price action alone. Equals signal_score when fundamental_score is unset."
    },
    "nextEarningsDate": {
      "type": "string",
      "description": "Next scheduled earnings date (YYYY-MM-DD) plus consensus EPS / revenue for the symbol, joined from the market:earnings-calendar:v1 seed. Unset when the symbol has no upcoming (not-yet-reported) entry in the seed's ~2-week window. (61-62 are taken by a concurrent PR; using 63-65 to avoid a field collision.)"
    },
    "consensusEps": {
      "type": "number",
      "format": "double"
    },
    "consensusRevenue": {
      "type": "number",
      "format": "double"
    },
    "newsSentiment": {
      "type": "number",
      "format": "double",
      "description": "LLM-derived news sentiment for the analyzed symbol: a signed score in [-1, 1] (-1 very bearish, 0 neutral / no material news, +1 very bullish), emitted by the same overlay model that already reads the headlines — no extra call. Omitted when the analysis falls back to rules (no LLM overlay). (69 avoids a field collision with in-flight PRs: 61-62 blend fundamentals into the rating, 63-65 are the merged earnings join, 66-68 are the in-flight risk-analytics PR.)"
    },
    "realizedVolatility": {
      "type": "number",
      "format": "double",
      "description": "Risk analytics computed from the 6-month daily candles already fetched for the technical snapshot (no extra upstream call). (66-68 avoid a field collision: 61-62 are claimed by the in-flight PR that blends fundamentals into the rating, and 63-65 by the merged earnings join.)\n Annualized realized volatility — sample stdev of daily log returns × √252 — as a fractional ratio where 0.25 means 25%. 0 when history is insufficient."
    },
    "atr": {
      "type": "number",
      "format": "double",
      "description": "Wilder's 14-period Average True Range, in the response currency's price units. 0 when history is insufficient."
    },
    "maxDrawdown": {
      "type": "number",
      "format": "double",
      "description": "Maximum peak-to-trough drawdown over the window, as a non-positive fractional ratio where -0.25 means a 25% decline. 0 for a monotonically rising series."
    },
    "ratingSignal": {
      "type": "string",
      "description": "Fundamentals-blended signal paired with composite_score. Kept separate from the legacy technical-only signal/signal_score pair so already-loaded web, desktop, and API clients never render a mixed-version rating."
    },
    "ratingSummary": {
      "type": "string",
      "description": "Fundamentals-blended narrative paired with rating_signal/composite_score. Legacy summary remains paired with signal/signal_score during rollout."
    },
    "ratingAction": {
      "type": "string",
      "description": "Fundamentals-blended action paired with rating_signal/composite_score. Legacy action remains paired with signal/signal_score during rollout."
    },
    "ratingConfidence": {
      "type": "string",
      "description": "Fundamentals-blended confidence paired with rating_signal/composite_score. Legacy confidence remains paired with signal/signal_score during rollout."
    },
    "ratingWhyNow": {
      "type": "string",
      "description": "Fundamentals-blended explanation paired with rating_signal/composite_score. Legacy why_now remains paired with signal/signal_score during rollout."
    },
    "ratingBullishFactors": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "Fundamentals-aware positive factors supporting the composite rating. Legacy bullish_factors remain technical-only during rollout."
      }
    },
    "ratingRiskFactors": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "Fundamentals-aware risks supporting the composite rating. Legacy risk_factors remain technical-only during rollout."
      }
    }
  },
  "$defs": {
    "Int64": {
      "type": "integer",
      "format": "int64",
      "description": "Warning: Values > 2^53 may lose precision in JavaScript"
    },
    "WM15": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "WM18": {
      "type": "number",
      "format": "double",
      "description": "Fractional ratio where 0.25 means 25%."
    },
    "WM43": {
      "type": "array",
      "items": {
        "type": "number",
        "format": "double"
      }
    },
    "WM5": {
      "$ref": "#/$defs/Int64"
    },
    "WM67": {
      "$ref": "#/$defs/ebitda"
    },
    "worldmonitor_market_v1_AnalystConsensus": {
      "type": "object",
      "properties": {
        "strongBuy": {
          "type": "integer",
          "format": "int32"
        },
        "buy": {
          "type": "integer",
          "format": "int32"
        },
        "hold": {
          "type": "integer",
          "format": "int32"
        },
        "sell": {
          "type": "integer",
          "format": "int32"
        },
        "strongSell": {
          "type": "integer",
          "format": "int32"
        },
        "total": {
          "type": "integer",
          "format": "int32"
        },
        "period": {
          "type": "string"
        }
      }
    },
    "worldmonitor_market_v1_Fundamentals": {
      "type": "object",
      "properties": {
        "profitMargin": {
          "$ref": "#/$defs/WM18"
        },
        "grossMargin": {
          "$ref": "#/$defs/WM18"
        },
        "operatingMargin": {
          "$ref": "#/$defs/WM18"
        },
        "returnOnEquity": {
          "$ref": "#/$defs/WM18"
        },
        "returnOnAssets": {
          "$ref": "#/$defs/WM18"
        },
        "revenueGrowth": {
          "$ref": "#/$defs/WM18"
        },
        "earningsGrowth": {
          "$ref": "#/$defs/WM18"
        },
        "debtToEquity": {
          "type": "number",
          "format": "double",
          "description": "Normalized debt/equity ratio where 1.5 means debt is 1.5x equity."
        },
        "totalCash": {
          "$ref": "#/$defs/WM67"
        },
        "totalDebt": {
          "$ref": "#/$defs/WM67"
        },
        "freeCashflow": {
          "$ref": "#/$defs/WM67"
        },
        "ebitda": {
          "type": "number",
          "format": "double",
          "description": "Latest Yahoo financialData value denominated in financial_currency."
        },
        "financialCurrency": {
          "type": "string",
          "description": "ISO 4217 currency used by the company's financial statements. This can differ from AnalyzeStockResponse.currency for ADRs and cross-listings."
        }
      }
    },
    "worldmonitor_market_v1_PriceTarget": {
      "type": "object",
      "properties": {
        "high": {
          "type": "number",
          "format": "double"
        },
        "low": {
          "type": "number",
          "format": "double"
        },
        "mean": {
          "type": "number",
          "format": "double"
        },
        "median": {
          "type": "number",
          "format": "double"
        },
        "current": {
          "type": "number",
          "format": "double"
        },
        "numberOfAnalysts": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "worldmonitor_market_v1_StockAnalysisHeadline": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "source": {
          "type": "string"
        },
        "link": {
          "type": "string"
        },
        "publishedAt": {
          "$ref": "#/$defs/WM5"
        },
        "marketSessionAtPublish": {
          "type": "string",
          "description": "US equity session at publish time: \"regular\", \"pre\", \"post\", or \"closed\". Empty when published_at is invalid or US hours do not apply."
        },
        "alignedTradingDate": {
          "type": "string",
          "description": "NYSE/Nasdaq trading date this headline aligns to (YYYY-MM-DD). Empty when unaligned."
        },
        "alignmentRule": {
          "type": "string",
          "enum": [
            "HEADLINE_ALIGNMENT_RULE_UNSPECIFIED",
            "HEADLINE_ALIGNMENT_RULE_REGULAR_SESSION_SAME_TRADING_DAY",
            "HEADLINE_ALIGNMENT_RULE_PREMARKET_SAME_TRADING_DAY",
            "HEADLINE_ALIGNMENT_RULE_AFTER_HOURS_NEXT_TRADING_DAY",
            "HEADLINE_ALIGNMENT_RULE_NON_SESSION_NEXT_TRADING_DAY",
            "HEADLINE_ALIGNMENT_RULE_OVERNIGHT_SAME_TRADING_DAY"
          ],
          "description": "How a headline's publish time was mapped onto a US equity trading date. Bookkeeping only — never a claim that the headline moved the tape."
        }
      }
    },
    "worldmonitor_market_v1_UpgradeDowngrade": {
      "type": "object",
      "properties": {
        "firm": {
          "type": "string"
        },
        "toGrade": {
          "type": "string"
        },
        "fromGrade": {
          "type": "string"
        },
        "action": {
          "type": "string"
        },
        "epochGradeDate": {
          "$ref": "#/$defs/WM5"
        }
      }
    }
  }
}