> For the complete documentation index, see [llms.txt](https://maiga.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://maiga.gitbook.io/docs/maiga-tech/maigaxbt-ai-agent-features/maigaxbt-trade-function-beta-version.md).

# MaigaXBT Trade Function (Beta version)

**The Trade command extends MaigaXBT beyond analysis and reporting, enabling users to execute trades directly within the platform.**

### Overview

* Command: Trade ( /analyse a token, then Trade )
* Status: BETA
* Supported Chain: BNB Chain
* Execution Method: OKX DEX API
* Default Trade Size: $10 USDT + \~0.001 BNB (gas)<br>

*The Trade command automates the process from signal identification to execution, ensuring that long trading opportunities can be captured without delay.*

#### Trade Execution

* Available when the following conditions are met:
  * Token listed on BNB Chain
  * Confidence score ≥ 8/10
  * Wallet balance ≥ $10 USDT + \~0.001 BNB
* Provides the following parameters:
  * Entry price
  * Target price(s)
  * Stop-loss level
* Execution is processed instantly via the OKX DEX API.

### Workflow

1. Run Analysis

* Execute /*analyse* to evaluate a token.

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

2\. Review Setup

* Confidence score must be at least 8/10.
* Trade setup includes entry, target, and stop-loss.

3. Execute Trade

* Select Trade.
* Confirm execution in the MaigaXBT interface.

&#x20;![](/files/y04uN7qxtsJrAhy9xOmr)

4. Track Position

* Use /*tradestatus* to review active positions.

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

* Transactions are visible on BSC Scan.

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

5. Cancel Trade

* Use /*tradecancel* to terminate an active position.

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

### Execution Rules

#### Trades Will Execute If

* Token is supported on BNB Chain
* Confidence score ≥ 8/10
* Wallet has sufficient balance

#### Trades Will Not Execute If

* Confidence score < 8/10
* Entry, target, or stop-loss is missing
* Token is unsupported
* Insufficient wallet balance
* Short positions are requested (not currently supported)

### <sub>Coming Soon: Wallet Integration</sub>

<sub>Direct “View in Wallet” functionality for executed trades</sub>

The Trade command transforms MaigaXBT from an analysis-only tool into a full-cycle AI trading agent. It combines scanning, analysis, risk-managed execution, and monitoring into a single streamlined workflow.


---

# 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, and the optional `goal` query parameter:

```
GET https://maiga.gitbook.io/docs/maiga-tech/maigaxbt-ai-agent-features/maigaxbt-trade-function-beta-version.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
