Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计提醒

gate-exchange-tradfi门交换贸易

Agent Skill

gate-exchange-tradfi 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,248

周安装

50

GitHub Stars

26

下载量

404
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gate-exchange-tradfi(门交换贸易)
来源仓库:https://github.com/gate/gate-skills
仓库路径:skills/gate-exchange-tradfi
安装命令:
npx skills add https://github.com/gate/gate-skills --skill gate-exchange-tradfi
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/gate/gate-skills --skill gate-exchange-tradfi

简介

gate-exchange-tradfi 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理的任务场景。
  • 通过 npx skills add 命令从指定仓库安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 当前无额外功能说明,建议进一步查阅来源仓库获取详细文档和使用示例。

SKILL.md

Resolving gate-cli (binary path)

Resolve gate-cli in order: (1) command -v gate-cli and gate-cli --version succeeds; (2) ${HOME}/.local/bin/gate-cli if executable; (3) ${HOME}/.openclaw/skills/bin/gate-cli if executable. Canonical rules: exchange-runtime-rules.md §4 (or gate-runtime-rules.md §4).

Gate TradFi Suite

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 gate-runtime-rules.md

  • Only use the gate-cli commands explicitly listed in this skill. Commands not documented here must NOT be run for these workflows, even if other interfaces expose them.

Skill Dependencies

gate-cli commands used

Query Operations (Read-only)

  • gate-cli cex tradfi market categories
  • gate-cli cex tradfi account info
  • gate-cli cex tradfi order history
  • gate-cli cex tradfi order list
  • gate-cli cex tradfi position history
  • gate-cli cex tradfi position list
  • gate-cli cex tradfi market symbol
  • gate-cli cex tradfi market kline
  • gate-cli cex tradfi market ticker
  • gate-cli cex tradfi market symbols
  • gate-cli cex tradfi account assets

Execution Operations (Write)

  • gate-cli cex tradfi position close
  • gate-cli cex tradfi order create
  • gate-cli cex tradfi order cancel
  • gate-cli cex tradfi order update
  • gate-cli cex tradfi position update

Authentication

  • Interactive file setup: when GATE_API_KEY and GATE_API_SECRET are not both set on the host, run gate-cli config init to complete the wizard for API key, secret, profiles, and defaults (see gate-cli).
  • Env / flags: gate-cli config init is not required when credentials are already supplied — e.g. both GATE_API_KEY and GATE_API_SECRET set on the host, or --api-key / --api-secret where supported — never ask the user to paste secrets into chat.
  • Permissions: Tradfi:Write
  • Portal: create or rotate keys outside the chat: https://www.gate.com/myaccount/profile/api-key/manage

Installation Check

  • Required: gate-cli (run sh./setup.sh from this skill directory if missing; optional GATE_CLI_SETUP_MODE=release).
  • Add $HOME/.openclaw/skills/bin to PATH if you invoke gate-cli by name (or the directory where setup.sh installs it).
  • Credentials: When GATE_API_KEY and GATE_API_SECRET are both set (non-empty) for the host, do not require gate-cli config init — that is equivalent valid config for gate-cli. When both are unset or empty, remind the operator to run gate-cli config init or to configure GATE_API_KEY / GATE_API_SECRET in the matching skill from the skill library (never ask the user to paste secrets into chat).
  • Sanity check: Do not proceed with authenticated calls until the CLI behaves as expected (e.g. gate-cli --version or a read-only gate-cli cex... command from this skill); confirm credentials resolve before mutating operations.

Execution mode

Read and strictly follow references/gate-cli.md, then execute this skill's TradFi workflow.

  • SKILL.md keeps routing and domain constraints.
  • references/gate-cli.md is the authoritative gate-cli execution contract for query/mutation separation, confirmation gates, and post-action verification.

Sub-Modules

