Skip to main content
The formulas Rails uses to size margin and fees for an options order. For a conceptual overview, see the Margin & Liquidation guide. The formulas below produce the per-order margin and fee figures.

Notation

Constants

The long buffer of 0.165 breaks down as 12.5% trading fee + 1% insurance + 3% slippage.

Margin

OTM discount (per contract): Long (buying) — the premium is paid up front; margin covers the buffer: Short (selling) — per-contract margin is MAX(rate · Index − OTM, floor · Mark) + Mark: Short initial margin is floored at the maintenance level (MAX(IM′, MM′)) so it is never weaker than the maintenance requirement.

Fees

The delivery fee charged at settlement is covered in Settlement.