Skip to main content
Trade perpetual futures on Donut Perps with leverage. Go long or short on BTC, ETH, SOL, and more — all through your D0 Bot.

What You Can Do

You SayWhat Happens
”Open a 10x long on BTC with 0.01 BTC”Place a leveraged market order
”Show my positions”View all open positions with PnL
”Close my BTC position”Close a position with a reduce-only order
”What’s my perps balance?”Check equity, available balance, and margin
”Deposit 1000 to perps”Fund your perpetual futures account
Try it: What’s my perps balance?, Open a 10x long on BTC with 0.01 BTC, or Show my positions.

How Perps Work on D0

Account Structure

  • Main Account — Where deposits land. Not used for trading directly.
  • Sub-Account — Where your trading happens. Auto-created on your first order.
To get funds into your sub-account, you either deposit and transfer in one step ("Deposit 500 to perps and transfer to sub-account") or do it separately ("Transfer 200 to sub-account").

Supported Operations

Account Management:
  • Deposit USDT to main account
  • Withdraw USDT from main account
  • Transfer funds between main and sub-account
  • Check balance (equity, available, margin used)
Trading:
  • Market orders (instant execution at current price)
  • Limit orders (execute when price reaches your target)
  • Reduce-only orders (close positions without opening new ones)
  • Configurable leverage per order
Monitoring:
  • View open positions with real-time PnL
  • List open orders
  • View order history
  • Check contract specifications (min quantity, max leverage)

Opening Your First Position

Here’s what the whole flow looks like from start to finish.

Step 1 — Check the contract

Before you trade, check the contract details so you know the minimum size and max leverage.
You: “Show BTCUSDT perps contract info” Bot: “BTCUSDT:
  • Min quantity: 0.001 BTC
  • Max leverage: 150x
  • Tick size: 0.1
  • Taker fee: 0.05%”
Now you know the smallest position you can open is 0.001 BTC and you can use up to 150x leverage.

Step 2 — Fund your account

You need USDT in your sub-account to trade. Deposit from your wallet and transfer it over.
You: “Deposit 500 to perps and transfer to sub-account” Bot: “Deposit complete: 500 USDT to main account. Transfer complete: 500 USDT to sub-account. Available balance: $500.”

Step 3 — Open a position

Tell your bot what you want to trade, the size, and the leverage.
You: “Open a 10x long on BTC with 0.005 BTC” Bot: “Order placed! BTCUSDT BUY MARKET 0.005 @ 10x Entry: $98,450 Position value: $492.25 Margin required: $49.23”
You’re now long 0.005 BTC with 10x leverage. Your position is worth $492.25, but you only put up $49.23 as margin. The rest is borrowed.

Step 4 — Check your position

Ask for your positions anytime to see how they’re doing.
You: “Show my positions” Bot:
SymbolSideSizeEntryMarkPnLLev
BTCUSDTLONG0.005$98,450$98,900+$2.2510x

Step 5 — Close the position

When you’re ready to exit, tell your bot to close it.
You: “Close my BTC position” Bot: “Position closed! SELL MARKET 0.005 BTCUSDT Exit: $98,900 Realized PnL: +$2.25”

Key Concepts

Symbol Format

Always use BTCUSDT, ETHUSDT, SOLUSDT format (base token + USDT). If you just say “BTC” your bot will ask you to clarify.

Leverage

Leverage is set per order, not per account. It defaults to 10x and you can dial it up to the asset’s cap. Your initial margin is just 1 / leverage, so 10x locks 10% of the notional, 50x locks 2%, and 150x locks about 0.67%. More leverage means a thinner buffer before liquidation. Start with 5x or less while learning. Initial margin defaults to 10% (10x), and you can dial leverage up to each asset’s cap. The maintenance margin rate (MMR) is tiered by asset, not a single number. A lower MMR is what lets an asset go to a higher max leverage. Margin and leverage by asset (Donut Perps):
AssetMMRIMRMax leverage
BTC, ETH0.4%10%150x
SOL, XRP0.5%10%100x
BNB, LINK, BCH, ADA, TRX, AVAX, LTC0.5%10%75x
OP, ARB, SUI, NEAR, WLD0.6%10%75x
DOGE0.65%10%75x
HYPE1.0%10%75x
TRUMP1.0%10%50x
These apply across the 0 to 100M USD notional range. IMR (initial margin rate) is 10% at the default 10x; your actual initial margin is 1 / your chosen leverage, so 150x is about 0.67% and 50x is 2%.
Caps and margin rates here were verified in July 2026 and can change. Your bot shows the live values in the contract info and order preview.
On Hyperliquid, caps are lower: BTC 40x, ETH 25x, SOL and XRP 20x, and most other majors 10x. Its maintenance margin runs around 3%.

Margin

Margin is the collateral locked for your position. If your losses approach your margin, you risk liquidation. Always keep some buffer in your available balance.

