gate-exchange-flashswap

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Gate Flash Swap

Gate Flash Swap

General Rules

通用规则

Read and follow the shared runtime rules before proceeding: →
exchange-runtime-rules.md

Gate Flash Swap supports instant cryptocurrency conversion with three swap modes: one-to-one, one-to-many, and many-to-one. This Skill covers the full lifecycle: querying pairs, previewing quotes, executing swaps, and tracking orders.
在操作前请阅读并遵循共享的运行时规则: →
exchange-runtime-rules.md

Gate Flash Swap 支持加密货币即时转换,提供三种闪兑模式:一对一、一对多和多对一。该Skill覆盖全生命周期:查询交易对、预览报价、执行闪兑以及追踪订单。

Trigger Conditions

触发条件

This Skill is activated when the user's request matches any of the following:
  • Wants to swap/convert/exchange one cryptocurrency for another
  • Wants to buy multiple cryptocurrencies at once using one currency (e.g. "buy 1u BTC, 2u ETH")
  • Wants to sell multiple cryptocurrencies into one target currency (e.g. "sell 1 BTC, 2 ETH for USDT")
  • Asks which currencies support flash swap
  • Asks about minimum/maximum swap amounts or limits
  • Requests flash swap order history or specific order details
  • Uses keywords: "flash swap", "convert", "quick exchange", "swap", "instant swap"
当用户请求匹配以下任意场景时,将激活该Skill:
  • 想要将一种加密货币兑换为另一种
  • 想要用一种货币一次性购买多种加密货币(例如“用1u买入BTC、2u买入ETH”)
  • 想要将多种加密货币卖出兑换为一种目标货币(例如“卖出1 BTC、2 ETH兑换为USDT”)
  • 询问哪些货币支持闪兑
  • 询问闪兑的最小/最大金额限制
  • 请求查看闪兑订单历史或特定订单详情
  • 使用关键词:“flash swap”、“convert”、“quick exchange”、“swap”、“instant swap”

Quick Start

快速开始

Common usage examples:
  1. One-to-one swap: "Sell 1 BTC for USDT"
  2. Buy multiple coins: "Buy 1u BTC, 2u ETH, 3u SOL"
  3. Sell multiple coins: "Sell 1 BTC, 2 ETH, 3 SOL for USDT"
  4. Check pairs: "Show me flash swap supported pairs"
  5. Order history: "Show me my flash swap orders"
常见使用示例:
  1. 一对一闪兑:“卖出1 BTC兑换为USDT”
  2. 一键购买多种币种:“买入1u BTC、2u ETH、3u SOL”
  3. 一键卖出多种币种:“卖出1 BTC、2 ETH、3 SOL兑换为USDT”
  4. 查询支持的交易对:“显示支持闪兑的交易对”
  5. 查看订单历史:“显示我的闪兑订单”

Domain Knowledge

领域知识

Flash Swap is a quick crypto exchange service provided by Gate. Users can instantly convert one cryptocurrency to another at the real-time exchange rate without placing orders and waiting for matching.
Swap Modes:
  • One-to-One: Swap a single currency for another single currency (e.g. BTC → USDT)
  • One-to-Many: Swap one currency into multiple target currencies (e.g. USDT → BTC + ETH + SOL)
  • Many-to-One: Swap multiple currencies into one target currency (e.g. BTC + ETH + SOL → USDT)
Key Concepts:
  • sell_asset / buy_asset: The currency symbols for the sell side and buy side
  • sell_amount / buy_amount: Specify one of them; the API calculates the other. For one-to-many, use
    sell_amount
    per target; for many-to-one, use
    sell_amount
    per source
  • quote_id: A unique identifier returned by the preview API, required for order creation. The exact validity period is indicated by
    valid_timestamp
    in the response. Always check this field — do not assume a fixed duration
  • Order Status:
    1
    = success,
    2
    = failed
API Field Naming:
  • cex_fc_list_fc_currency_pairs
    returns snake_case fields:
    sell_min_amount
    ,
    sell_max_amount
    ,
    buy_min_amount
    ,
    buy_max_amount
    ,
    currency_pair
    ,
    sell_currency
    ,
    buy_currency
  • cex_fc_preview_fc_order_v1
    and multi-currency preview APIs return camelCase fields in some environments (e.g.
    sellMinAmount
    ). Always read the actual field names from the response — do not assume a fixed naming convention
  • cex_fc_list_fc_orders
    and
    cex_fc_get_fc_order
    return snake_case:
    sell_currency
    ,
    buy_currency
    ,
    sell_amount
    ,
    buy_amount
    ,
    create_time
Data type note:
order_id
is returned as a string in API responses.
quote_id
is also a string.
MCP Tool Inventory:
ToolTypeDescription
cex_fc_preview_fc_order_v1
PreviewOne-to-one swap quote preview
cex_fc_create_fc_order_v1
CreateOne-to-one swap order creation (requires
quote_id
)
cex_fc_preview_fc_multi_currency_one_to_many_order
PreviewOne-to-many swap quote preview
cex_fc_create_fc_multi_currency_one_to_many_order
CreateOne-to-many swap order creation
cex_fc_preview_fc_multi_currency_many_to_one_order
PreviewMany-to-one swap quote preview
cex_fc_create_fc_multi_currency_many_to_one_order
CreateMany-to-one swap order creation
cex_fc_list_fc_currency_pairs
QueryList supported flash swap pairs and limits
cex_fc_list_fc_orders
QueryQuery flash swap order history
cex_fc_get_fc_order
QueryQuery single flash swap order by ID
Flash Swap 是Gate提供的一种快速加密货币兑换服务。用户可以按照实时汇率即时将一种加密货币转换为另一种,无需下单等待撮合。
闪兑模式:
  • 一对一:将单一货币兑换为另一种单一货币(例如 BTC → USDT)
  • 一对多:将一种货币兑换为多种目标货币(例如 USDT → BTC + ETH + SOL)
  • 多对一:将多种货币兑换为一种目标货币(例如 BTC + ETH + SOL → USDT)
核心概念:
  • sell_asset / buy_asset:卖出和买入的货币符号
  • sell_amount / buy_amount:二者指定其一即可,由API计算另一值。对于一对多模式,为每个目标币种指定
    sell_amount
    ;对于多对一模式,为每个源币种指定
    sell_amount
  • quote_id:预览API返回的唯一标识符,是创建订单的必填项。其确切有效期由响应中的
    valid_timestamp
    字段指示,请务必检查该字段,不要假设固定时长
  • 订单状态
    1
    = 成功,
    2
    = 失败
