⚠️ STOP — You MUST read and strictly follow the shared runtime rules before proceeding.
Do NOT select or call any tool until all rules are read. These rules have the highest priority.
→ Read gate-runtime-rules.md
exist in the MCP server.
| MCP Server | Status |
|---|---|
| ------------ | -------- |
| Gate (main) | ✅ Required |
Query Operations (Read-only)
Execution Operations (Write)
gate-mcp-cursor-installergate-mcp-codex-installergate-mcp-claude-installergate-mcp-openclaw-installerRead and strictly follow references/mcp.md, then execute this skill's TradFi workflow.
SKILL.md keeps routing and domain constraints.references/mcp.md is the authoritative MCP execution layer for query/mutation separation, confirmation gates, and post-action verification.| Module | Description | Trigger keywords |
|---|---|---|
| ------------------- | ------------------------------------------------ | ---------------------------------------------------------------------------------------------- |
| Query orders | Order list, order history | orders, open orders, order history |
| Query positions | Current position list, position history | positions, my positions, position history, holdings, current position |
| Query market | Category list, symbol list, ticker, symbol kline | category, categories, symbol list, symbols, ticker, kline, candlestick, market |
| Query assets | User balance/asset info, MT5 account info | assets, balance, account, my funds, MT5, mt5 account |
| Place order | Create new order (supports take-profit/stop-loss at creation) | place order, create order, open order, buy, sell, long, short, take-profit, stop-loss |
| Amend order | Change order price, take-profit, or stop-loss (size not supported) | amend order, modify order, change price, take-profit, stop-loss |
| Cancel order | Cancel one or more orders | cancel order, revoke order, cancel |
| Modify position | Change position take-profit/stop-loss only (leverage, margin not supported) | modify position, take-profit, stop-loss, change take-profit, change stop-loss |
| Close position | Full or partial close | close position, close, close all, flat |
| Intent | Example phrases | Route to |
|---|---|---|
| ------------------- | ------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
| Query orders | "My TradFi orders", "order history", "show open orders", "order status" | Read references/query-orders.md |
| Query positions | "My positions", "position history", "current holdings", "what am I holding" | Read references/query-positions.md |
| Query market | "TradFi categories", "category list", "symbol list", "ticker", "kline for X", "market data" | Read references/query-market.md |
| Query assets | "My assets", "balance", "account balance", "MT5 account", "my MT5 info" | Read references/query-assets.md |
| Place order | "Place order", "buy EURUSD", "sell XAUUSD 0.1", "open long", "order with take-profit/stop-loss" | Read references/place-order.md |
| Amend order | "Amend order", "change price to X", "take-profit", "stop-loss" | Read references/amend-order.md |
| Cancel order | "Cancel order", "cancel all orders", "revoke order" | Read references/cancel-order.md |
| Modify position | "Modify position", "take-profit", "stop-loss", "change take-profit/stop-loss" | Read references/modify-position.md |
| Close position | "Close position", "close all", "close half", "flat" | Read references/close-position.md |
| Unclear | "TradFi", "show me my TradFi" | Clarify: list query and trading modules or ask which the user wants. |
Query (read-only) — use only MCP-documented parameters.
| # | Tool | Purpose |
|---|---|---|
| --- | --------------------------------------- | ------- |
| 1 | cex_tradfi_query_order_list | List open orders. |
| 2 | cex_tradfi_query_order_history_list | Query order history list (filled/cancelled). |
| 3 | cex_tradfi_query_position_list | List current positions. |
| 4 | cex_tradfi_query_position_history_list | List historical positions/settlements. |
| 5 | cex_tradfi_query_categories | Query TradFi category list. |
| 6 | cex_tradfi_query_symbols | List symbols (by category if supported). |
| 7 | cex_tradfi_query_symbol_ticker | Get ticker(s) for symbol(s). |
| 8 | cex_tradfi_query_symbol_detail | Get symbol config (required before place order: leverages, min_order_volume, step_order_volume). If no result, symbol may not exist — do not place order. |
| 9 | cex_tradfi_query_symbol_kline | Get kline/candlestick for symbol. |
| 10 | cex_tradfi_query_user_assets | Get user account/balance (assets). |
| 11 | cex_tradfi_query_mt5_account_info | Get MT5 account info. |
Trading (write) — exact tool names and parameters must match the Gate TradFi MCP tool definition. Conditions and value limits (required/optional, ranges, allowed symbols) must be declared in the skill and in each reference; do not pass undocumented parameters.
| # | Tool (name per MCP) | Purpose |
|---|---|---|
| --- | --------------------------------- | ------- |
| 12 | cex_tradfi_create_tradfi_order | Place new order; supports take-profit/stop-loss. Before calling: use cex_tradfi_query_symbol_detail to validate symbol and get min_order_volume, step_order_volume, leverages. |
| 13 | cex_tradfi_update_order | Amend order price, take-profit, stop-loss only (size not supported). |
| 14 | cex_tradfi_delete_order | Cancel/delete one order. Does not support batch; one order per call. |
| 15 | cex_tradfi_update_position | Modify position take-profit/stop-loss price only (leverage, margin not supported). |
| 16 | cex_tradfi_close_position (or MCP equivalent) | Close position (full or partial). Full close: position identifier only, do not pass size/close_volume. |
place-order.md, amend-order.md, cancel-order.md, modify-position.md, close-position.md), include a Parameters section that states: required/optional params, value constraints, and any MCP-specific rules. Do not add parameters that the MCP does not document.references/ and follow its Workflow.cex_tradfi_delete_order and cex_tradfi_update_order must come from cex_tradfi_query_order_list. Do not use the id or log_id returned by cex_tradfi_create_tradfi_order for cancel or amend.| Situation | Action |
|---|---|
| -------------------------- | ------------------------------------------------------------------------------------------------------- |
| Tool not found / 4xx/5xx | Tell user the TradFi service or tool may be unavailable; suggest retry or check Gate MCP configuration. |
| Empty list | Report "No open orders" / "No positions" / "No symbols" etc., and do not assume error. |
| Invalid symbol / order not found | Report "Order not found" or "Symbol not found" and suggest checking symbol list. |
| Auth / permission error | Do not expose credentials; ask user to check API key or MCP auth for TradFi. |
| Trading error (e.g. insufficient margin, invalid price) | Show the error message; in the response, restate the parameters that were sent and suggest correction. |
Query — After each query:
Trading — After each place/amend/cancel/modify/close:
共 2 个版本