Trading

Liquidation

Liquidation: you lose your margin. There is no softer way to say it, so the ticket says it too.

When it happens

A position is liquidated only when its equity is under its liquidation line at the market price and at the 10 minute average price.

Position sizeLine
up to 0.1% of depth2.0% of size
up to 0.4% of depth5%
up to 1% of depth10%

A position keeps the line it opened with. An addition keeps the lower line while the position stays in its size tier or a smaller one. A change of settings can lower your line, and raise it again, but never above the line the position opened with.

A price move cannot liquidate a position that holds its margin

The band rule makes every position hold what the band could cost it and its liquidation line counted at the far edge of the band. Holding that, a position is above its line at every price inside the band. So a position that holds the margin the rule asks for cannot be liquidated by any price move inside the band, however long the price is held there.

In our tests a large trader pushed the price to the far edge of the band and held it there for 60 seconds, for hours and for a full day, with funding running at the launch rate and at the highest rate the program allows. Every position that held its margin was kept: none was liquidated and none was closed, and nobody lost more than a margin. The push cost the trader 0.3 to 2.4 SOL.

The 10 minute average is a second guard. It does not move in the second the price is moved, so a spike cannot liquidate anybody, even a position that funding has worn down.

What can still liquidate a position

Funding, and then nobody closing the position. Funding is what wears a margin down. There are two exceptions: while a market's cushion is empty or short, a loss past another trader's margin is charged to the open positions on the other side, and so are single lamports of rounding from very small closes. Once the margin is worn under what the position must hold, anybody may close the position by the band rule at the market price of that moment, and what is left goes back to its owner. Our keeper sends that close, and anybody else may. If nobody does for many hours, a price pushed to the position's far edge and held there can liquidate it.

In our tests, for the smallest long at the band's highest price paying the most funding there is, with nobody sending anything: it could be closed by the band rule from hour 7.5 at the launch rate, a push held at its far edge could liquidate it from hour 17.5, and it could lose more than its margin from hour 56. At the highest funding the program allows: hours 5, 14 and 38. The harm comes sooner than the liquidation: with nobody sending the band rule's close, another trader can force the close at the far edge from about 45 minutes after a position becomes closable, and owners then got back 35% to 42%.

How far the price has to move

Measured from the entry price, for a position opened at the leverage shown that has paid no funding. The first number is how far down for a long, the second is how far up for a short. The ticket shows the liquidation price for your order, or "outside the band" when no price inside the band reaches it.

Your leverageSmall position, line 2.0%Middle, line 5%Large, line 10%
20x3.1% and 2.9%not offerednot offered
10x8.2% and 7.8%5.3% and 4.8%not offered
5x18.4% and 17.6%15.8% and 14.3%11.1% and 9.1%
2x49.0% and 47.1%47.4% and 42.9%44.4% and 36.4%

The band rule only lets a position open where the move it needs is further than the price can go inside the band. That is why 20x is not on offer everywhere in the band: see leverage on offer.

What the band means for liquidation

The price of a market cannot leave its band. From the band's highest price to its lowest is a fall of 4.7%. From its lowest to its highest is a rise of 4.9%. No price move is larger than that.

The band rule is built on this. A position must hold enough that at the far edge of the band it is still above its line, so its line cannot be reached by a price move inside the band. Compare the liquidation price on your ticket with the band.

Funding still counts. Funding you pay comes out of your margin and moves your liquidation price closer. When it has worn the margin under what the position must hold, the position can be closed by the band rule; if nobody closes it for many hours, it can be liquidated. See funding.

What happens

  1. Anyone can send the liquidation. Motion runs a keeper that does, and so can you or your bot.
  2. The position is closed on the curve in pieces of at most 0.5% of the curve for each transaction. Small positions close in one.
  3. What is left after the loss is the penalty. 5% of it, and at least 0.001 SOL, goes to whoever sent the liquidation. That bounty comes only out of what the position has left, never out of the market's cushion. The rest goes to the market.
  4. You get nothing back.

A large position that drops into a smaller size tier while it is being closed is checked against that tier's line, so part of it can survive.

The liquidation map

Every position is public, and the curve says exactly how much buying or selling moves the price to any level. So the app draws it: the Liquidation map button on the chart shows the size that gets liquidated at each price level, and when a price inside the band can reach a group, a line under the chart says how much buying or selling it takes.

The price cannot leave the band, so a level outside the band cannot be reached by a price move.

The price can be pushed inside the band. There is no outside price. A trader with enough size can move the price to an edge of the band and hold it there. That cannot liquidate a position that holds the margin the rule asks for. It can liquidate a position that funding has worn down and that nobody closed by the band rule for many hours, and each liquidation then closes on the curve and moves the price further the same way. The band limits how far a push can go, so Motion shows the map to everyone.

How to stay off the map

When a loss is bigger than the margin

A price move alone cannot do it, as long as the band rule's close is sent in time. Every position must hold what the band could cost it and its line at the far edge, and when funding wears its margin under that, anybody may close it by the band rule. Our keeper sends that close, and anybody else may.

When nobody sends it for many hours, a position can close for less than it owes, by a move across the band or by funding running on. What is lost past its margin is then what funding ran up in the meantime. In our tests, with nobody sending anything, that took 56 hours at the launch rate and 38 at the highest rate the program allows. When that happens, in order:

  1. The market's cushion pays. Each market keeps its own, up to 20 SOL.
  2. The other side shares what is left. What the cushion cannot cover is charged to every open position on the other side, by units held.
  3. A payout can never be larger than the market's vault. If one would be, the trader is paid what is there and the rest is recorded and paid first from that market's later income.

One market's trouble never touches another market's vault.

Liquidated traders and rewards

What a liquidation takes, less the sender's bounty, counts toward trader rewards, the same as fees do.