API字段命名:
  • cex_fc_list_fc_currency_pairs
    返回蛇形命名字段:
    sell_min_amount
    sell_max_amount
    buy_min_amount
    buy_max_amount
    currency_pair
    sell_currency
    buy_currency
  • cex_fc_preview_fc_order_v1
    和多币种预览API在部分环境中返回驼峰命名字段(例如
    sellMinAmount
    )。请始终以响应中的实际字段名为准,不要假设固定命名规则
  • cex_fc_list_fc_orders
    cex_fc_get_fc_order
    返回蛇形命名字段:
    sell_currency
    buy_currency
    sell_amount
    buy_amount
    create_time
数据类型说明:API响应中
order_id
字符串形式返回,
quote_id
同样为字符串类型。
MCP工具清单:
工具类型描述
cex_fc_preview_fc_order_v1
预览一对一闪兑报价预览
cex_fc_create_fc_order_v1
创建一对一闪兑订单创建(需要
quote_id
cex_fc_preview_fc_multi_currency_one_to_many_order
预览一对多闪兑报价预览
cex_fc_create_fc_multi_currency_one_to_many_order
创建一对多闪兑订单创建
cex_fc_preview_fc_multi_currency_many_to_one_order
预览多对一闪兑报价预览
cex_fc_create_fc_multi_currency_many_to_one_order
创建多对一闪兑订单创建
cex_fc_list_fc_currency_pairs
查询列出支持的闪兑交易对及限额
cex_fc_list_fc_orders
查询查询闪兑订单历史
cex_fc_get_fc_order
查询通过ID查询单个闪兑订单

Workflow

工作流程

Step 1: Identify User Intent

步骤1:识别用户意图

Analyze the user's request to determine which flash swap operation to perform.
Intent classification:
User IntentModePreview ToolCreate Tool
Swap one coin for another (e.g. "sell 1 BTC for USDT")one-to-one
cex_fc_preview_fc_order_v1
cex_fc_create_fc_order_v1
One-click swap without separate confirmation (e.g. "directly swap 100 USDT to GT")one-to-one-auto
cex_fc_preview_fc_order_v1
cex_fc_create_fc_order_v1
Buy multiple coins with one currency (e.g. "buy 1u BTC, 2u ETH")one-to-many
cex_fc_preview_fc_multi_currency_one_to_many_order
cex_fc_create_fc_multi_currency_one_to_many_order
Split one currency into multiple by ratio (e.g. "split 1000 USDT, half BTC half ETH")one-to-many-split
cex_fc_preview_fc_multi_currency_one_to_many_order
cex_fc_create_fc_multi_currency_one_to_many_order
Buy specific quantities of multiple coins (e.g. "buy 0.1 BTC and 1 ETH with USDT")one-to-many-buy
cex_fc_preview_fc_multi_currency_one_to_many_order
cex_fc_create_fc_multi_currency_one_to_many_order
Sell multiple coins into one currency (e.g. "sell 1 BTC, 2 ETH for USDT")many-to-one
cex_fc_preview_fc_multi_currency_many_to_one_order
cex_fc_create_fc_multi_currency_many_to_one_order
Consolidate all holdings of certain coins into one (e.g. "convert all my BTC, ETH, DOGE to USDT")many-to-one-all
cex_fc_preview_fc_multi_currency_many_to_one_order
cex_fc_create_fc_multi_currency_many_to_one_order
Preview-only for multi-currency (e.g. "how much GT can I get for my BTC and ETH?")many-to-one-preview
cex_fc_preview_fc_multi_currency_many_to_one_order
Query supported flash swap pairsquery
cex_fc_list_fc_currency_pairs
Query flash swap order listquery
cex_fc_list_fc_orders
Query single flash swap order by IDquery
cex_fc_get_fc_order
Verify latest order result (e.g. "did my swap succeed?")verify-order
cex_fc_get_fc_order
Key data to extract:
  • intent
    : "one_to_one" / "one_to_one_auto" / "one_to_many" / "one_to_many_split" / "one_to_many_buy" / "many_to_one" / "many_to_one_all" / "many_to_one_preview" / "list_pairs" / "list_orders" / "get_order" / "verify_order"
  • sell_asset
    /
    buy_asset
    : currencies involved
  • sell_amount
    /
    buy_amount
    : amounts specified by the user
分析用户请求,确定要执行的闪兑操作类型。
意图分类:
用户意图模式预览工具创建工具
将一种币种兑换为另一种(例如“卖出1 BTC兑换为USDT”)one-to-one
cex_fc_preview_fc_order_v1
cex_fc_create_fc_order_v1
无需单独确认的一键闪兑(例如“直接将100 USDT兑换为GT”)one-to-one-auto
cex_fc_preview_fc_order_v1
cex_fc_create_fc_order_v1
用一种货币购买多种币种(例如“买入1u BTC、2u ETH”)one-to-many
cex_fc_preview_fc_multi_currency_one_to_many_order
cex_fc_create_fc_multi_currency_one_to_many_order
按比例将一种货币拆分兑换为多种(例如“将1000 USDT拆分,一半BTC一半ETH”)one-to-many-split
cex_fc_preview_fc_multi_currency_one_to_many_order
cex_fc_create_fc_multi_currency_one_to_many_order
购买指定数量的多种币种(例如“用USDT买入0.1 BTC和1 ETH”)one-to-many-buy
cex_fc_preview_fc_multi_currency_one_to_many_order
cex_fc_create_fc_multi_currency_one_to_many_order
将多种币种卖出兑换为一种货币(例如“卖出1 BTC、2 ETH兑换为USDT”)many-to-one
cex_fc_preview_fc_multi_currency_many_to_one_order
cex_fc_create_fc_multi_currency_many_to_one_order
将持有的特定币种全部整合为一种(例如“将我所有的BTC、ETH、DOGE转换为USDT”)many-to-one-all
cex_fc_preview_fc_multi_currency_many_to_one_order
cex_fc_create_fc_multi_currency_many_to_one_order
仅预览多币种兑换结果(例如“我的BTC和ETH能兑换多少GT?”)many-to-one-preview
cex_fc_preview_fc_multi_currency_many_to_one_order
查询支持的闪兑交易对query
cex_fc_list_fc_currency_pairs
查询闪兑订单列表query
cex_fc_list_fc_orders
通过ID查询单个闪兑订单query
cex_fc_get_fc_order
验证最新订单结果(例如“我的闪兑成功了吗?”)verify-order
cex_fc_get_fc_order
需要提取的关键数据:
  • intent
    : "one_to_one" / "one_to_one_auto" / "one_to_many" / "one_to_many_split" / "one_to_many_buy" / "many_to_one" / "many_to_one_all" / "many_to_one_preview" / "list_pairs" / "list_orders" / "get_order" / "verify_order"
  • sell_asset
    /
    buy_asset
    : 涉及的币种
  • sell_amount
    /
    buy_amount
    : 用户指定的金额

Step 2: Pre-validate Swap Amount (before any preview)

步骤2:预验证闪兑金额(预览前)

Before calling the preview API, validate the user's amount against the pair's min/max limits to avoid unnecessary API calls.
Call
cex_fc_list_fc_currency_pairs
with:
  • currency
    : the sell_asset or buy_asset from the user's request
Key data to extract:
  • sell_min_amount
    /
    sell_max_amount
    : allowed range for the sell side
  • buy_min_amount
    /
    buy_max_amount
    : allowed range for the buy side
Validation logic:
  • If the user's
    sell_amount
    <
    sell_min_amount
    , inform them the amount is below the minimum and do NOT proceed to preview
  • If the user's
    sell_amount
    >
    sell_max_amount
    , inform them the amount exceeds the maximum
  • If the pair is not found, the currency is not supported for flash swap
Skip this step if the user explicitly requests "one-click" or "direct" swap to minimize latency.
在调用预览API之前,先根据交易对的最小/最大限额验证用户输入的金额,避免不必要的API调用。
调用
cex_fc_list_fc_currency_pairs
,参数包括:
  • currency
    : 用户请求中的sell_asset或buy_asset
需要提取的关键数据:
  • sell_min_amount
    /
    sell_max_amount
    : 卖出侧允许的金额范围
  • buy_min_amount
    /
    buy_max_amount
    : 买入侧允许的金额范围
验证逻辑:
  • 如果用户的
    sell_amount
    <
    sell_min_amount
    ,告知用户金额低于最小值,不进行预览
  • 如果用户的
    sell_amount
    >
    sell_max_amount
    ,告知用户金额超过最大值
  • 如果未找到对应交易对,说明该币种不支持闪兑
如果用户明确要求“一键”或“直接”闪兑,可跳过此步骤以减少延迟。

Step 3: Preview — One-to-One Swap (if intent = one_to_one or one_to_one_auto)

步骤3:预览 — 一对一闪兑(当意图为one_to_one或one_to_one_auto时)

Call
cex_fc_preview_fc_order_v1
with:
  • sell_asset
    (required, string): asset to sell, e.g. "BTC"
  • buy_asset
    (required, string): asset to buy, e.g. "USDT"
  • sell_amount
    (string): amount to sell. Choose one between
    sell_amount
    and
    buy_amount
  • buy_amount
    (string): amount to buy. Choose one between
    sell_amount
    and
    buy_amount
Key data to extract:
  • quote_id
    : required for creating the order
  • sell_asset
    /
    sell_amount
    : confirmed sell side
  • buy_asset
    /
    buy_amount
    : calculated buy side
  • price
    : exchange rate
  • valid_timestamp
    : quote expiry time
For one_to_one intent: Present the preview to the user and ask for confirmation before proceeding to create.
For one_to_one_auto intent: The user has pre-authorized the swap by explicitly requesting "direct" or "one-click" execution. Skip the separate confirmation prompt and immediately proceed to Step 4. This is compliant with the Safety Rules as the user's direct request serves as confirmation. However: if the preview returns any error (code != 0), do NOT proceed to Step 4 — report the error to the user immediately.
调用
cex_fc_preview_fc_order_v1
,参数包括:
  • sell_asset
    (必填,字符串): 要卖出的资产,例如"BTC"
  • buy_asset
    (必填,字符串): 要买入的资产,例如"USDT"
  • sell_amount
    (字符串): 卖出金额。
    sell_amount
    buy_amount
    二选一
  • buy_amount
    (字符串): 买入金额。
    sell_amount
    buy_amount
    二选一
需要提取的关键数据:
  • quote_id
    : 创建订单的必填项
  • sell_asset
    /
    sell_amount
    : 确认的卖出侧信息
  • buy_asset
    /
    buy_amount
    : 计算得出的买入侧信息
  • price
    : 兑换汇率
  • valid_timestamp
    : 报价过期时间
对于one_to_one意图: 向用户展示预览结果,等待用户确认后再执行创建步骤。
对于one_to_one_auto意图: 用户明确要求“直接”或“一键”执行,即已预先授权闪兑。跳过单独的确认提示,直接进入步骤4。这符合安全规则,因为用户的直接请求可视为确认。但需注意: 如果预览返回错误(code != 0),请勿进入步骤4 — 立即向用户报告错误。

Step 4: Create — One-to-One Swap (after user confirms Step 3, or auto for one_to_one_auto)

步骤4:创建 — 一对一闪兑(用户确认步骤3后,或one_to_one_auto模式自动执行)

Pre-condition: Step 3 must have returned
code == 0
with a valid
quote_id
. If Step 3 failed (any
code != 0
), do NOT execute this step. Never fabricate a
quote_id
.
Call
cex_fc_create_fc_order_v1
with body JSON string:
  • quote_id
    (required, string): from preview response — must be the actual value returned by the API
  • sell_asset
    (required, string): asset to sell
  • sell_amount
    (required, string): amount to sell
  • buy_asset
    (required, string): asset to buy
  • buy_amount
    (required, string): amount to buy
Key data to extract:
  • id
    : created order ID
  • status
    :
    1
    = success,
    2
    = failed
  • sell_asset
    /
    sell_amount
    /
    buy_asset
    /
    buy_amount
    : confirmed amounts
  • price
    : executed rate
  • create_time
    : order creation timestamp
  • error.code
    /
    error.message
    : check for errors even when HTTP status is 200
Order result verification: After creating, check the
status
field:
  • If
    status == 1
    : Inform the user the swap succeeded, show the final
    buy_amount
    received
  • If
    status == 2
    : Inform the user the swap failed, suggest re-previewing and trying again
  • If
    error.code != 0
    : Report the specific error message to the user
前置条件: 步骤3必须返回
code == 0
且包含有效的
quote_id
。如果步骤3失败(code != 0),请勿执行此步骤。绝对不要伪造
quote_id
调用
cex_fc_create_fc_order_v1
,请求体JSON字符串包含:
  • quote_id
    (必填,字符串): 来自预览响应的实际值
  • sell_asset
    (必填,字符串): 要卖出的资产
  • sell_amount
    (必填,字符串): 卖出金额
  • buy_asset
    (必填,字符串): 要买入的资产
  • buy_amount
    (必填,字符串): 买入金额
需要提取的关键数据:
  • id
    : 创建的订单ID
  • status
    :
    1
    = 成功,
    2
    = 失败
  • sell_asset
    /
    sell_amount
    /
    buy_asset
    /
    buy_amount
    : 确认的金额信息
  • price
    : 执行汇率
  • create_time
    : 订单创建时间戳
  • error.code
    /
    error.message
    : 即使HTTP状态为200,也要检查是否存在错误
订单结果验证: 创建完成后,检查
status
字段:
  • 如果
    status == 1
    : 告知用户闪兑成功,展示最终收到的
    buy_amount
  • 如果
    status == 2
    : 告知用户闪兑失败,建议重新预览后重试
  • 如果
    error.code != 0
    : 向用户报告具体错误信息

Step 5: Preview — One-to-Many Swap (if intent = one_to_many, one_to_many_split, or one_to_many_buy)

步骤5:预览 — 一对多闪兑(当意图为one_to_many、one_to_many_split或one_to_many_buy时)

For one_to_many_split: The user specifies a total amount and a distribution ratio (e.g. "split 1000 USDT, half BTC half ETH"). Calculate the per-target
sell_amount
before calling the API.
For one_to_many_buy: The user specifies target
buy_amount
per currency (e.g. "buy 0.1 BTC and 1 ETH"). Use the
buy_amount
field instead of
sell_amount
in the params array to let the API calculate the required sell amount.
Call
cex_fc_preview_fc_multi_currency_one_to_many_order
with body JSON string:
  • params
    (required, array): each element contains:
    • sell_asset
      (required, string): source currency (same for all, e.g. "USDT")
    • sell_amount
      (string): amount of source currency to spend on this target
    • buy_asset
      (required, string): target currency (e.g. "BTC", "ETH")
    • buy_amount
      (string): alternative to sell_amount
Key data to extract:
  • orders[]
    : array of preview results, each containing
    quote_id
    ,
    sell_amount
    ,
    buy_amount
    ,
    price
    , and
    error
  • total_consume_amount
    : total amount of source currency consumed
  • Check each order's
    error.code
    — if non-zero, that item failed to get a quote
Present the full preview table and highlight any failed items. Ask for confirmation.
对于one_to_many_split: 用户指定总金额和分配比例(例如“将1000 USDT拆分,一半BTC一半ETH”)。在调用API前计算每个目标币种的
sell_amount
对于one_to_many_buy: 用户指定每个币种的目标
buy_amount
(例如“买入0.1 BTC和1 ETH”)。在参数数组中使用
buy_amount
字段,由API计算所需的卖出金额。
调用
cex_fc_preview_fc_multi_currency_one_to_many_order
,请求体JSON字符串包含:
  • params
    (必填,数组): 每个元素包含:
    • sell_asset
      (必填,字符串): 源币种(所有元素相同,例如"USDT")
    • sell_amount
      (字符串): 用于该目标币种的源币种金额
    • buy_asset
      (必填,字符串): 目标币种(例如"BTC"、"ETH")
    • buy_amount
      (字符串):
      sell_amount
      的替代项
需要提取的关键数据:
  • orders[]
    : 预览结果数组,每个元素包含
    quote_id
    sell_amount
    buy_amount
    price
    error
  • total_consume_amount
    : 消耗的源币种总金额
  • 检查每个订单的
    error.code
    — 非0表示该项目获取报价失败
向用户展示完整的预览表格,并高亮失败项目,等待用户确认。

Step 6: Create — One-to-Many Swap (after user confirms Step 5)

步骤6:创建 — 一对多闪兑(用户确认步骤5后)

Important: Exclude any items that failed in preview (where
error.code != 0
or
quote_id
is missing).
Call
cex_fc_create_fc_multi_currency_one_to_many_order
with body JSON string:
  • params
    (required, array): each element contains:
    • sell_asset
      (required, string): source currency
    • sell_amount
      (required, string): amount to sell
    • buy_asset
      (required, string): target currency
    • buy_amount
      (required, string): amount to buy (from preview)
    • quote_id
      (string): from preview response
Key data to extract:
  • orders[]
    : array of created orders, each with
    id
    ,
    status
    ,
    error
  • total_consume_amount
    : actual total consumed
  • Check each order's
    error.code
    for per-item failures
重要提示: 排除所有预览失败的项目(
error.code != 0
或缺少
quote_id
的项目)。
调用
cex_fc_create_fc_multi_currency_one_to_many_order
,请求体JSON字符串包含:
  • params
    (必填,数组): 每个元素包含:
    • sell_asset
      (必填,字符串): 源币种
    • sell_amount
      (必填,字符串): 卖出金额
    • buy_asset
      (必填,字符串): 目标币种
    • buy_amount
      (必填,字符串): 买入金额(来自预览结果)
    • quote_id
      (字符串): 来自预览响应
需要提取的关键数据:
  • orders[]
    : 创建的订单数组,每个元素包含
    id
    status
    error
  • total_consume_amount
    : 实际消耗的总金额
  • 检查每个订单的
    error.code
    ,查看是否有项目失败

Step 7: Preview — Many-to-One Swap (if intent = many_to_one, many_to_one_all, or many_to_one_preview)

步骤7:预览 — 多对一闪兑(当意图为many_to_one、many_to_one_all或many_to_one_preview时)

For many_to_one_all: The user wants to consolidate all holdings of specified currencies. Before previewing, query the user's spot account balances to determine the actual amount for each currency. Filter out currencies whose balance is below the flash swap minimum amount (
sell_min_amount
from
cex_fc_list_fc_currency_pairs
).
Call
cex_fc_preview_fc_multi_currency_many_to_one_order
with body JSON string:
  • params
    (required, array): each element contains:
    • sell_asset
      (required, string): source currency (e.g. "BTC", "ETH")
    • sell_amount
      (string): amount to sell
    • buy_asset
      (required, string): target currency (same for all, e.g. "USDT")
    • buy_amount
      (string): alternative to sell_amount
