> For the complete documentation index, see [llms.txt](https://docs.universalx.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.universalx.app/understand-1/chain-agnostic-trading-1/trading.md).

# Trading

In UniversalX, you can use Primary Tokens to buy or sell tokens via Primary Tokens.

### **Buying tokens**

To buy a token:

1. Enter the amount or USD price of the tokens you want to buy.<br>

   <figure><img src="/files/u1fRkwgXEa3vJZtX0tVH" alt=""><figcaption></figcaption></figure>
2. Click **Buy,** or customize your trade's Settings (see below).
3. Sign and wait for the transaction to complete.<br>

   <figure><img src="/files/lW2hL5F6hS8vgmSC5hoL" alt=""><figcaption></figcaption></figure>

### Selling tokens

To sell a token:

1. Enter the amount or USD price of the tokens you want to buy.<br>

   <figure><img src="/files/sDQdiY2AfARA5fzj3FaK" alt=""><figcaption></figcaption></figure>
2. Click **Sell,** or customize your trade's Settings (see below).
3. Sign and wait for the transaction to complete.<br>

   <figure><img src="/files/qlZfOLg0GeWYTPdBPbT4" alt=""><figcaption></figcaption></figure>

### Trading Settings

You can customize the following Settings for your trades:

1. **Slippage:** You can set a slippage tolerance to protect your trades from value loss. Your transaction will revert if the price changes unfavorably for you by more than your set percentage.
2. **Anti-MEV (Solana):** You can enable MEV protection to reduce the risk of an MEV attack on Solana. When activated, a tip is paid to nodes for enhanced protection. This is recommended for large-value trades. MEV protection is enabled by default on EVM chains.
3. **Default Primary Token(s):** In “Buy” mode, the tokens you select will be used by default to purchase others. If a token is disabled, it won’t be reflected in your balance or used for payments when using this function.
4. **Skip Preview:** When enabled, you’ll be able to execute trades automatically without previewing their information. The system will still provide you with a warning if your trade might result in significant impact (e.g. slippage).

<figure><img src="/files/XwQ4ewrXY74ZhqcUQWmD" alt=""><figcaption><p>The Settings page on UniversalX.</p></figcaption></figure>
