XT Agent Trade Plugin

Web4.0: Build the AI Agent Future with TradeKit

The era of autonomous AI Agent trading is here. Connect to markets, execute strategies, and manage assets with natural language.

$ claude plugin marketplace add XtApis/xt-exchange-plugin
$ claude plugin install xt-exchange@realm520-xt-exchange-plugin
Claude Code — /xt-exchange
> What is the current price of BTC/USDT?
BTC/USDT   $68,432.50   +2.34%   24h Vol: 1.2B USDT

> Buy 0.01 BTC at market price, take profit at 72000, stop loss at 65000
Confirm: Buy 0.01 BTC @ Market ≈ $684.33
TP: $72,000 (+5.2%)   SL: $65,000 (-5.0%)
[Confirmed]Order Filled

> Show my position P&L
Total: $12,580.32   PnL: +$1,245.00 (+10.98%)
Positions: 5   Open Orders: 3   24h Fees: $12.40

Why Choose XT Plugin

Trading infrastructure natively designed for AI Agents, redefining how humans interact with markets

Chat is Trading

Place orders with natural language — no manual API calls or scripts needed. Say goodbye to complex trading interfaces.

Research to Execution

From market analysis to strategy execution, all in one conversation window. AI handles research, analysis, and order placement end-to-end.

Safe Confirmation

All trading operations require explicit confirmation. AI never executes automatically.

Developer Friendly

Open source and transparent. API Keys stored locally. Testnet supported.

AI Client Integration

Currently supports Claude Code, with more MCP clients being integrated

Claude CodeSupported
ChatGPTComing Soon
CursorComing Soon
VS Code CopilotComing Soon
WindsurfComing Soon

Full Asset Class Trading

Spot and USDT perpetual futures, covering the complete trading pipeline

Spot Trading

Market Data
Latest Price · 24h Stats · Order Book · K-Line · Trading Pair Info
Account Queries
Balance Query · Open Orders · Order History
Trading Operations
Limit Buy/Sell · Market Buy/Sell · Cancel Order · Cancel All
Asset Management
Account Transfer · Withdrawal

Futures Trading

Futures Market
Latest Price · Order Book · Funding Rate · K-Line
Position Management
Equity Query · Position Info · Unrealized P&L
Futures Trading
Open Long · Open Short · Close Position · Cancel Order · Order History
Risk Management
Take Profit/Stop Loss · Leverage Adjustment · Position Limits

Natural Language, Unlimited Possibilities

Type /xt-exchange to activate the plugin and complete all trading operations via conversation

"What is the current price of BTC/USDT?"

Real-Time Market Query

Get the latest price, change percentage, and volume for any trading pair in one sentence.

"Buy 0.01 BTC at market price"

Quick Market Order

Place orders with natural language. The system displays full order details for confirmation before execution.

"Check my USDT balance"

Account Asset Overview

Query account balances, positions, and unrealized P&L in real time.

"Open long 10 contracts on BTC perpetual"

One-Click Futures Entry

Operate futures trades with natural language — supports long, short, and close positions.

"Cancel all BTC open orders"

Batch Order Cancellation

Clear all open orders for a specific trading pair in one command for efficient order management.

"Transfer 1000 USDT from spot to futures"

Inter-Account Transfer

Flexibly move funds between accounts with a single sentence.

"What is the current price of BTC/USDT?"

Real-Time Market Query

Get the latest price, change percentage, and volume for any trading pair in one sentence.

"Buy 0.01 BTC at market price"

Quick Market Order

Place orders with natural language. The system displays full order details for confirmation before execution.

"Check my USDT balance"

Account Asset Overview

Query account balances, positions, and unrealized P&L in real time.

"Open long 10 contracts on BTC perpetual"

One-Click Futures Entry

Operate futures trades with natural language — supports long, short, and close positions.

"Cancel all BTC open orders"

Batch Order Cancellation

Clear all open orders for a specific trading pair in one command for efficient order management.

"Transfer 1000 USDT from spot to futures"

Inter-Account Transfer

Flexibly move funds between accounts with a single sentence.

Safety First

Multi-layered security mechanisms for worry-free, controllable AI trading

Order Confirmation

All order placements, cancellations, and transfers display full details and require explicit confirmation before execution. AI never trades automatically.

Withdrawal Protection

Withdrawals are irreversible. Before execution, the coin, chain, amount, fee, and destination address are displayed for explicit confirmation.

Local Credential Security

API keys are stored locally at ~/.xt-exchange/credentials.json with permission 600, never transmitted to any third party.

Minimal Permissions

Supports four permission levels: read-only, trading, transfer, and withdrawal. Start with read-only and enable as needed. IP whitelisting adds extra security.

Get Started in 3 Minutes

From installation to your first trade in just three steps

1

Install the Plugin

Install via command line in Claude Code, or use /plugin browse for interactive installation.

# Install plugin
$ claude plugin marketplace add XtApis/xt-exchange-plugin
$ claude plugin install xt-exchange@realm520-xt-exchange-plugin
2

Configure API Key

Create an API Key on XT.COM. We recommend starting with read-only permissions, then enabling trading as you get comfortable.

$ mkdir -p ~/.xt-exchange
$ cat > ~/.xt-exchange/credentials.json << 'EOF'
{
  "access_key": "your_access_key",
  "secret_key": "your_secret_key"
}
EOF
$ chmod 600 ~/.xt-exchange/credentials.json
3

Start Conversational Trading

Type /xt-exchange in Claude Code to activate the plugin, then describe your desired operation in natural language.

# Activate plugin
$ /xt-exchange

# Interact with natural language
"What is the current price of BTC/USDT?"
"Check my USDT balance"
"Buy 0.01 BTC at market price"

FAQ

Common questions about the XT Exchange Plugin