Key data to extract:
  • orders[]
    : array of preview results with
    quote_id
    ,
    sell_amount
    ,
    buy_amount
    ,
    price
    ,
    error
  • total_acquire_amount
    : total amount of target currency to receive
  • Check each order's
    error.code
    — non-zero means that item failed
Present the full preview table and highlight any failed items.
For many_to_one_preview: Present the total expected
buy_amount
(sum of all successful items) and do NOT proceed to create. Inform the user this is a preview only.
For many_to_one and many_to_one_all: Ask for user confirmation before proceeding to create.
对于many_to_one_all: 用户想要将持有的特定币种全部整合为一种。在预览前,先查询用户的现货账户余额,确定每个币种的实际金额。过滤掉余额低于闪兑最低金额(来自
cex_fc_list_fc_currency_pairs
sell_min_amount
)的币种。
调用
cex_fc_preview_fc_multi_currency_many_to_one_order
,请求体JSON字符串包含:
  • params
    (必填,数组): 每个元素包含:
    • sell_asset
      (必填,字符串): 源币种(例如"BTC"、"ETH")
    • sell_amount
      (字符串): 卖出金额
    • buy_asset
      (必填,字符串): 目标币种(所有元素相同,例如"USDT")
    • buy_amount
      (字符串):
      sell_amount
      的替代项
