Skip to main content
Standard margin evaluates each position’s margin in isolation, with the exception of spreads whose margin requirements can be offset for the same expiry. It is the default margin option for traders. Every risk universe runs its own standard margin manager. A standard margin subaccount can hold every option, perpetual and collateral token that its universe lists, and nothing else. If a standard margin sub-acccount falls below its maintenance margin requirement, the account will be liquidated. See the write up on Liquidations for more details.

Margin Calculation

The standard margin requirement is calculated by summing an account’s margin requirement for its perpetual and option positions and then adding the value of its cash balance and base assets (with haircut). For each market, the margin is calculated as follows:
Formula
Where:
  • Perp Margin is the margin requirement for all perpetuals in the account, calculated as a simple percentage of the underlying’s spot price. The profit and loss of said perpetuals, as well as owed/owing funding is included in this value.
  • Option Margin is the margin requirement for all options in the account, typically calculated as the sum of isolated margin for each option, with the possibility for margin offsets for spreads and other multi-legged strategies within the same expiry.
  • Depeg Contingency is extra initial margin conditionally required to protect against the cash asset depegging.
  • Oracle Contingency is extra initial margin conditionally required to protect against inaccurate oracle data feeds.
  • Cash is the subaccount’s balance of the universe’s cash asset (which can be positive or negative)
  • Collateral is the value of the base assets held (or borrowed) in the subaccount, after a risk based haircut.
Each margin component has slightly greater initial margin requirements compared to maintenance margin requirements. This is applied via parameterization. Read the sections below for more details. Both initial and maintenance margin are centred around zero. I.e. a sub-account is subject to liquidation if its Maintenance Margin is negative (see Liquidations for more details) and a sub-account is only able to open a new position if its final Initial Margin is positive. See the end of this page for more detail on this and risk reducing trades.

[New!] Collateral

Collateral is credited by a multiplicative haircut factor. This is a change of convention from V2, which subtracted a discount; the two express the same thing, but the V3 factor is the fraction of value that counts, and it is exactly the marginFactor configured on chain.
Formula
Where:
  • Baseₘ is the account’s balance of base asset m, positive if held and negative if borrowed.
  • MM_HAIRCUTₘ is the long factor, always < 1. BTC is 0.75, i.e. 1 BTC at 100,000100,000 contributes 75,000 towards maintenance margin.
  • IM_HAIRCUTₘ = MM_HAIRCUTₘ x imScaleₘ is the long factor used for initial margin, always at or below the maintenance factor. BTC is 0.6975.
  • MM_SHORT_HAIRCUTₘ / IM_SHORT_HAIRCUTₘ are the short factors, always > 1. BTC is 1.3 for maintenance, i.e. borrowing 1 BTC at 100,000 requires 130,000 of margin.
  • Spotₘ is the spot price of base asset m.

The cash asset

The universe’s cash asset carries a row of the same shape, so the quote is a configurable currency like any other. At launch USDC ships with a factor of 1.0 long and short: cash counts at face value and borrowing it carries no haircut beyond the interest rate. Protection against the cash asset losing its peg is handled separately, by the depeg contingency below.

Perpetuals Margin

All perpetuals have margin requirements proportional to the spot price. This percentage is larger when computing initial margin, and is set per currency:
Formula
Where:
  • Size is the number of perpetual contracts (this number is negative for shorts).
  • perp_im, perp_mm are per-currency requirements — 0.066 / 0.05 for BTC and ETH, 0.1 / 0.08 for HYPE, 0.2 / 0.15 for ADA.
  • Spot is the spot price of the underlying base asset.

Option Margin

Options are typically margined in isolation, with the exception of spreads and multi-legged strategies whose margin requirements can be offset for the same expiry. The option margin for an account is the sum of each expiry’s margin, which is calculated by grouping positions per expiry, summing their isolated margin and offsetting spreads and multi-legged strategies where possible. Options with different underlyings (ETH, BTC) are margined separately and then added together. I.e. the option margin of all ETH options is found, then added to that for all BTC options to get the total option margin for the subaccount. In the following, we focus on computing the option margin for a single underlying; the option margin for a subaccount with multiple underlyings is easily found given this.

Isolated Margin

The isolated margin of an option for strike price j is calculated as follows: For long calls and puts:
Formula
For short calls:
Formula
For short puts:
Formula
Where:
  • n is the number of short options held
  • OTM is the out-the-money amount. For calls, OTM = max(0, Strike - Spot) and for puts, OTM = max(0, Spot - Strike).
  • Spot is the spot price of the underlying base asset.
  • Strikeⱼ is the strike of the option.
  • Mark Price is the mark-to-market value of the option calculated using Black76, discounted at the expiry’s risk free rate. Since the option is short, this is a negative quantity.
  • For BTC and ETH, (maxSpotReqCall, minSpotReqCall, mmCallSpotReq) = (0.15, 0.13, 0.09) and (maxSpotReqPut, maxStrikeReqPut, mmPutSpotReq, mmPutStrikeReq) = (0.15, 0.13, 0.09, 0.09).
