What does Liquidation Cascades and Cointegration conclude, in numbers, about “Perpetual Contracts, Funding and Forced Liquidation”?
Answer: Perpetual contracts use periodic funding payments to tie their price to spot; funding is charged on notional value and so erodes the margin of leveraged positions many times over. The liquidation price of an isolated long is about \(P_0(1-1/L)/(1-m)\); 20 times leverage tolerates a fall of only about 4.5 %, which in volatile markets has a sizeable probability of being touched within a day. The toy model shows that when liquidation prices are concentrated near the current price and the bid side is thin, a small shock can be amplified into chained liquidations. The next chapter describes this amplification with self-exciting point processes and the branching ratio.
Scope of the numbers: This book presents mathematical models for teaching and research and is not investment, trading, tax or legal advice; leverage and derivatives can lose all of the money put in and more, and backtests and simulations do not represent future returns. Marked boxes separate published evidence, runnable Python calculations (16 programs, all checked), classical sources and the author's hypotheses.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 20
| lev | long liq dist | short liq dist | P(touch long liq), ann. vol 60 % | 1 day 7 days |
| 2 | | 50.25 49.75% | 149.25 49.25% | 0.00% 0.00% |
| 5 | | 80.40 19.60% | 119.40 19.40% | 0.00% 0.87% |
| 10 | | 90.45 9.55% | 109.45 9.45% | 0.14% 22.72% |
| 20 | | 95.48 4.52% | 104.48 4.48% | 14.06% 57.75% |
| 50 | | 98.49 1.51% | 101.49 1.49% | 62.86% 85.49% |
| 100 | | 99.50 0.50% | 100.50 0.50% | 87.26% 95.17% |
| funding 0.01% per 8 h, L | 20, 30 days: pays 18% of margin; long liq 95.48 -> 96.38 |
| funding 0.03% per 8 h, L | 20, 30 days: pays 54% of margin; long liq 95.48 -> 98.19 |
Key formula
Show the full program
# Isolated-margin linear perpetual, generic algebra (no fees, tiers or penalties):
# long P_liq = P0 (1 - 1/L) / (1 - m), short P_liq = P0 (1 + 1/L) / (1 + m)
import math
from statistics import NormalDist
N = NormalDist()
def liq_long(P0, L, m): return P0 * (1 - 1 / L) / (1 - m)
def liq_short(P0, L, m): return P0 * (1 + 1 / L) / (1 + m)
def check_long(P0, L, m): # bisection on the equity condition
lo, hi = 1e-9, P0
for _ in range(200):
P = (lo + hi) / 2
eq = P0 / L + (P - P0) - m * P
lo, hi = (P, hi) if eq < 0 else (lo, P)
return P
def p_touch(dist, vol_ann, days): # driftless log-price, reflection principle
s = vol_ann * math.sqrt(days / 365)
return 2 * N.cdf(math.log(1 - dist) / s)
m, P0 = 0.005, 100.0
print("lev | long liq dist | short liq dist | P(touch long liq), ann. vol 60 %:"
" 1 day 7 days")
for L in (2, 5, 10, 20, 50, 100):
pl, ps = liq_long(P0, L, m), liq_short(P0, L, m)
assert abs(pl - check_long(P0, L, m)) < 1e-6
dl = 1 - pl / P0
print(f"{L:3d} | {pl:7.2f} {dl:6.2%} | {ps:8.2f} {ps / P0 - 1:6.2%} |"
f" {p_touch(dl, 0.60, 1):7.2%} {p_touch(dl, 0.60, 7):7.2%}")
# Funding: every 8 hours longs pay shorts rate f x notional (f may also be negative).
# Under isolated margin the payment comes out of the margin and moves P_liq up.
for f in (0.0001, 0.0003):
L, days = 20, 30
paid = 3 * days * f * L # as a fraction of the initial margin
margin_left = 1 / L * (1 - paid)
new_liq = P0 * (1 - margin_left) / (1 - m)
print(f"funding {f:.2%} per 8 h, L = {L}, {days} days: pays {paid:.0%} of margin;"
f" long liq {liq_long(P0, L, m):.2f} -> {new_liq:.2f}")Single source and citation
Fan, Y. (2026). Liquidation Cascades, Order-Book Depth Depletion and Cointegrated Statistical Arbitrage (Version 1.0.0), Chapter 2: Perpetual Contracts, Funding and Forced Liquidation. 5D Library. https://doi.org/10.5281/zenodo.23796776
DOI: 10.5281/zenodo.23796776 · Read the monograph · 5DL-B-039 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026039,
author = {Fan, Yafu},
title = {Liquidation Cascades, Order-Book Depth Depletion and Cointegrated Statistical Arbitrage},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
doi = {10.5281/zenodo.23796776},
url = {https://doi.org/10.5281/zenodo.23796776}
}Other chapter answers in this book
- Chapter 1 · Order-Book Depth and Price Impact
- Chapter 3 · Liquidation Cascades, Branching Processes and Hawkes Self-Exciting Point Processes
- Chapter 4 · The Ornstein–Uhlenbeck Process: Mean Reversion and Its Estimation
- Chapter 5 · Cointegration, Pairs Trading and Broken Relationships
- Chapter 6 · The Kalman Filter and Dynamic Hedge Ratios
- Chapter 8 · Practice and a Pre-Registered Test