Margining
Margin is isolated. Each position posts its own collateral, risks only that collateral, and is liquidated on its own. There is no cross margin and no portfolio margin.
Key figures
| Site listing | Permissionless bounds | |
|---|---|---|
| Maximum leverage | up to 5x, and never past the depth tier | at most 5x |
| Maintenance margin | 1,000 bps (10%) | at least 500 bps |
| Liquidation fee | 100 bps | below maintenance |
| Maintenance floor | 120 bps + liquidation fee | same, on every market |
| Minimum position | $10 | at least $10 |
Opening
leverage = size / (collateral - open fee) must be ≤ effective maxCollateral is escrowed when the order is submitted. The part an unfilled order does not use comes back at settlement.
Adding to a position checks the grown position on collateral net of the funding it already owes. So an add to a position near the cap fits only at a lower leverage than the market's maximum, and an add to a position already past it (the cap fell after it opened) fits only once the order is large enough to bring the whole position back under. The trade ticket caps its leverage slider at what the grown position allows and says when that is below the market's maximum. When a market's maximum falls while the ticket is open, the ticket lowers the chosen leverage to it and says so. The entry blends as the notional-weighted harmonic mean:
entry = (s1 + s2) / (s1 / p1 + s2 / p2)Example: $1,000 at $100 and $1,000 at $200 is 10 + 5 = 15 units for $2,000, an entry of $133.33. The arithmetic mean, $150, would pay a short more than its lots made and a long less. With the harmonic mean the position's PnL equals the PnL of its fills taken one by one.
Adding and removing margin
An open position's collateral can be changed without changing its size. Neither is a trade: the entry, the funding owed so far and the held clock stay as they are, no fee is charged, and the margin stays isolated to the position.
Adding (add_margin) moves USDC from the wallet into the pool vault,
where the position's collateral already sits. It only takes risk off, so it
is allowed whenever a close is: on a paused market too, but not while the
pool is paused.
Removing (remove_margin) moves collateral back to the wallet, as long
as the position stays at or above its initial margin, not just its
maintenance margin:
initial margin = size / effective max rounded up
margin equity = collateral - funding owed + min(PnL, 0)
removable = min(collateral, margin equity) - initial marginFunding owed counts as it does when an add is checked. A loss counts and a profit does not, since profit is paid only on a close and only as far as the market's budget reaches. PnL is taken where a liquidation would close the position: the worse, for the position, of the risk price and the oracle, on the closing side of the spread. The cap is the effective maximum, so a closed session or a lower depth tier allows less out.
Removing is refused while the market or the pool is paused, as an open is. It is also refused while the wallet has any order resting in the market's batch. An open there was checked against the collateral the position held and books without being checked again, and a close there has size reserved against the position. Cancel or settle the order first. Trigger orders reserve nothing and are checked again when they fire, so they do not block it.
Trader collateral is not LP money and does not count in AUM. Both instructions move the pool's and the market's collateral totals by the same amount as the position's. Less collateral behind a losing position is less that the LPs can collect, so the change in what the market owes them is booked to the AUM drift, as for a fill.
Effective maximum leverage
effective max = min(listed max, closed-session max if closed, depth tier)The depth tier applies only to markets priced off a spot pool.
An open is held to less than this when its side is crowded. See Leverage follows the book.
Leverage follows depth
Depth is what it costs to move the tracked pool 1%. Higher leverage means a smaller move reaches a liquidation, and the move is what an attacker pays for.
| Sustained depth | Maximum leverage |
|---|---|
| under $10,000 | 2x |
| $10,000 to $50,000 | 3x |
| $50,000 to $250,000 | 4x |
| $250,000 and above | 5x |
Sustained depth:
- falls to any lower reading at once,
- rises toward a higher reading by 10% of the gap, at most once every 20 seconds, however often the pool is read,
- never passes the next tier's floor in one rise.
Liquidity parked in a pool for one reading, however large, buys at most one tier, and the next honest reading takes it back. A new market opens at 2x and earns its tier over depth that stayed. When the pool thins, the tier falls on the next reading, before the next order is accepted.
Leverage follows the book
When most of the open interest is on one side, the pool is the other side, and the market's backers carry it. So an open that adds to a crowded side gets less leverage than one that adds to the lighter side.
share = side / (long + short) counting the open
cap = effective max share ≤ 60%
= floor + (effective max - floor)
× (100% - share) / 40% share > 60%
floor = min(2x, effective max)| Side's share | Cap on a 5x market | Cap on a 10x market |
|---|---|---|
| up to 60% | 5x | 10x |
| 70% | 4.25x | 8x |
| 80% | 3.5x | 6x |
| 90% | 2.75x | 4x |
| 100% | 2x | 2x |
- The share is taken with the open in. The side counts the open itself and every open already resting on that side of the batch, since all of them may fill. Opens resting on the other side are not counted: they may go home unfilled. An open on the lighter side that would take it past 60% is held to the cap like any other.
- A small book is exempt. Below $10,000 of open interest, both sides and the open together, the share does not lower leverage. The first trades on a new market are one-sided by necessity.
- Only opens are capped. Closes, reductions and liquidations never are, so a crowded side can always be left. A position opened before its side crowded is not touched; an add to it is checked on the grown position, like any add.
Shares are whole bps, rounded down; the cap is rounded down to whole bps. The trade screen caps its slider at the side's figure for the book as it stands. A large order moves its own side's share, and the program checks that.
Position size
One position, per wallet per market, is held to a size cap that falls as leverage rises:
largest position = size cap / max(leverage, 1x)The size cap comes from the same depth reading that sets the leverage tier. At each tier's own maximum leverage it is the tier's depth floor, the cost of moving the pool 1%, so a position gains from a move about what the move costs to make:
| Depth tier | Size cap | At the tier's max | At 2x | At 1x |
|---|---|---|---|---|
| 2x, under $10,000 | $5,000 | $2,500 at 2x | $2,500 | $5,000 |
| 3x, to $50,000 | $30,000 | $10,000 at 3x | $15,000 | $30,000 |
| 4x, to $250,000 | $200,000 | $50,000 at 4x | $100,000 | $200,000 |
| 5x, above | $1,250,000 | $250,000 at 5x | $625,000 | $1,250,000 |
| Feed market | $1,000,000 | $50,000 at 20x | $500,000 | $1,000,000 |
- An add counts the grown position, at the leverage it ends at.
- Only opens are capped. A position past the cap, because the tier fell after it opened, stays open and can always be reduced or closed.
- The pool authority can scale it per market, in tenths of the default
(
set_market_guards). It cannot be raised by depth parked for one reading: the tier rises at most 10% of the gap every 20 seconds.
The trade screen caps its slider at the figure for the chosen leverage and says "Max $X at 3x." past it.
Closes only
A market takes no opens, adds, flips, triggers that open, or open TWAP slices while its price is moving faster than it can follow, or while its pool is too thin to price. Closes, reductions and liquidations go on. See Price sources.
Maintenance margin
A position is liquidatable when its equity, at the risk price, falls below its maintenance margin:
equity = collateral + PnL - funding owed
PnL = size × (exit / entry - 1) long
size × (1 - exit / entry) short
exit = risk price less the spread, on the closing side
liquidate if equity < size × maintenance_bps / 10,000Two constraints on every market, checked at listing and on every parameter change:
- Maintenance below initial margin. Initial margin, 1 / max leverage, must exceed maintenance: 5x is 20%, above 10%. A position opened at full leverage is not already liquidatable.
- Maintenance covers one risk price step plus the fee. The risk price moves at most 120 bps per step (40 a slot, 3 slots; see Price sources). So maintenance must be at least 120 bps above the liquidation fee. A position healthy before a step still has its fee left after it, and a liquidation is paid out of the position, not out of the pool.
A site listing at 1,000 bps maintenance and a 100 bps fee clears the floor of 220 bps by 780.
The auction's band is at most half the maintenance margin, so a position opened at either edge of the band starts with at least half its maintenance margin standing.
Sessions
While a tokenized stock's exchange is closed, its maximum leverage and open interest cap tighten. Maintenance does not change. See Sessions.
Closing in profit
A close realizes its loss at the fill. It realizes profit at no better than the market's risk price:
PnL at fill ≤ 0 realized = PnL at fill
PnL at fill > 0 realized = min(PnL at fill, max(PnL at risk price, 0))The risk price follows the mark at 1% a second, so in a fast move a winner who closes before it catches up is paid the profit at the risk price, and the rest stays with the pool. A partial close holds back its own share; what stays open is untouched. This holds for every close a trader sends: a reduce, a full close, a flip's close half, a TP or SL, a TWAP's exit slices and an instant fill. Funding, fees and any profit haircut are then taken as usual, the haircut counting winners at the same price.
Example: a $5,000 long from $100 closes at $110 while the risk price stands at $105. PnL at the fill is $500, at the risk price $250. It is paid $250. A second later, with the risk price at $106.20, the same close is paid $310.
The trade screen says "Price moving fast. Profit paid at $105 until it settles." on a winning close while this applies.
On the trade screen
The header and each position row show one mark, the pool mid. PnL is taken at the price a close would fill at: the bid for a long, the ask for a short. The two differ by half the spread, shown in the header as its own figure.
Portfolio
/portfolio shows everything one wallet holds on unwind: positions, standing orders, backing, pool deposits and recent fills. Add ?wallet=<address> to view any wallet read only. Every figure on it is public on chain. Only the owner can cancel.
Liquidations
A position whose equity at the risk price falls below its maintenance margin can be closed by any account. The account that does it is paid out of the liquidation fee.