{
  "properties": {
    "backtest_id": {
      "description": "Backtest identifier",
      "title": "Backtest Id",
      "type": "string"
    },
    "detail": {
      "anyOf": [
        {
          "enum": [
            "summary",
            "full",
            "status",
            "none"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": "summary",
      "description": "Result detail: 'summary' (default, no blueprints, trades capped at 20), 'full' (includes blueprints, trades capped at 500), 'status' (metadata only, for polling), 'none' (same as status, legacy).",
      "title": "Detail"
    },
    "include": {
      "anyOf": [
        {
          "items": {
            "enum": [
              "trades",
              "ohlc"
            ],
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Optional add-ons. 'trades' appends a paginated full trade list under the top-level 'trades' key (see trades_offset/trades_limit). 'ohlc' appends OHLCV bars + trade markers under the top-level 'ohlc' key (see max_bars/ohlc_offset/ohlc_limit). Omit for the summary-only response.",
      "title": "Include"
    },
    "include_indicators": {
      "anyOf": [
        {
          "enum": [
            "none",
            "summary"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": "none",
      "description": "Indicator data: 'none' (default) or 'summary' (statistical summary).",
      "title": "Include Indicators"
    },
    "max_bars": {
      "default": 400,
      "description": "Maximum number of OHLC bars to return when downsampling. Used when include contains 'ohlc' and ohlc_limit is unset.",
      "maximum": 2000,
      "minimum": 50,
      "title": "Max Bars",
      "type": "integer"
    },
    "ohlc_limit": {
      "anyOf": [
        {
          "maximum": 5000,
          "minimum": 1,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "When set, return a contiguous OHLC slice bars[ohlc_offset : ohlc_offset+ohlc_limit] without downsampling. Each returned bar carries its engine-true bar_index. Leave unset for the downsampled chart view.",
      "title": "Ohlc Limit"
    },
    "ohlc_offset": {
      "default": 0,
      "description": "Starting bar index for paginated full-resolution OHLC. Only takes effect when ohlc_limit is also set.",
      "minimum": 0,
      "title": "Ohlc Offset",
      "type": "integer"
    },
    "sleeve_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Sleeve to chart when include=['ohlc'] on portfolio/universe (per_sleeve) runs. REQUIRED for per_sleeve runs; omit on single-symbol runs. Omit on a per_sleeve run to receive the list of available sleeve_ids under the 'ohlc' key.",
      "title": "Sleeve Id"
    },
    "trades_limit": {
      "default": 50,
      "description": "Max trades to return per page (1-500, default 50). Used when include contains 'trades'.",
      "maximum": 500,
      "minimum": 1,
      "title": "Trades Limit",
      "type": "integer"
    },
    "trades_offset": {
      "default": 0,
      "description": "Trade index to start from (0-based). Used when include contains 'trades'.",
      "minimum": 0,
      "title": "Trades Offset",
      "type": "integer"
    }
  },
  "required": [
    "backtest_id"
  ],
  "title": "get_backtestArguments",
  "type": "object"
}
