> ## 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.

# Trading

> Spot swaps, limit orders, and transfers, from the Trade modal or from a sentence in chat. What happens between your request and the fill.

There are two ways to place a spot order: click **Trade** under the chart and use the **Spot** tab, or ask D0 in the chat panel. Both go through the same quote, validation, and confirmation. The modal's fields are documented in [The Trade Panel](https://docs-d0.donutbrowser.ai/trade/trade-panel.md); this page covers what happens underneath.

![The Spot order modal: From, To, Half and Max, TP/SL, Est. Total, Fee, Est. gas](https://mintcdn.com/donut-6b37471f/9GcgT1I3sCqmP_zy/media/trade/trade-panel/spot-order.jpg?fit=max\&auto=format\&n=9GcgT1I3sCqmP_zy\&q=85\&s=febba65c28b1faaf0eadaa48cbbbde4b)

The Spot tab of the Trade modal.

## What you can ask

| You say | What happens |
| - | - |
| "Swap 10 USDC to SOL" | D0 quotes the swap, then you confirm |
| "Create a limit order to sell 1 SOL at \$150" | A limit order that fills when the target price is reached |
| "Transfer 5 SOL on Solana to 9xQe...T3A" | Send tokens to another wallet |
| "Show my orders" | Your pending orders, the same list as the **Open Orders** tab |
| "Check my balance" | Your wallet tokens and values, the same numbers as **Portfolio** |

Type **/** in the composer for the shortcuts: **/trade** opens the order modal, and **/swap**, **/transfer**, **/balance**, **/positions**, **/alert**, and **/research** prefill the matching request.

## Preview, then confirm

Nothing executes until you say yes. D0 pulls a quote and shows the amount you'll receive, the price per token, the price impact, the route, and the fees. In the modal that is the **Est. Total**, **Fee**, and **Est. gas** lines; in chat it is the quote card.

> **You:** "Swap 100 USDC to SOL"
>
> **D0:** "Quote: You'll receive \~0.70 SOL for 100 USDC.
> Price: \$142.35 per SOL
> Price impact: 0.01%
> Route: USDC → SOL via Jupiter
> Shall I execute?"
>
> **You:** "Yes"
>
> **D0:** "Transaction submitted! TX: 5abc...xyz. You received 0.6998 SOL."

If the numbers look good, click **Swap** or say yes. If not, cancel. The preview is the source of truth for price, route, impact, and slippage. Permission levels and the safety checks that can't be switched off are in [Risk Controls](https://docs-d0.donutbrowser.ai/features/risk-controls.md).

Every row in the **Spot** positions table also has a **Swap** action, which opens the same modal with that token prefilled.

## Limit orders

Pick **Limit** in the Spot tab and set the price and expiry, or describe it in chat. D0 monitors the market and fills the order when your price hits, so you don't have to watch the chart.

> **You:** "Create a limit order to buy 1 SOL at \$130"
>
> **D0:** "Limit order preview:
> Buy 1 SOL when price reaches \$130
> You'll spend \~130 USDC
> Execute?"

Pending orders live in the **Open Orders** tab under the chart, with the trigger price, how much has filled, and the status. Tell D0 which order to cancel.

> [!NOTE]
>
> Limit orders are Solana-only, routed through Jupiter and managed by D0's backend. On EVM chains (Ethereum, BSC, Arbitrum, Polygon) spot trades are market swaps only.

![The Open Orders tab](https://mintcdn.com/donut-6b37471f/9GcgT1I3sCqmP_zy/media/trade/trade-panel/open-orders.jpg?fit=max\&auto=format\&n=9GcgT1I3sCqmP_zy\&q=85\&s=063f940bf89733d1cfd553882cca6dac)

Open Orders: pending limit orders with trigger price, filled amount, and status.

## Order status

| Stage | What happens |
| - | - |
| **Validate** | Balance, size, and precision are checked. If it fails, the order is **Rejected** and the reason is shown on the spot. |
| **Preview** | The quote waits for you. Back out and it is **Canceled**; nothing touched your funds. |
| **Submit** | After your confirmation the order goes to the venue. If submission errors out it is **Failed**: D0 reports the reason and never retries with a different coin or direction. |
| **Fill** | **Filled** orders land in the **Trade History** tab. A limit order waits in **Open Orders** until it is Filled, Canceled, or Expired. |

## Slippage and protections

Slippage is the gap between the price you expected and the price you got.

| Setting | Default | Notes |
| - | - | - |
| EVM spot slippage tolerance | 0.5% (50 bps) | Adjustable |
| Solana spot slippage | Handled by Jupiter in real time | Pauses to confirm if price impact would exceed \~3% |
| Embedded stop slippage on Solana limit orders | 20% (2000 bps) | Adjustable, 0 to 100% |
| Limit-order lifetime (TTL) | Perps and HL default to GTC (open until filled or canceled) | Jupiter spot can be set to 1h, 7d, or 30d |

Perp market orders fill at the current price and have no separate slippage setting.

| Situation | What D0 does |
| - | - |
| Thin pool, or price impact over \~3% | Pauses and asks you to confirm before continuing |
| High-risk token (honeypot, likely scam, thin new listing) | Blocks it or warns you clearly |
| Market data over 30 minutes old, or anomalous | Gives no trade conclusion; asks you to retry or confirm manually |
| Asset delisted or paused on the venue | Rejects the order and tells you why |

There's no separate max-gas cap on a normal order. The only fronted-gas cap is on cross-chain arrivals (see [Cross-Chain Swap](https://docs-d0.donutbrowser.ai/features/cross-chain-swap.md)).

## Transferring tokens

Ask in chat, or start with **/transfer**.

> **You:** "Send 5 SOL on Solana to 9xQe...T3A"
>
> **D0:** "Transfer preview:
> Sending: 5 SOL (\$711)
> To: 9xQe...T3A (Solana)
> Please confirm chain, token, and address.
> Execute?"

A withdrawal to an external address always asks you to re-check the chain, token, address, and amount, whatever your other settings are.

## Where your trades go

You don't pick an exchange, chain, or DEX. D0 routes each order:

| What you want | Venue | Key detail |
| - | - | - |
| Buy/sell on Solana (spot) | Jupiter, aggregating every major Solana DEX for the best price | Any Solana token; limit orders can embed a take-profit or stop-loss |
| Buy/sell on ETH, BSC, Polygon, Arbitrum (spot) | KyberSwap, per-chain aggregator | Any EVM token; market swaps only; default slippage 0.5% |
| Perps | Donut Perps first (own venue, lower fees); coins it doesn't list route to Hyperliquid | Donut Perps transfer-in minimum 10 USDT |
| Index perps (gold, oil, stocks, etc.) | trade.xyz on Hyperliquid | Isolated margin enforced |
| Event outcomes (prediction markets) | Polymarket | Minimum deposit \~$2 to $5 |

For perps you can choose the venue: the tabs under the chart (**Donut Perps**, **Hyperliquid Perps**) or a sentence like "do it on Hyperliquid". For spot, the chain decides the aggregator. The Donut Perps vs Hyperliquid trade-offs are in [Perpetual Futures](https://docs-d0.donutbrowser.ai/features/perpetual-futures.md).

## Tips

* **Use limit orders for better entries.** Set the order at your ideal entry and let the market come to you instead of buying at whatever price is available now.
* **Split large trades.** If the price impact on a big swap is 2% or more, smaller trades move the market less against you.
* **Keep some SOL for gas.** Without a little SOL, a Solana transaction won't go through.

## Related

* [The Trade Panel](https://docs-d0.donutbrowser.ai/trade/trade-panel.md)
* [Perpetual Futures](https://docs-d0.donutbrowser.ai/features/perpetual-futures.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.