gate-exchange-crossex
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGate CrossEx Trading Suite
Gate CrossEx 交易套件
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.
本Skill是Gate CrossEx跨交易所交易的统一入口,支持多项核心操作:订单管理、仓位查询、历史记录查询。用户的意图会被路由到对应的工作流中。
General Rules
通用规则
- Read and follow the shared runtime rules before proceeding: → references/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.
- 在操作前请阅读并遵循共享运行时规则:→ references/runtime-rules.md
- 仅可调用本Skill中明确列出的MCP工具。即使MCP服务器中存在未在此处记录的工具,也不得调用。
Module Overview
模块概述
| Module | Description | Trigger Keywords |
|---|---|---|
| Spot | Limit/market buy/sell, cross-exchange arbitrage | |
| Margin | Long/short trading, margin management, auto-borrowing | |
| Futures | USDT perpetual contracts, dual-direction positions, leverage adjustment | |
| Transfer | Cross-exchange fund transfer | |
| Convert | Flash convert and conversion quote workflow | |
| Orders | Query, cancel, amend orders, order history | |
| Positions | Query all position types, history records | |
| History | Query order/position/trade/interest history | |
| 模块 | 描述 | 触发关键词 |
|---|---|---|
| Spot(现货) | 限价/市价买卖、跨交易所套利 | |
| Margin(杠杆) | 做多/做空交易、杠杆管理、自动借币 | |
| Futures(合约) | USDT永续合约、双向仓位、杠杆调整 | |
| Transfer(转账) | 跨交易所资金划转 | |
| Convert(兑换) | 闪兑及兑换报价流程 | |
| Orders(订单) | 查询、取消、修改订单,订单历史 | |
| Positions(仓位) | 查询所有仓位类型、历史记录 | |
| History(历史) | 查询订单/仓位/交易/利息历史 | |
Routing Rules
路由规则
| Intent | Example Phrases | Route To |
|---|---|---|
| Spot Trading | "Buy 100 USDT worth of BTC", "Sell 0.5 BTC", "Market buy ETH spot" | Read |
| Margin Trading | "Long 50 USDT worth of XRP on margin", "Short BTC on margin", "10x leverage long" | Read |
| Futures Trading | "Open 1 BTC futures long position", "Market short ETH", "Adjust leverage to 20x" | Read |
| Cross-Exchange Transfer | "Transfer 100 USDT from Gate to Binance", "Move ETH from OKX to Gate" | Read |
| Convert Trading | "Flash convert 10 USDT to BTC", "Convert 50 USDT to ETH on Gate" | Read |
| Order Management | "Query all open orders", "Cancel that buy order", "Amend order price", "Query order history" | Read |
| Position Query | "Query all my positions", "Show futures positions", "Position history" | Read |
| History Query | "Query trade history", "Position history", "Margin interest history", "Account ledger" | Read |
| Unclear | "Show account" , "Help me" , "Please Check my account" | Clarify: Query account, then guide user |
| 意图 | 示例短语 | 路由至 |
|---|---|---|
| 现货交易 | "买入价值100 USDT的BTC"、"卖出0.5 BTC"、"市价买入ETH现货" | 阅读 |
| 杠杆交易 | "杠杆做多价值50 USDT的XRP"、"杠杆做空BTC"、"10倍杠杆做多" | 阅读 |
| 合约交易 | "开1 BTC合约多仓"、"市价做空ETH"、"调整杠杆至20倍" | 阅读 |
| 跨交易所转账 | "从Gate转账100 USDT到Binance"、"将ETH从OKX转到Gate" | 阅读 |
| 兑换交易 | "闪兑10 USDT为BTC"、"在Gate将50 USDT兑换为ETH" | 阅读 |
| 订单管理 | "查询所有未成交订单"、"取消该买入订单"、"修改订单价格"、"查询订单历史" | 阅读 |
| 仓位查询 | "查询我的所有仓位"、"显示合约仓位"、"仓位历史" | 阅读 |
| 历史查询 | "查询交易历史"、"仓位历史"、"杠杆利息历史"、"账户流水" | 阅读 |
| 意图不明确 | "显示账户信息"、"帮帮我"、"请检查我的账户" | 澄清:先查询账户信息,再引导用户明确需求 |
MCP Tools
MCP工具
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 . Tools or operations not mentioned here must not be called.
references/*.md本Skill仅使用带有cex_crx前缀的CrossEx MCP工具集作为核心工具家族。
范围规则:仅执行本Skill中明确记录的操作。仅可调用下表或中列出的工具。不得调用未提及的工具或执行未记录的操作。
references/*.mdTool 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
- List类操作:cex_crx家族中用于查询交易对、订单、仓位、转账或历史记录的工具
- Get类操作:cex_crx家族中用于查询单个账户设置、手续费、利率或订单详情的工具
- Create类操作:cex_crx家族中用于创建订单、转账、兑换报价或兑换订单的工具
- Update类操作:cex_crx家族中用于更新账户设置、杠杆或已有订单的工具
- Cancel类操作:cex_crx家族中用于取消已有订单的工具
- Close类操作:cex_crx家族中用于平仓的工具
Symbol And Rule Tools
交易对与规则工具
| Tool | Purpose |
|---|---|
| List supported CrossEx trading symbols |
| Query symbol risk limit rules |
| List assets supported for CrossEx transfer |
| Query CrossEx trading fee information |
| Query CrossEx interest rates |
| Query collateral discount rates |
| 工具 | 用途 |
|---|---|
| 列出支持的CrossEx交易对 |
| 查询交易对风险限制规则 |
| 列出支持CrossEx转账的资产 |
| 查询CrossEx交易手续费信息 |
| 查询CrossEx利率 |
| 查询抵押品折扣率 |
Account Tools
账户工具
| Tool | Purpose |
|---|---|
| Query CrossEx account overview and balances |
| Update CrossEx account settings |
| Query CrossEx account ledger entries |
| 工具 | 目的 |
|---|---|
| 查询CrossEx账户概览及余额 |
| 更新CrossEx账户设置 |
| 查询CrossEx账户流水条目 |
Transfer And Convert Tools
转账与兑换工具
| Tool | Purpose |
|---|---|
| Query transfer history |
| Create a cross-exchange transfer |
| Get a flash convert quote |
| Execute a flash convert order |
| 工具 | 用途 |
|---|---|
| 查询转账历史 |
| 创建跨交易所转账 |
| 获取闪兑报价 |
| 执行闪兑订单 |
Order Tools
订单工具
| Tool | Purpose |
|---|---|
| Query current open orders |
| Create a CrossEx order |
| Query order details |
| Amend an existing order |
| Cancel a single order |
| Query order history |
| Query trade history |
| 工具 | 用途 |
|---|---|
| 查询当前未成交订单 |
| 创建CrossEx订单 |
| 查询订单详情 |
| 修改已有订单 |
| 取消单个订单 |
| 查询订单历史 |
| 查询交易历史 |
Position And Leverage Tools
仓位与杠杆工具
| Tool | Purpose |
|---|---|
| Query current futures positions |
| Query current margin positions |
| Close an existing CrossEx position |
| Query futures leverage settings |
| Update futures leverage |
| Query margin leverage settings |
| Update margin leverage |
| Query futures position history |
| Query margin position history |
| Query margin interest history |
| Query ADL rank information |
| 工具 | 用途 |
|---|---|
| 查询当前合约仓位 |
| 查询当前杠杆仓位 |
| 平仓CrossEx仓位 |
| 查询合约杠杆设置 |
| 更新合约杠杆 |
| 查询杠杆设置 |
| 更新杠杆 |
| 查询合约仓位历史 |
| 查询杠杆仓位历史 |
| 查询杠杆利息历史 |
| 查询ADL排名信息 |
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.
- 将cex_crx MCP家族作为本Skill的默认且唯一核心MCP工具家族。
- 使用list/get工具查询交易对规则、手续费、余额、杠杆或支持的资产。
- 当用户要求记录、审计追踪或状态验证时,优先使用历史记录和账户流水工具。
Execution
执行流程
1. Intent and Parameter Identification
1. 意图与参数识别
- Determine module (orders/positions/history)
- Extract key parameters:
- Trading Pair: ,
GATE_SPOT_BTC_USDT,GATE_MARGIN_XRP_USDTGATE_FUTURE_ETH_USDT - Exchange: ,
GATE,BINANCE,OKXBYBIT - Direction: (buy/long),
BUY(sell/short)SELL - Quantity: USDT amount, coin quantity, contract size
- Price: Limit, market
- Leverage: Leverage multiplier (margin/futures only)
- Position Side: (long),
LONG(short, margin/futures only)SHORT
- Trading Pair:
- Missing Parameters: If required parameters are missing, ask user
- 确定所属模块(订单/仓位/历史)
- 提取关键参数:
- 交易对:、
GATE_SPOT_BTC_USDT、GATE_MARGIN_XRP_USDTGATE_FUTURE_ETH_USDT - 交易所:、
GATE、BINANCE、OKXBYBIT - 方向:(买入/做多)、
BUY(卖出/做空)SELL - 数量:USDT金额、代币数量、合约张数
- 价格类型:限价、市价
- 杠杆:杠杆倍数(仅杠杆/合约交易)
- 仓位方向:(多仓)、
LONG(空仓,仅杠杆/合约交易)SHORT
- 交易对:
- 缺失参数:若必填参数缺失,询问用户补充
2. Pre-checks
2. 前置检查
- Trading Pair: Call to verify
cex_crx_list_crx_rule_symbols - Account Balance: Call to check if available margin is sufficient
cex_crx_get_crx_account - Position Check:
- Margin Trading: Check existing positions to avoid direction conflicts
- Futures Trading: Check dual-direction position mode
- Minimum Amount: Query (typically 3 USDT)
min_quote_amount - Exchange Status: Verify target exchange is operating normally
- 交易对验证:调用验证交易对是否支持
cex_crx_list_crx_rule_symbols - 账户余额检查:调用确认可用保证金是否充足
cex_crx_get_crx_account - 仓位检查:
- 杠杆交易:检查已有仓位,避免方向冲突
- 合约交易:检查双向仓位模式
- 最低金额检查:查询(通常为3 USDT)
min_quote_amount - 交易所状态:验证目标交易所是否正常运营
3. Module Logic
3. 模块逻辑
Module A: Spot Trading
模块A:现货交易
- Parameter Confirmation:
- Trading pair format:
GATE_SPOT_{BASE}_{QUOTE} - Buy parameters: (USDT amount)
quote_qty - Sell parameters: (coin quantity)
qty
- Trading pair format:
- Minimum Amount Check: Call to query minimum amount
cex_crx_list_crx_rule_symbols - Pre-order Confirmation: Display order summary (pair, direction, quantity, price), require user confirmation
- Place Order: Call
cex_crx_create_crx_order - Verification: Call to confirm order status
cex_crx_get_crx_order
- 参数确认:
- 交易对格式:
GATE_SPOT_{BASE}_{QUOTE} - 买入参数:(USDT金额)
quote_qty - 卖出参数:(代币数量)
qty
- 交易对格式:
- 最低金额检查:调用查询最低金额
cex_crx_list_crx_rule_symbols - 下单前确认:显示订单摘要(交易对、方向、数量、价格),需用户确认
- 下单:调用
cex_crx_create_crx_order - 验证:调用确认订单状态
cex_crx_get_crx_order
Module B: Margin Trading
模块B:杠杆交易
- Parameter Confirmation:
- Trading pair format:
GATE_MARGIN_{BASE}_{QUOTE} - Required parameters: (coin quantity),
qty(position_sideorLONG)SHORT - Optional parameters: (USDT amount)
quote_qty
- Trading pair format:
- Leverage Check: Query current leverage, adjust if user specifies
- Position Direction:
- Long (): Buy coin, borrow USDT
LONG - Short (): Sell coin, borrow coin
SHORT
- Long (
- Minimum Amount Check: Call to query minimum amount
cex_crx_list_crx_rule_symbols - Pre-order Confirmation: Display order summary (pair, direction, quantity, leverage), require confirmation
- Place Order: Call with parameter
cex_crx_create_crx_orderposition_side - Verification: Call with a
cex_crx_list_crx_margin_positionsfilter to confirm positionsymbol
- 参数确认:
- 交易对格式:
GATE_MARGIN_{BASE}_{QUOTE} - 必填参数:(代币数量)、
qty(position_side或LONG)SHORT - 可选参数:(USDT金额)
quote_qty
- 交易对格式:
- 杠杆检查:查询当前杠杆,若用户指定则调整
- 仓位方向:
- 多仓():买入代币,借入USDT
LONG - 空仓():卖空代币,借入代币
SHORT
- 多仓(
- 最低金额检查:调用查询最低金额
cex_crx_list_crx_rule_symbols - 下单前确认:显示订单摘要(交易对、方向、数量、杠杆),需用户确认
- 下单:调用并传入
cex_crx_create_crx_order参数position_side - 验证:调用并添加
cex_crx_list_crx_margin_positions过滤器确认仓位symbol
Module C: Futures Trading
模块C:合约交易
- Parameter Confirmation:
- Trading pair format:
GATE_FUTURE_{BASE}_{QUOTE} - Required parameters: (contract size),
qty(position_sideorLONG)SHORT
- Trading pair format:
- Leverage Adjustment: If user specifies leverage, call and
cex_crx_get_crx_positions_leveragecex_crx_update_crx_positions_leverage - Contract Size Calculation (if ordering by value):
- Get and current price
quanto_multiplier - Round down to ensure overspending is avoided
- Get
- Minimum Size Check: Call to query minimum size
cex_crx_list_crx_rule_symbols - Pre-order Confirmation: Display order summary (pair, direction, size, leverage), require confirmation
- Place Order: Call with parameter
cex_crx_create_crx_orderposition_side - Verification: Call with a
cex_crx_list_crx_positionsfilter to confirm positionsymbol
- 参数确认:
- 交易对格式:
GATE_FUTURE_{BASE}_{QUOTE} - 必填参数:(合约张数)、
qty(position_side或LONG)SHORT
- 交易对格式:
- 杠杆调整:若用户指定杠杆,调用和
cex_crx_get_crx_positions_leverage进行调整cex_crx_update_crx_positions_leverage - 合约张数计算(按价值下单时):
- 获取和当前价格
quanto_multiplier - 向下取整避免超额支出
- 获取
- 最低张数检查:调用查询最低张数
cex_crx_list_crx_rule_symbols - 下单前确认:显示订单摘要(交易对、方向、张数、杠杆),需用户确认
- 下单:调用并传入
cex_crx_create_crx_order参数position_side - 验证:调用并添加
cex_crx_list_crx_positions过滤器确认仓位symbol
Module D: Cross-Exchange Transfer
模块D:跨交易所转账
- Transfer Type:
- Cross-exchange transfer: (Exchange A -> Exchange B)
cex_crx_create_crx_transfer
- Cross-exchange transfer:
- Parameter Confirmation:
- Cross-exchange transfer: ,
from,to,coinamount - From/To Account Rules:
Coin Mode Valid /fromtoDefaults USDT Cross-Exchange ↔SPOTCROSSEX→CROSSEX_{exchange_type}CROSSEXUSDT Sub-Exchange ↔SPOTorCROSSEX_{exchange_type}↔CROSSEX_{exchange_type}CROSSEX_{exchange_type}→CROSSEXCROSSEX_GATENon-USDT Any Must use (neverCROSSEX_{exchange_type}alone). Cross-exchange transfers allowed (e.g.,CROSSEX↔CROSSEX_BINANCE).CROSSEX_GATE—
- Cross-exchange transfer:
- Supported Coin Check: Call to verify
cex_crx_list_crx_transfer_coins - Balance Check: Confirm source account has sufficient balance
- Pre-transfer Confirmation: Display transfer summary (source, destination, coin, quantity), require confirmation
- Execute Transfer: Call
cex_crx_create_crx_transfer - Verification: Call to query transfer history and confirm
cex_crx_list_crx_transfers
- 转账类型:
- 跨交易所转账:(交易所A → 交易所B)
cex_crx_create_crx_transfer
- 跨交易所转账:
- 参数确认:
- 跨交易所转账:、
from、to、coinamount - 转出/转入账户规则:
代币 模式 有效 /from账户to默认规则 USDT 跨交易所 ↔SPOTCROSSEX→CROSSEX_{exchange_type}CROSSEXUSDT 交易所内 ↔SPOT或CROSSEX_{exchange_type}↔CROSSEX_{exchange_type}CROSSEX_{exchange_type}→CROSSEXCROSSEX_GATE非USDT 任意 必须使用 (不可单独使用CROSSEX_{exchange_type})。支持跨交易所转账(如CROSSEX↔CROSSEX_BINANCE)。CROSSEX_GATE—
- 跨交易所转账:
- 支持代币检查:调用验证
cex_crx_list_crx_transfer_coins - 余额检查:确认转出账户余额充足
- 转账前确认:显示转账摘要(转出方、转入方、代币、数量),需用户确认
- 执行转账:调用
cex_crx_create_crx_transfer - 验证:调用查询转账历史并确认
cex_crx_list_crx_transfers
Module E: Convert Trading
模块E:兑换交易
- Convert Type:
- Flash convert quote:
cex_crx_create_crx_convert_quote - Flash convert execution:
cex_crx_create_crx_convert_order
- Flash convert quote:
- Parameter Confirmation:
- Flash convert: ,
from_coin,to_coin,from_amountexchange_type
- Flash convert:
- Balance Check: Confirm source account has sufficient balance for the convert pair
- Pre-convert Confirmation: Display source asset, target asset, rate, and expected receive amount, then require confirmation
- Quote: Call
cex_crx_create_crx_convert_quote - Execute Convert: Call with the returned
cex_crx_create_crx_convert_orderquote_id - Verification: Call to confirm resulting balances
cex_crx_get_crx_account
- 兑换类型:
- 闪兑报价:
cex_crx_create_crx_convert_quote - 闪兑执行:
cex_crx_create_crx_convert_order
- 闪兑报价:
- 参数确认:
- 闪兑:、
from_coin、to_coin、from_amountexchange_type
- 闪兑:
- 余额检查:确认转出账户对应兑换对的余额充足
- 兑换前确认:显示转出资产、目标资产、汇率及预计到账金额,需用户确认
- 获取报价:调用
cex_crx_create_crx_convert_quote - 执行兑换:使用返回的调用
quote_idcex_crx_create_crx_convert_order - 验证:调用确认余额变化
cex_crx_get_crx_account
Module F: Order Management
模块F:订单管理
- Query Orders:
- Current open orders: Call
cex_crx_list_crx_open_orders - Order details: Call
cex_crx_get_crx_order - Order History: Call (parameters: limit, page, from, to)
cex_crx_list_crx_history_orders
- Current open orders: Call
- Cancel Orders:
- Single cancel: Call
cex_crx_cancel_crx_order
- Single cancel: Call
- Amend Orders:
- Check order status must be
open - Call to amend price or quantity
cex_crx_update_crx_order
- Check order status must be
- Display Results: Display order information in table format
- 查询订单:
- 当前未成交订单:调用
cex_crx_list_crx_open_orders - 订单详情:调用
cex_crx_get_crx_order - 订单历史:调用(参数:limit、page、from、to)
cex_crx_list_crx_history_orders
- 当前未成交订单:调用
- 取消订单:
- 单个取消:调用
cex_crx_cancel_crx_order
- 单个取消:调用
- 修改订单:
- 检查订单状态必须为
open - 调用修改价格或数量
cex_crx_update_crx_order
- 检查订单状态必须为
- 结果展示:以表格格式展示订单信息
Module G: Position Query
模块G:仓位查询
- 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
- Futures positions: Call
- History Query:
- Position History: Call (parameters: limit, page, from, to)
cex_crx_list_crx_history_positions - Margin Position History: Call
cex_crx_list_crx_history_margin_positions - Trade History: Call (parameters: limit, page, from, to)
cex_crx_list_crx_history_trades
- Position History: Call
- Display Format:
- Current positions: Table format (pair, direction, quantity, entry price, unrealized PnL)
- History records: Reverse chronological order, display recent N records
- 查询类型:
- 合约仓位:调用
cex_crx_list_crx_positions - 杠杆仓位:调用
cex_crx_list_crx_margin_positions - 合约杠杆:调用
cex_crx_get_crx_positions_leverage - 杠杆:调用
cex_crx_get_crx_margin_positions_leverage
- 合约仓位:调用
- 历史查询:
- 仓位历史:调用(参数:limit、page、from、to)
cex_crx_list_crx_history_positions - 杠杆仓位历史:调用
cex_crx_list_crx_history_margin_positions - 交易历史:调用(参数:limit、page、from、to)
cex_crx_list_crx_history_trades
- 仓位历史:调用
- 展示格式:
- 当前仓位:表格格式(交易对、方向、数量、入场价、未实现盈亏)
- 历史记录:按时间倒序,显示最近N条记录
Module H: History Query
模块H:历史查询
- Order History:
- Call
cex_crx_list_crx_history_orders - Parameters: (max 100),
limit,page(start timestamp),from(end timestamp)to
- Call
- Trade History:
- Call
cex_crx_list_crx_history_trades - Same parameters as above
- Call
- Position History:
- Call
cex_crx_list_crx_history_positions - Same parameters as above
- Call
- Margin Position History:
- Call
cex_crx_list_crx_history_margin_positions - Same parameters as above
- Call
- Margin Interest History:
- Call
cex_crx_list_crx_history_margin_interests - Same parameters as above
- Call
- 订单历史:
- 调用
cex_crx_list_crx_history_orders - 参数:(最大100)、
limit、page(开始时间戳)、from(结束时间戳)to
- 调用
- 交易历史:
- 调用
cex_crx_list_crx_history_trades - 参数与上述一致
- 调用
- 仓位历史:
- 调用
cex_crx_list_crx_history_positions - 参数与上述一致
- 调用
- 杠杆仓位历史:
- 调用
cex_crx_list_crx_history_margin_positions - 参数与上述一致
- 调用
- 杠杆利息历史:
- 调用
cex_crx_list_crx_history_margin_interests - 参数与上述一致
- 调用
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."
- 凭证:绝不提示或诱导用户在聊天中粘贴API密钥;优先使用安全的本地MCP配置。
- 用户间转账:本Skill不支持P2P或用户间转账;仅允许用户自身账户间的转账(如SPOT ↔ CROSSEX)。
- 交易订单:显示完整订单摘要(交易对、方向、数量、价格、杠杆),下单前需用户确认
- 跨交易所转账:显示转账详情(转出方、转入方、数量、到账时间),需用户确认
- 范围规则:仅调用本Skill中记录的工具。若用户请求未记录的操作,需回复该操作不受本Skill支持。
- 批量操作:显示操作范围及影响,需用户明确确认
示例:「回复「确认」以执行上述操作。」
Error Handling
错误处理
| Error Code | Handling |
|---|---|
| Please confirm if a GATE CrossEx account has been opened. Refer to the GATE Help Center -> CrossEx Trading -> CrossEx Account Operation Guide for instructions. |
| ⚠️ Incorrect parameter name: Market buy must use |
| ⚠️ Limit order error: Limit orders must use |
| Order amount below minimum notional value (typically 3 USDT), increase quantity or amount |
| ⚠️ Flash convert: |
| Prompt that margin/futures trading must specify |
| Insufficient available margin, suggest reducing trade amount or depositing |
| Confirm trading pair format is correct (e.g., GATE_SPOT_BTC_USDT) |
| Check parameter format (qty is numeric string, position_side is LONG/SHORT) |
| Prompt to close position before reversing direction |
| Suggest adjusting quantity to minimum unit of the trading pair |
| Prompt user about rate limit; suggest retrying later or reducing request frequency |
| Invalid exchange type; please check the |
| 错误代码 | 处理方式 |
|---|---|
| 请确认是否已开通Gate CrossEx账户。可参考Gate帮助中心 → CrossEx交易 → CrossEx账户操作指南获取说明。 |
| ⚠️ 参数名称错误:市价买入必须使用 |
| ⚠️ 限价订单错误:限价订单必须使用 |
| 订单金额低于最低名义价值(通常为3 USDT),请增加数量或金额 |
| ⚠️ 闪兑错误: |
| 提示用户杠杆/合约交易必须指定 |
| 可用保证金不足,建议减少交易金额或充值 |
| 请确认交易对格式是否正确(如GATE_SPOT_BTC_USDT) |
| 检查参数格式(qty为数字字符串,position_side为LONG/SHORT) |
| 提示用户在反向操作前需先平仓 |
| 建议调整数量至交易对的最小单位 |
| 提示用户已触发频率限制;建议稍后重试或降低请求频率 |
| 交易所类型无效;请检查 |