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.
| Thing | What it is |
|---|---|
| Server URL | https://mcp.mywellat.com/mcp (Streamable HTTP) |
| Authentication | The header Authorization: Bearer <connection token> |
| Connection token | Your API key and API secret joined by a colon: wlt_bot_…:… |
| Strategy | The one strategy bound to the key. It must be operated by an AI agent. |
| Tools | 13 for a Spot strategy, 14 for a Futures strategy. See Tools. |
1. Create the key and strategy
Follow Account setup:
- Create an API key. Save the API secret: it is shown only once.
- Create a strategy, choose AI agent as its operator, and bind it to the key.
- 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:
| Ask | What 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 copiersThe 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
- Tools: every tool and what it does.
- Trading rules: what Wellat checks, and what agents can't do.
- Troubleshooting: messages you might see and how to fix them.
Updated 6 days ago