> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scape.exchange/llms.txt
> Use this file to discover all available pages before exploring further.

# Margin Modes

> Available margin modes and how they work.

Scape inherits its margining from HyperCore. All Scape markets are **isolated margin only**.
Collateral is confined to a single position, so a loss in one market cannot cascade into
another.

## Initial Margin and Leverage

Leverage can be set to any integer from 1 up to the market maximum. Maximum leverage is
tiered: each market defines position-notional tiers, and the maximum steps down as notional
grows. Per-market maximums are listed under [Commodities](/assets/commodities). The margin
required to open a position is:

$$
\text{initial margin} = \frac{\text{position size} \times \text{mark price}}{\text{leverage}}
$$

Leverage is checked only when opening a position. Afterward, the trader is responsible for
monitoring leverage usage to avoid liquidation. Margin can be added or removed post-open, and
unrealized P\&L counts as additional margin.

## Maintenance Margin

The maintenance margin is the minimum collateral needed to avoid
[liquidation](/risk-and-margining/liquidation-mechanics). When account equity (collateral plus
P\&L) falls below it, the position is liquidated.

At each notional tier, the maintenance margin rate is half the initial margin rate at that
tier's maximum leverage. Maintenance margin is computed as

$$
\text{maintenance margin} = \text{MMR} \times \text{notional} - \text{deduction}
$$

with per-tier deductions chosen so the schedule is continuous across tier boundaries.

## Position Limits

Each market caps the position any one account can hold as a fraction of its open-interest cap.
The limit graduates with market-maker tier — see Scape's Market Maker Specification for the
schedule.
