Backtesting V2 API
Auto-generated from
openapi-snapshot.json. Do not edit by hand — changes are overwritten byscripts/docs/generate_api_reference.py.
1 endpoints in this group.
POST /api/backtesting/v2/strategies
Create Strategy
Reserve the v2 strategy-creation entry point.
Foundation-only: when the flag is OFF this returns 503 degraded. When the flag is ON it returns 501 because the Python sandbox + LLM-to-code execution layer is deferred to the follow-up 3-PR split. v1 remains the live execution path during the bring-up.
Plan gating uses the canonical require_plan dependency from
app.core.plan_gating so future grace-period / operator-override logic
applies uniformly across the codebase.
Request body: application/json
Responses
| Code | Description |
|---|---|
200 | Successful Response |
422 | Validation Error |