For the complete documentation index, see llms.txt. This page is also available as Markdown.

Margin & Liquidation

You can find all calculations in our Options Metrics Guide.

Margin

Margin treatment on Rails depends on whether you are long or short an option contract. Long options are paid for upfront, so your maximum loss is known when the trade opens. Short options can become riskier after the trade opens, so they stay subject to ongoing margin checks.

Because the risk profiles differ, long and short options use different margin models:

Position type
Margin model
Ongoing monitoring
Liquidation treatment

Long Calls & Long Puts

Premium plus buffer, locked at entry

No maintenance threshold

Maximum loss is fixed at the premium paid

Short Calls & Short Puts

Initial Margin and Maintenance Margin

Continuously monitored

New short exposure can be restricted, and the position can be liquidated, as the margin ratio rises

Long options

When you buy a call or a put, your maximum loss is known at entry: it is limited to the premium paid. For that reason, long options do not use a maintenance threshold.

Rails locks the premium plus a small buffer as margin. The buffer covers costs that may apply if the position must be closed — a liquidation fee, an insurance fee, and slippage. This margin is returned to your account at expiry or when you close the position.

See the long-option margin formulas in the Metrics Guide.

Short options

Short calls and short puts can lose more than the premium received, so collateral is monitored continuously after the trade opens. Short options use two margin thresholds:

Threshold
What it means

Initial Margin (IM)

The margin required to open the position. (roughly 15% of the index price, with floors and an out-of-the-money discount).

Maintenance Margin (MM)

The minimum margin required to keep the position open. (roughly 5% of the index price, with floors and an out-of-the-money discount).

Short-option margin is based on the market value that drives the risk:

  • Short calls are margined against the index price, because a rising market has no ceiling — losses can keep growing as the underlying climbs.

  • Short puts are margined against the strike price, because the underlying can only fall to zero, so the strike bounds the maximum risk.

As a result, short margin is not fixed. Required margin moves with the market because it depends on the current price and premium. As the market moves against you, a short position can require more margin and move closer to liquidation.

IM and MM apply only to short options. See Initial Margin (Short Call or Short Put) and Maintenance Margin (Short Call or Short Put) for the exact formulas.

Risks of short options

Short calls carry unlimited risk. If the underlying rises sharply, losses can keep expanding with no ceiling.

For that reason, Rails checks that the position has enough collateral both at entry and throughout the life of the trade. Liquidation is assessed at the account level, based on your total equity (your balance plus unrealized P&L) compared with your maintenance margin — not position by position. If your account falls below the maintenance requirement, Rails reduces or closes at-risk short positions to bring the account back within limits.

Why the strike for short puts, but the index price for short calls?

For a short put, the seller's maximum risk is bounded by the strike — the asset can only fall to zero. For a short call, there is no ceiling, so risk scales with the current market price. Each side is margined against the value that captures its worst case.

OTM Discounts on short positions

When a short option is out of the money, it is less likely to be exercised against you, so Rails applies an out-of-the-money (OTM) discount that reduces the required margin. The further out of the money the option is, the larger the discount. As the market moves toward the strike, the discount shrinks and the required margin rises back toward its full risk-based level.

The OTM discount lowers short-option margin when the strike is further from the index price. As the option moves closer to the money, the discount gets smaller and required margin increases.

Calls and puts use different OTM discount formulas because OTM is measured in different directions for each option type.

The discount is applied inside both short-option margin formulas, but the mark-price floor still sets a minimum margin requirement.

Liquidation

Rails continuously monitors open short-option positions and their effect on your margin ratio. The goal is to stop unrealized losses from eroding your collateral too far. Long options do not use a maintenance threshold, so this monitoring applies only to short exposure.

Two points on the margin ratio (used margin ÷ total equity) matter most:

Margin Ratio
Account Status

85% – 90%

Approaching liquidation; new short positions cannot be created. Long trades that fit within your available margin are still allowed.

≥ 98%

Liquidation triggered; positions are liquidated immediately.

A liquidation fee may apply. See Pricing & Fees for more information.

How positions are liquidated

When an account reaches the liquidation threshold, Rails closes positions in a defined order designed to relieve risk as efficiently as possible, using the Greeks to sequence liquidation priority. Short positions are liquidated first, starting with short calls, because reducing short exposure lowers risk faster than closing long positions.

Within short positions, Rails sequences liquidation by risk:

Order
Measure
Why

1st

Largest Delta

Biggest directional exposure.

2nd

Highest Gamma

Most unstable; risk accelerates fastest.

3rd

Nearest Expiry

Decay is fastest and gamma is highest.

4th

Remaining positions

Residual clean-up, including long positions only if still required.

After each position is closed, Rails recalculates your margin ratio. If closing a position brings you back below the threshold, liquidation stops there and your remaining positions stay open.

Avoiding liquidation

To reduce liquidation risk on short positions:

  • Deposit funds to increase your available balance and lower your margin ratio.

  • Reduce or close short exposure to lower the margin required.

  • Monitor positions closely when the underlying is moving toward your strikes, since required margin can rise quickly when the market moves against you.

Last updated

Was this helpful?