Trading
How perps work here
A perp is a position on a price with no end date. You post margin, pick a side and a leverage, and your profit or loss follows the price until you close.
The words
| Word | Meaning |
|---|---|
| Long | You profit when the price rises. |
| Short | You profit when the price falls. |
| Margin | The SOL you put up. It is the most you can lose. |
| Leverage | How many times your margin the position is worth. Up to 20x. |
| Size | Margin times leverage, in SOL. Fees and limits are counted on size. |
| Units | How much of the account you hold. Size divided by the entry price. |
What is different here
- No price feed. The price is set by the trades in this market only. See the price. Other perps liquidate on an outside price. Motion has none by design, so margin does that job: see the band.
- The price lives inside a band. It cannot leave it. A position that holds the margin the band rule asks for cannot be liquidated by any price move inside the band, however long the price is held there. See the band.
- Your order moves the price. The ticket shows by how much before you open.
- Your margin is in SOL and belongs to that one position. A loss in one market cannot touch your margin in another.
- One position per wallet in each market. You can add to it. To switch sides, close first.
- Every position is public. Anyone can see where each one gets liquidated. The app shows it as a map.
Limits
How much leverage you can use depends on how large your position is next to the market, and on where in the band your order fills. The ticket shows the largest leverage on offer for your order. The size limits are shares of the market's depth, which does not change.
| Position size | Top leverage | Margin to open | Liquidated under | At the start depth of 15,000 |
|---|---|---|---|---|
| up to 0.1% of depth | 20x | 5% of size | 2.0% | up to 15 SOL of size, 0.75 SOL of margin at 20x |
| up to 0.4% of depth | 10x | 10% | 5% | up to 60 SOL of size |
| up to 1% of depth | 5x | 20% | 10% | up to 150 SOL of size |
The margin to open in this table is the least a tier asks. The band rule can ask more, depending on where in the band the order fills; then less leverage is on offer than the tier's top.
- Smallest margin: 0.05 SOL.
- Smallest order: 0.01 SOL of size. A close that would leave less than 0.01 SOL of size closes the whole position.
- A side can be full. All longs together may hold at most 1.2% of the curve's units, and so may all shorts. At the start depth that is 180 units, about 180 SOL of size a side. Past that the open is refused with "this side is full". This is the edge of the band.
- One transaction moves the curve by at most 0.5%, about 1% of price. At the start depth that is 75 SOL of size. A larger order or close is sent as several transactions in a row. The app does this for you and tells you how many.
- Same slot: a position cannot be closed in the slot it was opened.
- Your liquidation line stays yours. 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 later change of settings can lower that line, never raise it above the one it opened with.
- An addition that would leave the position under its line is refused. It is judged at the price the addition itself makes.
The band
Every market's price lives inside a band that is fixed when the market is created.
What it is
Each side of a market may hold at most 1.2% of the curve's units. All longs together are one side and all shorts are the other. The test at every open: with every position on the other side gone, the curve must still be inside the band. So whoever closes, and in whatever order, the price stays between two fixed prices.
| For a market that starts at 1 SOL | Value |
|---|---|
| Lowest price | about 0.9764 |
| Highest price | about 1.0244 |
| From the band's highest price to its lowest | a fall of 4.7% |
| From its lowest price to its highest | a rise of 4.9% |
The price stands at the top only when the long side is full and no short is open. It stands at the bottom only when the short side is full and no long is open. The two prices never move: a market keeps the band it was created with whatever settings change later.
Why it exists
Other perps liquidate on an outside price. Motion has none by design, so margin does that job. The band rule has two halves.
- To open, to add, and after taking margin out, a position must hold three things: what the band could cost it, which is what it would lose if the price went to the far edge of the band; its liquidation line, counted on what it is worth at that far edge; and 0.30% of its size. An order that leaves less is refused with
band_margin. - At all times a position must hold the first two: what the band could cost it and its line at the far edge. When funding has worn its margin under that, anybody may close it. See the band rule's close below.
Together they give this: 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. Funding is what wears that 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, anyone may close the position 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 far edge of the band and held there can liquidate a worn position: see liquidation.
Leverage on offer
Because the rule asks for the band's cost and the line at the far edge, the most leverage on offer depends on where in the band the order fills. The ticket and the API show it before you open. At the launch settings, in a market that starts at 1 SOL, for a small order:
| Price | A long may use | A short may use |
|---|---|---|
| 0.9764, the bottom | 20x | 13.6x |
| 0.9812 | 20x | 14.7x |
| 0.9884 | 20x | 16.6x |
| 0.9956 | 20x | 19.0x |
| 0.9980 to 1.0038 | 20x | 20x |
| 1.0052 | 19.5x | 20x |
| 1.0124 | 17.2x | 20x |
| 1.0196 | 15.5x | 20x |
| 1.0244, the top | 14.5x | 20x |
So 20x is on offer to both sides between 0.9980 and 1.0038, to a long from the bottom of the band up to 1.0038, and to a short from 0.9980 to the top. Away from there it tapers. A long is offered 10x everywhere in the band. A short is offered 10x from about 0.9846 up, and a little less in the lowest sixth of the band, down to about 9.6x at the very bottom. 5x is on offer everywhere, to both sides. The numbers are rounded down, never up; a larger order gets a little less.
Max. The most on offer moves with the price, so a number you picked can stop being offered. The ticket then says so, leaves your choice as it is, and waits for you to pick one that is offered. Pick Max and the ticket follows the most on offer by itself: the line under the choices says where Max stands, and your order is made at the most on offer at that moment, which can differ a little from the number the ticket showed a second before. If the market moves again before the order lands, the order is refused like any other, and you press once more.
The band rule's close
Funding comes out of margin hour by hour, while what a position must hold stays the same. When funding has worn a position's margin under what the band could cost it plus its line at the far edge, anybody may close it. We say the position was closed by the band rule.
- The whole position is closed, at the market price.
- The ordinary closing fee goes to the market, and 0.0005 SOL goes to whoever sent the close.
- The rest waits for you. It is set aside for you inside the market's vault until you collect it. Nobody else can take it. In paper trading mode it is back in your balance at once.
- It is not a liquidation. The whole position is sold at the market price of that minute, and you get back what it is worth at that price, less the fee and the 0.0005 SOL.
- Other traders can see that minute coming, and are paid by the sale. A trader who holds the other side of a full side is paid when the band rule closes the worn positions into him, and he can make those closes land at a worse price on purpose. In the plays tested, the closed owners got back between 46% and 72% of what they paid in, against 88% when nobody traded against them, and the best play earned its trader between 1.0 and 1.7 SOL on one launch market. Nobody ended past a margin, and nothing is taken from a position that holds or tops up its margin.
- The sender can move the price a little first. The close is refused while the market price stands more than 0.2% on your wrong side of the 10 minute average price, and in the slot you last opened or added. So the sender can move the price up to 20 basis points against you first and take up to 0.2% of the position's size.
- A liquidation comes first. A position under its line is liquidated, not closed by the band rule.
How long it takes. The 0.30% of size a position posts on top of what it must hold is its runway against funding. At the launch settings funding takes at most about 0.041% of size an hour, so a position on the crowded side at the most leverage, that never adds margin, has about 7 hours after it last opened, added or took margin out before it can be closed by the band rule. Whatever the admin wallet sets, the funding limit compiled into the program, 0.075% an hour, keeps that at 4 hours or more. Positions that pay less funding, or receive it, take much longer.
What you can do. Top up margin before the hours shown on the position run out, or use less leverage on a crowded side. You can also close the position yourself.
What it means for you
- A side can be full. When a side has reached the edge of the band, an open on that side is refused. Closing is never refused. Room comes back only when positions on that side close. In a full market, who leaves first decides who pays: see the price.
- At the edge of the band the other side has almost nothing to lose to price. When the price stands at the top it cannot go higher. A short opened there can lose no more to price than its own order moved the price, and the crowded long side pays it funding. The same holds for a long opened at the bottom.
- A price move inside the band cannot liquidate a position that holds what the rule asks. What can is funding first, and then nobody closing the position by the band rule for many hours. See what the band means for liquidation.
- A market cannot leave its band. The price moves inside the band and nowhere else, however much one side wants in. A way for the band itself to move is planned for after launch: coming soon.
Your worst fill
Every open and every close carries the worst price you accept. If the price moves past it before your transaction lands, the transaction fails and nothing is taken. The curve is public, so this is your protection against someone trading in front of you.
Profit and loss
Your profit is what closing your whole position on the curve would pay, minus your size at entry. A quick way to think about it: profit is close to your size times the price move since entry, less what your own close moves the price.
An example
You open a long with 0.5 SOL of margin at 10x in a new market. Size 5 SOL, entry price about 1.0003. Other traders then buy until the price is 1.0200.
| Closing your units pays | about 5.10 SOL |
| Your size at entry | 5.00 SOL |
| Profit | about 0.10 SOL, 19% on your margin |
| Fees, open and close | about 0.01 SOL |
Had the price gone to 0.9800 instead, you would be down about 0.10 SOL, a fifth of your margin. The price cannot go below about 0.9764 in this market, and there you would be down about 0.12 SOL. So a price move alone cannot liquidate this 10x position.
Margin after opening
- Add margin any time. It moves your liquidation price away, and it pushes back the moment the band rule could close the position.
- Remove margin down to what the position needs to open at its size, and never under what it must keep: what the band could cost it, its liquidation line at the far edge of the band, and 0.30% of its size.
- Funding is paid from or added to your margin while the position is open.
Who pays the winners
The losers do. Every loss stays in the market's vault and every profit is paid from it. Every trade is on the one curve, so what the winners take out is what the losers put in: all profit and all loss in a market add up to zero. Funding is paid between traders too. Motion's income is the fee and the liquidation penalty, not your loss.
The market's cushion is not a bankroll. It steps in when a loss is bigger than a margin. See when a loss is bigger than the margin.