Margin Calculation
RabbitX uses a state-of-the-art risk system that seamlessly and efficiently simulates orders post-match with unmatched precision and speed, ensuring real-time atomic safety checks for every order placement in a high-performance, in-memory copy of the matching engine. Our matching engine does all of this without missing a beat. We call this our CoreGuard Risk Engine by RabbitX.
Margin Calculation
Risk Checks
When an order is placed, our risk engine calculates the required Order Margin based on the leverage selected by the user for the market (note: to give users more flexibility for their risk management, leverage is set independently for each market).
The order is then simulated in our CoreGuard Risk Engine, and the Account Margin, Position Margin and Order Margin are all recalculated based on the post-match simulation.
If the order results in the account Withdrawable Balance < 0 OR the account margin < 3%, then the order is rejected.
FAQ: Why can't I close my position and I see a post-match error?
Unfortunately, due to the very strict nature of our CoreGuard Risk Engine, if the order placed results in a negative Withdrawable Balance, your order will be rejected. Try the following to increase your Withdrawable Balance:
Cancel open orders (this will free up Order Margin).
Increase your market leverage (this will reduce your Order Margin).
Try to deposit more funds.
Use a market order to close some positions (this will decrease your post-match Position Margin).
Note: We understand some users are still experiencing an issue even if their account leverage is 20x and do not have any open orders. Our team is working hard to upgrade the CoreGuard Risk Engine to allow closing orders to be accepted as long as the order is immediately executable to reduce the position.
Last updated