$npx -y skills add draguris/dragonclaw --skill spotPlace, cancel, and query spot orders on Binance. Requires user's API key and secret.
| 1 | # Binance Spot Trading |
| 2 | |
| 3 | Execute spot trades on Binance via authenticated REST API. |
| 4 | |
| 5 | ## When to Use |
| 6 | User wants to buy/sell crypto, check balances, view open orders, or manage spot positions. |
| 7 | |
| 8 | ## Authentication |
| 9 | Requires `BINANCE_API_KEY` and `BINANCE_API_SECRET` in config. |
| 10 | If not configured, tell the user: "需要先配置币安 API 密钥。在 dragonclaw.yaml 的 binance 部分添加你的 apiKey 和 secretKey。" |
| 11 | |
| 12 | ## Safety Rules |
| 13 | - ALWAYS confirm with user before placing any order |
| 14 | - Default to testnet unless user explicitly requests mainnet |
| 15 | - Never place market orders without showing the current price first |
| 16 | - Show order details (symbol, side, quantity, price) and ask for "CONFIRM" before executing |
| 17 | |
| 18 | ## Endpoints |
| 19 | |
| 20 | ### Get Price |
| 21 | GET /api/v3/ticker/price?symbol=BTCUSDT |
| 22 | No auth required. |
| 23 | |
| 24 | ### Get Account Balance |
| 25 | GET /api/v3/account (signed) |
| 26 | |
| 27 | ### Place Order |
| 28 | POST /api/v3/order (signed) |
| 29 | Required: symbol, side (BUY/SELL), type (LIMIT/MARKET), quantity |
| 30 | For LIMIT: add timeInForce=GTC, price |
| 31 | |
| 32 | ### Cancel Order |
| 33 | DELETE /api/v3/order (signed) |
| 34 | Required: symbol, orderId |
| 35 | |
| 36 | ### Open Orders |
| 37 | GET /api/v3/openOrders (signed) |
| 38 | Optional: symbol |
| 39 | |
| 40 | ## Tool Call Format |
| 41 | ```tool |
| 42 | {"tool": "binance_spot", "action": "GET", "endpoint": "/api/v3/ticker/price", "params": {"symbol": "BTCUSDT"}} |
| 43 | ``` |
| 44 | |
| 45 | ```tool |
| 46 | {"tool": "binance_spot", "action": "POST", "endpoint": "/api/v3/order", "params": {"symbol": "BTCUSDT", "side": "BUY", "type": "LIMIT", "timeInForce": "GTC", "quantity": "0.001", "price": "50000"}} |
| 47 | ``` |