ModuleDescriptionTrigger keywords
Query ordersOrder list, order historyorders, open orders, order history
Query positionsCurrent position list, position historypositions, my positions, position history, holdings, current position
Query marketCategory list, symbol list, ticker, symbol klinecategory, categories, symbol list, symbols, ticker, kline, candlestick, market
Query assetsUser balance/asset info, MT5 account infoassets, balance, account, my funds, MT5, mt5 account
Place orderCreate new order (supports take-profit/stop-loss at creation)place order, create order, open order, buy, sell, long, short, take-profit, stop-loss
Amend orderChange order price, take-profit, or stop-loss (size not supported)amend order, modify order, change price, take-profit, stop-loss
Cancel orderCancel one or more orderscancel order, revoke order, cancel
Modify positionChange position take-profit/stop-loss only (leverage, margin not supported)modify position, take-profit, stop-loss, change take-profit, change stop-loss
Close positionFull or partial closeclose position, close, close all, flat

Routing Rules

IntentExample phrasesRoute to
Query orders"My TradFi orders", "order history", "show open orders", "order status"Read references/query-orders.md
Query positions"My positions", "position history", "current holdings", "what am I holding"Read references/query-positions.md
Query market"TradFi categories", "category list", "symbol list", "ticker", "kline for X", "market data"Read references/query-market.md
Query assets"My assets", "balance", "account balance", "MT5 account", "my MT5 info"Read references/query-assets.md
Place order"Place order", "buy EURUSD", "sell XAUUSD 0.1", "open long", "order with take-profit/stop-loss"Read references/place-order.md
Amend order"Amend order", "change price to X", "take-profit", "stop-loss"Read references/amend-order.md
Cancel order"Cancel order", "cancel all orders", "revoke order"Read references/cancel-order.md
Modify position"Modify position", "take-profit", "stop-loss", "change take-profit/stop-loss"Read references/modify-position.md
Close position"Close position", "close all", "close half", "flat"Read references/close-position.md
Unclear"TradFi", "show me my TradFi"Clarify: list query and trading modules or ask which the user wants.

gate-cli command index

Query (read-only) — use only MCP-documented parameters.

#ToolPurpose
1gate-cli cex tradfi order listList open orders.
2gate-cli cex tradfi order historyQuery order history list (filled/cancelled).
3gate-cli cex tradfi position listList current positions.
4gate-cli cex tradfi position historyList historical positions/settlements.
5gate-cli cex tradfi market categoriesQuery TradFi category list.
6gate-cli cex tradfi market symbolsList symbols (by category if supported).
7gate-cli cex tradfi market tickerGet ticker(s) for symbol(s).
8gate-cli cex tradfi market symbolGet symbol config (required before place order: leverages, min_order_volume, step_order_volume). If no result, symbol may not exist — do not place order.
9gate-cli cex tradfi market klineGet kline/candlestick for symbol.
10gate-cli cex tradfi account assetsGet user account/balance (assets).
11gate-cli cex tradfi account infoGet MT5 account info.

Trading (write) — exact tool names and parameters must match the Gate TradFi MCP tool definition. Conditions and value limits (required/optional, ranges, allowed symbols) must be declared in the skill and in each reference; do not pass undocumented parameters.

#Tool (name per MCP)Purpose
12gate-cli cex tradfi order createPlace new order; supports take-profit/stop-loss. Before calling: use gate-cli cex tradfi market symbol to validate symbol and get min_order_volume, step_order_volume, leverages.
13gate-cli cex tradfi order updateAmend order price, take-profit, stop-loss only (size not supported).
14gate-cli cex tradfi order cancelCancel/delete one order. Does not support batch; one order per call.
15gate-cli cex tradfi position updateModify position take-profit/stop-loss price only (leverage, margin not supported).
16gate-cli cex tradfi position close (or MCP equivalent)Close position (full or partial). Full close: position identifier only, do not pass size/close_volume.

Parameter conditions and limits

  • For each MCP tool, input conditions and limits (required/optional parameters, value ranges, allowed symbols, precision) are defined in the MCP. This skill and each reference document must declare those conditions and limits so the agent and user know what can be sent.
  • In each trading reference (place-order.md, amend-order.md, cancel-order.md, modify-position.md, close-position.md), include a Parameters section that states: required/optional params, value constraints, and any MCP-specific rules. Do not add parameters that the MCP does not document.
  • If the user provides a value outside allowed range or a missing required param, ask for correction before building the confirmation payload.

