重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
npx skills add https://github.com/gate/gate-skills --skill gate-exchange-spot首先阅读并遵循 exchange-runtime-rules.md。
执行 Gate 现货工作流的集成操作,包括:
| 组别 | 工具调用 (jsonrpc: call.method) |
|---|---|
| 账户和余额 | cex_spot_get_spot_accounts, cex_spot_list_spot_account_book |
| 下单/取消/修改订单 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
cex_spot_create_spot_order, cex_spot_create_spot_batch_orders, cex_spot_cancel_all_spot_orders, cex_spot_cancel_spot_order, cex_spot_cancel_spot_batch_orders, cex_spot_amend_spot_order, cex_spot_amend_spot_batch_orders |
| 触发订单(价格订单) | cex_spot_create_spot_price_triggered_order, cex_spot_list_spot_price_triggered_orders, cex_spot_get_spot_price_triggered_order, cex_spot_cancel_spot_price_triggered_order, cex_spot_cancel_spot_price_triggered_order_list |
| 未成交订单和成交记录 | cex_spot_list_spot_orders, cex_spot_list_spot_my_trades |
| 市场数据 | cex_spot_get_spot_tickers, cex_spot_get_spot_order_book, cex_spot_get_spot_candlesticks |
| 交易规则 | cex_spot_get_currency, cex_spot_get_currency_pair |
| 费用 | cex_wallet_get_wallet_fee, cex_spot_get_spot_batch_fee |
BASE_QUOTE 格式,例如 BTC_USDT。min_quote_amount(通常为 10U)。min_base_amount / amount_precision)。当调用 cex_spot_create_spot_order 且 type=market 时,根据交易方向填充 amount:
| 方向 | amount 含义 | 示例 |
|---|---|---|
buy | 计价货币金额(USDT) | "买入 100U BTC" -> amount="100" |
sell | 基础货币数量(BTC/ETH 等) | "卖出 0.01 BTC" -> amount="0.01" |
执行前预检查:
buy 市价单:验证计价货币余额足以覆盖 amount(USDT)。sell 市价单:验证基础货币可用余额足以覆盖 amount(代币数量)。当用户请求任何现货交易操作时,遵循此顺序。
将请求分类为以下六类之一:
提取关键字段:
currency / currency_pairside (buy/sell)amount(代币数量)或 quote_amount(USDT 金额)price 或价格条件(例如"低于当前 2%")当 type=market 时,参数标准化为:
side=buy: amount = quote_amount(USDT 金额)side=sell: amount = base_amount(基础代币数量)预检查顺序:
在每次调用 cex_spot_create_spot_order、cex_spot_create_spot_batch_orders 或 cex_spot_create_spot_price_triggered_order 之前,始终先提供订单草稿,然后等待明确确认。
要求的执行流程:
要求的确认字段:
currency_pair)buy/sell, market/limit)amount 含义和数值推荐的草稿措辞:
订单草稿:BTC_USDT,买入,市价,金额=100 USDT,预估成交价接近当前卖一价,风险:快速市场中可能出现滑点。回复"确认订单"以执行。允许的确认回复(示例):
确认订单, 确认, 执行, 是的,下单硬性阻止规则(不可绕过):
cex_spot_create_spot_order、cex_spot_create_spot_batch_orders 或 cex_spot_create_spot_price_triggered_order。如果用户确认缺失、模糊或否定:
仅使用完成任务所需的最少工具集:
cex_spot_get_spot_accountscex_spot_get_currency_paircex_spot_get_spot_tickerscex_spot_create_spot_order / cex_spot_create_spot_batch_orderscex_spot_create_spot_price_triggered_order / cex_spot_list_spot_price_triggered_orders / cex_spot_get_spot_price_triggered_order / cex_spot_cancel_spot_price_triggered_order / cex_spot_cancel_spot_price_triggered_order_listcex_spot_cancel_all_spot_orders / cex_spot_cancel_spot_order / cex_spot_cancel_spot_batch_orders / cex_spot_amend_spot_order / cex_spot_amend_spot_batch_orderscex_spot_list_spot_orders(使用 status=open)cex_spot_list_spot_my_tradescex_spot_list_spot_account_bookcex_spot_get_spot_batch_fee响应必须包括:
| 案例 | 用户意图 | 核心决策 | 工具序列 |
|---|---|---|---|
| 1 | 市价买入 | 如果 USDT 充足则下市价买单 | cex_spot_get_spot_accounts → cex_spot_create_spot_order |
| 2 | 在目标价格买入 | 创建 限价买入 订单 | cex_spot_get_spot_accounts → cex_spot_create_spot_order |
| 3 | 使用全部余额买入 | 使用所有可用 USDT 余额买入 | cex_spot_get_spot_accounts → cex_spot_create_spot_order |
| 4 | 买入准备检查 | 货币状态 + 最小数量 + 当前单价 | cex_spot_get_currency → cex_spot_get_currency_pair → cex_spot_get_spot_tickers |
| 5 | 资产摘要 | 将所有持仓转换为 USDT 价值 | cex_spot_get_spot_accounts → cex_spot_get_spot_tickers |
| 6 | 取消所有订单然后检查余额 | 取消所有未成交订单并返回余额 | cex_spot_cancel_all_spot_orders → cex_spot_get_spot_accounts |
| 7 | 卖出小额资产 | 仅在满足最小数量时卖出 | cex_spot_get_spot_accounts → cex_spot_get_currency_pair → cex_spot_create_spot_order |
| 8 | 余额 + 最小买入检查 | 仅在账户余额和 min_quote_amount 均满足时下单 | cex_spot_get_spot_accounts → cex_spot_get_currency_pair → cex_spot_create_spot_order |
| 案例 | 用户意图 | 核心决策 | 工具序列 |
|---|---|---|---|
| 9 | 买入(低于当前 2%) | 以当前价格 -2% 下限价买单 | cex_spot_get_spot_tickers → cex_spot_create_spot_order |
| 10 | 在 +500 时卖出 | 以当前价格 +500 下限量卖单 | cex_spot_get_spot_tickers → cex_spot_create_spot_order |
| 11 | 在今日低点附近买入 | 仅在当前价格接近 24 小时低点时买入 | cex_spot_get_spot_tickers → cex_spot_create_spot_order |
| 12 | 下跌 5% 时卖出请求 | 计算目标下跌价格并下卖单限价单 | cex_spot_get_spot_tickers → cex_spot_create_spot_order |
| 13 | 买入涨幅最大者 | 自动选择 24 小时涨幅最大者并买入 | cex_spot_get_spot_tickers → cex_spot_create_spot_order |
| 14 | 买入跌幅较大者 | 比较 BTC/ETH 日跌幅并买入跌幅较大者 | cex_spot_get_spot_tickers → cex_spot_create_spot_order |
| 15 | 买入后下卖单 | 市价买入,然后以 +2% 参考价格下卖单 | cex_spot_create_spot_order → cex_spot_create_spot_order |
| 16 | 费用估算 | 根据费率率和实时价格估算总成本 | cex_wallet_get_wallet_fee → cex_spot_get_spot_tickers |
| 案例 | 用户意图 | 核心决策 | 工具序列 |
|---|---|---|---|
| 17 | 为未成交订单提高价格 | 确认提高多少(或目标价格),定位未成交买单,如果多个则确认修改哪个订单,然后修改限价 | cex_spot_list_spot_orders(status=open) → cex_spot_amend_spot_order |
| 18 | 验证成交和持仓 | 最近买入成交数量 + 当前总持仓 | cex_spot_list_spot_my_trades → cex_spot_get_spot_accounts |
| 19 | 如果未成交则取消 | 如果仍为未成交,则取消然后重新检查余额 | cex_spot_list_spot_orders(status=open) → cex_spot_cancel_spot_order → cex_spot_get_spot_accounts |
| 20 | 以最后成交价重新买入 | 使用最后成交价,检查余额,然后下限量买单 | cex_spot_list_spot_my_trades → cex_spot_get_spot_accounts → cex_spot_create_spot_order |
| 21 | 在盈亏平衡或更好时卖出 | 仅在当前价格高于成本基础时卖出 | cex_spot_list_spot_my_trades → cex_spot_get_spot_tickers → cex_spot_create_spot_order |
| 22 | 资产互换 | 估算价值,如果 >=10U 则卖出然后买入 | cex_spot_get_spot_accounts → cex_spot_get_spot_tickers → cex_spot_create_spot_order(sell) → cex_spot_create_spot_order(buy) |
| 23 | 如果价格条件满足则买入 | 仅在 current < 60000 时买入,然后报告余额 | cex_spot_get_spot_tickers → cex_spot_create_spot_order → cex_spot_get_spot_accounts |
| 24 | 基于趋势条件买入 | 仅当最近 4 根小时 K 线中有 3 根为看涨时买入 | cex_spot_get_spot_candlesticks → cex_spot_create_spot_order |
| 25 | 快速成交限价买入 | 使用对手方最优价格快速执行 | cex_spot_get_spot_order_book → cex_spot_create_spot_order |
| 案例 | 用户意图 | 核心决策 | 工具序列 |
|---|---|---|---|
| 26 | 筛选并批量取消选定的未成交订单 | 验证目标订单 ID 存在于未成交订单中,显示候选列表,仅在用户验证后取消 | cex_spot_list_spot_orders(status=open) → cex_spot_cancel_spot_batch_orders |
| 27 | 市场滑点模拟 | 根据订单簿卖单模拟名义买入的平均成交价,与最后成交价比较 | cex_spot_get_spot_order_book → cex_spot_get_spot_tickers |
| 28 | 批量买入下单 | 检查所需总计价金额与可用余额,然后下多订单篮子 | cex_spot_get_spot_accounts → cex_spot_create_spot_batch_orders |
| 29 | 跨交易对的费率比较 | 比较费率层级并将费率影响转换为预估成本 | cex_spot_get_spot_batch_fee → cex_spot_get_spot_tickers |
| 30 | 账户流水审计 + 当前余额 | 显示某代币的近期账本变动和当前剩余余额 | cex_spot_list_spot_account_book → cex_spot_get_spot_accounts |
| 31 | 将所有未成交买单价格提高 +1% | 按交易对筛选未成交订单,选择最多 5 个目标买单,重新定价并在用户验证后批量修改 | cex_spot_list_spot_orders(status=open) → cex_spot_amend_spot_batch_orders |
| 案例 | 用户意图 | 核心决策 | 工具序列 |
|---|---|---|---|
| 32 | 条件买入触发订单 | 读取当前 BTC 价格,计算 5% 下跌触发价,确认后下买入触发订单 | cex_spot_get_spot_tickers → cex_spot_create_spot_price_triggered_order |
| 33 | 双 TP/SL 触发订单下单 | 检查 ETH 可用余额,构建 TP 和 SL 触发步骤,确认后下两者 | cex_spot_get_spot_accounts → cex_spot_create_spot_price_triggered_order → cex_spot_create_spot_price_triggered_order |
| 34 | 单个触发订单进度查询 | 读取触发订单详情并与实时市场价格比较,计算距触发点的距离 | cex_spot_get_spot_price_triggered_order → cex_spot_get_spot_tickers |
| 35 | 批量取消 BTC 买入触发订单 | 列出未成交触发订单,筛选 BTC 买入方向,确认范围,然后批量取消 | cex_spot_list_spot_price_triggered_orders(status=open) → cex_spot_cancel_spot_price_triggered_order_list |
| 36 | 单个触发/TP-SL 订单取消 | 验证一个目标触发订单处于活动状态/符合意图,确认后取消 | cex_spot_get_spot_price_triggered_order → cex_spot_cancel_spot_price_triggered_order |
| 条件 | 操作 |
|---|---|
| 用户要求在买入前检查余额 | 必须先调用 cex_spot_get_spot_accounts;仅在充足时下单 |
| 用户指定在目标价格买入/卖出 | 在用户提供的价格使用 type=limit |
| 用户要求以当前市场最快成交 | 优先使用 market;如果请求"快速限价",则使用订单簿最优价格 |
市价买入 (buy) | 用 USDT 计价金额填充 amount,而非基础货币数量 |
市价卖出 (sell) | 用基础代币数量填充 amount,而非 USDT 金额 |
| 用户请求止盈/止损 | 使用触发订单工作流:验证持仓大小,草拟 TP+SL 步骤,然后在明确确认后下单 |
| 任何下单请求 | 在 cex_spot_create_spot_order 前要求明确的最终用户确认 |
| 用户未回复明确确认 | 保持订单为草稿;不执行交易 |
| 确认已过时或非来自上一个回合 | 使其失效并要求新的确认 |
| 多步骤交易流程 | 在每次 cex_spot_create_spot_order 前要求每步骤确认 |
| 用户要求修改未成交买单 | 在 cex_spot_amend_spot_order 前确认价格上涨金额或确切目标价格 |
| 多个未成交买单符合修改请求 | 在执行前询问用户选择修改哪个订单 |
| 用户请求选定订单批量取消 | 验证每个订单 ID 存在/未成交,呈现列表,仅在用户验证后运行 cex_spot_cancel_spot_batch_orders |
| 用户请求批量修改未成交订单 | 筛选目标交易对未成交买单(最多 5 个),计算重新定价水平,仅在用户验证后运行 cex_spot_amend_spot_batch_orders |
| 用户请求触发订单进度 | 读取一个触发订单并将当前报价价格与触发条件比较;返回数值距离 |
| 用户请求触发订单批量取消 | 按交易对+方向筛选触发订单,呈现取消范围,确认后调用 cex_spot_cancel_spot_price_triggered_order_list |
| 用户请求单个触发订单取消 | 验证订单处于活动状态/符合意图,确认后调用 cex_spot_cancel_spot_price_triggered_order |
| 用户请求市场滑点模拟 | 使用订单簿深度模拟并比较加权成交价与报价最后成交价 |
| 用户请求多币种一键买入 | 验证总计计价货币需求,然后使用 cex_spot_create_spot_batch_orders |
| 用户请求多交易对费用比较 | 使用 cex_spot_get_spot_batch_fee 并根据最新价格转换为成本影响 |
| 用户请求某代币的账户流水 | 使用 cex_spot_list_spot_account_book 然后与 cex_spot_get_spot_accounts 核对 |
| 用户金额太小 | 检查 min_quote_amount;如果不满足,要求用户增加金额 |
| 用户请求全仓买入/卖出 | 使用可用余额,然后根据最小交易规则调整 |
| 触发条件未满足 | 不下单;返回当前与目标价格差距 |
## 执行结果
| 项目 | 值 |
|------|-----|
| 场景 | {case_name} |
| 交易对 | {currency_pair} |
| 操作 | {action} |
| 状态 | {status} |
| 关键指标 | {key_metrics} |
{decision_text}
示例 decision_text:
✅ 条件满足。您的订单已下达。📝 订单草稿就绪。回复"确认订单"以执行。⏸️ 尚未下单:当前价格为 60200,高于您的目标价 60000。❌ 未执行:最小订单金额为 10U,您的输入为 5U。| 错误类型 | 典型原因 | 处理策略 |
|---|---|---|
| 余额不足 | 可用 USDT/代币不足 | 返回差额并建议减少订单大小 |
| 最小交易限制 | 低于最小金额/数量 | 返回阈值并建议增加订单大小 |
| 触发订单参数不匹配 | 触发规则/价格/方向与用户意图不一致 | 返回标准化的触发草稿并要求用户重新确认 |
| 缺少最终确认 | 用户未明确批准最终订单摘要 | 保持订单待定并要求明确确认 |
| 确认已过时 | 确认与当前草稿不匹配或非来自上一个回合 | 拒绝执行并要求重新确认 |
| 仅草稿模式 | 用户尚未确认 | 仅运行查询/估算工具;不调用 cex_spot_create_spot_order、cex_spot_create_spot_batch_orders 或 cex_spot_create_spot_price_triggered_order |
| 修改目标不明确 | 多个候选未成交买单 | 保持待定并询问用户确认订单 ID/行 |
| 批量取消不明确 | 部分请求的订单 ID 缺失/非未成交 | 返回匹配与不匹配的 ID 并要求重新确认 |
| 批量修改不明确 | 候选订单集不明确或超过最大选择数 | 在执行前要求用户确认确切的订单 ID(最多 5 个) |
| 订单缺失/已成交 | 修改/取消目标无效 | 要求用户刷新未成交订单并重试 |
| 市场条件未满足 | 触发条件未满足 | 返回当前价格、目标价格和差值 |
| 交易对不可用 | 货币暂停或状态异常 | 明确说明交易对当前不可交易 |
gate-exchange-spot 下单(案例 2/9/23)每周安装数
61
仓库
GitHub 星标数
12
首次出现
2026年3月7日
安全审计
安装于
gemini-cli61
github-copilot61
codex61
amp61
cline61
kimi-cli61
Read and follow exchange-runtime-rules.md first.
Execute integrated operations for Gate spot workflows, including:
| Group | Tool Calls (jsonrpc: call.method) |
|---|---|
| Account and balances | cex_spot_get_spot_accounts, cex_spot_list_spot_account_book |
| Place/cancel/amend orders | cex_spot_create_spot_order, cex_spot_create_spot_batch_orders, cex_spot_cancel_all_spot_orders, cex_spot_cancel_spot_order, cex_spot_cancel_spot_batch_orders, cex_spot_amend_spot_order, cex_spot_amend_spot_batch_orders |
| Trigger orders (price orders) | cex_spot_create_spot_price_triggered_order, cex_spot_list_spot_price_triggered_orders, cex_spot_get_spot_price_triggered_order, cex_spot_cancel_spot_price_triggered_order, cex_spot_cancel_spot_price_triggered_order_list |
| Open orders and fills | cex_spot_list_spot_orders, cex_spot_list_spot_my_trades |
| Market data | cex_spot_get_spot_tickers, cex_spot_get_spot_order_book, cex_spot_get_spot_candlesticks |
| Trading rules | cex_spot_get_currency, cex_spot_get_currency_pair |
| Fees | cex_wallet_get_wallet_fee, cex_spot_get_spot_batch_fee |
BASE_QUOTE format for trading pairs, for example BTC_USDT.min_quote_amount (commonly 10U).min_base_amount / amount_precision).When calling cex_spot_create_spot_order with type=market, fill amount by side:
| side | amount meaning | Example |
|---|---|---|
buy | Quote-currency amount (USDT) | "Buy 100U BTC" -> amount="100" |
sell | Base-currency quantity (BTC/ETH, etc.) | "Sell 0.01 BTC" -> amount="0.01" |
Pre-check before execution:
buy market order: verify quote-currency balance can cover amount (USDT).sell market order: verify base-currency available balance can cover amount (coin quantity).When the user asks for any spot trading operation, follow this sequence.
Classify the request into one of these six categories:
Extract key fields:
currency / currency_pairside (buy/sell)amount (coin quantity) or quote_amount (USDT amount)price or price condition (for example "2% below current")When type=market, normalize parameters as:
side=buy: amount = quote_amount (USDT amount)side=sell: amount = base_amount (base-coin quantity)Pre-check order:
Before every cex_spot_create_spot_order, cex_spot_create_spot_batch_orders, or cex_spot_create_spot_price_triggered_order, always provide an Order Draft first, then wait for explicit confirmation.
Required execution flow:
Required confirmation fields:
currency_pair)buy/sell, market/limit)amount meaning and valueRecommended draft wording:
Order Draft: BTC_USDT, buy, market, amount=100 USDT, estimated fill around current ask, risk: slippage in fast markets. Reply "Confirm order" to place it.Allowed confirmation responses (examples):
Confirm order, Confirm, Proceed, Yes, place itHard blocking rules (non-bypassable):
cex_spot_create_spot_order, cex_spot_create_spot_batch_orders, or cex_spot_create_spot_price_triggered_order unless the user explicitly confirms in the immediately previous turn.If user confirmation is missing, ambiguous, or negative:
Use only the minimal tool set required for the task:
cex_spot_get_spot_accountscex_spot_get_currency_paircex_spot_get_spot_tickerscex_spot_create_spot_order / cex_spot_create_spot_batch_orderscex_spot_create_spot_price_triggered_order / cex_spot_list_spot_price_triggered_orders / cex_spot_get_spot_price_triggered_order / cex_spot_cancel_spot_price_triggered_order / The response must include:
| Case | User Intent | Core Decision | Tool Sequence |
|---|---|---|---|
| 1 | Market buy | Place market buy if USDT is sufficient | cex_spot_get_spot_accounts → cex_spot_create_spot_order |
| 2 | Buy at target price | Create a limit buy order | cex_spot_get_spot_accounts → cex_spot_create_spot_order |
| 3 | Buy with all balance | Use all available USDT balance to buy | → |
| Case | User Intent | Core Decision | Tool Sequence |
|---|---|---|---|
| 9 | Buy 2% lower | Place limit buy at current price -2% | cex_spot_get_spot_tickers → cex_spot_create_spot_order |
| 10 | Sell at +500 | Place limit sell at current price +500 | cex_spot_get_spot_tickers → cex_spot_create_spot_order |
| 11 | Buy near today's low | Buy only if current price is near 24h low | cex_spot_get_spot_tickers → |
| Case | User Intent | Core Decision | Tool Sequence |
|---|---|---|---|
| 17 | Raise price for unfilled order | Confirm how much to raise (or target price), locate unfilled buy orders, confirm which order to amend if multiple, then amend limit price | cex_spot_list_spot_orders(status=open) → cex_spot_amend_spot_order |
| 18 | Verify fill and holdings | Last buy fill quantity + current total holdings | cex_spot_list_spot_my_trades → cex_spot_get_spot_accounts |
| 19 | Cancel if not filled | If still open, cancel and then recheck balance | cex_spot_list_spot_orders(status=open) → → |
| Case | User Intent | Core Decision | Tool Sequence |
|---|---|---|---|
| 26 | Filter and batch-cancel selected open orders | Verify target order ids exist in open orders, show candidate list, cancel only after user verification | cex_spot_list_spot_orders(status=open) → cex_spot_cancel_spot_batch_orders |
| 27 | Market slippage simulation | Simulate average fill from order-book asks for a notional buy, compare to last price | cex_spot_get_spot_order_book → cex_spot_get_spot_tickers |
| 28 | Batch buy placement | Check total required quote amount vs available balance, then place multi-order basket | → |
| Case | User Intent | Core Decision | Tool Sequence |
|---|---|---|---|
| 32 | Conditional buy trigger order | Read current BTC price, compute 5% drop trigger, place buy trigger after confirmation | cex_spot_get_spot_tickers → cex_spot_create_spot_price_triggered_order |
| 33 | Dual TP/SL trigger placement | Check ETH available balance, build TP and SL trigger legs, confirm then place both | cex_spot_get_spot_accounts → cex_spot_create_spot_price_triggered_order → cex_spot_create_spot_price_triggered_order |
| 34 |
| Condition | Action |
|---|---|
| User asks to check balance before buying | Must call cex_spot_get_spot_accounts first; place order only if sufficient |
| User specifies buy/sell at target price | Use type=limit at user-provided price |
| User asks for fastest fill at current market | Prefer market; if "fast limit" is requested, use best book price |
Market buy (buy) | Fill amount with USDT quote amount, not base quantity |
Market sell (sell) | Fill with base-coin quantity, not USDT amount |
## Execution Result
| Item | Value |
|------|-----|
| Scenario | {case_name} |
| Pair | {currency_pair} |
| Action | {action} |
| Status | {status} |
| Key Metrics | {key_metrics} |
{decision_text}
Example decision_text:
✅ Condition met. Your order has been placed.📝 Order draft ready. Reply "Confirm order" to execute.⏸️ No order placed yet: current price is 60200, above your target 60000.❌ Not executed: minimum order amount is 10U, your input is 5U.| Error Type | Typical Cause | Handling Strategy |
|---|---|---|
| Insufficient balance | Not enough available USDT/coins | Return shortfall and suggest reducing order size |
| Minimum trade constraint | Below minimum amount/size | Return threshold and suggest increasing order size |
| Trigger-order parameter mismatch | Trigger rule/price/side is inconsistent with user intent | Return normalized trigger draft and require user reconfirmation |
| Missing final confirmation | User has not clearly approved final order summary | Keep order pending and request explicit confirmation |
| Stale confirmation | Confirmation does not match the current draft or is not in the previous turn | Reject execution and ask for reconfirmation |
| Draft-only mode | User has not confirmed yet | Only run query/estimation tools; do not call cex_spot_create_spot_order, cex_spot_create_spot_batch_orders, or |
gate-exchange-spot (Case 2/9/23)Weekly Installs
61
Repository
GitHub Stars
12
First Seen
Mar 7, 2026
Security Audits
Gen Agent Trust HubPassSocketWarnSnykWarn
Installed on
gemini-cli61
github-copilot61
codex61
amp61
cline61
kimi-cli61
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
50,200 周安装
ServiceNow ACL安全模式详解:访问控制列表评估顺序、类型与6大实用模式
52 周安装
PostgreSQL数据库管理指南 - 从模式设计到运维监控完整教程
2,800 周安装
Framer Motion动画制作器 - 使用声明式API构建React交互式动画教程
2,900 周安装
AI定制简历生成器 | 智能优化ATS关键词,一键生成专业简历
2,800 周安装
Apify 潜在客户挖掘工具:从 Google、Instagram、Facebook、TikTok 等平台自动抓取客户信息
2,800 周安装
Next.js 迁移到 vinext 完整指南 | 无需改代码,快速切换至 Vite
2,800 周安装
cex_spot_cancel_spot_price_triggered_order_listcex_spot_cancel_all_spot_orders / cex_spot_cancel_spot_order / cex_spot_cancel_spot_batch_orders / cex_spot_amend_spot_order / cex_spot_amend_spot_batch_orderscex_spot_list_spot_orders (use status=open)cex_spot_list_spot_my_tradescex_spot_list_spot_account_bookcex_spot_get_spot_batch_feecex_spot_get_spot_accountscex_spot_create_spot_order| 4 | Buy readiness check | Currency status + min size + current unit price | cex_spot_get_currency → cex_spot_get_currency_pair → cex_spot_get_spot_tickers |
| 5 | Asset summary | Convert all holdings to USDT value | cex_spot_get_spot_accounts → cex_spot_get_spot_tickers |
| 6 | Cancel all then check balance | Cancel all open orders and return balances | cex_spot_cancel_all_spot_orders → cex_spot_get_spot_accounts |
| 7 | Sell dust | Sell only if minimum size is met | cex_spot_get_spot_accounts → cex_spot_get_currency_pair → cex_spot_create_spot_order |
| 8 | Balance + minimum buy check | Place order only if account balance and min_quote_amount are both satisfied | cex_spot_get_spot_accounts → cex_spot_get_currency_pair → cex_spot_create_spot_order |
cex_spot_create_spot_order| 12 | Sell on 5% drop request | Calculate target drop price and place sell limit order | cex_spot_get_spot_tickers → cex_spot_create_spot_order |
| 13 | Buy top gainer | Auto-pick highest 24h gainer and buy | cex_spot_get_spot_tickers → cex_spot_create_spot_order |
| 14 | Buy larger loser | Compare BTC/ETH daily drop and buy the bigger loser | cex_spot_get_spot_tickers → cex_spot_create_spot_order |
| 15 | Buy then place sell | Market buy, then place sell at +2% reference price | cex_spot_create_spot_order → cex_spot_create_spot_order |
| 16 | Fee estimate | Estimate total cost from fee rate and live price | cex_wallet_get_wallet_fee → cex_spot_get_spot_tickers |
cex_spot_cancel_spot_ordercex_spot_get_spot_accounts| 20 | Rebuy at last price | Use last fill price, check balance, then place limit buy | cex_spot_list_spot_my_trades → cex_spot_get_spot_accounts → cex_spot_create_spot_order |
| 21 | Sell at break-even or better | Sell only if current price is above cost basis | cex_spot_list_spot_my_trades → cex_spot_get_spot_tickers → cex_spot_create_spot_order |
| 22 | Asset swap | Estimate value, if >=10U then sell then buy | cex_spot_get_spot_accounts → cex_spot_get_spot_tickers → cex_spot_create_spot_order(sell) → cex_spot_create_spot_order(buy) |
| 23 | Buy if price condition met | Buy only when current < 60000, then report balance | cex_spot_get_spot_tickers → cex_spot_create_spot_order → cex_spot_get_spot_accounts |
| 24 | Buy on trend condition | Buy only if 3 of last 4 hourly candles are bullish | cex_spot_get_spot_candlesticks → cex_spot_create_spot_order |
| 25 | Fast-fill limit buy | Use best opposite-book price for fast execution | cex_spot_get_spot_order_book → cex_spot_create_spot_order |
cex_spot_get_spot_accountscex_spot_create_spot_batch_orders| 29 | Fee-rate comparison across pairs | Compare fee tiers and translate fee impact into estimated cost | cex_spot_get_spot_batch_fee → cex_spot_get_spot_tickers |
| 30 | Account-book audit + current balance | Show recent ledger changes for a coin and current remaining balance | cex_spot_list_spot_account_book → cex_spot_get_spot_accounts |
| 31 | Batch amend open buy orders by +1% | Filter open orders by pair, select up to 5 target buy orders, reprice and batch amend after user verification | cex_spot_list_spot_orders(status=open) → cex_spot_amend_spot_batch_orders |
| Single trigger order progress query |
| Read trigger-order detail and compare against live market price to compute distance to trigger |
cex_spot_get_spot_price_triggered_order → cex_spot_get_spot_tickers |
| 35 | Batch cancel BTC buy trigger orders | List open trigger orders, filter BTC buy side, confirm scope, then batch cancel | cex_spot_list_spot_price_triggered_orders(status=open) → cex_spot_cancel_spot_price_triggered_order_list |
| 36 | Single trigger/TP-SL order cancel | Verify one target trigger order is active, then cancel after confirmation | cex_spot_get_spot_price_triggered_order → cex_spot_cancel_spot_price_triggered_order |
amount| User requests take-profit/stop-loss | Use trigger-order workflow: validate position size, draft TP+SL legs, then place after explicit confirmation |
| Any order placement request | Require explicit final user confirmation before cex_spot_create_spot_order |
| User has not replied with clear confirmation | Keep order as draft; no trading execution |
| Confirmation is stale or not from the immediately previous turn | Invalidate it and require a fresh confirmation |
| Multi-leg trading flow | Require per-leg confirmation before each cex_spot_create_spot_order |
| User asks to amend an unfilled buy order | Confirm price increase amount or exact target price before cex_spot_amend_spot_order |
| Multiple open buy orders match amendment request | Ask user to choose which order to amend before executing |
| User requests selected-order batch cancellation | Verify each order id exists/open, present list, and run cex_spot_cancel_spot_batch_orders only after user verification |
| User requests batch amend for open orders | Filter target pair open buy orders (max 5), compute repriced levels, and run cex_spot_amend_spot_batch_orders only after user verification |
| User requests trigger-order progress | Read one trigger order and compare current ticker price to trigger condition; return numeric distance |
| User requests trigger-order batch cancellation | Filter trigger orders by pair+side, present cancellation scope, then call cex_spot_cancel_spot_price_triggered_order_list after confirmation |
| User requests single trigger-order cancellation | Verify order is active/matching intent, then call cex_spot_cancel_spot_price_triggered_order after confirmation |
| User requests market slippage simulation | Use order-book depth simulation and compare weighted fill vs ticker last price |
| User requests multi-coin one-click buy | Validate summed quote requirement, then use cex_spot_create_spot_batch_orders |
| User requests fee comparison for multiple pairs | Use cex_spot_get_spot_batch_fee and convert to cost impact with latest prices |
| User requests account flow for a coin | Use cex_spot_list_spot_account_book and then reconcile with cex_spot_get_spot_accounts |
| User amount is too small | Check min_quote_amount; if not met, ask user to increase amount |
| User requests all-in buy/sell | Use available balance, then trim by minimum trade rules |
| Trigger condition not met | Do not place order; return current vs target price gap |
cex_spot_create_spot_price_triggered_order| Ambiguous amendment target | Multiple candidate open buy orders | Keep pending and ask user to confirm order ID/row |
| Batch-cancel ambiguity | Some requested order ids are missing/not-open | Return matched vs unmatched ids and request reconfirmation |
| Batch-amend ambiguity | Candidate order set is unclear or exceeds max selection | Ask user to confirm exact order ids (up to 5) before execution |
| Order missing/already filled | Amendment/cancellation target is invalid | Ask user to refresh open orders and retry |
| Market condition not met | Trigger condition is not satisfied | Return current price, target price, and difference |
| Pair unavailable | Currency suspended or abnormal status | Clearly state pair is currently not tradable |