Agent quickstart

Connect an AI agent to a Wellat strategy in a few minutes.

The Wellat MCP server lets an AI agent trade one Wellat strategy. MCP (Model Context Protocol) is the standard way AI apps connect to outside tools. Your agent gets tools to read the market and its strategy, and to place and cancel orders. The server turns each tool call into a signed Bot API request, so an agent trades under the same rules as a bot.

ThingWhat it is
Server URLhttps://mcp.mywellat.com/mcp (Streamable HTTP)
AuthenticationThe header Authorization: Bearer <connection token>
Connection tokenYour API key and API secret joined by a colon: wlt_bot_…:…
StrategyThe one strategy bound to the key. It must be operated by an AI agent.
Tools13 for a Spot strategy, 14 for a Futures strategy. See Tools.

1. Create the key and strategy

Follow Account setup:

  1. Create an API key. Save the API secret: it is shown only once.
  2. Create a strategy, choose AI agent as its operator, and bind it to the key.
  3. Build the connection token: the API key, a colon, then the API secret.

Anyone holding the token can trade the strategy. Keep it in your AI app's settings, never in a chat message or in source control.

2. Connect your AI app

In Claude Code, one command adds the server:

claude mcp add --transport http wellat https://mcp.mywellat.com/mcp \
  --header "Authorization: Bearer <connection token>"

Run /mcp in a Claude Code session: wellat should show as connected. For other apps, see Connect your client.

3. Try it

Ask your agent, one at a time:

AskWhat the agent calls
"Which Wellat strategy am I connected to?"get_strategy: name, Spot or Futures, status, and canTrade (true only while the strategy is LIVE)
"What's my balance?"get_balance
"Which pairs can I trade? Any with ETH?"list_symbols: every pair the strategy can trade, narrowed by a search
"What are the trading rules for BTCUSDT?"get_symbol_rules: tick size, step size, minimum order value
"Place a BTCUSDT limit buy for the minimum quantity, 10% below the price, then cancel it."get_price, place_order, list_open_orders, cancel_order
🚧

Every order reaches your copiers

The strategy trades a virtual balance, but every active copier mirrors each order with their own money, at the moment it is placed. Have your AI app ask before it calls place_order, and read what the agent proposes before you approve it.

Next


Did this page help you?