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

# Trading

> Buy and sell tokens on XD.fun

## Buying Tokens

1. Connect your wallet
2. Find a token via search or direct link
3. Enter the SOL amount you want to spend
4. Click **Buy** and approve the transaction in your wallet

## Selling Tokens

1. Go to the token page
2. Switch to the **Sell** tab
3. Enter the token amount or select a percentage (10%, 25%, 50%, 100%)
4. Click **Sell** and approve the transaction in your wallet

## Trading Fees

| Phase                                   | Protocol Fee | Creator Fee (max)         |
| --------------------------------------- | ------------ | ------------------------- |
| **Pre-migration**                       | 0.45%        | up to 0.30%               |
| **Post-migration (under 420 SOL mcap)** | 0.45%        | up to 0.30%               |
| **Post-migration (above 420 SOL mcap)** | 0.05%        | varies by market cap tier |

Creator fees are distributed according to the token's [fee configuration](/token-creation/fee-configuration).

<Card title="View Full Fee Structure" icon="receipt" href="/fees">
  See detailed fee breakdown by market cap tier
</Card>

## Trading Settings

### Slippage

Slippage protects you from price changes between quote and execution. Default is **5%**. Increase for volatile tokens or decrease if you want tighter price control.

### Priority Fee

The priority fee increases your transaction's priority on the Solana network. Default is **0.0001 SOL**.

### Jito Tip (Bribe)

A tip paid to Jito validators to route your transaction with MEV protection. Default is **0.0001 SOL**.

### MEV Protection

MEV protection is **enabled by default**. It uses Jito validator tips to protect your transactions against sandwich attacks and front-running — ensuring you get a fair price on every trade.
