{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rayana-ai/json-schema/rayana-ai-consensus-response-schema.json",
  "title": "ConsensusResponse",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rayana-ai-openapi.json#/components/schemas/ConsensusResponse",
  "properties": {
    "insider-activity": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/Form4ConsensusRow"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Insider-Activity"
    },
    "congressional-trading": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/CaptradesConsensusRow"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Congressional-Trading"
    },
    "earnings-surprise": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/EarningsConsensusRow"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Earnings-Surprise"
    },
    "event-calendar": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/CatalystConsensusRow"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Event-Calendar"
    },
    "onchain-flows": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/OnchainConsensusRow"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Onchain-Flows"
    },
    "institutional-holdings": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/DataromaConsensusRow"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Institutional-Holdings"
    },
    "ai-news-analysis": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/NewsBeneficiaryConsensusRow"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ai-News-Analysis"
    }
  },
  "type": "object",
  "$defs": {
    "CaptradesConsensusRow": {
      "properties": {
        "ticker": {
          "type": "string",
          "title": "Ticker"
        },
        "company": {
          "type": "string",
          "title": "Company"
        },
        "buyers": {
          "type": "integer",
          "title": "Buyers"
        },
        "sellers": {
          "type": "integer",
          "title": "Sellers"
        },
        "net_politicians": {
          "type": "integer",
          "title": "Net Politicians"
        },
        "buy_usd": {
          "type": "number",
          "title": "Buy Usd"
        },
        "sell_usd": {
          "type": "number",
          "title": "Sell Usd"
        },
        "net_usd": {
          "type": "number",
          "title": "Net Usd"
        },
        "trades": {
          "type": "integer",
          "title": "Trades"
        },
        "run_at": {
          "type": "string",
          "title": "Run At"
        }
      },
      "type": "object",
      "required": [
        "ticker",
        "company",
        "buyers",
        "sellers",
        "net_politicians",
        "buy_usd",
        "sell_usd",
        "net_usd",
        "trades",
        "run_at"
      ],
      "title": "CaptradesConsensusRow"
    },
    "CatalystConsensusRow": {
      "properties": {
        "feed": {
          "type": "string",
          "title": "Feed"
        },
        "category": {
          "type": "string",
          "title": "Category"
        },
        "event": {
          "type": "string",
          "title": "Event"
        },
        "event_date": {
          "type": "string",
          "title": "Event Date"
        },
        "ticker": {
          "type": "string",
          "title": "Ticker"
        },
        "entity": {
          "type": "string",
          "title": "Entity"
        },
        "exchange": {
          "type": "string",
          "title": "Exchange"
        },
        "confidence": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Confidence"
        },
        "note": {
          "type": "string",
          "title": "Note"
        },
        "run_at": {
          "type": "string",
          "title": "Run At"
        }
      },
      "type": "object",
      "required": [
        "feed",
        "category",
        "event",
        "event_date",
        "ticker",
        "entity",
        "exchange",
        "note",
        "run_at"
      ],
      "title": "CatalystConsensusRow"
    },
    "DataromaConsensusRow": {
      "properties": {
        "ticker": {
          "type": "string",
          "title": "Ticker"
        },
        "company": {
          "type": "string",
          "title": "Company"
        },
        "buyers": {
          "type": "integer",
          "title": "Buyers"
        },
        "sellers": {
          "type": "integer",
          "title": "Sellers"
        },
        "holders": {
          "type": "integer",
          "title": "Holders"
        },
        "buy_usd": {
          "type": "number",
          "title": "Buy Usd"
        },
        "sell_usd": {
          "type": "number",
          "title": "Sell Usd"
        },
        "net_usd": {
          "type": "number",
          "title": "Net Usd"
        },
        "net_managers": {
          "type": "integer",
          "title": "Net Managers"
        },
        "run_at": {
          "type": "string",
          "title": "Run At"
        }
      },
      "type": "object",
      "required": [
        "ticker",
        "company",
        "buyers",
        "sellers",
        "holders",
        "buy_usd",
        "sell_usd",
        "net_usd",
        "net_managers",
        "run_at"
      ],
      "title": "DataromaConsensusRow"
    },
    "EarningsConsensusRow": {
      "properties": {
        "ticker": {
          "type": "string",
          "title": "Ticker"
        },
        "company": {
          "type": "string",
          "title": "Company"
        },
        "report_date": {
          "type": "string",
          "title": "Report Date"
        },
        "report_time": {
          "type": "string",
          "title": "Report Time"
        },
        "eps_actual": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Eps Actual"
        },
        "eps_estimate": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Eps Estimate"
        },
        "surprise_pct": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Surprise Pct"
        },
        "market_cap": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Market Cap"
        },
        "num_estimates": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Num Estimates"
        },
        "fiscal_period": {
          "type": "string",
          "title": "Fiscal Period"
        },
        "run_at": {
          "type": "string",
          "title": "Run At"
        }
      },
      "type": "object",
      "required": [
        "ticker",
        "company",
        "report_date",
        "report_time",
        "fiscal_period",
        "run_at"
      ],
      "title": "EarningsConsensusRow"
    },
    "Form4ConsensusRow": {
      "properties": {
        "ticker": {
          "type": "string",
          "title": "Ticker"
        },
        "company": {
          "type": "string",
          "title": "Company"
        },
        "insiders": {
          "type": "integer",
          "title": "Insiders"
        },
        "best_role": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Best Role"
        },
        "top_title": {
          "type": "string",
          "title": "Top Title"
        },
        "total_value": {
          "type": "number",
          "title": "Total Value"
        },
        "buys": {
          "type": "integer",
          "title": "Buys"
        },
        "run_at": {
          "type": "string",
          "title": "Run At"
        }
      },
      "type": "object",
      "required": [
        "ticker",
        "company",
        "insiders",
        "top_title",
        "total_value",
        "buys",
        "run_at"
      ],
      "title": "Form4ConsensusRow"
    },
    "NewsBeneficiaryConsensusRow": {
      "properties": {
        "ticker": {
          "type": "string",
          "title": "Ticker"
        },
        "company": {
          "type": "string",
          "title": "Company"
        },
        "direction": {
          "type": "string",
          "title": "Direction"
        },
        "order_hops": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Order Hops"
        },
        "mechanism": {
          "type": "string",
          "title": "Mechanism"
        },
        "confidence": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Confidence"
        },
        "obviousness": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Obviousness"
        },
        "horizon": {
          "type": "string",
          "title": "Horizon"
        },
        "score": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Score"
        },
        "validated": {
          "type": "integer",
          "title": "Validated"
        },
        "headline": {
          "type": "string",
          "title": "Headline"
        },
        "source": {
          "type": "string",
          "title": "Source"
        },
        "url": {
          "type": "string",
          "title": "Url"
        },
        "run_at": {
          "type": "string",
          "title": "Run At"
        },
        "snapshot_date": {
          "type": "string",
          "title": "Snapshot Date"
        }
      },
      "type": "object",
      "required": [
        "ticker",
        "company",
        "direction",
        "mechanism",
        "horizon",
        "validated",
        "headline",
        "source",
        "url",
        "run_at",
        "snapshot_date"
      ],
      "title": "NewsBeneficiaryConsensusRow"
    },
    "OnchainConsensusRow": {
      "properties": {
        "symbol": {
          "type": "string",
          "title": "Symbol"
        },
        "wallets": {
          "type": "integer",
          "title": "Wallets"
        },
        "best_tier": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Best Tier"
        },
        "top_label": {
          "type": "string",
          "title": "Top Label"
        },
        "total_value": {
          "type": "number",
          "title": "Total Value"
        },
        "transfers": {
          "type": "integer",
          "title": "Transfers"
        },
        "chains": {
          "type": "string",
          "title": "Chains"
        },
        "run_at": {
          "type": "string",
          "title": "Run At"
        }
      },
      "type": "object",
      "required": [
        "symbol",
        "wallets",
        "top_label",
        "total_value",
        "transfers",
        "chains",
        "run_at"
      ],
      "title": "OnchainConsensusRow"
    }
  }
}