需要提取的关键数据:
  • orders[]
    : 预览结果数组,包含
    quote_id
    sell_amount
    buy_amount
    price
    error
  • total_acquire_amount
    : 预计收到的目标币种总金额
  • 检查每个订单的
    error.code
    — 非0表示该项目失败
向用户展示完整的预览表格,并高亮失败项目。
对于many_to_one_preview: 展示预计收到的总
buy_amount
(所有成功项目的总和),不执行创建操作,告知用户这仅为预览结果。
对于many_to_one和many_to_one_all: 等待用户确认后再执行创建步骤。

Step 8: Create — Many-to-One Swap (after user confirms Step 7)

步骤8:创建 — 多对一闪兑(用户确认步骤7后)

Important: Exclude any items that failed in preview. Including a failed item (e.g.
buy_amount: "0"
) will cause the entire request to be rejected with
code: 4
.
Call
cex_fc_create_fc_multi_currency_many_to_one_order
with body JSON string:
  • params
    (required, array): each element contains:
    • sell_asset
      (required, string): source currency
    • sell_amount
      (required, string): amount to sell
    • buy_asset
      (required, string): target currency
    • buy_amount
      (required, string): amount to buy (from preview)
    • quote_id
      (string): from preview response
Key data to extract:
  • orders[]
    : array of created orders with
    id
    ,
    status
    ,
    error
  • total_acquire_amount
    : actual total received