User confirmation (trading only)

  • Before calling any trading MCP tool (place order, amend order, cancel order, modify position, close position): output all parameters that will be sent to the MCP so the user can review them. Ask the user to confirm (e.g. "Confirm: place order with symbol=X, side=Y, size=Z, price=W. Reply yes to execute."). Do not call the tool until the user explicitly confirms.
  • This applies to every write operation; query-only flows do not require confirmation.

Response parameter explanation (trading only)

  • After the trading MCP tool returns: in the response to the user, explain the parameters that were used (e.g. symbol, side, size, price, order_id, or position identifier) and the outcome (e.g. order created, order amended, order cancelled, position modified, position closed). Include a short summary table or list of the sent parameters and the result (success or error code/message). This is declared in this skill so the agent always reports back what was sent and what happened.

Execution

1. Intent and parameters

  • Determine module: Query (orders, positions, market, assets) or Trading (place, amend, cancel, modify position, close).
  • For each MCP tool call, use only the parameters defined in the Gate TradFi MCP tool definition. Do not pass parameters that are not documented in the MCP.
  • Extract from user message only those keys that the MCP actually supports. Respect conditions and limits declared in the skill and in the reference.

2. Read sub-module and call tools

  • Load the corresponding reference under references/ and follow its Workflow.
  • Query: Call query tools with extracted/prompted parameters; no confirmation needed.
  • Trading: Build the parameter set per the reference and MCP; output parameters for user confirmation; only after user confirms, call the trading MCP tool; then in the response, explain the parameters used and the outcome.

3. Report

  • Query: Use the sub-module Report Template (tables for orders/positions/tickers, assets).
  • Trading: Use the reference Report Template; include parameter summary (what was sent) and result (success or error).

Domain Knowledge

  • TradFi: Gate’s traditional finance product set (e.g. FX, MT5). Symbols and categories are product-specific.
  • Query: Orders, positions, market, assets — use only MCP-documented parameters.
  • Trading: Place/amend/cancel orders and modify/close positions — use only MCP-documented tools and parameters; declare conditions/limits; require user confirmation before execution; explain parameters and outcome in the response.
  • Order id for cancel/amend: The order id used by gate-cli cex tradfi order cancel and gate-cli cex tradfi order update must come from gate-cli cex tradfi order list. Do not use the id or log_id returned by gate-cli cex tradfi order create for cancel or amend.

Error Handling

SituationAction
Tool not found / 4xx/5xxTell user the TradFi service or tool may be unavailable; suggest retry or check Gate MCP configuration.
Empty listReport "No open orders" / "No positions" / "No symbols" etc., and do not assume error.
Invalid symbol / order not foundReport "Order not found" or "Symbol not found" and suggest checking symbol list.
Auth / permission errorDo not expose credentials; ask user to check API key or MCP auth for TradFi.
Trading error (e.g. insufficient margin, invalid price)Show the error message; in the response, restate the parameters that were sent and suggest correction.

Safety Rules

  • Query: No confirmation required; display data after tool success.
  • Trading: Always output parameters for user confirmation before calling place/amend/cancel/modify/close; never execute a write operation without explicit user confirmation. After execution, always explain in the response the parameters that were used and the outcome.
  • Sensitive data: Do not log or store credentials or balances; display only in the current response.

Report Template

Query — After each query:

  • Orders: Table with columns such as symbol, side, size, price, status, time (from list response).
  • Positions: Table with position fields (e.g. symbol, side, size, entry, margin) or "No open positions."
  • Market: Category list; symbol list; ticker table (symbol, last, 24h change, volume); or symbol kline summary (interval, range, OHLC).
  • Assets: List of assets and balances; or MT5 account/server/balance/equity table; or "Unable to load" on error.

Trading — After each place/amend/cancel/modify/close:

  • Parameters used: List or table of the parameters sent to the MCP (e.g. symbol, side, size, price, order_id).
  • Result: Success (e.g. order id, status) or error (code/message). Suggest next step if error.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.92%
按下载量换算141

Claude

29%
按下载量换算117

Cursor

17.33%
按下载量换算70

Gemini CLI

9.28%
按下载量换算37

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills