Curriculum·R402 Margin and Liquidation Mathematics·about 32 min
Beyond liquidation
By the end of this lesson you can
- →Derive the bankruptcy price and measure the gap between it and the liquidation price
- →Explain how an insurance fund is funded, and what it means when it shrinks
- →Describe auto-deleveraging and why being right and levered puts you first in the queue
- →State when a realized profit on a derivative venue is actually final
Senior · enrolled learners
This lesson opens with The OKEx forced liquidation, 31 July 2018.
- What happened
- OKEx's largest futures account opened 4,168,515 bitcoin futures contracts of $100 nominal each, a position of about $416.9M. When it was force-liquidated the market could not absorb it at any price covering the debt. OKEx injected 2,500 BTC of its own capital into the insurance fund to absorb part of the shortfall. The remainder was met by the venue's socialised loss mechanism, a clawback that takes a proportion of the profit from every account showing a net gain across the relevant contracts for that settlement period. The clawback was confirmed at around $9M. Under the published rules, only accounts with a net profit for the period were subject to it, and losing accounts were unaffected.
- The decision point
- Every trader who was profitable that week had made their trades correctly and had those profits reduced by somebody else's position. The venue's rules said so in advance. A derivative venue is a closed system in which every dollar of profit is somebody's loss, and when the loser cannot pay, the rules decide who does. Liquidation is not the last step, it is the step before the parts of the rulebook nobody reads.
- Recorded loss
- $416,851,500
What you will be able to answer
- →What is the bankruptcy price?
- →How big is the venue's safety margin?
- →How is an insurance fund funded?
- →What is auto-deleveraging?
Orientation and Year One are open: anyone can read them without an account. From Year Two onward the lessons are for enrolled learners, because progress through the later years only means anything if it is tracked against a record.
It is free. We do not sell the list and there is nothing to buy at the end of it.
Sources and review
- https://www.coindesk.com/markets/2018/08/03/okex-confirms-9-million-clawback-after-enormous-bitcoin-future-fails
- https://www.okx.com/en-us/help/regarding-the-forced-liquidation-incident-on-jul-31-2018
- https://www.ccn.com/okex-initiates-clawback-after-bitcoin-futures-market-unable-to-cover-420-million-liquidation/
- https://coincodex.com/article/2211/the-460-million-liquidation-what-happened-at-okex-on-july-31
Confidence medium·Volatility high·Reviewed 2026-08-07·Owner unassigned
Contested
The OKEx position is reported at both about $416M and about $420M or $460M depending on whether the nominal, the settlement or the total unfilled amount is quoted. The contract count of 4,168,515 at $100 nominal gives $416,851,500 exactly and is used here. The clawback total of around $9M is as confirmed at the time and a percentage clawback rate is not asserted because sources conflict.
Socialised loss mechanisms have largely been replaced by auto-deleveraging on major venues since 2018, and clawback in the OKEx form is now uncommon. The lesson presents it because it is the clearest documented case of the principle, which every venue still implements in some form. Check the current rulebook rather than assuming this design.
J302-11 owns the shared vault as an underwriting position and the Hyperliquid override. R402-02 owns the trader's use of the liquidation engine as an exit. This lesson owns the venue's waterfall after liquidation fails. Keep the split.
