Use this operation after importing an account or correcting its cash balance. It
moves today’s daily-loss anchor to the account’s current cash balance while
preserving the existing dollar loss allowance.
operationId: reanchorDailyLoss
A firm API key can call this route for an account in its firm. The operation:
- Calculates the existing allowance as
previous start_of_day_balance - previous daily_loss_limit_trigger.
- Sets
start_of_day_balance to current balance.
- Sets
realized_day_pnl to 0.
- Sets
daily_loss_limit_trigger to the new anchor minus the preserved allowance.
- Publishes
balance.updated so live risk enforcement uses the new trigger.
Migration example
An imported account was created at $50,000, with a $1,250 DLL:
After a migration withdrawal, current cash is $47,685.28. Re-anchoring
produces:
Response — 200 OK
This operation anchors to cash, while the firm daily-loss breach compares live
equity with the resulting trigger. Flatten positions before re-anchoring if you
need exactly the full DLL allowance from the account’s current state.
Re-anchoring starts a new daily measurement window and clears
realized_day_pnl. Use it for migration or an explicit administrative
correction before trading, not as a routine way to restore intraday loss room.
Re-anchoring updates the DLL anchor and trigger, but it does not unlock an
account that already has a hard daily-loss breach. Correct the account before it
breaches, or use the applicable breach-review workflow separately.
Errors