← Reference · Home · Print this page
Finance · Derivatives
Perpetual futures (cryptocurrency)
Reference entry · last updated September 9, 2026
A perpetual futures contract, often called a perp or perpetual swap, is a derivative that provides exposure to an asset's price without a fixed expiry date. Positions require margin, and periodic funding payments help align the contract with its underlying market.[1] This entry covers cryptocurrency perps. Products marketed as perpetual-style futures may have a distant expiry; Coinbase's US product, for example, has a five-year term.[2]
1. First principles: contracts and exposure
A spot purchase acquires the asset. A perpetual position establishes a contractual payoff linked to its price. A long position gains from a price rise; a short gains from a fall, before costs. A dated future settles or expires on a specified date. A perp can remain open while its margin requirements are met and the venue continues supporting the contract.[1]
Three quantities describe a position: its size, its current notional value, and the equity backing it. For a linear contract representing q units at price P, notional is qP. Contract counts must first be converted using the contract's multiplier.[2][3]
2. Trade, index, and mark prices
- Trade price: the price at which an order fills.
- Index or oracle price: an external reference for the underlying asset.
- Mark price: the valuation price used by the venue for specified account calculations.
These prices can differ. Hyperliquid uses a mark price combining external prices and its own order book for liquidation, but uses its spot oracle price to calculate funding notional. The last traded price alone therefore cannot reproduce either calculation.[4][5]
3. Funding payments
Funding transfers value between the two sides of a position. Under Hyperliquid's convention, positive funding means longs pay shorts; negative funding means shorts pay longs. Its rate includes both an interest component and a market-premium component, and payments occur hourly. A rising asset price alone does not determine funding's sign.[5]
Here r is the applicable payment-period rate, expressed as a decimal. This formula is Hyperliquid's stated calculation. Other contracts can use different reference prices or intervals. Funding is charged on notional exposure, rather than on the deposited margin. A displayed annualized rate is an extrapolation; future rates can change sign.[5]
4. Margin and liquidation
Initial margin is required to open a position. Maintenance margin is the minimum equity required to keep it open. Equity includes the collateral balance and relevant unrealized gains or losses. Falling below maintenance requirements can trigger forced closure. Liquidation can begin before the initial deposit is exhausted.[4][6]
Effective leverage measures current exposure against the equity backing it:
A leverage setting at entry is not a permanent risk level. For a fixed-size short, a price rise increases notional while losses reduce equity, raising effective leverage.[3][6]
Cross margin shares collateral among eligible positions. Isolated margin assigns collateral to a particular position. Hyperliquid's exact sharing boundaries depend on its account mode and collateral asset. Funds elsewhere cannot be assumed to support a losing position. These accounting boundaries do not remove custody, software, or collateral risks.[6]
Liquidation prices depend on maintenance rules, funding, and other positions where margin is shared. An approximation such as “a 10% move liquidates 10× leverage” omits those inputs. A liquidation price is also distinct from an intended stop-loss exit.[4]
5. Linear payoffs and costs
For a linear contract with q underlying units and prices quoted in its settlement unit, gross profit or loss (PnL) is:
These are gross trading payoffs. Net results include trading fees and funding credits or debits. Inverse contracts use a different calculation and may settle in the underlying cryptocurrency; the linear formulas must not be applied to them unchanged.[3]
Execution also incurs bid-ask spread and slippage. When actual fill prices are used in the payoff formula, these execution effects are already reflected in those prices. Subtracting them again would double-count them. Transfer costs belong in total strategy costs when transfers occur. Venue fee schedules and funding rules must be checked for the actual contract.[3][7]
6. Worked example at 1× initial leverage
This hypothetical example uses a linear short of 100 tokens at 10 quote units each, backed by 1,000 quote units of stable-value collateral. It excludes funding, fees, and liquidation. Starting notional and collateral are both 1,000, so initial leverage is 1×.
| Token price | Short PnL | Equity | Notional | Effective leverage |
|---|---|---|---|---|
| 8 | +200 | 1,200 | 800 | 0.67× |
| 10 | 0 | 1,000 | 1,000 | 1.00× |
| 12 | −200 | 800 | 1,200 | 1.50× |
The final row follows directly from the payoff formula: a 20% price rise produces a 200-unit loss and raises effective leverage to 1.5×. A short opened at 1× still has price risk. Whether a position reaches any later scenario depends on the venue's maintenance and liquidation rules.
7. Spot hedges and token baskets
Adding 100 spot tokens to the example offsets the short's price exposure if spot and perp prices move together. At a price of 12, the spot holding is worth 1,200 and the short account has 800: total value remains 2,000 before costs.
Actual hedges retain basis risk, the risk that spot and perp prices diverge. Positive funding may provide income to the short, but funding can reverse. If the spot and margin accounts are separate, the spot gain may be unavailable when the short needs collateral. The hedge also requires both legs to remain open.[4][5][6]
A basket adds exposures rather than automatically removing them. Diversification depends on how positions move together. Correlated token declines and shared collateral can transmit losses across positions. A count of token symbols is insufficient to establish diversification.[6][8]
8. Automated execution
Trading APIs allow software to submit and cancel orders. Hyperliquid's exchange API includes client order identifiers, reduce-only orders, and scheduled cancellation. Reduce-only orders constrain an exit to reducing a position; scheduled cancellation removes orders rather than closing an existing position.[9]
An execution system needs to reconcile orders, fills, open positions, collateral, and funding. After a timeout, an unknown order state must be checked before a retry can safely create another order. These are engineering implications of stateful trading APIs. An agent's proposed trade and permission to submit it are separate system decisions.
Backtests help examine a rule, but repeated selection among strategies can fit historical noise. Bailey and colleagues describe this as backtest overfitting. A profitable historical result alone does not establish future profitability.[10]
9. See also
- First principles: deriving calculations from explicit assumptions.
- Agentic loops: execution, observation, and feedback in automated systems.
10. References
Sources checked September 9, 2026. Exchange documentation describes its own products; rules and availability can change.
- Coinbase. Understand perpetuals trading.
- Coinbase. US perpetual-style futures: Overview.
- Bybit. FAQ: P&L Calculation.
- Hyperliquid. Liquidations.
- Hyperliquid. Funding.
- Hyperliquid. Margining.
- Hyperliquid. Fees.
- Investor.gov, US Securities and Exchange Commission. Diversify Your Investments.
- Hyperliquid. Exchange endpoint.
- David H. Bailey, Jonathan M. Borwein, Marcos López de Prado, and Qiji Jim Zhu. The Probability of Backtest Overfitting (2015 working paper).