← 返回
数据分析 Key 中文

Gate CrossEx Cross-Exchange Trading

Gate CrossEx cross-exchange skill. Use when the user asks to trade or query positions across Gate, Binance, OKX, and Bybit simultaneously. Triggers on 'cross...
Gate CrossEx 跨交易所技能,用于在 Gate、Binance、OKX、Bybit 同时交易或查询仓位,触发关键字为 “cross”。
gate-exchange
数据分析 clawhub v1.0.2 2 版本 99842.8 Key: 需要
★ 0
Stars
📥 635
下载
💾 16
安装
2
版本
#latest

概述

Gate CrossEx Trading Suite

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.

General Rules

⚠️ 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

  • Only call MCP tools explicitly listed in this skill. Tools not documented here must NOT be called, even if they

exist in the MCP server.


MCP Dependencies

Required MCP Servers

MCP ServerStatus
--------------------
Gate (main)✅ Required

MCP Tools Used

Query Operations (Read-only)

  • cex_crx_get_crx_account
  • cex_crx_get_crx_fee
  • cex_crx_get_crx_interest_rate
  • cex_crx_get_crx_margin_positions_leverage
  • cex_crx_get_crx_order
  • cex_crx_get_crx_positions_leverage
  • cex_crx_list_crx_account_book
  • cex_crx_list_crx_adl_rank
  • cex_crx_list_crx_coin_discount_rate
  • cex_crx_list_crx_history_margin_interests
  • cex_crx_list_crx_history_margin_positions
  • cex_crx_list_crx_history_orders
  • cex_crx_list_crx_history_positions
  • cex_crx_list_crx_history_trades
  • cex_crx_list_crx_margin_positions
  • cex_crx_list_crx_open_orders
  • cex_crx_list_crx_positions
  • cex_crx_list_crx_rule_risk_limits
  • cex_crx_list_crx_rule_symbols
  • cex_crx_list_crx_transfer_coins
  • cex_crx_list_crx_transfers

Execution Operations (Write)

  • cex_crx_cancel_crx_order
  • cex_crx_close_crx_position
  • cex_crx_create_crx_convert_order
  • cex_crx_create_crx_convert_quote
  • cex_crx_create_crx_order
  • cex_crx_create_crx_transfer
  • cex_crx_update_crx_account
  • cex_crx_update_crx_margin_positions_leverage
  • cex_crx_update_crx_order
  • cex_crx_update_crx_positions_leverage

Authentication

  • API Key Required: Yes (see skill doc/runtime MCP deployment)
  • Permissions: Crx:Write
  • Get API Key: https://www.gate.io/myaccount/profile/api-key/manage

Installation Check

  • Required: Gate (main)
  • Install: Run installer skill for your IDE
  • Cursor: gate-mcp-cursor-installer
  • Codex: gate-mcp-codex-installer
  • Claude: gate-mcp-claude-installer
  • OpenClaw: gate-mcp-openclaw-installer

MCP Mode

Read 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 Overview

ModuleDescriptionTrigger Keywords
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
SpotLimit/market buy/sell, cross-exchange arbitragespot buy, spot sell, buy spot, sell spot
MarginLong/short trading, margin management, auto-borrowingmargin long, margin short, long margin, short margin
FuturesUSDT perpetual contracts, dual-direction positions, leverage adjustmentfutures long, futures short, open long, open short
TransferCross-exchange fund transferfund transfer, cross-exchange transfer, transfer, move funds
ConvertFlash convert and conversion quote workflowconvert trading, flash convert, convert, quote convert
OrdersQuery, cancel, amend orders, order historyquery orders, cancel order, amend order, order history, list orders
PositionsQuery all position types, history recordsquery positions, check positions, position history, positions
HistoryQuery order/position/trade/interest historyhistory query, trade history, interest history, history

Routing Rules

IntentExample PhrasesRoute 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

MCP Tools

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 Naming Convention

  • List operations in the cex_crx family query symbols, orders, positions, transfers, or history
  • Get operations in the cex_crx family query a single account setting, fee, rate, or order detail
  • Create operations in the cex_crx family create an order, transfer, convert quote, or convert order
  • Update operations in the cex_crx family update account settings, leverage, or existing orders
  • Cancel operations in the cex_crx family cancel an existing order
  • Close operations in the cex_crx family close an existing position

