{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/astrofabric-ai/json-schema/astrofabric-ai-post-v1-market-trends-request-schema.json",
  "title": "PostV1MarketTrendsRequest",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/astrofabric-ai-openapi-generated.yml#/components/schemas/PostV1MarketTrendsRequest",
  "type": "object",
  "properties": {
    "measure": {
      "type": "string",
      "description": "What is measured."
    },
    "subject": {
      "type": "string",
      "description": "For a measure with subjects, which one (e.g., a technology)."
    },
    "by": {
      "type": "string",
      "description": "How the market is cut (industry, sector, country, size, market, or all)."
    },
    "value": {
      "type": "string",
      "description": "Value for the \"by\" dimension."
    },
    "window": {
      "type": "integer",
      "description": "Window each figure is counted over, in days."
    },
    "since": {
      "type": "string",
      "description": "Only figures as of this day or later (YYYY‑MM‑DD)."
    },
    "until": {
      "type": "string",
      "description": "Only figures as of this day or earlier (YYYY‑MM‑DD)."
    },
    "limit": {
      "type": "integer",
      "description": "How many figures to return (max 200)."
    },
    "cursor": {
      "type": "string",
      "description": "next_cursor of the answer before, to continue."
    },
    "max_usd": {
      "type": "number",
      "description": "Maximum amount the caller agrees to pay for this call."
    }
  },
  "required": [
    "measure"
  ]
}