Binance Exchange
by @torchesfrms
Fetch real-time prices, 24h stats, K-line charts, and market info for Binance spot trading pairs using the Binance API via proxy.
clawhub install binance-exchangeπ About This Skill
name: binance-exchange description: Query Binance spot exchange data: real-time prices, 24h change, K-line charts, and market data. Use when users want to check crypto prices, trading volume, or market trends on Binance. Requires proxy (http://127.0.0.1:1082). metadata: version: "1.1" author: moer
Binance Exchange Skill
Query Binance spot exchange data via API. Requires proxy for network access.
Prerequisites
Proxy Configuration:
# Uses system proxy
export HTTP_PROXY="http://127.0.0.1:1082"
export HTTPS_PROXY="http://127.0.0.1:1082"
Note: Binance API may be restricted in certain regions. Use a proxy node in allowed regions (HK/SG/JP/UK/DE).
API Endpoints
| Endpoint | Use Case |
|----------|----------|
| /api/v3/ticker/price | Real-time prices |
| /api/v3/ticker/24hr | 24h statistics |
| /api/v3/klines | K-line/candlestick data |
| /api/v3/exchangeInfo | Trading rules & symbols |
Scripts
1. Price Query
# Single symbol
./scripts/price.sh BTCUSDTMultiple symbols
./scripts/price.sh BTCUSDT ETHUSDT BNBUSDT
2. 24h Change (via K-lines)
# Single symbol
./scripts/change.sh BTCUSDTTop gainers (requires custom processing)
./scripts/gainers.sh
3. K-Line Data
# BTC 1hour K-line (100 candles)
./scripts/kline.sh BTCUSDT 1h 100ETH 4hour K-line
./scripts/kline.sh ETHUSDT 4h 50
4. Token Info (New!)
# Get basic price
./scripts/token-info.sh BTCUSDTGet 24h statistics
./scripts/token-info.sh BTCUSDT stats
Returns:
5. Search Symbols
# Search USDT pairs
./scripts/search.sh USDT
Quick Reference
| Data | Command |
|------|---------|
| BTC price | ./scripts/price.sh BTCUSDT |
| 24h stats | ./scripts/token-info.sh BTCUSDT stats |
| K-line | ./scripts/kline.sh BTCUSDT 1h 100 |
Rate Limits
βοΈ Configuration
Proxy Configuration:
# Uses system proxy
export HTTP_PROXY="http://127.0.0.1:1082"
export HTTPS_PROXY="http://127.0.0.1:1082"
Note: Binance API may be restricted in certain regions. Use a proxy node in allowed regions (HK/SG/JP/UK/DE).