Symbol And Rule Tools

ToolPurpose
-----------------------------------------------------------------------------------
cex_crx_list_crx_rule_symbolsList supported CrossEx trading symbols
cex_crx_list_crx_rule_risk_limitsQuery symbol risk limit rules
cex_crx_list_crx_transfer_coinsList assets supported for CrossEx transfer
cex_crx_get_crx_feeQuery CrossEx trading fee information
cex_crx_get_crx_interest_rateQuery CrossEx interest rates
cex_crx_list_crx_coin_discount_rateQuery collateral discount rates

Account Tools

ToolPurpose
------------------------------------------------------------------------------
cex_crx_get_crx_accountQuery CrossEx account overview and balances
cex_crx_update_crx_accountUpdate CrossEx account settings
cex_crx_list_crx_account_bookQuery CrossEx account ledger entries

Transfer And Convert Tools

ToolPurpose
----------------------------------------------------------------------
cex_crx_list_crx_transfersQuery transfer history
cex_crx_create_crx_transferCreate a cross-exchange transfer
cex_crx_create_crx_convert_quoteGet a flash convert quote
cex_crx_create_crx_convert_orderExecute a flash convert order

Order Tools

ToolPurpose
--------------------------------------------------------------
cex_crx_list_crx_open_ordersQuery current open orders
cex_crx_create_crx_orderCreate a CrossEx order
cex_crx_get_crx_orderQuery order details
cex_crx_update_crx_orderAmend an existing order
cex_crx_cancel_crx_orderCancel a single order
cex_crx_list_crx_history_ordersQuery order history
cex_crx_list_crx_history_tradesQuery trade history

Position And Leverage Tools

ToolPurpose
------------------------------------------------------------------------------------
cex_crx_list_crx_positionsQuery current futures positions
cex_crx_list_crx_margin_positionsQuery current margin positions
cex_crx_close_crx_positionClose an existing CrossEx position
cex_crx_get_crx_positions_leverageQuery futures leverage settings
cex_crx_update_crx_positions_leverageUpdate futures leverage
cex_crx_get_crx_margin_positions_leverageQuery margin leverage settings
cex_crx_update_crx_margin_positions_leverageUpdate margin leverage
cex_crx_list_crx_history_positionsQuery futures position history
cex_crx_list_crx_history_margin_positionsQuery margin position history
cex_crx_list_crx_history_margin_interestsQuery margin interest history
cex_crx_list_crx_adl_rankQuery ADL rank information

Usage Guidance

  • Use the cex_crx MCP family as the default and only core MCP family for this skill.
  • Use list/get tools to query symbol rules, fees, balances, leverage, or supported assets.
  • Prefer history and account-book tools when the user asks for records, audit trails, or status verification.

Execution

1. Intent and Parameter Identification

  • Determine module (orders/positions/history)
  • Extract key parameters:
  • Trading Pair: GATE_SPOT_BTC_USDT, GATE_MARGIN_XRP_USDT, GATE_FUTURE_ETH_USDT
  • Exchange: GATE, BINANCE, OKX, BYBIT
  • Direction: BUY (buy/long), SELL (sell/short)
  • Quantity: USDT amount, coin quantity, contract size
  • Price: Limit, market
  • Leverage: Leverage multiplier (margin/futures only)
  • Position Side: LONG (long), SHORT (short, margin/futures only)
  • Missing Parameters: If required parameters are missing, ask user

2. Pre-checks

  • Trading Pair: Call cex_crx_list_crx_rule_symbols to verify
  • Account Balance: Call cex_crx_get_crx_account to check if available margin is sufficient
  • Position Check:
  • Margin Trading: Check existing positions to avoid direction conflicts
  • Futures Trading: Check dual-direction position mode
  • Minimum Amount: Query min_quote_amount (typically 3 USDT)
  • Exchange Status: Verify target exchange is operating normally

3. Module Logic

