Trading Dev AcademyFree quant education

Free lesson · Crypto derivatives

Collateral depegs and wrong-way exposure

Open interactive lessonPractice calculationsExplore labs

Start with the idea

Collateral can lose value at the same time the derivative needs more margin. A flat hedge in the underlying does not hedge its settlement asset.

Symbols, units & horizon
  • u: collateral token units
  • P_c: USD price per collateral token at the stress checkpoint
  • h: haircut fraction
  • V_eligible: USD margin-eligible value under this simplified model

When and why to use this

Stress stablecoin-settled and coin-collateralized derivative accounts jointly with market moves.

Collateral can lose value at the same time the derivative needs more margin. A flat hedge in the underlying does not hedge its settlement asset.

Translate collateral units into dollars and apply eligibility haircuts. Distinguish exchange margin value from the price at which the collateral could actually be sold.

If stablecoin value falls or a collateral asset is correlated with the traded market, available protection can shrink during stress. Model the same price path jointly rather than applying independent average shocks.

Veligible=uPc(1−h)
Model assumptions, derivation and arithmetic

Collateral depegs and wrong-way exposure

  1. Value collateral tokens at the stressed dollar price.
  2. Retain the eligible fraction one minus haircut.
  3. Compare with contemporaneous maintenance and cash obligations, not with initial notional alone.
Work it by hand

10,000 collateral tokens at $.90 with a .10 haircut provide 10000×.90×.90=$8,100 of eligible value.

Apply it in a strategy

  • Stress stablecoin-settled and coin-collateralized derivative accounts jointly with market moves.
  • Record the input timestamp, executable quantity, currency and horizon. Reconcile the result with a cash-flow or state table.
  • Stress this failure condition: Eligibility can be suspended entirely and reported haircut rules can change during a liquidity event.

Research deliverable

Build and explain a collateral depegs and wrong-way exposure worksheet. Stress stablecoin-settled and coin-collateralized derivative accounts jointly with market moves.

Evidence boundary: Synthetic arithmetic and scenarios illustrate mechanics. They are not historical returns, a paper replication, or evidence of an executable edge. Research sources and their access limitations are recorded at the end of this module.

Python implementation

Self-contained teaching example. Python 3.10+; dependencies and input conventions are shown in the code and notation. Run in your own Python environment.

# Python 3.10+; standard library unless NumPy is imported below.
# Inputs and outputs use the units defined in this lesson. Synthetic teaching example.
def eligible_collateral(units,price,haircut):
    if min(units,price)<0 or not 0<=haircut<=1: raise ValueError("Invalid collateral")
    return units*price*(1-haircut)

print(eligible_collateral(10000,.90,.10))

Continue learning

Crypto Derivatives: Carry, Funding and Liquidation — all lessons
  1. Linear contract payoff and the multiplier
  2. Inverse contracts pay in the base asset
  3. Basis annualization and its limits
  4. Perpetual funding as actual cash flows
  5. Equity versus maintenance along a price path
  6. Solve a simplified liquidation boundary
  7. Collateral depegs and wrong-way exposure
  8. Reconcile the funded spot–perpetual hedge

Quantitative finance and development glossary · Python resources and libraries · Research sources and limitations