Loading...
Loading...
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.
npx skill4agent add gate/gate-skills gate-exchange-spot| Group | Tool Calls ( |
|---|---|
| Account and balances | |
| Place/cancel/amend orders | |
| Open orders and fills | |
| Market data | |
| Trading rules | |
| Fees | |
BASE_QUOTEBTC_USDTmin_quote_amountmin_base_amountamount_precisioncreate_spot_ordertype=marketamount| side | | Example |
|---|---|---|
| Quote-currency amount (USDT) | "Buy 100U BTC" -> |
| Base-currency quantity (BTC/ETH, etc.) | "Sell 0.01 BTC" -> |
buyamountsellamountcurrencycurrency_pairsidebuysellamountquote_amountpricetype=marketside=buyamount = quote_amountside=sellamount = base_amountcreate_spot_ordercreate_spot_batch_orderscurrency_pairbuy/sellmarket/limitamountOrder Draft: BTC_USDT, buy, market, amount=100 USDT, estimated fill around current ask, risk: slippage in fast markets. Reply "Confirm order" to place it.Confirm orderConfirmProceedYes, place itcreate_spot_ordercreate_spot_orderget_spot_accountsget_currency_pairget_spot_tickerscreate_spot_ordercreate_spot_batch_orderscancel_all_spot_orderscancel_spot_ordercancel_spot_batch_ordersamend_spot_orderlist_spot_ordersstatus=openlist_spot_my_tradeslist_spot_account_bookget_spot_batch_fee| Case | User Intent | Core Decision | Tool Sequence |
|---|---|---|---|
| 1 | Market buy | Place market buy if USDT is sufficient | |
| 2 | Buy at target price | Create a | |
| 3 | Buy with all balance | Use all available USDT balance to buy | |
| 4 | Buy readiness check | Currency status + min size + current unit price | |
| 5 | Asset summary | Convert all holdings to USDT value | |
| 6 | Cancel all then check balance | Cancel all open orders and return balances | |
| 7 | Sell dust | Sell only if minimum size is met | |
| 8 | Balance + minimum buy check | Place order only if account balance and | |
| Case | User Intent | Core Decision | Tool Sequence |
|---|---|---|---|
| 9 | Buy 2% lower | Place limit buy at current price -2% | |
| 10 | Sell at +500 | Place limit sell at current price +500 | |
| 11 | Buy near today's low | Buy only if current price is near 24h low | |
| 12 | Sell on 5% drop request | Calculate target drop price and place sell limit order | |
| 13 | Buy top gainer | Auto-pick highest 24h gainer and buy | |
| 14 | Buy larger loser | Compare BTC/ETH daily drop and buy the bigger loser | |
| 15 | Buy then place sell | Market buy, then place sell at +2% reference price | |
| 16 | Fee estimate | Estimate total cost from fee rate and live price | |
| 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 | |
| 18 | Verify fill and holdings | Last buy fill quantity + current total holdings | |
| 19 | Cancel if not filled | If still open, cancel and then recheck balance | |
| 20 | Rebuy at last price | Use last fill price, check balance, then place limit buy | |
| 21 | Sell at break-even or better | Sell only if current price is above cost basis | |
| 22 | Asset swap | Estimate value, if >=10U then sell then buy | |
| 23 | Buy if price condition met | Buy only when | |
| 24 | Buy on trend condition | Buy only if 3 of last 4 hourly candles are bullish | |
| 25 | Fast-fill limit buy | Use best opposite-book price for fast execution | |
| 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 | |
| 27 | Market slippage simulation | Simulate average fill from order-book asks for a notional buy, compare to last price | |
| 28 | Batch buy placement | Check total required quote amount vs available balance, then place multi-order basket | |
| 29 | Fee-rate comparison across pairs | Compare fee tiers and translate fee impact into estimated cost | |
| 30 | Account-book audit + current balance | Show recent ledger changes for a coin and current remaining balance | |
| Condition | Action |
|---|---|
| User asks to check balance before buying | Must call |
| User specifies buy/sell at target price | Use |
| User asks for fastest fill at current market | Prefer |
Market buy ( | Fill |
Market sell ( | Fill |
| 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 |
| 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 |
| User asks to amend an unfilled buy order | Confirm price increase amount or exact target price before |
| 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 |
| 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 |
| User requests fee comparison for multiple pairs | Use |
| User requests account flow for a coin | Use |
| User amount is too small | Check |
| 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 |
## Execution Result
| Item | Value |
|------|-----|
| Scenario | {case_name} |
| Pair | {currency_pair} |
| Action | {action} |
| Status | {status} |
| Key Metrics | {key_metrics} |
{decision_text}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 |
| 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 |
| 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 |
| 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 |
gate-exchange-spot