Module A: Spot Trading

  1. Parameter Confirmation:
    • Trading pair format: GATE_SPOT_{BASE}_{QUOTE}
    • Buy parameters: quote_qty (USDT amount)
    • Sell parameters: qty (coin quantity)
  2. Minimum Amount Check: Call cex_crx_list_crx_rule_symbols to query minimum amount
  3. Pre-order Confirmation: Display order summary (pair, direction, quantity, price), require user confirmation
  4. Place Order: Call cex_crx_create_crx_order
  5. Verification: Call cex_crx_get_crx_order to confirm order status

Module B: Margin Trading

  1. Parameter Confirmation:
    • Trading pair format: GATE_MARGIN_{BASE}_{QUOTE}
    • Required parameters: qty (coin quantity), position_side (LONG or SHORT)
    • Optional parameters: quote_qty (USDT amount)
  2. Leverage Check: Query current leverage, adjust if user specifies
  3. Position Direction:
    • Long (LONG): Buy coin, borrow USDT
    • Short (SHORT): Sell coin, borrow coin
  4. Minimum Amount Check: Call cex_crx_list_crx_rule_symbols to query minimum amount
  5. Pre-order Confirmation: Display order summary (pair, direction, quantity, leverage), require confirmation
  6. Place Order: Call cex_crx_create_crx_order with parameter position_side
  7. Verification: Call cex_crx_list_crx_margin_positions with a symbol filter to confirm position

Module C: Futures Trading

  1. Parameter Confirmation:
    • Trading pair format: GATE_FUTURE_{BASE}_{QUOTE}
    • Required parameters: qty (contract size), position_side (LONG or SHORT)
  2. Leverage Adjustment: If user specifies leverage, call cex_crx_get_crx_positions_leverage and

cex_crx_update_crx_positions_leverage

  1. Contract Size Calculation (if ordering by value):
    • Get quanto_multiplier and current price
    • Round down to ensure overspending is avoided
  2. Minimum Size Check: Call cex_crx_list_crx_rule_symbols to query minimum size
  3. Pre-order Confirmation: Display order summary (pair, direction, size, leverage), require confirmation
  4. Place Order: Call cex_crx_create_crx_order with parameter position_side
  5. Verification: Call cex_crx_list_crx_positions with a symbol filter to confirm position

Module D: Cross-Exchange Transfer

  1. Transfer Type:
    • Cross-exchange transfer: cex_crx_create_crx_transfer (Exchange A -> Exchange B)
  2. Parameter Confirmation:
    • Cross-exchange transfer: from, to, coin, amount
    • From/To Account Rules:

| Coin | Mode | Valid from / to | Defaults |

|------|------|--------------------|---------|

| USDT | Cross-Exchange | SPOTCROSSEX | CROSSEX_{exchange_type}CROSSEX |

| USDT | Sub-Exchange | SPOTCROSSEX_{exchange_type} or CROSSEX_{exchange_type}CROSSEX_{exchange_type} | CROSSEXCROSSEX_GATE |

| Non-USDT | Any | Must use CROSSEX_{exchange_type} (never CROSSEX alone). Cross-exchange transfers allowed (e.g., CROSSEX_BINANCECROSSEX_GATE). | — |

  1. Supported Coin Check: Call cex_crx_list_crx_transfer_coins to verify
  2. Balance Check: Confirm source account has sufficient balance
  3. Pre-transfer Confirmation: Display transfer summary (source, destination, coin, quantity), require confirmation
  4. Execute Transfer: Call cex_crx_create_crx_transfer
  5. Verification: Call cex_crx_list_crx_transfers to query transfer history and confirm

Module E: Convert Trading

  1. Convert Type:
    • Flash convert quote: cex_crx_create_crx_convert_quote
    • Flash convert execution: cex_crx_create_crx_convert_order
  2. Parameter Confirmation:
    • Flash convert: from_coin, to_coin, from_amount, exchange_type
  3. Balance Check: Confirm source account has sufficient balance for the convert pair
  4. Pre-convert Confirmation: Display source asset, target asset, rate, and expected receive amount, then require

