Markets
Perpetual Futures
Leveraged perpetuals on crypto, with onchain funding
Perpetual futures on crypto assets run on the same onchain order-book engine as spot, one book per market; real-world assets (RWAs) are planned. They are live on testnet (Global L1 and Tokyo Subchain) and deployed on Somnia Tokyo mainnet, where they are not yet open to the public. Funding and margin are computed onchain.
How they work
- Funding is paid onchain directly between longs and shorts. Its rate follows the order book's premium over the oracle's index price.
- The mark price comes from an onchain oracle, not the order book. On Somnia Tokyo mainnet, each market's mark blends Stork's mark price with the spot price of the Somnia Price Feeds perp composite, such as
BTC/USDC:PERP. - Each account's positions are cross-margined against its USDso collateral.
- Liquidation runs in stages and stops once the account is healthy again:
- Resting orders are cancelled.
- The position is partly closed on the order book.
- A backstop bidder takes the position.
- The insurance fund covers the remaining loss.
- Auto-deleveraging (ADL) closes what is left against profitable traders on the other side.
| Underlyings | Crypto; RWAs planned |
| Collateral | USDso, cross-margin |
| Status | Testnet (Global L1 and Tokyo Subchain); deployed on Somnia Tokyo mainnet, not yet open to the public |
See it in use
- Perps in Somnia Explorer. The perp markets on testnet, on the same order-book engine as spot.
Use it from the CLI and MCP
somnia perp markets --network testnet # perp markets, and whether each is tradeable
somnia perp deposit --amount 15 --network testnet # USDso into your cross-margin account
somnia perp place --pool $POOL --network testnet --side buy --price 81500 --quantity 0.001
Every perp command needs --network tokyo, testnet or tokyo-testnet. The MCP server gives agents the reads as its perp_markets and perp_account tools; it never signs, so an agent trades by running the CLI in a shell. somnia perp --help explains how to fund a testnet account.