📘 [New!] Short put requirements are now anchored to the strike. In V2 the put floor was a flat percentage of spot. In V3 the initial margin takes the larger of a spot-based and a strike-based leg, and the maintenance margin takes the smaller of the two. For a deep out-of-the-money put where the old spot leg could fall to nothing the strike leg keeps the requirement meaningful; for a deep in-the-money put the maintenance requirement is capped by the spot leg.
📘 [New!] Option marks are discounted. Standard margin now prices options with the expiry’s risk free rate rather than assuming zero discounting. A negative rate feed is clamped to zero, so it margins identically to a zero rate.

Expiry Margin

The default margin of expiry i is calculated by summing the isolated margin of each option in the account for that expiry:
Formula
We also compute an offset margin for expiry i to offset spreads and other multi-legged strategies. This is made up of 2 components:
  1. The minimum intrinsic value of the expiry’s options evaluated at all strikes in with this expiry (including the zero strike), floored at 0.
  2. A percentage of the expiry’s forward price multiplied by the number of “naked” short calls in the expiry.
Note: Naked short calls in an expiry are found by summing the net positions over all calls in the expiry and capping the result at 0, i.e.
Formula
For example, if an expiry has 3 short calls on the 1600 strike and 2 long calls on the 1800 strike, then Naked Short Call Size is simply -1. Combining all of this, we have
Formula
Where:
  • Intrinsic Valueᵢ is the intrinsic value of all options in the expiry evaluated at each strike k for expiry i (including the zero strike).
  • Naked Short Call Sizeᵢ is the number of naked short call contracts open in the expiry i.
  • Forward Priceᵢ is the forward price for the expiry i.
  • UNPAIRED_SCALE_IM = 1.2 scales naked short calls for initial margin requirements.
  • UNPAIRED_SCALE_MM = 1.1 scales naked short calls for maintenance margin requirements.
The final margin for expiry i is then the better (larger) of the default expiry margin and offset expiry margin:
Formula
Note that both Default Initial Margin and Offset Initial Margin are negative, so the above takes the more lenient margin requirements for the trader.

[New!] Settled Expiries

Once an expiry has settled, its value is fixed at the settlement TWAP and it carries no remaining spot risk. Neither the isolated percentage-of-spot requirement nor the spread scenario search applies, i.e. both explore spot moves that can no longer happen. The requirement is simply the realized payoff, floored at zero:
Formula
The floor preserves the standard margin convention that long options earn no collateral credit.

Total Margin

Finally, the total option margin for an account is the sum of each expiry’s margin:
Formula

Depeg Contingency

When the cash asset depegs from $1, additional initial margin requirements are added:
Formula
Where:
  • Cash Asset Value is the market value of the universe’s cash asset.
  • Spot is the spot price of the underlying base asset.
  • Short Option Sizeⱼ is the absolute number of contracts for a short option with strike j in the account.
  • Perp Size is the number of perpetual contracts (this number is negative for shorts).
  • depeg_threshold = 0.99 is the threshold value that triggers a depegging event.
  • depegFactor = 2.0 scales the depeg contingency.
Note that this is the depeg contingency for a given underlying (say, ETH). For multiple underlying assets, the relevant asset’s spot and corresponding subaccount positions are used.
📘 When the cash asset’s value (reported by oracle data feeds) is greater than the depegging threshold, the depeg margin requirement is $0.

Oracle Contingency

Associated to each oracle data feed is a confidence score; a metric for the feed’s reliability and accuracy. When confidence scores are below a given threshold, this indicates the data feeds could be feeding inaccurate price data into the system, and the protocol automatically introduces additional initial margin requirements. The oracle contingency is the sum of collateral, perpetual and option oracle contingencies:
Formula
Formula
Formula
I.e.
Formula
Where:
  • OCFactor = 1.0 is a constant scaling factor.
  • Short Options Size is the number of short options contracts for the relevant feeds, i.e. long options are not charged.
  • Perp Size is the number of perpetual contracts open in the account.
  • Spot Confidence is confidence score of the spot price data.
  • Forward Confidence is confidence score of the forward data.
  • Vol Confidence is confidence of the implied volatility data.
  • Perp Confidence is confidence of the perpetual price data.
  • oc_collateralThreshold = oc_perpThreshold = oc_optionThreshold = 0.55 represent the thresholds at or below which extra initial margin is added due to low confidence.