重要提示: 排除所有预览失败的项目。如果包含失败项目(例如
buy_amount: "0"
),会导致整个请求被拒绝,返回
code: 4
调用
cex_fc_create_fc_multi_currency_many_to_one_order
,请求体JSON字符串包含:
  • params
    (必填,数组): 每个元素包含:
    • sell_asset
      (必填,字符串): 源币种
    • sell_amount
      (必填,字符串): 卖出金额
    • buy_asset
      (必填,字符串): 目标币种
    • buy_amount
      (必填,字符串): 买入金额(来自预览结果)
    • quote_id
      (字符串): 来自预览响应
需要提取的关键数据:
  • orders[]
    : 创建的订单数组,包含
    id
    status
    error
  • total_acquire_amount
    : 实际收到的总金额

Step 9: Query Flash Swap Pairs (if intent = list_pairs)

步骤9:查询闪兑交易对(当意图为list_pairs时)

Call
cex_fc_list_fc_currency_pairs
with:
  • currency
    (optional, string): filter by currency symbol
  • limit
    (optional, number): max items returned (default 1000)
  • page
    (optional, number): page number
Large result set warning: Without a currency filter, this may return thousands of rows. Summarize the total count, show a sample of 20 pairs, and suggest filtering by currency.
Key data to extract:
  • items[]
    : list of currency pairs with
    currency_pair
    ,
    sell_currency
    ,
    buy_currency
    ,
    sell_min_amount
    ,
    sell_max_amount
    ,
    buy_min_amount
    ,
    buy_max_amount
调用
cex_fc_list_fc_currency_pairs
,参数包括:
  • currency
    (可选,字符串): 按币种符号过滤
  • limit
    (可选,数字): 最大返回数量(默认1000)
  • page
    (可选,数字): 页码
大数据集警告: 如果不设置币种过滤,可能返回数千条结果。请汇总总数,展示20个示例,并建议用户按币种过滤。
需要提取的关键数据:
  • items[]
    : 交易对列表,包含
    currency_pair
    sell_currency
    buy_currency
    sell_min_amount
    sell_max_amount
    buy_min_amount
    buy_max_amount

Step 10: Query Flash Swap Order History (if intent = list_orders)

步骤10:查询闪兑订单历史(当意图为list_orders时)

Before calling, validate the
status
parameter if provided. Only
1
(success) and
2
(failed) are valid.
Call
cex_fc_list_fc_orders
with:
  • status
    (optional, number):
    1
    = success,
    2
    = failed
  • sell_currency
    (optional, string): filter by sell currency
  • buy_currency
    (optional, string): filter by buy currency
  • limit
    (optional, number): max records
  • page
    (optional, number): page number
  • reverse
    (optional, boolean):
    true
    for newest first (default)
Key data to extract:
  • Order list with
    id
    ,
    sell_currency
    ,
    buy_currency
    ,
    sell_amount
    ,
    buy_amount
    ,
    price
    ,
    status
    ,
    create_time
调用前,如果用户提供了
status
参数,需先验证。仅
1
(成功)和
2
(失败)为有效值。
调用
cex_fc_list_fc_orders
,参数包括:
  • status
    (可选,数字):
    1
    = 成功,
    2
    = 失败
  • sell_currency
    (可选,字符串): 按卖出币种过滤
  • buy_currency
    (可选,字符串): 按买入币种过滤
  • limit
    (可选,数字): 最大记录数
  • page
    (可选,数字): 页码
  • reverse
    (可选,布尔值):
    true
    表示按最新优先排序(默认)
需要提取的关键数据:
  • 订单列表,包含
    id
    sell_currency
    buy_currency
    sell_amount
    buy_amount
    price
    status
    create_time

Step 11: Query Single Order (if intent = get_order or verify_order)

步骤11:查询单个订单(当意图为get_order或verify_order时)

Call
cex_fc_get_fc_order
with:
  • order_id
    (required, number): the order ID to query
If the API returns 404, inform the user the order was not found.
For verify_order: After retrieving the order, check
status
:
  • If
    status == 1
    : Confirm the swap succeeded, show the final
    buy_amount
    actually received
  • If
    status == 2
    : Inform the user the swap failed, suggest re-previewing and placing a new order
Key data to extract:
  • Full order details:
    id
    ,
    sell_currency
    ,
    buy_currency
    ,
    sell_amount
    ,
    buy_amount
    ,
    price
    ,
    status
    ,
    create_time
调用
cex_fc_get_fc_order
,参数包括:
  • order_id
    (必填,数字): 要查询的订单ID