Margin Mode

Positions are isolated, with a separate margin balance per position. There is no cross-margin, so a loss on one position can’t pull down the collateral behind another.

Minimum Order Size

The minimum order value on Donut Perps depends on the asset: 100 USDT for BTC, 20 USDT for ETH, BCH, LTC, and LINK, and 5 USDT for everything else.

Reduce-Only

When closing a position, the bot uses reduce-only orders to prevent accidentally opening a new position in the opposite direction.

Liquidation

Before you open, your bot shows the estimated liquidation price, the margin required, and the estimated fees. The higher your leverage, the closer the liquidation price sits to your entry, and your bot flags that.

How it’s calculated

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

How it triggers

Your bot scans every position about every 3 seconds (safe positions are skipped quickly), recomputes the risk ratio, and acts on which band it lands in:
  • Below 85%: safe, keep holding.
  • 85% to 100%: warning. Your bot alerts you. The alert only clears once you drop back below 70%, so it doesn’t flip on and off.
  • 100% or above: liquidation. Your bot cancels the position’s take-profit and stop-loss, then closes the whole position in one reduce-only market order. There is no laddered reduction and no auto-deleveraging (ADL).
Once a liquidation fills, that position’s margin is fully lost, the position goes to zero, and it’s timestamped and archived to your history.

Insurance fund

If the liquidation price is better than the bankruptcy price and a little collateral is left over, that remainder moves into the contract’s insurance fund.
  • Each contract has its own insurance fund, created on the first liquidation with no pre-seeded balance.
  • Leftover collateral from a liquidation goes into the fund (booked as liquidation income).
  • If a position blows through its margin (bankruptcy), the shortfall is covered by the counterparty or market maker on the matching side; the fund handles the accounting.
  • There is no socialized loss and no clawback. Someone else’s liquidation never touches your profits.
  • The platform reconciles as a zero-sum book: all users’ PnL plus the insurance fund balance equals zero.
On Hyperliquid, liquidation follows HL’s own rules (maintenance margin around 3%). The liquidation price uses HL’s official data where available and only falls back to a local estimate if it’s missing. HL shows the exact rules live at order time.

Take-Profit and Stop-Loss

A stop-loss is your most common protection: set a price, and when it’s hit your position closes automatically to cap the loss.
TypeHow it worksWhere
Hard stop (conditional)Set a trigger price; it executes automatically when hitDonut Perps, Hyperliquid, spot (embedded in a limit order), Polymarket
TP/SL on openAttach the protective orders as you open the positionDonut Perps, Hyperliquid
Position-level and stagedTake profit on the whole position at once, or scale out by price and proportionDonut Perps (atomic multi-leg)
Polymarket stopTriggers on a percentage (1 to 99%) or a price thresholdPolymarket (monitored on the backend)
For the trigger price you can use last price (default), mark price (recommended, since it resists manipulation), or index price. If a stop doesn’t cover your whole position after you open or add to it, your bot warns you to top it up.
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, your bot blocks it rather than silently flipping it. And honestly, a stop is not a 100% guarantee: in a sharp flash crash it can slip badly or fail to fill. That’s common to every trading platform, not a D0 bug.

Donut Perps vs Hyperliquid

Both are perp venues and your bot picks between them automatically. Here’s how they differ.
DimensionDonut PerpsHyperliquid
Margin assetUSDTUSDC (on Arbitrum)
Margin modeIsolated onlyIsolated or cross (index contracts forced isolated)
Leverage capPer asset, up to 150x (see the table above)BTC 40x, ETH 25x, SOL 20x, small caps 3 to 10x
Minimum orderPer contract; 10 USDT transfer-in$10 notional
Taker fee0.05%0.045% (drops with volume)
LiquidationOwn engine, isolatedOn-chain matching on the exchange
When it’s usedDefault, since fees are lowerCoins Donut Perps doesn’t list, or when you name HL

Tips for Trading Perps

  • Check contract specs before trading. You need to know the minimum size and max leverage. If you try to open a position smaller than the minimum, the order will fail.
  • Start with low leverage. 5x or less while you’re learning. High leverage can wipe you out fast if the market moves against you.
  • Watch your margin usage. If your available balance is getting low relative to your margin used, you’re at risk of liquidation. Keep a buffer.
  • Use limit orders for better entries. Market orders fill immediately at whatever price is available. Limit orders let you set your ideal entry and wait for the market to come to you.
  • Check funding rates. Perps use funding to keep the perpetual price close to spot. If funding is high and positive, it’s expensive to hold longs. If high and negative, it’s expensive to hold shorts. You pay or receive funding every 8 hours depending on your position.

Want a Complete Walkthrough?

For an end-to-end perps session — funding your account, placing orders, monitoring positions, hedging spot, range trading, and withdrawing profits — see Use Case: Perpetual Futures Trading.