Open Interest Caps

Each universe caps the open interest, spot supply and spot borrow of every instrument its standard manager supports.

Risk Reducing Trades and Risk Assessors

On the smart contract level, the standard risk manager will allow any trade to be conducted so long as it satisfies either of the following conditions:
  • the initial margin of the portfolio after the transaction is conducted is positive (IM(post) > 0) OR
  • the trade is risk reducing
To clarify the last point, we say a trade is risk reducing if it consists of one of the following transactions:
  • Adds a long option
  • Adds a positive amount of the cash asset
  • Adds base collateral
  • Closes a perpetual
It is highly desirable to always allow users to be able to close risky positions. For example, suppose a trader has a short ETH 1700 call with 300 of USDC as collateral. Perhaps the trader wishes to de-risk and buy back 0.5 of this call with some of their USDC. On the smart contract layer, this transaction does not satisfy the second condition (since cash will be taken from the account to buy back the option). Further, if the option is sufficiently risky, there is no guarantee that the first condition will be satisfied either. This is problematic, since the above conditions would otherwise prohibit users from de-risking their portfolios. This motivates the existence of risk assessors (RAs); entities permitted to skip certain risk checks (see Portfolio Margin) and/or allow certain trades not normally allowed by the managers. Specifically for the standard manager, the risk assessor will have special logic to always allow users to close risky (i.e. short) positions. On-chain, the managers will always verify that all accounts have positive maintenance margin. This means that a malicious risk assessor can never open liquidatable (nor insolvent) positions. The worst that such a nefarious entity can do is refuse to permit users from closing risky positions (short options, etc) (but this can still be done permissionlessly on-chain).

Examples

All examples below are in the Prime universe, which hosts BTC and ETH.

Example 1: A simple short call

ETH is trading at $1900. Account:
  • $2000 of USDC
  • 3.0 short ETH 1800 calls expiring in 3 weeks, mark price 120 per call.
We have:
Formula
Since ETH is at $1900, we have OTM = max(0,1800-1900)=0.
Formula
Thus:
Formula
Since both the maintenance and initial margin are positive, the subaccount is not liquidatable and new positions may be added.

Example 2: A short put (new put logic)

ETH is trading at $2000. Account:
  • $2500 of USDC
  • 2.0 short ETH 2400 puts, mark price 430 per put.
The put is in the money, so OTM = max(0, 2000 - 2400) = 0. For initial margin we compare the two legs:
Formula
Initial margin takes the larger, here the strike leg:
Formula
Maintenance margin takes the smaller of its two legs:
Formula
Thus:
Formula

Example 3: Spread Logic

Account:
  • $2000 of USDC
  • 8 x SHORT $1700 ETH calls expiring in 2 weeks
  • 8 x LONG $1900 ETH calls expiring in 2 weeks
Assume that ETH is trading at 2100 and the 2 weekly forward at 2105. Let’s begin by computing the default margin.
Formula
Since long options contribute nothing to the default margin, we only have to compute the margin of the short $1700 call. Assuming an implied volatility of 92.5%, the mark price of the 1700 call is 425. We have:
Formula
Next, we compute the offset margin. In the 2 week expiry there are 8 long calls and 8 short calls; thus, there are no naked calls. We compute the intrinsic value at all relevant strikes (0, 1700,1700, 1900) in the table below: Thus, we have
Formula
Finally,
Formula
and so both the initial and maintenance option margin are -$1600. We thus have
Formula

Example 4: Multi Asset Account with a Borrow

Account (Prime universe):
  • $25,000 USDC
  • 0.5 BTC held as collateral
  • 5.0 ETH borrowed
  • 8 x SHORT 1700 ETH calls / 8 x LONG 1900 ETH calls expiring in 2 weeks
  • 0.3 x LONG BTC perpetuals (with no unrealized PNL or funding)
Assume BTC (and its perpetual) trade at 100,000 and ETH at 2,100, as in Example 3. From Example 3:
Formula
The BTC collateral is credited by its haircut factors:
Formula
The borrowed ETH is charged by its short factors:
Formula
The perpetual is charged at its per-currency requirement:
Formula
Thus, the total margin requirements for the account are:
Formula

Example 5: General Case

Consider the same subaccount as in example 4, but now assume:
  • The confidence of the BTC perp feed decreases to 0.50 (below the threshold of 0.55) and
  • The market price of USDC depegs to $0.70.
Let’s now compute the oracle and depeg contingencies. We have
Formula
For the depeg contingency, we have
Formula
So the margin requirements of the subaccount become
Formula
The account is still able to open new positions, but only just and a further deterioration of either feed would block it.