public/skills/0xterrybit/binance/SKILL.md
Binance exchange integration. Trade spot, futures, and manage portfolio on the world's largest crypto exchange.
npx skillsauth add demerzels-lab/elsamultiskillagent binanceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
World's largest cryptocurrency exchange. Trade 600+ cryptocurrencies with deep liquidity.
| Variable | Description | Required |
|----------|-------------|----------|
| BINANCE_API_KEY | API Key from Binance | Yes |
| BINANCE_SECRET | API Secret | Yes |
This skill uses a referral ID to earn commission on trading fees.
| Variable | Value | Description |
|----------|-------|-------------|
| REFERRAL_ID | CYBERPAY | Referral ID for fee sharing |
Commission Structure:
💡 Users who sign up through this skill automatically use the referral ID!
https://api.binance.comhttps://fapi.binance.comhttps://testnet.binance.visionAPI_KEY="${BINANCE_API_KEY}"
SECRET="${BINANCE_SECRET}"
# Generate signature
generate_signature() {
local query_string="$1"
echo -n "$query_string" | openssl dgst -sha256 -hmac "$SECRET" | cut -d' ' -f2
}
TIMESTAMP=$(date +%s%3N)
QUERY="timestamp=${TIMESTAMP}"
SIGNATURE=$(generate_signature "$QUERY")
curl -s "https://api.binance.com/api/v3/account?${QUERY}&signature=${SIGNATURE}" \
-H "X-MBX-APIKEY: ${API_KEY}" | jq '{
balances: [.balances[] | select(.free != "0.00000000" or .locked != "0.00000000")]
}'
SYMBOL="BTCUSDT"
curl -s "https://api.binance.com/api/v3/ticker/price?symbol=${SYMBOL}" | jq '.'
curl -s "https://api.binance.com/api/v3/depth?symbol=${SYMBOL}&limit=10" | jq '{
bids: .bids[:5],
asks: .asks[:5]
}'
SYMBOL="BTCUSDT"
SIDE="BUY" # BUY or SELL
TYPE="LIMIT" # LIMIT, MARKET, STOP_LOSS, etc.
QUANTITY="0.001"
PRICE="40000"
QUERY="symbol=${SYMBOL}&side=${SIDE}&type=${TYPE}&timeInForce=GTC&quantity=${QUANTITY}&price=${PRICE}×tamp=${TIMESTAMP}"
SIGNATURE=$(generate_signature "$QUERY")
curl -s -X POST "https://api.binance.com/api/v3/order?${QUERY}&signature=${SIGNATURE}" \
-H "X-MBX-APIKEY: ${API_KEY}" | jq '.'
SYMBOL="ETHUSDT"
SIDE="BUY"
QUANTITY="0.1"
QUERY="symbol=${SYMBOL}&side=${SIDE}&type=MARKET&quantity=${QUANTITY}×tamp=${TIMESTAMP}"
SIGNATURE=$(generate_signature "$QUERY")
curl -s -X POST "https://api.binance.com/api/v3/order?${QUERY}&signature=${SIGNATURE}" \
-H "X-MBX-APIKEY: ${API_KEY}" | jq '.'
QUERY="timestamp=${TIMESTAMP}"
SIGNATURE=$(generate_signature "$QUERY")
curl -s "https://api.binance.com/api/v3/openOrders?${QUERY}&signature=${SIGNATURE}" \
-H "X-MBX-APIKEY: ${API_KEY}" | jq '.[] | {symbol: .symbol, side: .side, price: .price, quantity: .origQty, status: .status}'
SYMBOL="BTCUSDT"
ORDER_ID="12345678"
QUERY="symbol=${SYMBOL}&orderId=${ORDER_ID}×tamp=${TIMESTAMP}"
SIGNATURE=$(generate_signature "$QUERY")
curl -s -X DELETE "https://api.binance.com/api/v3/order?${QUERY}&signature=${SIGNATURE}" \
-H "X-MBX-APIKEY: ${API_KEY}" | jq '.'
SYMBOL="BTCUSDT"
QUERY="symbol=${SYMBOL}×tamp=${TIMESTAMP}"
SIGNATURE=$(generate_signature "$QUERY")
curl -s "https://api.binance.com/api/v3/myTrades?${QUERY}&signature=${SIGNATURE}" \
-H "X-MBX-APIKEY: ${API_KEY}" | jq '.[-10:] | .[] | {symbol: .symbol, price: .price, qty: .qty, time: .time}'
QUERY="timestamp=${TIMESTAMP}"
SIGNATURE=$(generate_signature "$QUERY")
curl -s "https://fapi.binance.com/fapi/v2/positionRisk?${QUERY}&signature=${SIGNATURE}" \
-H "X-MBX-APIKEY: ${API_KEY}" | jq '.[] | select(.positionAmt != "0") | {symbol: .symbol, positionAmt: .positionAmt, entryPrice: .entryPrice, unrealizedProfit: .unRealizedProfit}'
FROM_ASSET="USDT"
TO_ASSET="BTC"
FROM_AMOUNT="100"
# Get quote
QUERY="fromAsset=${FROM_ASSET}&toAsset=${TO_ASSET}&fromAmount=${FROM_AMOUNT}×tamp=${TIMESTAMP}"
SIGNATURE=$(generate_signature "$QUERY")
curl -s -X POST "https://api.binance.com/sapi/v1/convert/getQuote?${QUERY}&signature=${SIGNATURE}" \
-H "X-MBX-APIKEY: ${API_KEY}" | jq '.'
| Pair | Description | |------|-------------| | BTCUSDT | Bitcoin / Tether | | ETHUSDT | Ethereum / Tether | | BNBUSDT | BNB / Tether | | SOLUSDT | Solana / Tether | | XRPUSDT | XRP / Tether | | DOGEUSDT | Dogecoin / Tether |
| Type | Description | |------|-------------| | LIMIT | Limit order at specific price | | MARKET | Market order at current price | | STOP_LOSS | Stop loss order | | STOP_LOSS_LIMIT | Stop loss limit order | | TAKE_PROFIT | Take profit order | | TAKE_PROFIT_LIMIT | Take profit limit order |
| Error | Cause | Solution |
|-------|-------|----------|
| -1013 | Invalid quantity | Check lot size filters |
| -2010 | Insufficient balance | Check account balance |
| -1021 | Timestamp outside recvWindow | Sync system time |
testing
Query real-time and historical financial data across equities and crypto—prices, market moves, metrics, and trends for analysis, alerts, and reporting.
data-ai
YouTube SERP Scout for agents. Search top-ranking videos, channels, and trends for content research and competitor tracking.
development
Search X (Twitter) in real time, extract relevant posts, and publish tweets/replies instantly—perfect for social listening, engagement, and rapid content ops.
development
Intelligent search for agents. Multi-source retrieval with confidence scoring - web, academic, and Tavily in one unified API.