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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.universalx.app/understand-1/chain-agnostic-trading-1/trading.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
