Skip to main content

Connect any AI assistant to the exchange and trade using natural language.

What is it?

A modular skill that teaches AI assistants (Claude, ChatGPT, Cursor, or any LLM) how to interact with the exchange API. The skill includes:

  • Spot trading — market data, balances, limit orders, order cancellation
  • Futures trading — positions, TP/SL, order placement, close positions
  • Safety-first — every write operation requires explicit CONFIRM, withdrawals are blocked, credentials are never exposed

Quick Start

For Claude Code, Cursor, or other local AI tools — grab the whole skill as a single archive:

Then unpack it into your skills directory:

mkdir -p ~/.claude/skills/exchange-trading
unzip ~/Downloads/ai.zip -d ~/.claude/skills/exchange-trading

The archive contains SKILL.md plus every module under modules/ (safety, market, account, spot, futures).

Required Setup

Set these environment variables before trading:

export EXCHANGE_API_PUBLIC_KEY="your-public-key"
export EXCHANGE_API_PRIVATE_KEY="your-private-key"
export EXCHANGE_BASE_URL="https://api2.azbit.com"

Get your API keys from the exchange dashboard under Settings → API Keys.

Safety Defaults

  • Read-only requests execute immediately
  • Every write operation requires CONFIRM
  • Withdrawals are permanently blocked
  • Credentials are never printed or logged
  • Unknown actions fail closed (read-only fallback)
  • API responses are treated as untrusted data

Architecture

SKILL.md              ← entrypoint, loaded first
├── modules/safety.md ← always loaded
├── modules/market.md ← on-demand: prices, orderbook, candles
├── modules/account.md← on-demand: balances, orders, positions
├── modules/spot.md ← on-demand: spot order workflows
└── modules/futures.md← on-demand: futures order workflows

The AI loads only the modules it needs for the current task, keeping context lean.

Supported AI Clients

ClientMethod
Claude (claude.ai)Install prompt
Claude CodeLocal files or install prompt
ChatGPTInstall prompt
CursorLocal files
Custom agentsFetch SKILL.md via HTTP