{
  "$defs": {
    "RunCandleWindow": {
      "additionalProperties": false,
      "properties": {
        "end": {
          "format": "date-time",
          "title": "End",
          "type": "string"
        },
        "limit": {
          "maximum": 50,
          "minimum": 1,
          "title": "Limit",
          "type": "integer"
        },
        "sleeve_id": {
          "anyOf": [
            {
              "maxLength": 64,
              "pattern": "^[ !#-\\[\\]-~]+$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Sleeve Id"
        },
        "start": {
          "format": "date-time",
          "title": "Start",
          "type": "string"
        }
      },
      "required": [
        "start",
        "end",
        "limit"
      ],
      "title": "RunCandleWindow",
      "type": "object"
    }
  },
  "additionalProperties": false,
  "properties": {
    "evidence_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "next.cursor.token from the previous trade_evidence page; omit for page one.",
      "title": "Evidence Cursor"
    },
    "include": {
      "anyOf": [
        {
          "items": {
            "enum": [
              "results",
              "details",
              "trades",
              "indicators",
              "windows",
              "statistics",
              "presentation",
              "sleeves",
              "rebalances",
              "trade_evidence",
              "occurrences",
              "ohlcv",
              "validation"
            ],
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Blocks to add to the read: results, details, trades, indicators, windows, statistics, presentation, sleeves, rebalances, trade_evidence, occurrences, ohlcv, validation. A backtest read returns status and headline only when this is omitted; every other kind defaults to results.",
      "title": "Include"
    },
    "kind": {
      "description": "Which kind of run to read: backtest, walk-forward, event_study (a submission batch), event_study_result (one stored result) or paper. Take it from the run's reference.",
      "enum": [
        "backtest",
        "walk_forward",
        "event_study",
        "event_study_result",
        "paper"
      ],
      "title": "Kind",
      "type": "string"
    },
    "limit": {
      "anyOf": [
        {
          "maximum": 50,
          "minimum": 1,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Rows per page for trades, occurrences or paper trades, 1-50.",
      "title": "Limit"
    },
    "min_occurrences": {
      "default": 0,
      "description": "Event-study batches only: hide results with fewer fires than this.",
      "minimum": 0,
      "title": "Min Occurrences",
      "type": "integer"
    },
    "occurrences_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "occurrences.next.cursor.token from the previous page; omit for page one.",
      "title": "Occurrences Cursor"
    },
    "ohlcv_window": {
      "anyOf": [
        {
          "$ref": "#/$defs/RunCandleWindow"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Candle window for include=ohlcv: timezone-aware start and end (at most 14 days apart) and a limit from 1 to 50, plus sleeve_id for a multi-sleeve run."
    },
    "per_window_limit": {
      "default": 50,
      "description": "Most walk-forward windows returned per page.",
      "maximum": 200,
      "minimum": 1,
      "title": "Per Window Limit",
      "type": "integer"
    },
    "per_window_offset": {
      "default": 0,
      "description": "Walk-forward windows to skip when paging the windows block.",
      "maximum": 10000,
      "minimum": 0,
      "title": "Per Window Offset",
      "type": "integer"
    },
    "rebalances_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "next.cursor.token from the previous rebalances page; omit for page one.",
      "title": "Rebalances Cursor"
    },
    "run_id": {
      "description": "Raw run id from the tool that started the run or from list_runs.",
      "title": "Run Id",
      "type": "string"
    },
    "significant_only": {
      "default": false,
      "description": "Event-study batches only: keep only results with a significant horizon.",
      "title": "Significant Only",
      "type": "boolean"
    },
    "sleeve_id": {
      "anyOf": [
        {
          "maxLength": 64,
          "pattern": "^[ !#-\\[\\]-~]+$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Scope statistics, presentation and trades to one sleeve of a multi-sleeve run.",
      "title": "Sleeve Id"
    },
    "sleeves_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "next.cursor.token from the previous sleeves page; omit for page one.",
      "title": "Sleeves Cursor"
    },
    "trade_seq": {
      "anyOf": [
        {
          "description": "Nonnegative count or ordinal.",
          "exclusiveMaximum": 9007199254740992,
          "minimum": 0,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Position seq to read trade_evidence for; required with trade_evidence.",
      "title": "Trade Seq"
    },
    "trades_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "next.cursor.token from the previous trades page; omit for page one.",
      "title": "Trades Cursor"
    }
  },
  "required": [
    "kind",
    "run_id"
  ],
  "title": "get_runArguments",
  "type": "object"
}
