👨🏾‍💻 Dev corner: how a liquidation cascade actually works

Saturday, Nov 21: about 2.53B USD of leveraged positions were force-closed in 24 hours, and 2.27B of that was longs. The single biggest was a 51.7M USD BTCUSDT position closed near 57,817 (CoinGlass via Incrypted).

What happens under the hood:
🔹 Leverage means borrowed size. At 10x, a 10% move against you can wipe out your margin
🔹 Every position has a maintenance margin. When your equity drops below it, the exchange's risk engine takes over
🔹 The engine closes your position with a market order. You don't choose the price
🔹 Those forced sells push price lower, which trips the next set of liquidation levels
🔹 Repeat. That's the "cascade", and why drops look like cliffs on the chart
🔹 Exchanges use a mark price (built from several spot markets), not the last trade, so one odd wick doesn't liquidate everyone
🔹 If a position closes below zero, an insurance fund covers the gap

How not to be the fuel:
🔹 Lower leverage puts your liquidation price much further away
🔹 Use isolated margin so one trade can't drain your whole account
🔹 Set your own stop above your liquidation price
🔹 Spot holdings can't be liquidated

What leverage do you use, if any? 👇

(Not financial advice)

📷 Photo: Umberto / Unsplash