> ## Documentation Index
> Fetch the complete documentation index at: https://docs-d0.donutbrowser.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Perpetual Futures

> Leveraged long and short on Donut Perps and Hyperliquid: the account structure, margin and leverage by asset, liquidation, TP/SL, and how the two venues differ.

Perps open from the **Perps** tab of the Trade modal, from a signal card's **Execute LONG** or **Execute SHORT**, or from a sentence in chat. Positions, open orders, and history sit in the **Donut Perps** and **Hyperliquid Perps** tabs under the chart. The modal's fields are documented in [The Trade Panel](https://docs-d0.donutbrowser.ai/trade/trade-panel.md); this page covers how the venues work.

![The Perps order modal: Long/Short, Cross/Isolated, Leverage, Size, Reduce Only, TP/SL, Est. Liq. Price](https://mintcdn.com/donut-6b37471f/9GcgT1I3sCqmP_zy/media/trade/trade-panel/perps-order.jpg?fit=max\&auto=format\&n=9GcgT1I3sCqmP_zy\&q=85\&s=6227a2c98c5c5dd9709eb07e0aa0bd6d)

The Perps tab of the Trade modal.

## Your first position

1. **Fund the venue.** Open **Portfolio** in the left rail, click **Deposit**, pick Donut Perps, and send USDT. Then **Transfer** from the main account to a sub-account.
2. **Open the order.** Select the market in the header, click **Trade**, switch to **Perps**. Choose **Long** or **Short**, set **Leverage** and **Size**, and optionally **TP / SL**. The modal shows **Est. Liq. Price**, **Margin**, and **Position margin ratio** before you commit.
3. **Confirm.** Click the execute button (for example **Long BTC-USDT**), or say it in chat:

> **You:** "Open a 10x long on BTC with 0.005 BTC"
>
> **D0:** "Order placed! BTC-USDT BUY MARKET 0.005 @ 10x
> Entry: \$98,450
> Position value: \$492.25
> Margin required: \$49.23"

4. **Watch it.** The **Positions** tab shows side, size, entry, mark price, PnL, leverage, and margin for each position.
5. **Close it.** Click **Close** on the row, or say "Close my BTC position". Either way it is a reduce-only market order, so it can never open a position in the opposite direction. **Reduce Only** in the modal does the same for partial exits.

![The Donut Perps Positions tab](https://mintcdn.com/donut-6b37471f/9GcgT1I3sCqmP_zy/media/trade/trade-panel/positions-perps.jpg?fit=max\&auto=format\&n=9GcgT1I3sCqmP_zy\&q=85\&s=218d430d497435a47640217ba7a64305)

Donut Perps positions, with a Close button on every row.

## Account structure

Deposits land in the **main account**; trading happens in a **sub-account**. Create one from the **Transfer** modal (**New sub-account**); deleting a sub-account sweeps its balance back to Main. "Deposit 500 to perps and transfer to sub-account" does both steps in chat. See [Portfolio Overview](https://docs-d0.donutbrowser.ai/portfolio/overview.md) for the Deposit, Transfer, and Withdraw modals.

## Leverage and margin

Leverage is set per order and defaults to 10x. Your initial margin is 1 / leverage: 10x locks 10% of the notional, 50x locks 2%, 150x about 0.67%. The maintenance margin rate (MMR) is tiered by asset, and a lower MMR is what lets an asset go to a higher cap.

**Donut Perps:**

| Asset | MMR | Max leverage |
| - | - | - |
| BTC, ETH | 0.4% | 150x |
| SOL, XRP | 0.5% | 100x |
| BNB, LINK, BCH, ADA, TRX, AVAX, LTC | 0.5% | 75x |
| OP, ARB, SUI, NEAR, WLD | 0.6% | 75x |
| DOGE | 0.65% | 75x |
| HYPE | 1.0% | 75x |
| TRUMP | 1.0% | 50x |

These apply across the 0 to 100M USD notional range. **Hyperliquid** caps are lower: BTC 40x, ETH 25x, SOL and XRP 20x, most other majors 10x, small caps 3 to 10x, with maintenance margin around 3%.

> [!NOTE]
>
> Caps and margin rates were verified in July 2026 and can change. The order modal shows the live values for the market you have selected.

* **Margin mode.** Donut Perps opens positions isolated, with a separate margin balance per position. Hyperliquid supports isolated or cross; the **Cross / Isolated** switch applies where the venue allows it. Your sub-account also carries an account-level risk snapshot across all of its positions, which is what account-wide protection acts on.
* **Minimum order.** Donut Perps: 100 USDT for BTC, 20 USDT for ETH, BCH, LTC, and LINK, 5 USDT for everything else. Hyperliquid: \$10 notional.
* **Funding.** Perps use funding to keep the perpetual price close to spot: high positive funding makes longs expensive to hold, high negative funding makes shorts expensive. Donut Perps settles every 8 hours (00:00, 08:00, 16:00 UTC); Hyperliquid settles hourly. On positions you hold for a while, funding adds up more than the fee to open.

## Liquidation

The higher your leverage, the closer **Est. Liq. Price** sits to your entry.

```
Maintenance margin (MM) = |position size| × contract value × mark price × MMR
Risk ratio               = MM / (initial margin + unrealized PnL) × 100%
Liquidation price (long)  = entry − (initial margin − MM) / size
Liquidation price (short) = entry + (initial margin − MM) / size
```

The engine scans every position about every 3 seconds and acts on the risk ratio band.

| Risk ratio | What happens |
| - | - |
| Below 85% | Safe. Nothing happens. |
| 85% to 100% | **Warning.** D0 alerts you in chat, and in Telegram if connected. The alert clears once you drop back below 70%, so it doesn't flip on and off. |
| 100% or above | **Liquidation.** The engine cancels the position's TP/SL and closes the whole position in one reduce-only market order. No laddered reduction, no auto-deleveraging (ADL). The position's margin is lost and the liquidation is archived to **Trade History**. |

**Insurance fund.** If a little collateral is left after liquidation, it moves into the contract's insurance fund (one per contract, created on the first liquidation). If a position blows through its margin, the shortfall is covered by the counterparty or market maker on the matching side. There is no socialized loss and no clawback: someone else's liquidation never touches your profits, and the platform reconciles as a zero-sum book.

On **Hyperliquid**, liquidation follows HL's own rules; the liquidation price uses HL's official data where available and falls back to a local estimate only if it's missing.

## Take-profit and stop-loss

Set both in the **TP / SL** fields when you open, or edit them from the position row afterwards.

| Type | How it works | Where |
| - | - | - |
| Hard stop (conditional) | A trigger price that executes automatically when hit | Donut Perps, Hyperliquid, spot (embedded in a limit order), Polymarket |
| TP/SL on open | Protective orders attached as you open | Donut Perps, Hyperliquid |
| Position-level and staged | Take profit on the whole position, or scale out by price and proportion | Donut Perps (atomic multi-leg) |
| Polymarket stop | Triggers on a percentage (1 to 99%) or a price threshold | Polymarket (monitored on the backend) |

The trigger price can be last price (default), mark price (recommended, since it resists manipulation), or index price. If a stop doesn't cover your whole position after you add to it, D0 warns you to top it up.

> [!WARNING]
>
> A limit plus reduce-only order is not a stop-loss. Use the stop order type (STOP\_MARKET or STOP\_LIMIT). If you set a stop in the wrong direction, D0 blocks it rather than silently flipping it. And a stop is not a guarantee: in a sharp flash crash it can slip badly or fail to fill, on any platform.

## Donut Perps vs Hyperliquid

In the modal you trade the venue whose tab is selected; from chat, D0 picks Donut Perps by default and routes coins it doesn't list to Hyperliquid, showing HL's taker fee. That is per-asset routing, not a failover.

| Dimension | Donut Perps | Hyperliquid |
| - | - | - |
| Margin asset | USDT | USDC (on Arbitrum) |
| Margin mode | Isolated only | Isolated or cross (index contracts forced isolated) |
| Leverage cap | Per asset, up to 150x | BTC 40x, ETH 25x, SOL 20x, small caps 3 to 10x |
| Minimum order | Per contract; 10 USDT transfer-in | \$10 notional |
| Taker fee | 0.05% | 0.045% (drops with volume) |
| Liquidation | Own engine, isolated | On-chain matching on the exchange |

## Tips

* **Start with low leverage.** 5x or less while you're learning; at high leverage a small move wipes the margin.
* **Keep a buffer.** If available balance is getting low relative to margin used, you are getting close to liquidation.
* **Use limit orders for entries.** Market orders fill at whatever price is available now.

For an end-to-end session, from funding to withdrawing profits, see [**Playbook: Perpetual Futures Trading**](https://docs-d0.donutbrowser.ai/use-cases/perps-trading.md).

## Related

* [The Trade Panel](https://docs-d0.donutbrowser.ai/trade/trade-panel.md)
* [Accounts & Fund Isolation](https://docs-d0.donutbrowser.ai/reference/accounts-and-funds.md)
* [Fees](https://docs-d0.donutbrowser.ai/reference/fees.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.