Margin
Limits
Initial Margin Fraction [IMF]
The total IMF is the minimum OMF needed to open a new order.
The base IMF is the IMF per market computed as:
- For derivative markets, where
leverage_max
is the max allowed initial leverage per market (ex: 20):
- For borrowing, where W is the weight of the asset being borrowed:
- For derivative markets, where
- The total IMF is computed as the average of each market's base IMFs weighted by the position open notional for that market
Warning!
OMF needs to be above the IMF to increase a position.
Warning!
OMF needs to be above the IMF after withdrawal.
Cancel Margin Fraction [CMF]
The total CMF is the minimum OMF needed to not have your open orders cancelled.
- The base CMF is the CMF per market:
- For derivative markets,
- For borrowing, the CMF base is the same as the borrow IMF base
- The total CMF is computed as the average of each market’s CMF weighted by the position open notional for that market
Maintenance Margin Fraction [MMF]
The total MMF is the minimum MF needed to not be liquidated.
- The base MMF is the MMF per market:
- For derivative markets,
- For borrowing, where W is the weight of the asset being borrowed:
- The total MMF is computed as the average of each market’s MMF weighted by the position notional for that market
Warning!
MF needs to be above the MMF to place new orders.