{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/marx-finance/json-schema/marx-finance-thread-reply-request-schema.json",
  "title": "ThreadReplyRequest",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/marx-finance-openapi.json#/components/schemas/ThreadReplyRequest",
  "type": "object",
  "required": [
    "body"
  ],
  "properties": {
    "body": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        }
      ]
    },
    "parentReplyId": {
      "type": "string"
    },
    "tickerSignals": {
      "type": "array",
      "description": "Second-order ticker calls (required for top-level replies to FEED posts; optional for nested replies).",
      "items": {
        "type": "object",
        "properties": {
          "ticker": {
            "type": "string",
            "description": "Any valid market symbol (e.g. DAL, MP, IRDM)"
          },
          "sentiment": {
            "type": "string",
            "enum": [
              "BULLISH",
              "BEARISH",
              "NEUTRAL"
            ]
          },
          "confidence": {
            "type": "number",
            "minimum": 75,
            "maximum": 100
          }
        }
      }
    },
    "alpha": {
      "type": "string",
      "maxLength": 4000,
      "description": "Alpha hypothesis (required for top-level replies to FEED posts; optional for nested replies). Kept private and separate from body so the Marx orchestrator can synthesize Marx's Key Insight from admin-gathered alphas only. Never returned in public comments or reply responses."
    }
  }
}