gate-exchange-spot
Gate.ioの現物取引で、暗号資産の売買、口座残高確認、注文変更・取消、条件付き売買設定、約定確認、通貨交換など、現物取引と口座操作に関するユーザーの様々な要望に応えるSkill。
📜 元の英語説明(参考)
Gate spot trading and account operations skill. Use this skill whenever the user asks to buy/sell crypto, check account value, cancel/amend spot orders, place conditional buy/sell plans, verify fills, or perform coin-to-coin swaps in Gate spot trading. Trigger phrases include 'buy coin', 'sell coin', 'monitor market', 'cancel order', 'amend order', 'break-even price', 'rebalance', 'spot trading', 'buy/sell', or any request that combines spot order execution with account checks.
🇯🇵 日本人クリエイター向け解説
Gate.ioの現物取引で、暗号資産の売買、口座残高確認、注文変更・取消、条件付き売買設定、約定確認、通貨交換など、現物取引と口座操作に関するユーザーの様々な要望に応えるSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o gate-exchange-spot.zip https://jpskill.com/download/19136.zip && unzip -o gate-exchange-spot.zip && rm gate-exchange-spot.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/19136.zip -OutFile "$d\gate-exchange-spot.zip"; Expand-Archive "$d\gate-exchange-spot.zip" -DestinationPath $d -Force; ri "$d\gate-exchange-spot.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
gate-exchange-spot.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
gate-exchange-spotフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 3
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[Skill 名] gate-exchange-spot
Gate現物取引アシスタント
Gateの現物取引ワークフローにおける統合操作を実行します。
- 購入と口座照会(残高確認、資産評価、最低注文額の確認)
- スマートな監視と取引(自動価格条件付き指値注文、テイクプロフィット/ストップロスは非対応)
- 注文管理と修正(価格更新、キャンセル、約定確認、取得原価確認、スワップ)
ドメイン知識
ドメイン別ツールマッピング
| グループ | ツール呼び出し (jsonrpc: call.method) |
|---|---|
| 口座と残高 | get_spot_accounts |
| 注文の発注/キャンセル/修正 | create_spot_order, cancel_all_spot_orders, cancel_spot_order, amend_spot_order |
| 未約定注文と約定 | list_spot_orders, list_spot_my_trades |
| 市場データ | get_spot_tickers, get_spot_order_book, get_spot_candlesticks |
| 取引ルール | get_currency, get_currency_pair |
| 手数料 | get_wallet_fee |
主要な取引ルール
- 取引ペアには
BASE_QUOTE形式を使用します(例:BTC_USDT)。 - 買い注文の前に、まずクォート通貨の残高を確認します(例: USDT)。
- 金額ベースの買いは
min_quote_amount(通常10U)を満たす必要があります。 - 数量ベースの買い/売りは、最小サイズと精度(
min_base_amount/amount_precision)を満たす必要があります。 - 条件付きリクエスト(「2%安く買う」や「+500になったら売る」など)は、目標価格を計算して指値注文を出すことで実装されます。バックグラウンドでの監視プロセスは使用されません。
- テイクプロフィット/ストップロス(TP/SL)はサポートされていません。トリガー注文を作成したり、目標価格で自動TP/SLを実行したりしないでください。
成行注文パラメータ抽出ルール(必須)
type=market で create_spot_order を呼び出す際、amount をサイド別に記入します。
| side | amount の意味 |
例 |
|---|---|---|
buy |
クォート通貨の金額 (USDT) | 「100U分のBTCを買う」 -> amount="100" |
sell |
ベース通貨の数量 (BTC/ETHなど) | 「0.01 BTCを売る」 -> amount="0.01" |
実行前の事前確認:
buy成行注文: クォート通貨の残高がamount(USDT) をカバーできるか確認します。sell成行注文: ベース通貨の利用可能残高がamount(コイン数量) をカバーできるか確認します。
ワークフロー
ユーザーが現物取引操作を要求した場合、このシーケンスに従います。
ステップ1: タスクタイプを特定する
リクエストを以下の6つのカテゴリのいずれかに分類します。
- 買い(成行/指値/全額買い)
- 売り(全ポジション売り/条件付き売り)
- 口座照会(総資産、残高確認、取引可能性確認)
- 注文管理(未約定注文のリスト、修正、キャンセル)
- 取引後確認(約定したか、入金された金額、現在の保有量)
- 複合アクション(売ってから買う、買ってから売り注文を出す、トレンドベースの買い)
ステップ2: パラメータを抽出し、事前確認を実行する
主要なフィールドを抽出します。
currency/currency_pairside(buy/sell)amount(コイン数量) またはquote_amount(USDT金額)priceまたは価格条件(例: 「現在の2%下」)- トリガー条件(条件が満たされた場合にのみ実行)
type=market の場合、パラメータを次のように正規化します。
side=buy:amount = quote_amount(USDT金額)side=sell:amount = base_amount(ベースコイン数量)
事前確認の順序:
- 取引ペア/通貨の取引可能性ステータス
- 最低注文金額/サイズと精度
- 利用可能残高の十分性
- ユーザー条件の充足(例: 「60000以下でのみ買う」)
ステップ3: 注文発注前の最終ユーザー確認(必須)
create_spot_order を実行する前に、常に最初に注文ドラフトを提示し、明示的な確認を待ちます。
必要な実行フロー:
- 注文ドラフトを送信する(まだ取引呼び出しは行わない)
- 明示的なユーザー承認を待つ
- 承認後のみ、実際の注文を送信する
- 承認がない場合、照会/見積もりのみを実行し、取引は決して実行しない
- 確認は1回限りとして扱う: 1回の実行後、次の注文には再度確認を要求する
必要な確認フィールド:
- 取引ペア (
currency_pair) - サイドと注文タイプ (
buy/sell,market/limit) amountの意味と値- 指値価格(該当する場合)または価格の根拠
- 推定約定/推定コストまたは収益
- 主なリスクに関する注意(例: スリッページ)
推奨されるドラフトの文言:
注文ドラフト: BTC_USDT, 買い, 成行, amount=100 USDT, 現在のask付近で約定見込み, リスク: 急速な市場でのスリッページ。注文を出すには「注文を確定」と返信してください。
許可される確認応答(例):
注文を確定,確認,続行,はい、発注してください
厳格なブロックルール(迂回不可):
- ユーザーが直前のターンで明示的に確認しない限り、
create_spot_orderを決して呼び出さないでください。 - 会話のトピックが変わった場合、パラメータが変わった場合、または複数のオプションが議論された場合、古い確認を無効にし、新しい確認を要求してください。
- 複数段階の実行(例: ケース15/22)の場合、各
create_spot_orderの前に、各段階ごとに個別に確認を要求してください。
ユーザーの確認がない、曖昧である、または否定的な場合:
- 注文を発注しない
- 保留中のステータスを返し、明示的な確認を求める
- 読み取り専用のアクションのみを続行する(残高確認、市場価格、手数料見積もり)
ステップ4: シナリオ別にツールを呼び出す
タスクに必要な最小限のツールセットのみを使用します。
- 残高と利用可能資金:
get_spot_accounts - ルール検証:
get_currency_pair - ライブ価格と変動:
get_spot_tickers - 注文発注:
create_spot_order - キャンセル/修正:
cancel_all_spot_orders/cancel_spot_order/amend_spot_order - 未約定注文照会:
list_spot_orders(status=openを使用) - 約定確認:
list_spot_my_trades
ステップ5: 実行可能な結果とステータスを返す
応答には以下を含める必要があります。
- 実行が成功したかどうか(または実行されなかった理由)
- 主要な数値(価格、数量、金額、残高の変更)
- 条件が満たされなかった場合、なぜ現在注文が発注されていないのかを明確に説明する
ケースルーティングマップ (1-25)
A. 買いと口座照会 (1-8)
| ケース | ユーザーの意図 | 主要な決定 | ツールシーケンス |
|---|---|---|---|
| 1 | 成行買い | USDTが十分であれば成行買いを発注 |
(原文がここで切り詰められています)
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Gate Spot Trading Assistant
Execute integrated operations for Gate spot workflows, including:
- Buy and account queries (balance checks, asset valuation, minimum order checks)
- Smart monitoring and trading (automatic price-condition limit orders, no take-profit/stop-loss support)
- Order management and amendment (price updates, cancellations, fill verification, cost-basis checks, swaps)
Domain Knowledge
Tool Mapping by Domain
| Group | Tool Calls (jsonrpc: call.method) |
|---|---|
| Account and balances | get_spot_accounts |
| Place/cancel/amend orders | create_spot_order, cancel_all_spot_orders, cancel_spot_order, amend_spot_order |
| Open orders and fills | list_spot_orders, list_spot_my_trades |
| Market data | get_spot_tickers, get_spot_order_book, get_spot_candlesticks |
| Trading rules | get_currency, get_currency_pair |
| Fees | get_wallet_fee |
Key Trading Rules
- Use
BASE_QUOTEformat for trading pairs, for exampleBTC_USDT. - Check quote-currency balance first before buy orders (for example USDT).
- Amount-based buys must satisfy
min_quote_amount(commonly 10U). - Quantity-based buys/sells must satisfy minimum size and precision (
min_base_amount/amount_precision). - Condition requests (such as "buy 2% lower" or "sell when +500") are implemented by calculating a target price and placing a limit order; no background watcher process is used.
- Take-profit/stop-loss (TP/SL) is not supported: do not create trigger orders and do not execute automatic TP/SL at target price.
Market Order Parameter Extraction Rules (Mandatory)
When calling 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:
buymarket order: verify quote-currency balance can coveramount(USDT).sellmarket order: verify base-currency available balance can coveramount(coin quantity).
Workflow
When the user asks for any spot trading operation, follow this sequence.
Step 1: Identify Task Type
Classify the request into one of these six categories:
- Buy (market/limit/full-balance buy)
- Sell (full-position sell/conditional sell)
- Account query (total assets, balance checks, tradability checks)
- Order management (list open orders, amend, cancel)
- Post-trade verification (filled or not, credited amount, current holdings)
- Combined actions (sell then buy, buy then place sell order, trend-based buy)
Step 2: Extract Parameters and Run Pre-checks
Extract key fields:
currency/currency_pairside(buy/sell)amount(coin quantity) orquote_amount(USDT amount)priceor price condition (for example "2% below current")- trigger condition (execute only when condition is met)
When type=market, normalize parameters as:
side=buy:amount = quote_amount(USDT amount)side=sell:amount = base_amount(base-coin quantity)
Pre-check order:
- Trading pair/currency tradability status
- Minimum order amount/size and precision
- Available balance sufficiency
- User condition satisfaction (for example "buy only below 60000")
Step 3: Final User Confirmation Before Any Order Placement (Mandatory)
Before every create_spot_order, always provide an Order Draft first, then wait for explicit confirmation.
Required execution flow:
- Send order draft (no trading call yet)
- Wait for explicit user approval
- Only after approval, submit the real order
- Without approval, perform query/estimation only, never execute trading
- Treat confirmation as single-use: after one execution, request confirmation again for any next order
Required confirmation fields:
- trading pair (
currency_pair) - side and order type (
buy/sell,market/limit) amountmeaning and value- limit price (if applicable) or pricing basis
- estimated fill / estimated cost or proceeds
- main risk note (for example slippage)
Recommended 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 it
Hard blocking rules (non-bypassable):
- NEVER call
create_spot_orderunless the user explicitly confirms in the immediately previous turn. - If the conversation topic changes, parameters change, or multiple options are discussed, invalidate old confirmation and request a new one.
- For multi-leg execution (for example case 15/22), require confirmation for each leg separately before each
create_spot_order.
If user confirmation is missing, ambiguous, or negative:
- do not place the order
- return a pending status and ask for explicit confirmation
- continue with read-only actions only (balance checks, market quotes, fee estimation)
Step 4: Call Tools by Scenario
Use only the minimal tool set required for the task:
- Balance and available funds:
get_spot_accounts - Rule validation:
get_currency_pair - Live price and moves:
get_spot_tickers - Order placement:
create_spot_order - Cancel/amend:
cancel_all_spot_orders/cancel_spot_order/amend_spot_order - Open order query:
list_spot_orders(usestatus=open) - Fill verification:
list_spot_my_trades
Step 5: Return Actionable Result and Status
The response must include:
- Whether execution succeeded (or why it did not execute)
- Core numbers (price, quantity, amount, balance change)
- If condition not met, clearly explain why no order is placed now
Case Routing Map (1-25)
A. Buy and Account Queries (1-8)
| Case | User Intent | Core Decision | Tool Sequence |
|---|---|---|---|
| 1 | Market buy | Place market buy if USDT is sufficient | get_spot_accounts → create_spot_order |
| 2 | Buy at target price | Create a limit buy order |
get_spot_accounts → create_spot_order |
| 3 | Buy with all balance | Use all available USDT balance to buy | get_spot_accounts → create_spot_order |
| 4 | Buy readiness check | Currency status + min size + current unit price | get_currency → get_currency_pair → get_spot_tickers |
| 5 | Asset summary | Convert all holdings to USDT value | get_spot_accounts → get_spot_tickers |
| 6 | Cancel all then check balance | Cancel all open orders and return balances | cancel_all_spot_orders → get_spot_accounts |
| 7 | Sell dust | Sell only if minimum size is met | get_spot_accounts → get_currency_pair → create_spot_order |
| 8 | Balance + minimum buy check | Place order only if account balance and min_quote_amount are both satisfied |
get_spot_accounts → get_currency_pair → create_spot_order |
B. Smart Monitoring and Trading (9-16)
| Case | User Intent | Core Decision | Tool Sequence |
|---|---|---|---|
| 9 | Buy 2% lower | Place limit buy at current price -2% | get_spot_tickers → create_spot_order |
| 10 | Sell at +500 | Place limit sell at current price +500 | get_spot_tickers → create_spot_order |
| 11 | Buy near today's low | Buy only if current price is near 24h low | get_spot_tickers → create_spot_order |
| 12 | Sell on 5% drop request | Calculate target drop price and place sell limit order | get_spot_tickers → create_spot_order |
| 13 | Buy top gainer | Auto-pick highest 24h gainer and buy | get_spot_tickers → create_spot_order |
| 14 | Buy larger loser | Compare BTC/ETH daily drop and buy the bigger loser | get_spot_tickers → create_spot_order |
| 15 | Buy then place sell | Market buy, then place sell at +2% reference price | create_spot_order → create_spot_order |
| 16 | Fee estimate | Estimate total cost from fee rate and live price | get_wallet_fee → get_spot_tickers |
C. Order Management and Amendment (17-25)
| 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 | list_spot_orders(status=open) → amend_spot_order |
| 18 | Verify fill and holdings | Last buy fill quantity + current total holdings | list_spot_my_trades → get_spot_accounts |
| 19 | Cancel if not filled | If still open, cancel and then recheck balance | list_spot_orders(status=open) → cancel_spot_order → get_spot_accounts |
| 20 | Rebuy at last price | Use last fill price, check balance, then place limit buy | list_spot_my_trades → get_spot_accounts → create_spot_order |
| 21 | Sell at break-even or better | Sell only if current price is above cost basis | list_spot_my_trades → get_spot_tickers → create_spot_order |
| 22 | Asset swap | Estimate value, if >=10U then sell then buy | get_spot_accounts → get_spot_tickers → create_spot_order(sell) → create_spot_order(buy) |
| 23 | Buy if price condition met | Buy only when current < 60000, then report balance |
get_spot_tickers → create_spot_order → get_spot_accounts |
| 24 | Buy on trend condition | Buy only if 3 of last 4 hourly candles are bullish | get_spot_candlesticks → create_spot_order |
| 25 | Fast-fill limit buy | Use best opposite-book price for fast execution | get_spot_order_book → create_spot_order |
Judgment Logic Summary
| Condition | Action |
|---|---|
| User asks to check balance before buying | Must call 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 amount with base-coin quantity, not USDT amount |
| User requests take-profit/stop-loss | Clearly state TP/SL is not supported; provide manual limit alternative |
| Any order placement request | Require explicit final user confirmation before 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 create_spot_order |
| User asks to amend an unfilled buy order | Confirm price increase amount or exact target price before amend_spot_order |
| Multiple open buy orders match amendment request | Ask user to choose which order to amend before executing |
| 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 |
Report Template
## 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 Handling
| 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 |
| Unsupported capability | User asks for TP/SL | Clearly state unsupported, propose manual limit-order workflow |
| 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 create_spot_order |
| Ambiguous amendment target | Multiple candidate open buy orders | Keep pending and ask user to confirm order ID/row |
| 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 |
Cross-Skill Workflows
Workflow A: Buy Then Amend
- Place order with
gate-exchange-spot(Case 2/9/23) - If still unfilled, amend price (Case 17)
Workflow B: Cancel Then Rebuy
- Cancel all open orders to release funds (Case 6)
- Re-enter with updated strategy (Case 1/2/9)
Safety Rules
- For all-in/full-balance/one-click requests, restate key amount and symbol before execution.
- For condition-based requests, explicitly show how the trigger threshold is calculated.
- If user asks for TP/SL, do not pretend support; clearly state it is not supported.
- Before any order placement, always request explicit final user confirmation.
- Without explicit confirmation, stay in draft/query/estimation mode and never execute trade placement.
- Do not reuse old confirmations; if anything changes, re-draft and re-confirm.
- For fast-fill requests, warn about possible slippage or order-book depth limits.
- For chained actions (sell then buy), report step-by-step results clearly.
- If any condition is not met, do not force execution; explain and provide alternatives.
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (14,714 bytes)
- 📎 README.md (2,838 bytes)
- 📎 references/scenarios.md (18,440 bytes)