This skill is the unified entry point for Gate CrossEx cross-exchange trading. It supports lots of core operations:
order management, position query, and history query. User intents are routed to corresponding workflows.
⚠️ 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 CrossEx workflow.
SKILL.md keeps route dispatch and feature boundaries.references/mcp.md is the authoritative MCP execution layer for query/mutation sequencing, confirmation gates, and risk-aware updates.| Module | Description | Trigger Keywords |
|---|---|---|
| --------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| Spot | Limit/market buy/sell, cross-exchange arbitrage | spot buy, spot sell, buy spot, sell spot |
| Margin | Long/short trading, margin management, auto-borrowing | margin long, margin short, long margin, short margin |
| Futures | USDT perpetual contracts, dual-direction positions, leverage adjustment | futures long, futures short, open long, open short |
| Transfer | Cross-exchange fund transfer | fund transfer, cross-exchange transfer, transfer, move funds |
| Convert | Flash convert and conversion quote workflow | convert trading, flash convert, convert, quote convert |
| Orders | Query, cancel, amend orders, order history | query orders, cancel order, amend order, order history, list orders |
| Positions | Query all position types, history records | query positions, check positions, position history, positions |
| History | Query order/position/trade/interest history | history query, trade history, interest history, history |
| Intent | Example Phrases | Route To |
|---|---|---|
| ----------------------------- | ---------------------------------------------------------------------------------------------- | --------------------------------------------- |
| Spot Trading | "Buy 100 USDT worth of BTC", "Sell 0.5 BTC", "Market buy ETH spot" | Read references/spot-trading.md |
| Margin Trading | "Long 50 USDT worth of XRP on margin", "Short BTC on margin", "10x leverage long" | Read references/margin-trading.md |
| Futures Trading | "Open 1 BTC futures long position", "Market short ETH", "Adjust leverage to 20x" | Read references/futures-trading.md |
| Cross-Exchange Transfer | "Transfer 100 USDT from Gate to Binance", "Move ETH from OKX to Gate" | Read references/transfer.md |
| Convert Trading | "Flash convert 10 USDT to BTC", "Convert 50 USDT to ETH on Gate" | Read references/convert-trading.md |
| Order Management | "Query all open orders", "Cancel that buy order", "Amend order price", "Query order history" | Read references/order-management.md |
| Position Query | "Query all my positions", "Show futures positions", "Position history" | Read references/position-query.md |
| History Query | "Query trade history", "Position history", "Margin interest history", "Account ledger" | Read references/history-query.md |
| Unclear | "Show account" , "Help me" , "Please Check my account" | Clarify: Query account, then guide user |
This skill uses the CrossEx MCP toolset with the cex_crx prefix as its only core tool family.
Scope rule: Only execute operations explicitly documented in this skill. Only call tools listed in the tables below
or in references/*.md. Tools or operations not mentioned here must not be called.
| Tool | Purpose |
|---|---|
| --------------------------------------- | -------------------------------------------- |
cex_crx_list_crx_rule_symbols | List supported CrossEx trading symbols |
cex_crx_list_crx_rule_risk_limits | Query symbol risk limit rules |
cex_crx_list_crx_transfer_coins | List assets supported for CrossEx transfer |
cex_crx_get_crx_fee | Query CrossEx trading fee information |
cex_crx_get_crx_interest_rate | Query CrossEx interest rates |
cex_crx_list_crx_coin_discount_rate | Query collateral discount rates |
| Tool | Purpose |
|---|---|
| --------------------------------- | --------------------------------------------- |
cex_crx_get_crx_account | Query CrossEx account overview and balances |
cex_crx_update_crx_account | Update CrossEx account settings |
cex_crx_list_crx_account_book | Query CrossEx account ledger entries |
| Tool | Purpose |
|---|---|
| ------------------------------------ | ---------------------------------- |
cex_crx_list_crx_transfers | Query transfer history |
cex_crx_create_crx_transfer | Create a cross-exchange transfer |
cex_crx_create_crx_convert_quote | Get a flash convert quote |
cex_crx_create_crx_convert_order | Execute a flash convert order |
| Tool | Purpose |
|---|---|
| ----------------------------------- | --------------------------- |
cex_crx_list_crx_open_orders | Query current open orders |
cex_crx_create_crx_order | Create a CrossEx order |
cex_crx_get_crx_order | Query order details |
cex_crx_update_crx_order | Amend an existing order |
cex_crx_cancel_crx_order | Cancel a single order |
cex_crx_list_crx_history_orders | Query order history |
cex_crx_list_crx_history_trades | Query trade history |
| Tool | Purpose |
|---|---|
| ------------------------------------------------ | ------------------------------------ |
cex_crx_list_crx_positions | Query current futures positions |
cex_crx_list_crx_margin_positions | Query current margin positions |
cex_crx_close_crx_position | Close an existing CrossEx position |
cex_crx_get_crx_positions_leverage | Query futures leverage settings |
cex_crx_update_crx_positions_leverage | Update futures leverage |
cex_crx_get_crx_margin_positions_leverage | Query margin leverage settings |
cex_crx_update_crx_margin_positions_leverage | Update margin leverage |
cex_crx_list_crx_history_positions | Query futures position history |
cex_crx_list_crx_history_margin_positions | Query margin position history |
cex_crx_list_crx_history_margin_interests | Query margin interest history |
cex_crx_list_crx_adl_rank | Query ADL rank information |
GATE_SPOT_BTC_USDT, GATE_MARGIN_XRP_USDT, GATE_FUTURE_ETH_USDTGATE, BINANCE, OKX, BYBITBUY (buy/long), SELL (sell/short)LONG (long), SHORT (short, margin/futures only)cex_crx_list_crx_rule_symbols to verifycex_crx_get_crx_account to check if available margin is sufficientmin_quote_amount (typically 3 USDT)GATE_SPOT_{BASE}_{QUOTE}quote_qty (USDT amount)qty (coin quantity)cex_crx_list_crx_rule_symbols to query minimum amountcex_crx_create_crx_ordercex_crx_get_crx_order to confirm order statusGATE_MARGIN_{BASE}_{QUOTE}qty (coin quantity), position_side (LONG or SHORT)quote_qty (USDT amount)LONG): Buy coin, borrow USDTSHORT): Sell coin, borrow coincex_crx_list_crx_rule_symbols to query minimum amountcex_crx_create_crx_order with parameter position_sidecex_crx_list_crx_margin_positions with a symbol filter to confirm positionGATE_FUTURE_{BASE}_{QUOTE}qty (contract size), position_side (LONG or SHORT)cex_crx_get_crx_positions_leverage and cex_crx_update_crx_positions_leverage
quanto_multiplier and current pricecex_crx_list_crx_rule_symbols to query minimum sizecex_crx_create_crx_order with parameter position_sidecex_crx_list_crx_positions with a symbol filter to confirm positioncex_crx_create_crx_transfer (Exchange A -> Exchange B)from, to, coin, amount | Coin | Mode | Valid from / to | Defaults |
|------|------|--------------------|---------|
| USDT | Cross-Exchange | SPOT ↔ CROSSEX | CROSSEX_{exchange_type} → CROSSEX |
| USDT | Sub-Exchange | SPOT ↔ CROSSEX_{exchange_type} or CROSSEX_{exchange_type} ↔ CROSSEX_{exchange_type} | CROSSEX → CROSSEX_GATE |
| Non-USDT | Any | Must use CROSSEX_{exchange_type} (never CROSSEX alone). Cross-exchange transfers allowed (e.g., CROSSEX_BINANCE ↔ CROSSEX_GATE). | — |
cex_crx_list_crx_transfer_coins to verifycex_crx_create_crx_transfercex_crx_list_crx_transfers to query transfer history and confirmcex_crx_create_crx_convert_quotecex_crx_create_crx_convert_orderfrom_coin, to_coin, from_amount, exchange_typeconfirmation
cex_crx_create_crx_convert_quotecex_crx_create_crx_convert_order with the returned quote_idcex_crx_get_crx_account to confirm resulting balancescex_crx_list_crx_open_orderscex_crx_get_crx_ordercex_crx_list_crx_history_orders (parameters: limit, page, from, to)cex_crx_cancel_crx_orderopencex_crx_update_crx_order to amend price or quantitycex_crx_list_crx_positionscex_crx_list_crx_margin_positionscex_crx_get_crx_positions_leveragecex_crx_get_crx_margin_positions_leveragecex_crx_list_crx_history_positions (parameters: limit, page, from, to)cex_crx_list_crx_history_margin_positionscex_crx_list_crx_history_trades (parameters: limit, page, from, to)cex_crx_list_crx_history_orderslimit (max 100), page, from (start timestamp), to (end timestamp)cex_crx_list_crx_history_tradescex_crx_list_crx_history_positionscex_crx_list_crx_history_margin_positionscex_crx_list_crx_history_margin_interestsAfter each operation, output a concise standardized result.
confirmation before placing order
confirmation
respond that it is not supported by this skill.
Example: "Reply 'confirm' to execute the above operation."
| Error Code | Handling |
|---|---|
| ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
USER_NOT_EXIST | Please confirm if a GATE CrossEx account has been opened. Refer to the GATE Help Center -> CrossEx Trading -> CrossEx Account Operation Guide for instructions. |
TRADE_INVALID_QUOTE_ORDER_QTY | ⚠️ Incorrect parameter name: Market buy must use quote_qty |
TRADE_INVALID_ORDER_QTY | ⚠️ Limit order error: Limit orders must use qty (coin quantity) + price |
TRADE_ORDER_AMOUNT_MIN_ERROR | Order amount below minimum notional value (typically 3 USDT), increase quantity or amount |
CONVERT_TRADE_QUOTE_EXCHANGE_INVALID_ERROR | ⚠️ Flash convert: exchange_type parameter value must be uppercase exchange code (e.g., GATE) |
TRADE_MARGIN_INVALID_PZ_SIDE_ERROR | Prompt that margin/futures trading must specify position_side (LONG/SHORT) |
BALANCE_NOT_ENOUGH | Insufficient available margin, suggest reducing trade amount or depositing |
SYMBOL_NOT_FOUND | Confirm trading pair format is correct (e.g., GATE_SPOT_BTC_USDT) |
INVALID_PARAM_VALUE | Check parameter format (qty is numeric string, position_side is LONG/SHORT) |
POSITION_NOT_EMPTY | Prompt to close position before reversing direction |
TRADE_ORDER_LOT_SIZE_ERROR | Suggest adjusting quantity to minimum unit of the trading pair |
RATE_LIMIT_EXCEEDED | Prompt user about rate limit; suggest retrying later or reducing request frequency |
TRADE_INVALID_EXCHANGE_TYPE | Invalid exchange type; please check the exchange_type parameter (e.g., GATE, BINANCE, OKX, BYBIT) |
共 2 个版本