---
title: "Run Adhoc Cases"
method: POST
path: "/api/v1/backtest/cases"
tags: ["Backtest"]
---

# Run Adhoc Cases

`POST /api/v1/backtest/cases`

## Request

- Base URL: `https://crashtestyourstrategy.com` (the document declares no server; this is the origin it was published from)
- URL: `https://crashtestyourstrategy.com/api/v1/backtest/cases`
- Auth: none declared

Run a strategy against the curated case-study set for one asset.

Companion endpoint to /robustness/quick: while /quick produces the
Layer-2 regime-ensemble robustness score (synthetic), this endpoint
produces the Layer-1 + Layer-3 case studies (empirical anchors plus
targeted synthetic stress probes).

Designed for parallel-call from the mainpage so that score and cases
arrive independently. Synthetic cases without pre-computed replicas
(e.g. WHIPSAW pending) are skipped and reflected in n_skipped.

Args:
    replica_limit: optional cap on synthetic replicas per case (default: 50,
                   i.e. full cache). Set e.g. 30 for faster Mainpage runs.

## Query parameters

- `user_id` integer
- `replica_limit` integer, nullable

## Request body

- AdhocCasesRequest: Request body for ad-hoc case-study run with inline strategy.
  - `strategyJson` object, required
  - `asset` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/crashtestyourstrategy/apis/crashtestyourstrategy-api.md) · [All operations](https://skmtc.dev/crashtestyourstrategy/apis/crashtestyourstrategy-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crashtestyourstrategy/apis/crashtestyourstrategy-api/revisions/a4751a2748fd?raw)
