Get started

AxioPerp

A fully on-chain perpetuals order book on Solana: crankless, built for parallel execution, with market orders that cost almost nothing more as they fill more.

Get started

Quickstart

  1. Switch your wallet to devnet and get a little devnet SOL from faucet.solana.com.
  2. Open Trade, connect, and press Get 10,000 test USDC and deposit.
  3. Trade. Every transaction shows its compute units, with a link to the explorer.
Order book

Order books on Solana

Order bookProductMarket order of any depthCranklessParallel execution among distinct books
OpenBook v2spotNONOYES
ManifestspotNOYESYESexcept global orders
Phoenix v1spotNOYESYES
Phoenix perpetualsperpNOYESexcept spline ordersNO
AxioPerpperpYESYESYES

Market order of any depth

The other four books visit every order they fill, so a market order costs O(N) in the orders it crosses. AxioPerp's costs O(log N). This matters most in liquidation, which closes positions with a market order.

Crank

OpenBook v2 writes a record for every fill, and a separate crank transaction delivers it to the maker later. Phoenix perpetuals runs a crank to uncross its book.

Parallel execution among distinct books

OpenBook v2, Manifest and Phoenix v1 keep balances per book, so market orders on different books do not conflict. Manifest's global orders share one balance across books. Every Phoenix perpetuals order declares the same written accounts: in 22 recent orders from 8 traders across markets, all 22 wrote the same four accounts, one of them 1.6 MB. Any two of its orders conflict, so in a crash that hits both BTC and SOL, the BTC liquidation waits for the SOL one. In AxioPerp, no instruction in one market writes an account of another, so those two liquidations run in parallel.

Order book

Crankless

A market order matches and settles the taker inside its own transaction, and every maker's fill is fixed at that moment. There is no event queue to drain and no crank to run. On OpenBook v2, the crank that pays the makers of a 300-price market order costs a further 1,239,387 CU across 32 transactions.

Order book

Built for parallel execution

Solana runs transactions in parallel when they write different accounts. No AxioPerp instruction in one market writes an account of another, so trades, cancels and liquidations in different markets never wait for each other. A crash that hits several markets at once is liquidated in all of them at once.

Order book

Market orders

A market order's cost hardly grows with what it fills. Filling 300 orders costs 10,578 CU across 300 prices and 6,048 CU at a single price. Phoenix v1 and Manifest take 343,356 to 442,322 CU for the same order, and OpenBook v2 cannot fill 300 orders in one market order at all. On every other book a large enough market order fails; on AxioPerp it never does (measurements).

Risk

Liquidation

Below maintenance margin, anyone can liquidate an account in one instruction:

  1. The book. The position is sold into the book, no worse than the band around the mark and no worse than the bankruptcy price.
  2. Deleveraging. What the book cannot take closes at the mark against the other side, in proportion to size.
  3. Shortfall. The insurance fund pays first. Anything left is charged to the other side, in proportion to size.

The worst case we could build costs 83,079 CU (CU page).

Risk

Deleveraging

Every position on the other side keeps the same fraction of its size:

g = 1 − L / Q

Here L is what the book could not absorb and Q is the other side's open interest. It is kept as a per-side index, so it costs the same whether the other side has ten positions or a million. This is the proportional rule of Schlegel and Mamageishvili, Path-Independent Deleveraging Rules.

Risk

Fairness of deleveraging

Many venues deleverage by ranking: the positions with the highest profit and leverage are closed first, often in full, while the rest of the side is untouched. AxioPerp's rule treats every position on the other side alike.

  • Equal treatment. Every position keeps the same fraction g of its size and pays the same share of any shortfall per unit. No account is targeted for being at the top of a ranking.
  • Everyone's risk falls. Each position's leverage is multiplied by g, so the whole side de-risks together. A charge alone, with no reduction, would leave the side's leverage where it was.
  • Path-independent. The outcome does not depend on the order or the grouping of deleveraging events. Applying them one at a time gives the same result as applying them together, and AxioPerp's lazy index reproduces this exactly.
  • Split-proof. Splitting a position across accounts, merging accounts or reopening one does not change what it is charged, so there is nothing to gain by gaming it.

Schlegel and Mamageishvili show that the path-independent, split-proof rules form a one-parameter family. It runs from proportional division to water-filling, and the parameter trades fairness against platform risk. Proportional division is its fairest end. Applied to Hyperliquid's ADL episode of 10 October 2025, a range of intermediate members of this family improves on the allocation actually used, both in how evenly the burden falls and in the risk that followed (Path-Independent Deleveraging Rules).

Fees

Fees and parameters

Taker / maker fee5 bp / 0
Liquidation bonus, to the liquidator0.5%, cap 50 USDC
Insurance fee, on liquidation0.5%
Initial / maintenance margin10% / 5%
Liquidation band around the mark5%
Tick / unit$0.01 / 0.001 SOL
Program (devnet)FQaD…PfEH ↗