SAFETY ENVELOPE

Risk limits

The desk quotes inside a fixed envelope. Each rule is checked on every tick. When a rule trips, the controller cancels every order and stops quoting until the desk is reset. The watchdog runs in the same process as the quoting loop, so a rule cannot be skipped.

Live limits and current readings
RuleThresholdCurrentHeadroom
Max absolute position0.050 BTC0.0140 BTC72%
Daily stop-loss-2.5% ($20)-0.12%95%
Stale feed breaker800 ms22 ms97%
Max order rate4 / s1.2 / s70%
Inventory band35% to 65% long58% longinside
Max spread to quote6.0 bps1.5 bps75%
How each rule is enforced
Position and loss

The desk measures net base exposure against the position cap on every tick. Realized plus unrealized loss is tracked from the session open. Crossing either limit cancels all resting orders immediately.

Feed and rate

A timestamp on the last exchange tick drives the stale breaker. If the socket goes quiet past 800 ms, quoting stops and the desk waits for a fresh tick. Order sends are rate-limited to four per second.

Inventory and spread

The desk keeps inventory inside a target band and skews quotes to pull back toward it. When the market spread exceeds six bps, the surface is too thin to quote safely and the desk widens or pulls instead.

Trip history, today
TimeRuleReadingAction
14:02:18Order flow gateOFI +2.64Pulled ask side
14:00:44Order flow gateOFI +2.11Pulled bid side
13:41:07Inventory band68% longSkewed quotes to sell

No hard limit has tripped this session. The entries above are soft responses from the state machine, which keeps the desk inside its envelope before a hard stop is needed.