{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/riskstate-ai/json-schema/riskstate-ai-post-v2-backtest-shadow-request-schema.json",
  "title": "PostV2BacktestShadowRequest",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/riskstate-ai-openapi-generated.yml#/components/schemas/PostV2BacktestShadowRequest",
  "type": "object",
  "properties": {
    "portfolio_path": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "positions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "asset": {
                  "type": "string"
                },
                "size_usd": {
                  "type": "integer"
                },
                "side": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "horizons": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    },
    "drawdown_threshold_pct": {
      "type": "integer"
    }
  }
}