> For the complete documentation index, see [llms.txt](https://docs.spartabot.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.spartabot.pro/getting-started/ai-trading.md).

# 🤖 AI Trading

**AI Trading** lets Sparta automatically buy tokens that appear in the **Sparta AI Picks** row.

Select the chain you want to use, choose your trade wallets, and configure the buy settings Sparta should apply when a new AI Pick appears.

You can choose a buy preset or set a custom buy amount, then configure:

* Buy GWEI (or Solana buy fee)
* Slippage
* The trade wallets that should execute the buys

After saving your settings, turn on the **AI Trading Auto-Buy** toggle to enable it.

**Auto Sell Targets**

AI Trading also supports optional **Auto Sell Targets**. When enabled, you can set two profit targets using multipliers and sell percentages.

**Example:**

* Target 1: `2x`, sell `50%`
* Target 2: `4x`, sell `25%`

This allows Sparta to automatically take partial profits when the token reaches your configured targets.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.spartabot.pro/getting-started/ai-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.
