> 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/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="https://3129435684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC9pzDucGQU4QfCFx4WS7%2Fuploads%2FWBuqser84NOpOJzMlGKp%2Fimage.png?alt=media&amp;token=2d512483-da72-4574-bbc9-05840d2225c6" 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="https://3129435684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC9pzDucGQU4QfCFx4WS7%2Fuploads%2Fs1VGhn8l8qao9gYci9QY%2Fimage.png?alt=media&amp;token=000c7e41-3f46-4a15-a7b1-1090c6696167" 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="https://3129435684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC9pzDucGQU4QfCFx4WS7%2Fuploads%2FRiHb4O4MczQEKmZAFcmS%2Fimage.png?alt=media&amp;token=d307a697-ef61-4183-8f75-1dda6f73bf8a" 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="https://3129435684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC9pzDucGQU4QfCFx4WS7%2Fuploads%2FWPE8nnJDsSMnlif69mnQ%2Fimage.png?alt=media&amp;token=1f049eb9-bcc6-4b5a-b2a8-b826881973b3" 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="https://3129435684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC9pzDucGQU4QfCFx4WS7%2Fuploads%2Froh9Lwp6QL0YeSOfZ3qr%2Fimage.png?alt=media&amp;token=604dee27-a935-436a-97de-d7518daeeb82" alt=""><figcaption><p>The Settings page on UniversalX.</p></figcaption></figure>