如果API返回404,告知用户未找到该订单。
对于verify_order: 查询订单后,检查
status
:
  • 如果
    status == 1
    : 确认闪兑成功,展示最终实际收到的
    buy_amount
  • 如果
    status == 2
    : 告知用户闪兑失败,建议重新预览后下单
需要提取的关键数据:
  • 完整订单详情:
    id
    sell_currency
    buy_currency
    sell_amount
    buy_amount
    price
    status
    create_time

Step 12: Format and Present Results

步骤12:格式化并展示结果

Format results using the appropriate Report Template. For swap operations, always show:
  1. Preview summary table with quote details
  2. After creation, show order IDs, status, and any per-item errors
使用对应的报告模板格式化结果。对于闪兑操作,需始终展示:
  1. 包含报价详情的预览汇总表格
  2. 创建完成后,展示订单ID、状态以及每个项目的错误信息

Error Handling

错误处理

Error ScenarioHandling
Region/compliance restriction (code -2)CRITICAL: The API returns
{"code":-2,"message":"This service is not supported in your region"}
. This means flash swap is not available for this user's region. Immediately stop all operations, do NOT proceed to create, and inform the user: "Flash swap is not available in your region due to compliance restrictions." Do NOT fabricate any results
Preview failed (any non-zero code)CRITICAL: If the preview API returns any
code != 0
, the operation has FAILED. Do NOT proceed to the create step. Do NOT fabricate a
quote_id
. Report the exact error code and message to the user. Never show "success" when the API returned an error
Amount below minimum (sell_amount < sell_min_amount)Query
cex_fc_list_fc_currency_pairs
first. If below minimum, inform the user with the exact minimum and do NOT call preview
Amount above maximum (sell_amount > sell_max_amount)Inform the user the amount exceeds the maximum allowed, show the limit
Quote expired (code 1052)The
quote_id
has expired. Re-run the preview to get a fresh quote, then immediately create the order
Unable to get accurate quote (code 4 / 400001 / 400007)These are quote-related errors from the server.
code 4
is a top-level rejection (often caused by including a failed item).
400001
and
400007
are per-item errors meaning the server cannot price this pair/amount. Suggest adjusting the amount, trying a different pair, or removing the failed item
Multi-currency create: entire request rejected (code 4)Likely caused by including a preview-failed item with
buy_amount: "0"
. Remove all items where preview
error.code != 0
and retry
Order status == 2 (failed)Inform the user the swap failed. Suggest re-previewing with adjusted parameters and trying again
Order not found (404)The
order_id
does not exist. Suggest verifying the ID or querying the order list first
MCP service connection failurePrompt user to check network or VPN, suggest retrying later
order_id not providedPrompt user to provide an order ID, or use the order list query first
Empty query resultsInform user no data was found, suggest adjusting filters
Currency not supportedInform user that the specified currency is not available for flash swap
Invalid status valueStatus only accepts
1
(success) or
2
(failed). Reject other values before calling the API
Large result set (thousands of rows)Summarize total count, show sample of 20, suggest filtering by currency
Balance below minimum for many_to_one_allWhen consolidating all holdings, skip currencies whose balance < sell_min_amount and inform the user which were excluded
错误场景处理方式
区域/合规限制(code -2)严重: API返回
{"code":-2,"message":"This service is not supported in your region"}
。这表示用户所在区域不支持闪兑。立即停止所有操作,不执行创建步骤,并告知用户:“由于合规限制,您所在区域暂不支持闪兑服务。”绝对不要伪造任何结果
预览失败(任何非0 code)严重: 如果预览API返回任何
code != 0
,操作已失败。请勿执行创建步骤。绝对不要伪造
quote_id
。向用户报告确切的错误代码和信息。绝对不要在API返回错误时展示“成功”结果
金额低于最小值(sell_amount < sell_min_amount)先调用
cex_fc_list_fc_currency_pairs
查询。如果金额低于最小值,告知用户确切的最小值,不调用预览API
金额超过最大值(sell_amount > sell_max_amount)告知用户金额超过允许的最大值,展示限额
报价过期(code 1052)
quote_id
已过期。重新执行预览获取新报价,然后立即创建订单
无法获取准确报价(code 4 / 400001 / 400007)这些是服务器返回的报价相关错误。
code 4
为顶层拒绝(通常因包含失败项目导致)。
400001
400007
为项目级错误,表示服务器无法为该交易对/金额定价。建议用户调整金额、更换交易对或移除失败项目
多币种创建请求被整体拒绝(code 4)可能因包含预览失败的项目(例如
buy_amount: "0"
)导致。移除所有预览
error.code != 0
的项目后重试
订单状态 == 2(失败)告知用户闪兑失败,建议调整参数后重新预览并尝试
订单未找到(404)
order_id
不存在。建议用户验证ID或先查询订单列表
MCP服务连接失败提示用户检查网络或VPN,建议稍后重试
未提供order_id提示用户提供订单ID,或先查询订单列表
查询结果为空告知用户未找到数据,建议调整过滤条件
币种不支持告知用户指定币种不支持闪兑
无效的status值status仅接受
1
(成功)或
2
(失败)。调用API前拒绝其他值
大数据集(数千条结果)汇总总数,展示20个示例,建议用户按币种过滤
many_to_one_all模式下余额低于最小值整合所有持仓时,跳过余额 < sell_min_amount的币种,并告知用户哪些币种被排除

Safety Rules

