Zeta
Search…
Liquidation Mechanism
An important component of a robust margining system is liquidation to ensure that one trader does not adversely impact other traders or the security of the platform.

Liquidation

When accounts do not have sufficient capital they will need to be liquidated to ensure that the system at large does not become bankrupt and to ensure that risks are isolated to individual user accounts where possible. The element underpinning this process is the margin check:
AB+UPIMMM>0AB + UP - IM - MM > 0
where:
  • AB = Account Balance
  • UP = Unrealised PnL
  • IM = Initial Margin
  • MM = Maintenance Margin
If a user fails the margin check, the liquidation process will begin:
  • Step 1:
    • 3rd party liquidators can cancel all open orders on a person’s book. The user will not be able to send orders during this time until all orders are cancelled.
  • Step 2:
    • If the user is still below maintenance margin after the above cancels, they are able to be liquidated by sending a liquidation instruction. This instruction specifies a particular margin account, the market’s position and the size to be liquidated.
Upon a successful liquidation, the liquidator will trade with the liquidatee at the current mark price stored by Zeta, as well as gain a fixed % of the liquidatee’s collateral put up for maintenance margin as a reward. This reward is currently set at 35% of the maintenance margin for both options and futures positions, with 25% going to the liquidator and 10% going to the insurance fund.
Liquidation is a permissionless instruction, open to anyone. Check out our naive liquidator example here that shows you how to check for positions at risk and liquidate their positions.
Note: Liquidation is a risky endeavour and not guaranteed to be profitable.
Copy link