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


---

# 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.xnomad.ai/xnomad.fun/on-chain-interaction/trade-tokens.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.
