---
title: "Reset My Account"
method: POST
path: "/v1/me/accounts/{account_id}/reset"
---

# Reset My Account

`POST /v1/me/accounts/{account_id}/reset`

## 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/me/accounts/{account_id}/reset`
- Auth: none declared

Wipe one of the caller's OWN desks back to a clean slate and optionally
set its starting cash ($10,000..$1,000,000; omitted → keep current).

SESSION-auth own-account only — resets are a deliberate owner/UI action, so
a key pair (a bot) can NOT reset a desk (403 cross-user, 401 unauth). Deletes
every position + the full order ledger under the account row lock so a
concurrent matcher fill can't survive or corrupt the wipe (see
db.reset_account). starting_cash out of range → 422 (AccountResetRequest).

## Path parameters

- `account_id` integer, required

## Request body

- AccountResetRequest: POST /v1/me/accounts/{id}/reset — wipe the desk and (optionally) set cash. starting_cash: the new base cash, $10,000..$1,000,000 (int or float). Omitted / null keeps the account's current starting_cash (a plain history wipe). Out of range → 422 (raised here as a validation error).
  - `starting_cash` number, 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)
