# Xlayer Trading

## How to start

Enter the open token address on any page, and the bot will automatically identify the contract and jump to the buying and selling panel. You can also enter buy or sell from the "Buy/Sell Tokens" entrance of the Xlayer chain.

<figure><img src="/files/bUnwSGJSdxPt1qWCgqaF" alt=""><figcaption></figcaption></figure>

## Quick Buy

Click the system-preset amount, or click the "Buy X OKB" button to customize the purchase amount to execute the purchase.&#x20;

It supports changing the slippage, extra Gas and buying wallet, and switching base tokens.

**Extra Gas**: Extra Gas paid based on the current network Gas price, used for packaging acceleration.

After the purchase is successful, the system will immediately pop up the selling panel and automatically select the wallet in which you own the token. You can click the refresh button to obtain the latest value and decide whether to execute the sale.

## Quick Sell

In the token swap panel, click the system's preset ratio, or click the "Sell X %"/"Sell X" button to customize the selling quantity or ratio, and the sale will be executed immediately.

We also support changing slippage, extra Gas and selling wallets, and switching base tokens.

When selling starts,  the system will initiate an approval transaction first, and then execute the sale after success.&#x20;

After the sale is successful, the system will automatically output a PnL report, allowing you to see the income of the token at a glance.


---

# 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://avebotdoc.ave.ai/en/quick-use/quick-trading/xlayer-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.
