Perpetual Futures
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 Say | What 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
Your Wallet
└── Deposit → Main Account (holding area)
└── Transfer In → Sub-Account (active trading)- 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: 50x
- Tick size: 0.1
- Maker fee: 0.02%, Taker fee: 0.06%"
Now you know the smallest position you can open is 0.001 BTC and you can use up to 50x 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:
Symbol Side Size Entry Mark PnL Lev BTCUSDT LONG 0.005 $98,450 $98,900 +$2.25 10x
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. Higher leverage means higher risk and higher potential returns. Start with 5x or less while learning.
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.
Reduce-Only
When closing a position, the bot uses reduce-only orders to prevent accidentally opening a new position in the opposite direction.
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.
