---
title: "Set Desk Max Daily Loss"
method: POST
path: "/v1/me/accounts/{account_id}/max-daily-loss"
---

# Set Desk Max Daily Loss

`POST /v1/me/accounts/{account_id}/max-daily-loss`

## 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}/max-daily-loss`
- Auth: none declared

DESK-WIDE DAILY LOSS LIMIT (Wave A) — set (or clear with null) the
dollars this DESK may lose in one ET session before every bot on it
stops opening. Session-owner scoped like the other desk mutations; 404
if the desk is not the caller's (cloak).

WHAT MAKES IT DIFFERENT from the per-bot `risk.daily_loss_usd` in a
spec: this one counts the WHOLE DESK's realized P&L for the session, so
one bot's bad morning can stop every other bot on the account. That is
the point — every other limit we ship is a bot talking to itself, and
fifty individually well-behaved bots can still lose the account.

Each bot READS this state on its own walk and derives the desk's P&L
fresh from the desk's own closed rows: nothing is written, nothing is
reserved, and a new ET session starts clean with no resume step. It
pauses ENTRIES ONLY — marks, exits and settlement never consult it.

## Path parameters

- `account_id` integer, required

## Request body

- MaxDailyLossRequest
  - `max_daily_loss_usd` 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)
