Paradex Risk Checks
Order Risk Check
Order Risk Check Conditions
An order is accepted if :
- The account meets the Initial Margin Requirement after including the new order, i.e.
- Including the order does not result in an increase of the Initial Margin Requirement
Example
Setup :
- Alice has 100 USD worth of collateral and uses Cross Margin mode
Alice successfully submits a buy XYZ-USD-PERP order of size 10
Assuming Initial Margin Fraction (IMF) of 10% (i.e. a maximum leverage of 10x), the Initial Margin Requirement is :
Alice has no open position and therefore has an Account Value of 100 USD. The order is then accepted since the account meets the IMR condition.
Price drop :
The Mark Price of XYZ-USD-PERP drops to 98.
Although Alice’s account value is below IMR, deleveraging check does not monitor the account since it has no open orders
Submission of an offsetting order :
Alice submits a sell order of size 5. Since this is an offsetting order which is smaller than the position size, it does not increase the Open Size therefore does not increase the Account IMR. The order is accepted.
Submission of another order that brings the total sell orders size above the position size
Later, Alice submits a new sell order of size 8. This is also an offsetting order but it does result in an increase in Alice’s XYZ-USD-PERP Open Size from 10 to 13. Therefore, this order increases the account IMR. Since the account also does not meet IMR, this order is rejected.
Health Check
Health Check is a periodic check on account’s Margin Ratio. This check is done once every 5 seconds. An account passes the health check if its account value is positive and the margin ratio is below 100%.
If an account’s , the account will enter Liquidation.
Withdrawal Check
The amount of USDC that can be withdrawn is subject to an upper limit that depends on the Free Collateral Balance expressed in USDC terms. However, the user cannot withdraw more than the Account USDC Balance :