安全规则

  • NEVER fabricate results: If any API call returns an error (code != 0), you MUST report the actual error to the user. NEVER fabricate a successful response, fake order ID, fake quote_id, or fake transaction result. This is the most critical safety rule
  • NEVER proceed after preview failure: If the preview API returns any error (code != 0, including code -2 for region restriction), you MUST stop immediately. Do NOT call the create API. Do NOT invent a quote_id (e.g. "AUTO-GT-001"). Report the error honestly
  • Always preview before creating: Every swap must go through the preview step first. For standard flows, show the quote to the user and wait for explicit confirmation before calling the create API. For
    one_to_one_auto
    mode only: the user has explicitly requested a direct swap (e.g. "directly swap", "one-click"), which counts as pre-authorized confirmation — proceed to create immediately after preview without a separate confirmation prompt
  • No write operations without confirmation: Never call any create/order API unless (a) the user has explicitly confirmed the preview result, or (b) the user explicitly requested a one-click/direct swap. Query operations (list pairs, list orders, get order) do not require confirmation
  • Exclude failed preview items: When creating multi-currency orders, only include items that succeeded in preview (
    error.code == 0
    )
  • Do not expose sensitive info: Never output API Key, Secret, or authentication tokens
  • Display amounts as-is: Do not round or modify amounts from API responses
  • Warn on large amounts: If the total swap amount exceeds 10,000 USDT equivalent, remind the user to double-check
  • Stale confirmation handling: If the user confirms a previous preview, check whether the current time has exceeded the
    valid_timestamp
    from that preview response. If expired, automatically re-preview to get a fresh quote before creating
  • 绝对不要伪造结果: 如果任何API调用返回错误(code != 0),必须向用户报告实际错误。绝对不要伪造成功响应、虚假订单ID、虚假quote_id或虚假交易结果。这是最关键的安全规则
  • 预览失败后绝对不要继续: 如果预览API返回任何错误(code != 0,包括区域限制的code -2),必须立即停止。不要调用创建API。不要编造quote_id(例如“AUTO-GT-001”)。如实报告错误
  • 创建前必须预览: 所有闪兑操作必须先经过预览步骤。对于标准流程,向用户展示报价并等待明确确认后再调用创建API。仅
    one_to_one_auto
    模式例外:用户明确要求一键/直接闪兑,这视为预先授权确认 — 预览后直接执行创建,无需单独确认提示
  • 无确认不执行写入操作: 除非(a)用户已明确确认预览结果,或(b)用户明确要求一键/直接闪兑,否则不要调用任何创建/订单API。查询操作(列出交易对、订单列表、查询单个订单)无需确认
  • 排除预览失败的项目: 创建多币种订单时,仅包含预览成功的项目(
    error.code == 0
  • 不要暴露敏感信息: 绝对不要输出API Key、Secret或认证令牌
  • 按原样展示金额: 不要对API返回的金额进行四舍五入或修改
  • 大额提醒: 如果闪兑总金额超过10000 USDT等值,提醒用户再次核对
  • 过期确认处理: 如果用户确认了之前的预览结果,检查当前时间是否超过该预览响应中的
    valid_timestamp
    。如果已过期,自动重新预览获取新报价后再创建订单

Judgment Logic Summary

判断逻辑汇总

ConditionActionTool
User wants to swap one coin for anotherPreview one-to-one, then create after confirmation
cex_fc_preview_fc_order_v1
cex_fc_create_fc_order_v1
User says "directly" or "one-click" swapPreview + create automatically without separate confirmation
cex_fc_preview_fc_order_v1
cex_fc_create_fc_order_v1
User references a previous quote_id for confirmationCreate order using the referenced quote_id
cex_fc_create_fc_order_v1
Swap amount is suspiciously smallPre-validate against pair min amount before preview
cex_fc_list_fc_currency_pairs
User wants to buy multiple coins with one currencyPreview one-to-many, then create
cex_fc_preview_fc_multi_currency_one_to_many_order
cex_fc_create_fc_multi_currency_one_to_many_order
User wants to split one currency by ratio (e.g. "half and half")Calculate per-target sell_amount, then preview one-to-many
cex_fc_preview_fc_multi_currency_one_to_many_order
cex_fc_create_fc_multi_currency_one_to_many_order
User specifies buy quantities (e.g. "buy 0.1 BTC and 1 ETH")Use buy_amount in params, preview one-to-many
cex_fc_preview_fc_multi_currency_one_to_many_order
cex_fc_create_fc_multi_currency_one_to_many_order
User wants to sell multiple coins into one currencyPreview many-to-one, then create
cex_fc_preview_fc_multi_currency_many_to_one_order
cex_fc_create_fc_multi_currency_many_to_one_order
User wants to consolidate "all" of certain holdingsQuery balances, filter by min amounts, preview many-to-one, then create
cex_fc_list_fc_currency_pairs
cex_fc_preview_fc_multi_currency_many_to_one_order
cex_fc_create_fc_multi_currency_many_to_one_order
User asks "how much can I get" without wanting to executePreview-only many-to-one, sum buy_amounts, do NOT create
cex_fc_preview_fc_multi_currency_many_to_one_order
Preview returns items with
error.code != 0
Warn user, exclude failed items before creating
Preview returns code -2 (region restriction)STOP immediately. Do NOT create. Inform user flash swap is not available in their region
Preview returns any non-zero codeSTOP. Do NOT create. Do NOT fabricate quote_id. Report exact error to user
Create returns code 1052 (quote expired)Re-run preview to get fresh quotePreview tool
Create returns per-item error (400001/400007)Report which items failed, suggest adjusting amounts
Multi-currency create rejected with code 4Remove failed preview items and retryCreate tool
Order status == 2 after createInform user swap failed, suggest retrying
User asks "did my swap succeed?"Query order by ID, check status field
cex_fc_get_fc_order
User asks about supported pairs or limitsQuery pair list
cex_fc_list_fc_currency_pairs
User queries order historyQuery order list
cex_fc_list_fc_orders
User queries specific order by IDQuery single order
cex_fc_get_fc_order
Order not found (404)Inform user, suggest checking ID
User provides invalid status filterReject and inform valid values are 1 or 2
条件操作工具
用户想要将一种币种兑换为另一种预览一对一闪兑,用户确认后创建
cex_fc_preview_fc_order_v1
cex_fc_create_fc_order_v1
用户要求“直接”或“一键”闪兑预览后自动创建,无需单独确认
cex_fc_preview_fc_order_v1
cex_fc_create_fc_order_v1
用户引用之前的quote_id进行确认使用该quote_id创建订单
cex_fc_create_fc_order_v1
闪兑金额异常小预览前先通过交易对查询验证金额
cex_fc_list_fc_currency_pairs
用户想用一种货币购买多种币种预览一对多闪兑,用户确认后创建
cex_fc_preview_fc_multi_currency_one_to_many_order
cex_fc_create_fc_multi_currency_one_to_many_order
用户要求按比例拆分兑换(例如“各一半”)计算每个目标币种的sell_amount,然后预览一对多闪兑
cex_fc_preview_fc_multi_currency_one_to_many_order
cex_fc_create_fc_multi_currency_one_to_many_order
用户指定买入数量(例如“买入0.1 BTC和1 ETH”)在参数中使用buy_amount,预览一对多闪兑
cex_fc_preview_fc_multi_currency_one_to_many_order
cex_fc_create_fc_multi_currency_one_to_many_order
用户想要将多种币种卖出兑换为一种预览多对一闪兑,用户确认后创建
cex_fc_preview_fc_multi_currency_many_to_one_order
cex_fc_create_fc_multi_currency_many_to_one_order
用户想要将特定币种的所有持仓整合为一种查询余额,过滤低于最小值的币种,预览多对一闪兑,用户确认后创建
cex_fc_list_fc_currency_pairs
cex_fc_preview_fc_multi_currency_many_to_one_order
cex_fc_create_fc_multi_currency_many_to_one_order
用户询问“能兑换多少”但不想执行仅预览多对一闪兑,汇总buy_amount,不创建
cex_fc_preview_fc_multi_currency_many_to_one_order
预览返回error.code != 0的项目提醒用户,创建时排除失败项目
预览返回code -2(区域限制)立即停止。不执行创建。告知用户所在区域不支持闪兑
预览返回任何非0 code停止操作。不执行创建。不伪造quote_id。向用户报告确切错误
创建返回code 1052(报价过期)重新预览获取新报价预览工具
创建返回项目级错误(400001/400007)报告哪些项目失败,建议调整金额
多币种创建被code 4拒绝移除预览失败的项目后重试创建工具
创建后订单状态 == 2告知用户闪兑失败,建议重试
用户询问“我的闪兑成功了吗?”通过ID查询订单,检查状态字段
cex_fc_get_fc_order
用户询问支持的交易对或限额查询交易对列表
cex_fc_list_fc_currency_pairs
用户查询订单历史查询订单列表
cex_fc_list_fc_orders
用户通过ID查询特定订单查询单个订单
cex_fc_get_fc_order
订单未找到(404)告知用户,建议检查ID
用户提供无效的status过滤条件拒绝并告知有效值为1或2

Report Template

报告模板

Timestamp format: All
{timestamp}
placeholders use ISO 8601 format:
YYYY-MM-DD HH:mm:ss UTC
.
时间戳格式: 所有
{timestamp}
占位符使用ISO 8601格式:
YYYY-MM-DD HH:mm:ss UTC

One-to-One Preview Report

一对一预览报告

markdown
undefined
markdown
undefined

Flash Swap Preview (One-to-One)

闪兑预览(一对一)

Quote ID: {quote_id} Valid Until: {valid_timestamp}
SellAmountBuyAmountRate
{sell_asset}{sell_amount}{buy_asset}{buy_amount}{price}
Proceed with this swap? (Yes/No)
undefined
报价ID: {quote_id} 有效截止时间: {valid_timestamp}
卖出币种金额买入币种金额汇率
{sell_asset}{sell_amount}{buy_asset}{buy_amount}{price}
是否确认执行该闪兑?(是/否)
undefined

One-to-One Order Report

一对一订单报告

markdown
undefined
markdown
undefined

Flash Swap Order Created

闪兑订单已创建

Order ID: {id} Status: {status_text} Created At: {create_time}
SellAmountBuyAmountRate
{sell_asset}{sell_amount}{buy_asset}{buy_amount}{price}
undefined
订单ID: {id} 状态: {status_text} 创建时间: {create_time}
卖出币种金额买入币种金额汇率
{sell_asset}{sell_amount}{buy_asset}{buy_amount}{price}
undefined

Multi-Currency Preview Report (One-to-Many / Many-to-One)

多币种预览报告(一对多 / 多对一)

markdown
undefined
markdown
undefined

Flash Swap Preview ({mode})

闪兑预览({mode})

Total {direction}: {total_amount} {currency}
#SellSell AmountBuyBuy AmountRateQuote IDStatus
{n}{sell_asset}{sell_amount}{buy_asset}{buy_amount}{price}{quote_id}{status}
{failed_count} item(s) failed to get a quote and will be excluded from the order. Proceed with {success_count} successful item(s)? (Yes/No)
undefined
总{direction}: {total_amount} {currency}
序号卖出币种卖出金额买入币种买入金额汇率报价ID状态
{n}{sell_asset}{sell_amount}{buy_asset}{buy_amount}{price}{quote_id}{status}
有{failed_count}个项目获取报价失败,将被排除在订单外。 是否确认执行{success_count}个成功项目的闪兑?(是/否)
undefined

Multi-Currency Order Report

多币种订单报告

markdown
undefined
markdown
undefined

Flash Swap Orders Created ({mode})

闪兑订单已创建({mode})

Total {direction}: {total_amount} {currency}
#Order IDSellSell AmountBuyBuy AmountStatusError
{n}{id}{sell_asset}{sell_amount}{buy_asset}{buy_amount}{status_text}{error_message}
{success_count}/{total_count} orders succeeded.
undefined
总{direction}: {total_amount} {currency}
序号订单ID卖出币种卖出金额买入币种买入金额状态错误信息
{n}{id}{sell_asset}{sell_amount}{buy_asset}{buy_amount}{status_text}{error_message}
{success_count}/{total_count}个订单执行成功。
undefined

Pair List Report

交易对列表报告

markdown
undefined
markdown
undefined

Gate Flash Swap Supported Pairs

Gate Flash Swap 支持的交易对

Query Time: {timestamp} Filter: {currency filter or "None"}
PairSell CurrencyBuy CurrencySell MinSell Max
{currency_pair}{sell_currency}{buy_currency}{sell_min_amount}{sell_max_amount}
Total: {total} pairs.
undefined
查询时间: {timestamp} 过滤条件: {currency filter or "无"}
交易对卖出币种买入币种最小卖出金额最大卖出金额
{currency_pair}{sell_currency}{buy_currency}{sell_min_amount}{sell_max_amount}
总计: {total}个交易对。
undefined

Order List Report

订单列表报告

markdown
undefined
markdown
undefined

Gate Flash Swap Order History

Gate Flash Swap 订单历史

Query Time: {timestamp} Filters: Status={status}, Sell={sell_currency}, Buy={buy_currency}
Order IDSellSell AmountBuyBuy AmountStatusCreated At
{id}{sell_currency}{sell_amount}{buy_currency}{buy_amount}{status_text}{create_time}
Total: {total} records.
undefined
查询时间: {timestamp} 过滤条件: 状态={status}, 卖出币种={sell_currency}, 买入币种={buy_currency}
订单ID卖出币种卖出金额买入币种买入金额状态创建时间
{id}{sell_currency}{sell_amount}{buy_currency}{buy_amount}{status_text}{create_time}
总计: {total}条记录。
undefined

Order Detail Report

订单详情报告

markdown
undefined
markdown
undefined

Gate Flash Swap Order Details

Gate Flash Swap 订单详情

FieldValue
Order ID{id}
Sell Currency{sell_currency}
Sell Amount{sell_amount}
Buy Currency{buy_currency}
Buy Amount{buy_amount}
Exchange Rate{price}
Status{status_text}
Created At{create_time}
undefined
字段
订单ID{id}
卖出币种{sell_currency}
卖出金额{sell_amount}
买入币种{buy_currency}
买入金额{buy_amount}
兑换汇率{price}
状态{status_text}
创建时间{create_time}
undefined