Gate Coupon Assistant
Query and inspect coupon/voucher accounts on Gate Exchange. Supports six scenarios: list available coupons, search by coupon type, view expired/used history, view full coupon details, read usage rules, and trace coupon acquisition source.
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 ./references/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 Server | Status |
|---|
| Gate (main) | ✅ Required |
MCP Tools Used
Query Operations (Read-only)
- - cexcoupongetusercoupondetail
- cexcouponlistuser_coupons
Authentication
- - Credentials Source: Local Gate MCP deployment (
GATE_API_KEY, GATE_API_SECRET) - API Key Required: Yes
- Permissions: Coupon:Read
- Never ask the user to paste secrets into chat; rely on the configured MCP session only.
- API Key Provisioning Reference: https://www.gate.com/myaccount/profile/api-key/manage (create or rotate keys outside the chat when the local MCP setup requires them).
Installation Check
- - Required: Gate (main)
- Install: Use the local Gate MCP installation flow for the current host IDE before continuing.
- Continue only after the Gate MCP session is configured with the credentials listed above; do not switch to browser auth or ask the user to paste secrets into chat.
MCP Mode
Read and strictly follow references/mcp.md, then execute this skill's coupon-query workflow.
- -
SKILL.md keeps coupon semantics, mapping rules, and rendering policy. - INLINECODE5 is the authoritative MCP execution layer for list/detail query behavior and degradation-safe output.
Domain Knowledge
MCP Tool Mapping
| Tool | Description |
|---|
| INLINECODE6 | Fetch user coupon list (paginated, filterable by type/status) |
| INLINECODE7 |
Fetch full details of a single coupon |
Coupon Types Reference
IMPORTANT — Type Translation Rule: When displaying the coupon type, map coupon_type strictly to the Display Name. You may translate Display Names to match the response language, but the mapping must be exact — never swap or conflate two different types. Critical distinction: position_voucher (Position Trial Voucher) is a position-based trial voucher — translate as "仓位体验券" in Chinese, never as "合约体验金"; contract_bonus (Futures Bonus) is futures trial funds — translate as "合约体验金". They are completely different products.
| INLINECODE11 | Display Name | Description |
|---|
| INLINECODE12 | Position Trial Voucher | Virtual capital for opening futures positions (NOT the same as Futures Bonus). Profits can be withdrawn; the principal is reclaimed after expiry. |
| INLINECODE13 |
TradFi Position Voucher | Same concept as position voucher but applies to TradFi instruments (stocks, forex, etc.). |
|
contract_bonus | Futures Bonus | Trial funds usable in futures trading. Unused balance is reclaimed at expiry. |
|
contract_bonus_new | Futures Voucher | Newer futures trial funds with configurable leverage and trading pair restrictions; valid for a set number of hours. |
|
commission_rebate | Commission Rebate Voucher | Rebates a percentage of actual trading fees incurred on applicable markets; reusable until the balance runs out. |
|
hold_bonus | Earn Bonus | Trial funds for Earn products (e.g. Lend & Earn); reclaimed at expiry. |
|
point | Points Card | Platform points redeemable for rewards or used in activities. |
|
financial_rate | Rate Boost Voucher | Adds extra APR on top of the base rate for eligible Earn products, up to a capped amount. |
|
robot_bonus | Bot Bonus | Trial funds for trading bots (e.g. Grid, Futures Grid); runs for a fixed duration then is reclaimed. |
|
loss_protection_copier | Copy Trading Protection | Compensates a portion of copy trading losses, subject to a maximum payout and eligible-trader restrictions. |
|
vip_card | VIP Trial Card | Grants temporary VIP-tier fee rates and benefits for a fixed number of days after activation. |
|
interest_voucher | Margin Interest Discount Voucher | Reduces the interest rate on isolated-margin borrowing by a set percentage, up to a maximum discount amount. |
|
p2p | P2P Discount Voucher | Deducts a percentage of P2P trading fees, subject to a cap and a minimum transaction size. |
|
cash | Cash Voucher | Redeemable for account balance cash; credited once qualifying conditions are met. |
|
crypto_loan_interest | Crypto Loan Interest Discount Voucher | Reduces interest on crypto-collateral loans (flexible term), subject to a maximum discount and minimum loan amount. |
|
copy_trading | Copy Trading Bonus | Trial funds for copy trading; supports specific or all traders, with a stop-loss limit and fixed trial duration. |
|
alpha_voucher | Alpha Cash Voucher | Cash credit usable for purchasing tokens on Gate Alpha market. |
|
etf_voucher | ETF Bonus | Trial funds for leveraged ETF trading, valid for a set number of hours on specified ETF pairs. |
Status Reference
| Status | Meaning |
|---|
| INLINECODE30 | Pending activation |
| INLINECODE31 |
Activated |
|
TO_BE_USED | Available, not yet used |
|
EXPIRED | Expired (unused) |
|
USED | Used/consumed |
|
RECYCLED | Recycled by platform |
|
INVALID | Invalidated |
|
TASK_WAIT | Task in progress |
|
TASK_DONE | Task completed, reward processing |
|
TASK_RECEIVE_SUCCESS | Task reward received |
|
TASK_EXPIRED | Task expired before completion |
|
TASK_START | Task not yet started (coupon issued, task pending activation) |
|
TASK_NOT_STARTED_EXPIRED | Task expired before it started |
|
TASK_RECEIVE_FAIL | Task reward claim failed |
|
UNKNOWN | Unknown status |
cex_coupon_list_user_coupons Parameters
| Parameter | Default | Description |
|---|
| INLINECODE46 | INLINECODE47 | INLINECODE48 = valid coupons; 1 = expired/used coupons |
| INLINECODE50 |
20 | Page size (1–20) |
|
last_id |
0 | Cursor pagination: last id from previous page |
|
expire_time |
0 | Cursor pagination:
expire_time_order_by of the last item from the previous page; used together with
last_id |
|
order_by |
latest |
latest = by acquisition time;
expired = by expiry asc |
|
coupon_type | (all) | Filter by coupon type |
|
is_task_coupon | (all) |
0 = regular only;
1 = task coupons only |
cex_coupon_get_user_coupon_detail Parameters
| Parameter | Required | Description |
|---|
| INLINECODE67 | Yes | Coupon type string |
| INLINECODE68 |
Yes | Regular coupon:
details_id from list; Task coupon:
id from list |
|
is_task_coupon | No |
0 = regular (default);
1 = task coupon |
Routing Rules
Classify the user intent and route to the matching reference document:
| Intent | Example Phrases | Route to |
|---|
| List available coupons | "What coupons do I have?", "Show my available coupons", "Do I have any vouchers?", "Check my coupon balance" | Read INLINECODE74 |
| Search by coupon type |
"Do I have a commission rebate voucher?", "Check if I have a futures bonus", "Show my VIP trial cards" | Read
references/list-coupons.md |
|
View coupon details | "Show details of my commission rebate coupon", "What are the details of this voucher?", "How much is left on my coupon?" | Read
references/coupon-detail.md |
|
View usage rules | "What are the rules for this coupon?", "How do I use this voucher?", "What are the terms of my futures bonus?" | Read
references/coupon-detail.md |
|
Trace coupon source | "How did I get this coupon?", "Where did this voucher come from?", "What activity gave me this coupon?" | Read
references/coupon-detail.md |
|
Query expired/used coupons | "Show my used coupons", "List my expired vouchers", "What coupons have I used?" | Read
references/list-coupons.md |
|
Unclear | "Tell me about my coupons", "coupon help" | Clarify: ask if user wants to list all coupons or check a specific one |
Execution
- 1. Identify user intent from the Routing Rules table above.
- Load the corresponding reference document.
- Follow the workflow in that document step by step.
- All operations are read-only — no confirmation gate required.
Error Handling
| Situation | Action |
|---|
| Coupon not found | Coupon record does not exist or does not belong to current user. Ask user to re-check which coupon they meant; re-fetch list to get valid IDs. |
| Invalid coupon type |
coupon_type is not a recognized enum value. Map user's natural language to the Coupon Types Reference table and retry. |
| No coupons returned | Inform user no coupons match the query. Suggest earning coupons through tasks, activities, or referrals. |
| Coupon type unrecognized by user | User mentions a vague or informal name. Clarify by listing the closest matching type names from the Coupon Types Reference. |
Safety Rules
- - All operations in this skill are read-only (query only, no writes).
- Never request or expose user API secrets in the conversation.
- Do not infer or guess coupon IDs — always obtain them from the list API first.
Gate 优惠券助手
查询和检查 Gate 交易所的优惠券/代金券账户。支持六种场景:列出可用优惠券、按优惠券类型搜索、查看已过期/已使用记录、查看完整优惠券详情、阅读使用规则以及追溯优惠券获取来源。
通用规则
⚠️ 停止 — 在继续之前,您必须阅读并严格遵守共享的运行时规则。
在阅读完所有规则之前,请勿选择或调用任何工具。这些规则具有最高优先级。
→ 阅读 ./references/gate-runtime-rules.md
- - 仅调用本技能中明确列出的 MCP 工具。 即使 MCP 服务器中存在未在此处记录的工具,也不得调用。
MCP 依赖
必需的 MCP 服务器
使用的 MCP 工具
查询操作(只读)
- - cexcoupongetusercoupondetail
- cexcouponlistuser_coupons
认证
- - 凭证来源:本地 Gate MCP 部署(GATEAPIKEY、GATEAPISECRET)
- 需要 API 密钥:是
- 权限:优惠券:读取
- 切勿要求用户在聊天中粘贴密钥;仅依赖已配置的 MCP 会话。
- API 密钥配置参考:https://www.gate.com/myaccount/profile/api-key/manage(当本地 MCP 设置需要时,在聊天之外创建或轮换密钥)。
安装检查
- - 必需:Gate(主)
- 安装:在继续之前,使用当前主机 IDE 的本地 Gate MCP 安装流程。
- 仅在 Gate MCP 会话配置了上述凭证后才继续;不要切换到浏览器认证或要求用户在聊天中粘贴密钥。
MCP 模式
阅读并严格遵守 references/mcp.md,然后执行本技能的优惠券查询工作流。
- - SKILL.md 保留优惠券语义、映射规则和渲染策略。
- references/mcp.md 是列表/详情查询行为和降级安全输出的权威 MCP 执行层。
领域知识
MCP 工具映射
| 工具 | 描述 |
|---|
| cexcouponlistusercoupons | 获取用户优惠券列表(分页,可按类型/状态筛选) |
| cexcoupongetusercoupon_detail |
获取单个优惠券的完整详情 |
优惠券类型参考
重要 — 类型翻译规则:显示优惠券类型时,严格将 coupontype 映射到显示名称。您可以根据响应语言翻译显示名称,但映射必须精确 — 切勿交换或混淆两种不同的类型。关键区别:positionvoucher(仓位体验券)是一种基于仓位的试用券 — 中文翻译为仓位体验券,切勿翻译为合约体验金;contract_bonus(合约体验金)是期货试用资金 — 中文翻译为合约体验金。它们是完全不同的产品。
| coupontype | 显示名称 | 描述 |
|---|
| positionvoucher | 仓位体验券 | 用于开仓期货仓位的虚拟资金(与合约体验金不同)。利润可提取;本金在到期后收回。 |
| tradfipositionvoucher |
传统金融仓位体验券 | 与仓位体验券概念相同,但适用于传统金融工具(股票、外汇等)。 |
| contract_bonus | 合约体验金 | 可用于期货交易的试用资金。未使用的余额在到期时收回。 |
| contract
bonusnew | 期货体验券 | 较新的期货试用资金,具有可配置的杠杆和交易对限制;有效期为设定的小时数。 |
| commission_rebate | 手续费返还券 | 返还适用市场上产生的实际交易手续费的一定百分比;可重复使用直至余额用完。 |
| hold_bonus | 理财体验金 | 用于理财产品的试用资金(例如借贷宝);到期时收回。 |
| point | 积分卡 | 平台积分,可兑换奖励或用于活动。 |
| financial_rate | 利率加成券 | 在符合条件的理财产品的基准利率上增加额外年化收益率,最高可达设定金额。 |
| robot_bonus | 量化机器人体验金 | 用于交易机器人(例如网格、期货网格)的试用资金;运行固定时长后收回。 |
| loss
protectioncopier | 跟单保护 | 补偿部分跟单亏损,受最高赔付额和合格交易者限制。 |
| vip_card | VIP 体验卡 | 激活后在固定天数内授予临时 VIP 等级费率及权益。 |
| interest_voucher | 杠杆利息折扣券 | 按设定百分比降低逐仓杠杆借贷的利率,最高可享受最大折扣金额。 |
| p2p | P2P 折扣券 | 扣除一定百分比的 P2P 交易手续费,受上限和最低交易额限制。 |
| cash | 现金券 | 可兑换为账户余额现金;满足合格条件后入账。 |
| crypto
loaninterest | 加密货币借贷利息折扣券 | 降低加密货币抵押贷款(灵活期限)的利息,受最高折扣和最低贷款额限制。 |
| copy_trading | 跟单体验金 | 用于跟单交易的试用资金;支持特定或所有交易者,设有止损限额和固定试用时长。 |
| alpha_voucher | Alpha 现金券 | 可用于在 Gate Alpha 市场购买代币的现金信用。 |
| etf_voucher | ETF 体验金 | 用于杠杆 ETF 交易的试用资金,在指定 ETF 交易对上有效期为设定小时数。 |
状态参考
| 状态 | 含义 |
|---|
| NOT_ACTIVE | 待激活 |
| ACTIVATED |
已激活 |
| TO
BEUSED | 可用,尚未使用 |
| EXPIRED | 已过期(未使用) |
| USED | 已使用/已消耗 |
| RECYCLED | 已被平台回收 |
| INVALID | 已失效 |
| TASK_WAIT | 任务进行中 |
| TASK_DONE | 任务已完成,奖励处理中 |
| TASK
RECEIVESUCCESS | 任务奖励已收到 |
| TASK_EXPIRED | 任务在完成前已过期 |
| TASK_START | 任务尚未开始(优惠券已发放,任务待激活) |
| TASK
NOTSTARTED_EXPIRED | 任务在开始前已过期 |
| TASK
RECEIVEFAIL | 任务奖励领取失败 |
| UNKNOWN | 未知状态 |
cexcouponlistusercoupons 参数
| 参数 | 默认值 | 描述 |
|---|
| expired | 0 | 0 = 有效优惠券;1 = 已过期/已使用优惠券 |
| limit |
20 | 每页数量(1–20) |
| last_id | 0 | 游标分页:上一页的最后一条记录的 id |
| expire
time | 0 | 游标分页:上一页最后一条记录的 expiretime
orderby;与 last_id 一起使用 |
| order_by | latest | latest = 按获取时间;expired = 按到期时间升序 |
| coupon_type | (全部) | 按优惠券类型筛选 |
| is
taskcoupon | (全部) | 0 = 仅常规;1 = 仅任务优惠券 |
cexcoupongetusercoupon_detail 参数
| 参数 | 必需 | 描述 |
|---|
| coupontype | 是 | 优惠券类型字符串 |
| detailid |
是 | 常规优惠券:列表中的 details_id;任务优惠券:列表中的 id |
| is
taskcoupon | 否