Where the engine closes
The engine closes a position as soon as its loss in dollars reaches the floor less the reserve kept to pay for the close: cash from fills net of real fees, plus the hedge at the Hyperliquid mid, minus the funding actually paid. It also closes at expiry, when its wallet asks, and when the account runs short of margin. A gap between two prices can land the close past the floor.
Applied on every price move
At most once every two seconds per position, with a five-second timer behind it.