confirmation

  1. Quote: Call cex_crx_create_crx_convert_quote
  2. Execute Convert: Call cex_crx_create_crx_convert_order with the returned quote_id
  3. Verification: Call cex_crx_get_crx_account to confirm resulting balances

Module F: Order Management

  1. Query Orders:
    • Current open orders: Call cex_crx_list_crx_open_orders
    • Order details: Call cex_crx_get_crx_order
    • Order History: Call cex_crx_list_crx_history_orders (parameters: limit, page, from, to)
  2. Cancel Orders:
    • Single cancel: Call cex_crx_cancel_crx_order
  3. Amend Orders:
    • Check order status must be open
    • Call cex_crx_update_crx_order to amend price or quantity
  4. Display Results: Display order information in table format

Module G: Position Query

  1. Query Types:
    • Futures positions: Call cex_crx_list_crx_positions
    • Margin positions: Call cex_crx_list_crx_margin_positions
    • Futures leverage: Call cex_crx_get_crx_positions_leverage
    • Margin leverage: Call cex_crx_get_crx_margin_positions_leverage
  2. History Query:
    • Position History: Call cex_crx_list_crx_history_positions (parameters: limit, page, from, to)
    • Margin Position History: Call cex_crx_list_crx_history_margin_positions
    • Trade History: Call cex_crx_list_crx_history_trades (parameters: limit, page, from, to)
  3. Display Format:
    • Current positions: Table format (pair, direction, quantity, entry price, unrealized PnL)
    • History records: Reverse chronological order, display recent N records

Module H: History Query

  1. Order History:
    • Call cex_crx_list_crx_history_orders
    • Parameters: limit (max 100), page, from (start timestamp), to (end timestamp)
  2. Trade History:
    • Call cex_crx_list_crx_history_trades
    • Same parameters as above
  3. Position History:
    • Call cex_crx_list_crx_history_positions
    • Same parameters as above
  4. Margin Position History:
    • Call cex_crx_list_crx_history_margin_positions
    • Same parameters as above
  5. Margin Interest History:
    • Call cex_crx_list_crx_history_margin_interests
    • Same parameters as above

Report Template

After each operation, output a concise standardized result.

Safety Rules

  • Credentials: Never prompt or induce the user to paste API Secret Key into chat; prefer secure local MCP configuration.
  • User-to-User Transfer: This skill does not support P2P or user-to-user transfers; only transfers between the user's own accounts (e.g., SPOT ↔ CROSSEX) are allowed.
  • Trade Orders: Display complete order summary (pair, direction, quantity, price, leverage), require user

confirmation before placing order

  • Cross-Exchange Transfer: Display transfer details (source, destination, quantity, arrival time), require

confirmation

  • Scope rule: Only call tools documented in this skill. If the user requests an operation not documented here,

respond that it is not supported by this skill.

  • Batch Operations: Display operation scope and impact, require explicit confirmation

Example: "Reply 'confirm' to execute the above operation."

Error Handling

Error CodeHandling
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
USER_NOT_EXISTPlease 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_ERROROrder 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_ERRORPrompt that margin/futures trading must specify position_side (LONG/SHORT)
BALANCE_NOT_ENOUGHInsufficient available margin, suggest reducing trade amount or depositing
SYMBOL_NOT_FOUNDConfirm trading pair format is correct (e.g., GATE_SPOT_BTC_USDT)
INVALID_PARAM_VALUECheck parameter format (qty is numeric string, position_side is LONG/SHORT)
POSITION_NOT_EMPTYPrompt to close position before reversing direction
TRADE_ORDER_LOT_SIZE_ERRORSuggest adjusting quantity to minimum unit of the trading pair
RATE_LIMIT_EXCEEDEDPrompt user about rate limit; suggest retrying later or reducing request frequency
TRADE_INVALID_EXCHANGE_TYPEInvalid exchange type; please check the exchange_type parameter (e.g., GATE, BINANCE, OKX, BYBIT)

版本历史

共 2 个版本

  • v1.0.2 当前
    2026-05-03 04:27 安全 安全
  • v1.0.0
    2026-03-19 15:34 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,124
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,470
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 60,020