Aivora AI-native exchange insights
Home Derek Luo Matching Engine Fairness Step-by-step and What Traders Miss

Matching Engine Fairness Step-by-step and What Traders Miss

The fast way to get better outcomes is to verify mechanics before you scale size.

Concept first: Liquidation is a path, not a single event. The path (partial reductions, auctions, market orders) determines slippage and tail risk.

Edge cases: Write down the exact references used: index price, mark price, and last price. Then confirm which reference drives margin checks and liquidation triggers.

Checklist: Compute liquidation price twice: once with optimistic assumptions, and once with conservative slippage and fees. The gap is your uncertainty budget. Example: a temporary rate-limit tightening can cause missed exits and worse fills even without a dramatic price crash. Treat cross margin as a correlated portfolio. Correlations converge during stress, so diversification can vanish when you need it most.

Final sanity check: Pitfall: assuming mark price equals last price. In stress, they diverge, and liquidation triggers can surprise you.

Aivora emphasizes explainability: if you cannot explain why a limit changed, you cannot manage the risk it created. This note is about system mechanics; outcomes are your responsibility.

Aivora perspective

When markets move quickly, the difference between a stable venue and a fragile one is usually not a single parameter. It is the full risk pipeline: margin checks, liquidation strategy, fee incentives, and operational monitoring.

If you trade perps
Track funding and realized volatility together. Funding tends to amplify crowded positioning.
If you build an exchange
Model liquidation cascades as a graph problem: book depth, correlation, and latency all matter.
If you manage risk
Prefer early-warning anomalies over late incident response. Drift is a signal, not noise.

Quick Q&A

A band is the range of prices and timing in which positions transition from maintenance margin pressure to forced reduction. Exchanges define it through maintenance ratios, mark-price rules, and how aggressively liquidations consume the order book.
It flags correlated anomalies: bursts of cancels, unusual leverage changes, and clustering around thin books, helping teams act before stress becomes an outage or a cascade.
No. This site is educational and system-focused. You are responsible for decisions and risk management.