> 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="/files/XzP8UU7bGgfLBlpO5S8V" 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="/files/jNHf2tMORKix5JT271x6" 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="/files/1qJaTX28dBsO9x5o6o0J" 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="/files/szijlD9TuOeUqU7RGfg0" 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="/files/ZaM7R0Ud5B338ltjkbSw" 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="/files/wav8P4vZAKFukOPIPP32" 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 %}
