> For the complete documentation index, see [llms.txt](https://docs.xnomad.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xnomad.ai/xnomad.fun/on-chain-interaction/trade-tokens.md).

# Trade Tokens

## Guide

### **Step 1: Deposit assets**

Deposit SOL into your agent’s wallet to ensure you have enough for gas fees and assets to trade. Withdrawals will be available soon.

<figure><img src="https://1882987621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVoKiPusrRCJjDLOAu1ux%2Fuploads%2FXXz2eyjykTEj7ZkQhM4R%2Fimage.png?alt=media&amp;token=6ad03d39-8908-47dc-8413-5db763be829d" alt=""><figcaption></figcaption></figure>

### **Step 2:** Send instructions

Perform trade operations using shortcut buttons or natural language.

1. Generate Instructions with Shortcut Buttons:
   1. Click the trade button.

      <figure><img src="https://1882987621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVoKiPusrRCJjDLOAu1ux%2Fuploads%2FIeuDYhqhHkBWQt12za8u%2Fimage.png?alt=media&amp;token=aebf04a1-00cf-4c91-8e65-11f2a40fbdb8" alt="" width="563"><figcaption></figcaption></figure>
   2. Select the transaction type and fill out the form. Enter the ticker or CA to quickly locate the token you wish to trade.

      <figure><img src="https://1882987621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVoKiPusrRCJjDLOAu1ux%2Fuploads%2FiVtRFiL2ZhWprMUBSi7L%2Fimage.png?alt=media&amp;token=d0f0d734-d8f0-4ee9-877c-f930105b55fe" alt="" width="563"><figcaption></figcaption></figure>
   3. Submit the form, which will automatically generate the corresponding natural language instructions and send the command.

<figure><img src="https://1882987621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVoKiPusrRCJjDLOAu1ux%2Fuploads%2FKXBHX9IRIoXoAW95kOJR%2Fimage.png?alt=media&amp;token=761cec07-3205-4dd1-8714-46193ad0b61e" alt="" width="563"><figcaption></figcaption></figure>

2. Send Instructions Using Natural Language:

Use natural language to automate token swaps, set limit orders, and more. Here are some example prompts for trading with your agent:

* Buy: Buy **\[symbol] \[CA]** with **\[amount]** SOL
* Sell: Sell **\[amount] \[symbol] \[CA]** for SOL
* Swap:
  * swap **\[amount]** SOL for **\[symbol] \[CA]**
  * swap **\[amount]\[symbol] \[ca]** for **\[symbol] \[CA]**
* Set limit order:
  * **Create an automatic task to** buy \[symbol] \[**CA**] with \[amount] SOL **when the token price is under** $xx
  * **Create an automatic task to** sell \[amount]\[symbol] \[**CA**] for SOL **when the token price is above** $xx

<figure><img src="https://1882987621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVoKiPusrRCJjDLOAu1ux%2Fuploads%2FsUUByLzRIhSs9H35hL5s%2Fimage.png?alt=media&amp;token=22bc5600-c793-40f5-8c62-b95e4e19ff81" alt="" width="563"><figcaption></figcaption></figure>

### **Step 3: Secondary confirmation and check result**

Wait for the transaction execution result after secondary confirmation.

<figure><img src="https://1882987621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVoKiPusrRCJjDLOAu1ux%2Fuploads%2FzvpqHxDoAc4KnOEfhZ5T%2Fimage.png?alt=media&amp;token=ddc4b92f-f003-49be-816c-6636f671144d" alt="" width="563"><figcaption></figcaption></figure>

## Preference Setting

You can set the parameters based on your trading preferences directly on chat terminal.&#x20;

Pls check out this guide:

{% content-ref url="/pages/zV5x37xedzgu3v9XYXad" %}
[Trading Setting](/xnomad.fun/on-chain-interaction/trading-setting.md)
{% endcontent-ref %}
