Skip to main content
Use this after a payout when the account still has unused drawdown and the floor should sit higher right now. The max-loss cap only stops the floor from rising. It does not lift a floor that is still below the ceiling.
operationId: setMaxLossLevel A firm API key can call this route for an account in its firm. The operation:
  1. Stores max_loss_level as the lowest place the max-loss floor may sit.
  2. Leaves cash, peaks, and realized P&L unchanged.
  3. Publishes balance.updated so live risk enforcement recomputes max_loss_limit_trigger.
The live floor becomes the higher of the normal trailing floor and this level. A trailing floor that is already higher stays there, so the account can still trail up. The drawdown cap still pulls the floor down: a level above the current ceiling does not take effect until the ceiling is at least that high.

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.
Set the ceiling with Set max loss limit. 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".
Then place the floor:
Either call can go first. Confirm the live floor with 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.

Errors