---
title: "Export Backtest Csv"
method: GET
path: "/v1/backtests/{run_id}/export.csv"
---

# Export Backtest Csv

`GET /v1/backtests/{run_id}/export.csv`

## Request

- Base URL: `https://api.quantradin.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.quantradin.com/v1/backtests/{run_id}/export.csv`
- Auth: none declared

E8 — download this run's per-trade rows as an RFC4180 CSV (header row +
one row per trade).

Auth: identical session-wins-else-X-Vega-Key resolution and owner-only
scoping as the poll route (require_backtest_submitter + db.get_backtest on
the resolved uid) — a run you don't own 404s. 409 while the run has no
result yet (queued/running). A NO_DATA run exports a header-only CSV.

## Path parameters

- `run_id` string, required

## Headers

- `x-vega-key` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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