Binance API
by @ivangdavila
Operate Binance Spot APIs through safe REST, WebSocket, and SDK workflows with signed requests, rate-limit control, and testnet-first execution.
clawhub install binanceπ About This Skill
name: Binance API slug: binance version: 1.0.0 homepage: https://clawic.com/skills/binance description: Operate Binance Spot APIs through safe REST, WebSocket, and SDK workflows with signed requests, rate-limit control, and testnet-first execution. changelog: Initial release with production-safe Binance Spot API workflows for REST, WebSocket, signing, and testnet validation. metadata: {"clawdbot":{"emoji":"π","requires":{"bins":["curl","openssl","jq"],"env":["BINANCE_API_KEY","BINANCE_API_SECRET"]},"os":["linux","darwin","win32"]}}
Binance Spot API Operations
Setup
On first use, read setup.md for integration preferences and safe environment defaults.
When to Use
User needs to read Binance market data, place or manage Spot orders, or troubleshoot signed API calls from terminal workflows. Agent handles request signing, filter validation, rate-limit safety, and WebSocket reconciliation.
Architecture
Memory lives in ~/binance/. See memory-template.md for structure.
~/binance/
βββ memory.md # API mode, symbols, and execution preferences
βββ runbooks.md # Repeatable workflows that worked in production
βββ incidents.md # Failures, response codes, and fixes
βββ snapshots/ # Symbol filters and pre-trade validation captures
Quick Reference
| Topic | File |
|-------|------|
| Setup behavior | setup.md |
| Memory template | memory-template.md |
| Fast start commands | quickstart.md |
| Auth and signatures | auth-signing.md |
| Market data patterns | market-data.md |
| Streams and WS API | websocket.md |
| SDK and CLI options | sdk-cli.md |
| Limits and error handling | errors-limits.md |
| Spot testnet operations | testnet.md |
| Incident recovery | troubleshooting.md |
Requirements
curlopenssljqBINANCE_API_KEY and BINANCE_API_SECRET for signed Spot requestsBINANCE_BASE_URL, BINANCE_WS_BASE, and BINANCE_TESTNET=1Never commit API keys or secrets to repository files.
Data Storage
~/binance/memory.md for preferences and environment mode~/binance/runbooks.md for proven workflows~/binance/incidents.md for outage and error history~/binance/snapshots/ for exchangeInfo and filter capturesCore Rules
1. Start in Spot Testnet by Default
2. Enforce Timestamp and Signature Correctness
recvWindow realistic.3. Validate Symbol Filters Before Creating Orders
exchangeInfo and enforce PRICE_FILTER, LOT_SIZE, and MIN_NOTIONAL.4. Use Test Order Before Real Order
POST /api/v3/order/test first.POST /api/v3/order only when payload and filters are confirmed.5. Reconcile Every Order Through User Events
executionReport events and REST queries.6. Respect Rate Limits and Back Off Fast
rateLimits in responses and throttle proactively.429 or 418, pause, back off exponentially, and avoid hammering retries.7. Keep Scope Tight and Transparent
Binance Traps
-1021 and fake auth failures.-1022.stepSize fails despite valid account balance.429 weight responses can trigger temporary automated bans.External Endpoints
Only official Binance API surfaces below are used by this skill.
| Endpoint | Data Sent | Purpose |
|----------|-----------|---------|
| https://api.binance.com and https://api-gcp.binance.com | Signed trade/account params, market query params | Spot REST production |
| https://api1.binance.com to https://api4.binance.com | Same as Spot REST | Alternative production REST hosts |
| https://data-api.binance.vision | Public market data params only | Spot public market data |
| wss://stream.binance.com:9443 and wss://stream.binance.com:443 | Stream subscribe payloads and listenKey stream data | Spot market/user streams |
| wss://data-stream.binance.vision | Market stream subscriptions only | Public market streams |
| wss://ws-api.binance.com:443/ws-api/v3 | WS API signed and unsigned request payloads | Spot WebSocket API |
| https://testnet.binance.vision, wss://stream.testnet.binance.vision, wss://ws-api.testnet.binance.vision/ws-api/v3 | Test order/account payloads | Spot testnet validation |
No other data is sent externally.
Security & Privacy
Data that leaves your machine:
Data that stays local:
~/binance/This skill does NOT:
Trust
By using this skill, request data is sent to Binance infrastructure. Only install if you trust Binance with your operational trading metadata.
Related Skills
Install withclawhub install if user confirms:
api - Build and debug robust HTTP API request workflowsauth - Handle API auth models, signatures, and credential safetybash - Automate shell workflows with safer command compositionbitcoin - Add BTC domain context when analyzing crypto executionFeedback
clawhub star binanceclawhub syncβ‘ When to Use
User needs to read Binance market data, place or manage Spot orders, or troubleshoot signed API calls from terminal workflows. Agent handles request signing, filter validation, rate-limit safety, and WebSocket reconciliation.
βοΈ Configuration
On first use, read setup.md for integration preferences and safe environment defaults.