operationId: setMaxLossLevel
A firm API key can call this route for an account in its firm. The operation:
- Stores
max_loss_levelas the lowest place the max-loss floor may sit. - Leaves cash, peaks, and realized P&L unchanged.
- Publishes
balance.updatedso live risk enforcement recomputesmax_loss_limit_trigger.
Example
An end-of-day account has a$54,000 peak, a $6,000 allowance, and a floor at $48,000. A $2,000 payout leaves the cash balance at $52,000. The floor stays at $48,000 until you move it.
max_drawdown_limit is a signed offset from starting balance, not the absolute ceiling. If the account started at $50,000, a ceiling of $50,100 is "100".
GET /v1/firm-control/accounts/{account_id}/risk-state
(max_loss_limit_trigger). That value is $50,100 only when the ceiling is $50,100 or higher.
The payout withdrawal itself is still
POST /v1/balances/{account_id}/adjust.
This route does not move cash.
This does not move the daily-loss floor. Use
Set daily-loss trigger for that.
Body
Response — 200 OK
previous_max_loss_level is empty when the account had no firm-set level. balance is the full balance row and is otherwise unchanged.

