gate-mcp-skill

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Gate MCP Skill

Gate MCP Skill

Use this skill to run Gate public market data workflows through
uxc
+ MCP.
Reuse the
uxc
skill for shared MCP execution, output parsing, and generic auth guidance.
使用该Skill通过
uxc
+ MCP运行Gate公开市场数据工作流。
复用
uxc
Skill以实现共享MCP执行、输出解析和通用身份验证指引。

Prerequisites

前提条件

  • uxc
    is installed and available in
    PATH
    .
  • Network access to
    https://api.gatemcp.ai/mcp
    .
  • uxc
    已安装且可在
    PATH
    中访问。
  • 能够访问
    https://api.gatemcp.ai/mcp
    网络。

Scope

适用范围

This skill covers the official Gate MCP surface for:
  • public spot market discovery
  • public spot tickers, trades, order books, and candlesticks
  • public futures contracts, tickers, trades, order books, funding, and premium data
This skill does not cover:
  • private account or trading workflows
  • Gate REST v4 signed APIs
  • wallet, funding, or portfolio actions
该Skill涵盖Gate MCP官方支持的以下功能:
  • 公开现货市场发现
  • 公开现货行情、交易、订单簿和K线数据
  • 公开期货合约、行情、交易、订单簿、资金费率和溢价数据
该Skill涵盖以下内容:
  • 个人账户或交易工作流
  • Gate REST v4签名API
  • 钱包、资金或投资组合操作

Endpoint

端点

Use Gate's official MCP endpoint:
  • https://api.gatemcp.ai/mcp
使用Gate官方MCP端点:
  • https://api.gatemcp.ai/mcp

Core Workflow

核心工作流

  1. Use the fixed link command by default:
    • command -v gate-mcp-cli
    • If missing, create it:
      uxc link gate-mcp-cli https://api.gatemcp.ai/mcp
    • gate-mcp-cli -h
  2. Inspect tool and argument help before execution:
    • gate-mcp-cli cex_spot_get_spot_tickers -h
    • gate-mcp-cli cex_spot_get_spot_order_book -h
    • gate-mcp-cli cex_fx_get_fx_tickers -h
    • gate-mcp-cli cex_fx_get_fx_order_book -h
  3. Prefer narrow spot or futures reads with explicit instrument identifiers:
    • gate-mcp-cli cex_spot_get_spot_tickers currency_pair=BTC_USDT
    • gate-mcp-cli cex_spot_get_spot_order_book currency_pair=BTC_USDT limit=20
    • gate-mcp-cli cex_fx_get_fx_tickers contract=BTC_USDT
    • gate-mcp-cli cex_fx_get_fx_funding_rate contract=BTC_USDT
  1. 默认使用固定链接命令:
    • command -v gate-mcp-cli
    • 若未找到,创建链接:
      uxc link gate-mcp-cli https://api.gatemcp.ai/mcp
    • gate-mcp-cli -h
  2. 执行前查看工具和参数帮助:
    • gate-mcp-cli cex_spot_get_spot_tickers -h
    • gate-mcp-cli cex_spot_get_spot_order_book -h
    • gate-mcp-cli cex_fx_get_fx_tickers -h
    • gate-mcp-cli cex_fx_get_fx_order_book -h
  3. 优先使用明确的工具标识符进行精准的现货或期货数据读取:
    • gate-mcp-cli cex_spot_get_spot_tickers currency_pair=BTC_USDT
    • gate-mcp-cli cex_spot_get_spot_order_book currency_pair=BTC_USDT limit=20
    • gate-mcp-cli cex_fx_get_fx_tickers contract=BTC_USDT
    • gate-mcp-cli cex_fx_get_fx_funding_rate contract=BTC_USDT

Operations

操作

Spot

现货

  • cex_spot_list_currencies
  • cex_spot_list_currency_pairs
  • cex_spot_get_currency
  • cex_spot_get_currency_pair
  • cex_spot_get_spot_tickers
  • cex_spot_get_spot_order_book
  • cex_spot_get_spot_trades
  • cex_spot_get_spot_candlesticks
  • cex_spot_list_currencies
  • cex_spot_list_currency_pairs
  • cex_spot_get_currency
  • cex_spot_get_currency_pair
  • cex_spot_get_spot_tickers
  • cex_spot_get_spot_order_book
  • cex_spot_get_spot_trades
  • cex_spot_get_spot_candlesticks

Futures

期货

  • cex_fx_list_fx_contracts
  • cex_fx_get_fx_contract
  • cex_fx_get_fx_tickers
  • cex_fx_get_fx_order_book
  • cex_fx_get_fx_trades
  • cex_fx_get_fx_candlesticks
  • cex_fx_get_fx_funding_rate
  • cex_fx_get_fx_premium_index
  • cex_fx_list_fx_liq_orders
  • cex_fx_list_fx_contracts
  • cex_fx_get_fx_contract
  • cex_fx_get_fx_tickers
  • cex_fx_get_fx_order_book
  • cex_fx_get_fx_trades
  • cex_fx_get_fx_candlesticks
  • cex_fx_get_fx_funding_rate
  • cex_fx_get_fx_premium_index
  • cex_fx_list_fx_liq_orders

Guardrails

规则约束

  • Keep automation on the JSON output envelope; do not use
    --text
    .
  • Parse stable fields first:
    ok
    ,
    kind
    ,
    protocol
    ,
    data
    ,
    error
    .
  • Treat this v1 skill as read-only.
  • Prefer
    currency_pair
    values like
    BTC_USDT
    for spot and
    contract
    values like
    BTC_USDT
    for futures unless help output indicates a different contract name.
  • gate-mcp-cli <operation> ...
    is equivalent to
    uxc https://api.gatemcp.ai/mcp <operation> ...
    .
  • 自动化操作仅针对JSON输出格式;请勿使用
    --text
    参数。
  • 优先解析稳定字段:
    ok
    kind
    protocol
    data
    error
  • 该v1版本Skill仅用于读取操作。
  • 现货优先使用
    BTC_USDT
    这类
    currency_pair
    值,期货优先使用
    BTC_USDT
    这类
    contract
    值,除非帮助输出显示不同的合约名称。
  • gate-mcp-cli <operation> ...
    等同于
    uxc https://api.gatemcp.ai/mcp <operation> ...

References

参考资料