Clearinghouse

The perps clearinghouse is the core component of the exchange state on the Hyperliquid L1. It manages the perps margin state for each address, which includes balance and positions.

Deposits are first credited to an address's cross margin balance. Positions by default are also opened in cross margin mode.

Isolated margin is also supported, which allows users to allocate margin towards a specific position, disassociating the liquidation risk of that position with all other positions.

The spot clearinghouse analogously manages spot user state for each address, including token balances and holds.

Last updated