Perpetual futures let you take price exposure without owning the underlying asset. Each position requires collateral in your margin account. Fills update your position, margin accounting, unrealized PnL, and funding history.
The Numbers To Understand
The mark price is used for margin requirements, PnL, and liquidations. It is anchored to the oracle and blends the book’s basis over approximately 150 seconds, rather than responding to individual quotes or cancels. It is rebuilt on a fixed cadence (every 200 ms), and each rebuild moves the mark’s distance from the oracle by at most 4 bp of the oracle (20 bp per second); oracle moves pass through in full. The mark sits at most 1% from the oracle in session; while a stock, FX or commodity market’s provider reports it closed, the band widens to 3% (5% for crypto-linked equities such as MSTR, COIN and HOOD) so a sustained off-hours move in the book can be reflected against the lagging closing index, and the band narrows back over about a minute at the reopen rather than in one step. The index price is the fair-value reference used for funding.
How Margin Is Applied
Every position lives in a risk bucket, cross or isolated, and each bucket is contained at the collateral allocated to it: the margin account can lose no more than that allocation through it. See What a risk bucket can lose. The Accounts page describes how the selected mode affects locked USDC collateral.Portfolio-aware margining for correlated positions is on the roadmap. It is intended to recognize offsetting risk, such as long BTC against short ETH.Selected Leverage And Margin Tiers
Initial margin is the greater of the selected-leverage requirement, scaled to the current mark, and the market’s ladder floor. Maintenance margin also follows the ladder. Deductions keep both requirements continuous at tier boundaries.Example$100,000 at 10× leverage
If an order would move the position above tier 1 and its requested leverage exceeds the new tier’s maximum, it is rejected. Lower the leverage and resubmit. Current market configuration is authoritative; the launch ladder is a snapshot.At entry, this position requires $10,000 of initial margin, even if the first tier’s ladder floor is only $2,000.
Position And Exit Controls
Monaco uses a single net position per market, with no hedge mode. Reduce-only prevents a close order from increasing or reversing exposure.TP/SL orders can attach to positions or entry orders. A trailing stop follows the mark’s best level by a set distance. TP/SL triggers use the mark, while execution occurs against the book: trigger price and fill price are different. Market legs can pay spread and price impact; limit legs may rest or fill partially.Standard perpetual market orders use a 10% protective band. Triggered TP/SL market legs use a 12% band to increase the chance of reducing exposure. A take-profit can still close at a loss after spread, impact, and round-trip taker fees.Review Collateral Before Trading
A risk preview reports acceptance, projected margin, free collateral, estimated liquidation price, and simulated fills. For open positions, monitor the mark, margin ratio, PnL, and liquidation distance.When an order needs more initial margin than its risk bucket has free, admission draws exactly the shortfall from the parent margin account’s unallocated collateral, subject to risk checks. A crossing order is charged its initial margin at the mark, the loss each fill takes against the mark, and its taker fee; a resting order is charged its initial margin at its limit and its maker fee, and one resting through the live mark (a sell below it, a buy above it) is charged as if it filled now: its initial margin at the mark and the loss it would take against it. Only the part that opens or flips a position is charged, so a close is never refused for its loss, and in liquidation zero mode the price it may close at is bounded by the risk bucket’s bankruptcy price instead (see Perp price band). A fill never draws more: it keeps in the risk bucket what its positions need to reach their initial margin and returns what the orders left no longer need; a cancel or released remainder returns what the orders still resting do not need, in cross and isolated risk buckets alike. Collateral you allocated yourself returns automatically only when an isolated risk bucket goes flat. A risk bucket below its initial margin is topped up by its next order that leaves an order opening a position on it — one that opens, adds to or flips a position itself, or any order placed while such an order rests: admission draws that gap with the order, so the bucket lands at its initial margin. If the parent cannot fund both, an order that adds to what the risk bucket requires is refused and one that adds nothing (a replace to a smaller order, a flip no larger than the position — a fee counts as adding) goes through without the draw. An order that only closes adds nothing and is never refused for margin, unless it leaves another of the risk bucket’s resting orders opening a position (a resting buy past a short it closes, say): then it is judged like any order that adds, and is refused if the parent cannot fund that order; cancel it first to close. A batch replace is judged as one replace of the risk bucket’s orders: when the parent cannot fund what the batch adds, the risk bucket’s items are refused together and every original keeps resting.Where automatic refunds are enabled for a market order, unused automatically allocated collateral returns after any positive fill. Requirements, fees, funding, losses, and other orders can keep the final allocation above notional divided by leverage.The full rules retain refund limits, zero-fill handling, tier formulas, rounding, the launch ladder, and the exact API fields.Margin Calculations And Full Rules
Margin Calculations And Full Rules
Perpetual futures (perps) allow traders to take directional price exposure without owning or exchanging the underlying asset. On Monaco, each perp position requires users depositing collateral in their margin account. Order fills update margin accounting, position state, unrealized PnL, and funding history.A position’s bracket is the last tier whose so the ladder’s initial-margin floor and maintenance requirement for a position of notional and both are continuous at At entry, a $100,000 position opened at 10x therefore requires $10,000 initial margin even when its tier-1 ladder floor is only $2,000.Worked example (crypto majors): tier 1 is 50x (2% / 1%) up to $100M notional; tier 2 is 25x (4% / 2%) above. `MM($100M)
Perps-Specific Controls
Perps introduce controls that do not apply to spot trading:- One-way direction: each market holds a single net position —
sidesets the direction, andleverageis required to open. There is no hedge mode; omit the deprecatedpositionSidecompatibility field. - Reduce-only: prevents a close order from increasing or flipping exposure.
- Leverage: controls notional exposure relative to collateral. Each unit of a position keeps the leverage of the order that opened it: the position’s initial margin at the mark is each unit’s mark notional times
1 / leverage, summed, plus any margin added to the position, valued at the mark, and itsleverageis its notional at the mark over that requirement. - Margin: collateral committed to support open positions.
- TP/SL: take-profit and stop-loss orders for planned exits, attached either to an open position or to a margin entry order, whose legs arm once that order creates or extends a position — see Conditional Perps Orders. A trailing stop does the same with a trigger that follows the mark’s best level by a set distance — see Trailing Stop.
Perp price band
Every perp order that takes liquidity — market or limit, any time in force — trades only inside a band around the market’s mark price. With markm and band k = 1,000 bps (10%), the band runs from m / (1 + k) to m / (1 - k): about 9.1% below the mark to 11.1% above it. A fill at either edge is exactly 10% of its own notional away from the mark, so a buyer and a seller of the same size at the same price are treated alike. Triggered TP/SL legs use a wider 1,200 bps band, so a firing stop trades price quality for a higher chance of reducing the position. These are the defaults. A perp market can be configured with its own band, from 100 to 2,500 bps (1% to 25%), which then replaces both: placements and triggered legs on that market use the same k.The order walks the book in price priority and stops at the first resting order outside the band, on either side.- Whatever filled inside the band settles. A market,
IOCorFOKremainder is cancelled as usual (FOKrejects when the band leaves it short), withterminalReasonPRICE_BAND, orSLIPPAGE_TOLERANCEwhen your ownslippageToleranceBpswas the tighter bound. - A limit remainder rests at its own price only if resting would not cross the book. If the band stopped the order at a resting order its own price crosses, the remainder is cancelled instead, with
terminalReasonPRICE_BAND: a resting bid at or above a resting ask would cross the book. - An order the band keeps from filling anything is rejected as insufficient liquidity before it is accepted.
- A perp order on a market with no mark price is rejected as unavailable; the book is never used in place of the mark.
terminalReason PRICE_BAND; FOK rejects when it is left short) — a limit order priced past it fills what is inside and its remainder is cancelled rather than rested. An order that finds nothing inside it is rejected with REST 400 / gRPC InvalidArgument code INVALID_ORDER and the message no liquidity inside the risk bucket's bankruptcy price; one no fill price keeps solvent, with no price keeps the risk bucket solvent. A resting order whose fill as the maker would take its own risk bucket below zero is held to the quantity its price still fills and the rest is cancelled with terminalReason BANKRUPTCY_PRICE. Nothing is refused at entry for this: a limit order that does not cross the book rests whatever its price, and is judged as the maker when a taker reaches it. Liquidation, auto-deleveraging and an operator’s forced close carry their own prices and are exempt for their own fills; a resting order a liquidation or an operator’s forced close fills is still held. Risk simulation applies the same check, so a preview reports the capped fill or the refusal.A perp limit order may not be priced past the band on its aggressive side. A buy above m / (1 - k) or a sell below m / (1 + k) is rejected before it is accepted, with REST 400 / gRPC InvalidArgument code INVALID_ORDER and the message limit price is outside the price band. This applies to every time in force, to post-only orders, and to replacements, including one that only changes quantity and keeps a price the mark has since moved past. Prices deep on the passive side are never limited: a bid far below the mark or an ask far above it rests normally. Triggered TP/SL legs are not checked at entry.A resting perp order the mark moves past the band is cancelled. When a new mark leaves a resting bid above m / (1 - k) or a resting ask below m / (1 + k), no taker may trade with it, so the engine cancels it in the same step the mark moves, with terminalReason PRICE_BAND, and releases its collateral. Orders inside the band, and deep orders on the passive side, are untouched. Liquidation and ADL executions are exempt. A client slippageToleranceBps can only tighten a market order’s band.A TP/SL triggers on the mark price and fills against the book, so its trigger price and its fill price are independent numbers. The mark is an oracle-anchored reference price rather than the book’s midpoint: the book’s premium or discount to the oracle enters it, and leaves it, only through a ~150 s time-weighted average, so neither a single quote nor a single cancel can move it, and it is sampled on a tick. A market leg then pays the spread it crosses plus the depth its size consumes — usually worse than the trigger, though nothing guarantees a minimum gap. A limit leg may rest or fill only partly. A triggered conditional order reports what its close actually did under triggeredOrder, and the close carries conditionalOrderId back to the trigger — see Trigger Price Is Not Fill Price. Set a take-profit far enough from entry to clear the spread, your own impact and round-trip taker fees, or it can fire exactly as set and still close at a loss.When a market order automatically funds a new isolated risk bucket, its initial allocation includes an execution-price allowance and estimated fees. Where automatic execution-collateral refunds are enabled, unused automatic collateral returns to the parent margin account in the same settlement once the order has executed. Any positive fill releases it — a market order that filled only part of its quantity before the remainder was cancelled releases just as a fully filled one does, and the release never exceeds the allocation the order originally drew. This release is limited to collateral automatically allocated for that execution; existing explicit collateral stays in place. The position retains its required margin, paid fees, funding, losses, and any collateral needed by other open orders. Final allocation can therefore exceed order value divided by leverage when the fill opens at a loss against the mark price. Risk previews include the same settlement behavior. An order that executed nothing at all releases through the ordinary cancellation-settlement rules instead.Admission is the only point where an order draws collateral from the parent margin account. A crossing order is charged its initial margin at the mark, the loss each fill takes against the mark, and its taker fee; a resting order is charged its initial margin at its limit and its maker fee, and one resting through the live mark (a sell below it, a buy above it) is charged as if it filled now: its initial margin at the mark and the loss it would take against it. Only the part that opens or flips a position is charged. If the risk bucket’s free collateral falls short, admission draws exactly the shortfall, bounded by the parent’s unallocated capacity and the usual risk checks. A first-use order creates its risk bucket holding only the explicit riskBucketCollateral you supplied, or nothing, and admission draws the rest in the same way. A fill does no margin check and draws nothing: of what it releases, it keeps in the risk bucket only what the new position needs and returns the rest to the parent. When an order releases — a cancel, an unfilled IOC or partial-fill remainder, a replace to a smaller order — the risk bucket returns to the parent what the orders still resting no longer need, and once none of them opens a position (only closes rest, or nothing) it returns everything not yet kept for a position, in ISOLATED and CROSS risk buckets alike. Collateral you allocated yourself, including riskBucketCollateral, is returned automatically only when an isolated risk bucket goes flat. Admission tops the risk bucket up to its initial margin: an order that leaves an order opening a position on a bucket below its initial margin (itself, or one already resting) also draws that gap; if the parent cannot fund both, the order is refused when it adds to what the risk bucket requires and goes through without the draw when it adds nothing. The gate judges this at the mark and does not count a fill’s gain against the mark. An order that only closes adds nothing and is never refused for margin, unless it leaves another of the risk bucket’s resting orders opening a position (a resting buy past a short it closes, say): then it is judged like any order that adds, and is refused if the parent cannot fund that order; cancel it first to close. A batch replace is judged as one replace of the risk bucket’s orders, against what the bucket required before it: refused together, keeping every original, when the parent cannot fund what it adds. While an order that opens rests the draw stays, and it is never counted toward liquidation. Risk previews follow the same path.Risk Preview
Before placing a non-trivial perp order, preview the account impact withsimulateOrderRisk. A trading UI should show whether the order is accepted, projected margin, free collateral after trade, and estimated liquidation price before the trader submits. The preview refuses what placing would refuse, with the same code. Pass the MARKET order’s slippageToleranceBps so the preview runs under the band the order will, and read expectedMatchResult — the engine’s simulated fill, in the same shape a placement’s matchResult carries — for the size’s own price impact and any unfilled remainder; see Pre-trade simulation.For open positions, use getPositionRisk or authenticated WebSocket alerts to keep mark price, margin ratio, PnL, and liquidation distance current.See Account Vault and Positions.Core Concepts
- Account Equity: The collateral in your margin account summed with realized and unrealized PnL on your futures positions.
- Free Collateral: Account Equity less the margin required to open positions.
- Initial Margin: The position requirement is the greater of its selected-leverage initial margin, scaled to the current mark, and the market’s ladder floor:
IM_floor(N) = N x initialMarginRatio - initialMarginDeduction. See Margin ladders. - Maintenance Margin: Minimum margin required to keep a position open, given by the ladder’s maintenance requirement:
MM(N) = N x maintenanceMarginRatio - maintenanceMarginDeduction. - Margin Ratio: Maintenance Margin divided by Account Equity, i.e.
maintenanceMarginRequired / equity. Higher means closer to liquidation. At zero or negative equity with a maintenance requirement, the ratio reads as the largest representable value — a maximal-distress sentinel, not a measurement; clamp it for display. With no open positions it reads zero. - Index Price: The market-derived fair-value price referenced for funding calculations.
- Mark Price: The price used for margin requirements, PnL calculations, and liquidations. It is anchored to the oracle price and blends the order book’s basis to the oracle in — and back out when the book goes away — through a ~150 s time-weighted average, so transient quotes and cancels do not move it.
- Liquidation Price: Mark price at which a position or portfolio would be liquidated. Above tier 1, this is solved piecewise across the ladder’s brackets, since maintenance margin changes rate at each bound. A blank or absent value means unavailable, never zero.
Margining
What a risk bucket can lose
Every position lives in a risk bucket, cross or isolated. A bucket is backed by the collateral allocated to it, and that allocation is the most its margin account can lose through it:- Cross and isolated alike. The cross bucket is contained at its allocation exactly as an isolated one is. Unallocated collateral in the margin account can fund new orders, but it does not back positions already open, so idle collateral does not keep a cross position open. A cross bucket is liquidated at its own maintenance margin, with no automatic backing from the account.
- The insurance fund absorbs every loss past the allocation. If a bucket closes out below zero, the account loses the allocation and the insurance fund pays the rest, whatever else the account holds. The engine’s live account equity never counts a bucket’s loss past its allocation, open or realized. Persisted reads sum unrealized PnL without that cap: the portfolio margin totals (
sdk.portfolio.getMargin) and the margin-account summary served when the live engine view is unavailable can show an open loss past the allocation. The bucket stays frozen in bad debt until the fund has covered the shortfall — see Bad debt and the insurance fund. - Allocating more collateral to a bucket is how you give its open positions more room.
- Releasing collateral is held to initial margin. Moving collateral out of a risk bucket — including reducing a position’s margin — must leave it covering the initial margin of its positions plus the reserve for its resting orders, never just maintenance margin. An unrealized gain never funds a release; realized profit does, so a live bucket’s withdrawable collateral includes its realized PnL.
- A flat, solvent risk bucket settles. When a risk bucket is left with no position and nothing resting (by a fill, a cancel or an expiry), an isolated bucket returns its allocation and realized PnL to the parent margin account and closes. The cross bucket returns any automatic draw it has not used and keeps the rest, realized PnL included, for its next position.
Margin ladders
Each perp market prices margin off an ordered ladder of tiers rather than one flat rate. A tier is(lowerBoundNotional, maxLeverage); from maxLeverage the ladder derives, rounded to 8 decimal places:lowerBoundNotional is at or below its notional, abs(quantity) x mark price.Margin is continuous across every bound — there is no cliff at a tier boundary. Each tier beyond the first carries a deduction that cancels the jump its raw rate would otherwise create:N in bracket k are:N = bound_k.The actual position initial-margin requirement also accounts for selected leverage. Its stored initial margin is scaled from entry notional to current mark notional, then compared with the ladder floor:is $1M under either tier's formula — continuous at the bound.MM($200M) = $200M x 2% - $1M = $3M, where the $1M deduction is $100M x (2% - 1%)`.Admission rule: an order whose projected post-fill position notional, valued at the mark, lands above tier 1 is rejected if the requested leverage exceeds that bracket’s maxLeverage — lower the leverage and resubmit. The bracket is evaluated on the position the order projects together with the risk bucket’s other resting orders on the same side of the pair, which fill one after another: a flip or an add split across several orders lands in the bracket one order of the same total would. A reduce-only order counts in its queue place: it closes the position and opens nothing past it. Initial margin reserved for an order stays notional x max(1/leverage, tier-1 initialMarginRatio).Market caps: a market can carry two optional USD caps; an uncapped market never refuses. Both are checked at admission only, priced at the mark, and reject with 400 / INVALID_ARGUMENT:- Position cap (
position cap exceeded: …): the risk bucket’s position plus its resting orders on the new order’s side, walked in fill order, may not exceed the cap. Orders on the other side are not counted. The cap binds per margin account and pair: a margin account holds a pair in one risk bucket only (its cross bucket, or the pair’s isolated bucket; see One margin mode per market), so one account cannot reach the cap once in each mode. - Open-interest cap (
open interest cap reached: …): the market’s gross open interest plus the order’s opening quantity may not exceed the cap. What an order opens counts the risk bucket’s other resting orders on the same side: orders that together close a position and open the other side open the remainder once, whichever order takes the side past the position. The WebSocketmarket_statsframe publishes it asopenInterestLimit, with what is left inopenInterestHeadroom.
One margin mode per market
A margin account holds each market in one margin mode at a time: its cross risk bucket, or the market’s isolated risk bucket, never both. While one of the two holds exposure on the pair — an open position, or a resting order that is not reduce-only — an order that is not reduce-only into the other is rejected with400 / INVALID_ARGUMENT and the structured code MARGIN_MODE_CONFLICT; the message names the holding risk bucket and its mode. Reduce-only orders always pass. To switch a market’s mode, close the position and cancel its open orders in the current bucket first, as on Binance or Hyperliquid. The same rule applies to a margin TWAP: a parent that is not reduce-only on a pair the other bucket holds is refused at creation, and a slice is skipped if exposure appears in the other bucket later. A live TWAP parent is exposure too: while the account has a live parent on the pair that is not reduce-only, that parent holds the pair in its margin mode, so an order or a parent in the other mode is refused with the same code until the parent ends (a reduce-only parent holds the pair in no mode). A collateral transfer is refused the same way (400 with MARGIN_MODE_CONFLICT) only when it would create a second live isolated risk bucket for the pair. Idle collateral is not exposure: collateral moved into the risk bucket of the mode that is not holding the pair is accepted, but it cannot open exposure there while the other mode holds the pair. Risk previews (simulateOrderRisk and the risk-bucket previews) report the refusal as accepted: false with rejectCode: "MARGIN_MODE_CONFLICT".This is why the position cap and the margin tiers bind per margin account and pair: a pair’s exposure can sit in only one risk bucket, so it cannot be split to reach the cap twice or to keep two halves of one position at tier 1. An account that already held a pair in both modes when the rule shipped keeps both; each side can be reduced until one closes, after which the rule applies as usual. Such an account can cancel a resting order in either bucket, but it cannot amend one in the mode that is not holding the pair: a replace that is not reduce-only is a new order and is refused with MARGIN_MODE_CONFLICT, while a reduce-only replace passes. On an isolated-only market (isolatedOnly: true) a cross position that predates the flag can therefore only be reduced: new cross risk is refused with CROSS_MARGIN_NOT_ALLOWED and an isolated open with MARGIN_MODE_CONFLICT until the cross position closes.Where to read it: GET /api/v1/market/pairs/{id}/perp/config (getPerpMarketConfig) returns riskTiers[] ascending by lowerBoundNotional, each with tierLevel, lowerBoundNotional, maxLeverage, initialMarginRatio, maintenanceMarginRatio, initialMarginDeduction, maintenanceMarginDeduction, and maxPositionNotional (the tier’s USD notional cap: the next tier’s lowerBoundNotional, or the market’s position cap on the top tier, absent when uncapped). maxPositionSize is deprecated and no longer set. The top-level maxLeverage, initialMarginRatio, and maintenanceMarginRatio fields are tier 1. Position, portfolio, and margin-account endpoints use the same ladder for maintenance margin and liquidation prices. Their position initial-margin requirements also retain the higher selected-leverage requirement described above.Launch ladder
Tier 1 is 50x on every market at launch; tier 2 varies by sector. The ladder is configured per market and can change — treat this table as a snapshot and readriskTiers from getPerpMarketConfig for the authoritative, current ladder.
