Binance API
Operate Binance Spot APIs through safe REST, WebSocket, and SDK workflows with signed requests, rate-limit control, and testnet-first execution.
от clawic★ 23 звезды на GitHub
Установить Binance API в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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 ~/Clawic/data/binance/. See memory-template.md for structure.
~/Clawic/data/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_KEYandBINANCE_API_SECRETfor signed Spot requests- Optional:
BINANCE_BASE_URL,BINANCE_WS_BASE, andBINANCE_TESTNET=1
Never commit API keys or secrets to repository files.
Data Storage
~/Clawic/data/binance/memory.mdfor preferences and environment mode~/Clawic/data/binance/runbooks.mdfor proven workflows~/Clawic/data/binance/incidents.mdfor outage and error history~/Clawic/data/binance/snapshots/forexchangeInfoand filter captures
Core Rules
1. Start in Spot Testnet by Default
- Use production only after explicit confirmation in the current conversation.
- Run the same flow in testnet first for every new order or account workflow.
2. Enforce Timestamp and Signature Correctness
- Sync server time before signed calls and keep
recvWindowrealistic. - Sort params before signing and include every signed field in the canonical string.
3. Validate Symbol Filters Before Creating Orders
- Read symbol filters from
exchangeInfoand enforcePRICE_FILTER,LOT_SIZE, andMIN_NOTIONAL. - Reject order payloads locally before sending requests that will fail.
4. Use Test Order Before Real Order
- For every new payload shape, call
POST /api/v3/order/testfirst. - Promote to
POST /api/v3/orderonly when payload and filters are confirmed.
5. Reconcile Every Order Through User Events
- Treat placement response as provisional when network quality is poor.
- Confirm final state through
executionReportevents and REST queries.
6. Respect Rate Limits and Back Off Fast
- Parse
rateLimitsin responses and throttle proactively. - On
429or418, pause, back off exponentially, and avoid hammering retries.
7. Keep Scope Tight and Transparent
- Use only declared Binance endpoints and symbols requested by the user.
- Never modify this skill or unrelated local files.
Binance Traps
- Using local clock drifted by seconds causes
-1021and fake auth failures. - Reusing old signatures after changing params causes
-1022. - Sending quantity not aligned to
stepSizefails despite valid account balance. - Assuming order status from placement response misses partial fills and cancels.
- Opening long-lived market data sockets past 24h leads to silent disconnect behavior.
- Ignoring
429weight 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:
- API key identifier and signed params for account and trading endpoints
- Requested symbols, intervals, and market stream subscriptions
Data that stays local:
- O
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- _meta.json
- auth-signing.md
- errors-limits.md
- market-data.md
- memory-template.md
- quickstart.md
- sdk-cli.md
- setup.md
- testnet.md
- troubleshooting.md
- websocket.md
FAQ
Что делает скилл Binance API?
Operate Binance Spot APIs through safe REST, WebSocket, and SDK workflows with signed requests, rate-limit control, and testnet-first execution.
Как установить скилл Binance API?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Binance API запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…