
Trading Automation
binance
This Skill provides a direct integration with the Binance exchange to trade spot and futures markets and manage crypto portfolios. Key capabilities include placing, modifying, and cancelling orders; querying real-time market data and price ticks;
概要
This Skill provides a direct integration with the Binance exchange to trade spot and futures markets and manage crypto portfolios.
This Skill provides a direct integration with the Binance exchange to trade spot and futures markets and manage crypto portfolios. Key capabilities include placing, modifying, and cancelling orders; querying real-time market data and price ticks; retrieving account balances, positions, and trade history; streaming updates for fills and order book changes; and configuring leverage, margin modes, and stop-loss/take-profit orders. Use cases include automated algorithmic trading, manual execution, portfolio monitoring and rebalancing, hedging across spot and derivatives, and performance reporting. Core advantages are unified access to Binance’s broad liquidity and instruments, low-latency order execution, consolidated portfolio views, and granular account controls. Note: API-key permissioning and secure credentials are required for account actions.
Skill.md
この Skill の仕組み
This Skill provides a direct integration with the Binance exchange to trade spot and futures markets and manage crypto portfolios. Key capabilities include placing, modifying, and cancelling orders; querying real-time market data and price ticks;
Binance 🟡
World's largest cryptocurrency exchange. Trade 600+ cryptocurrencies with deep liquidity.
Environment Variables
| Variable | Description | Required |
|---|---|---|
BINANCE_API_KEY | API Key from Binance | Yes |
BINANCE_SECRET | API Secret | Yes |
💎 Referral Configuration
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:
- Standard: Up to 20% of trading fees
- With 500+ BNB: Up to 50% of trading fees
- Lifetime commission on referred users
💡 Users who sign up through this skill automatically use the referral ID!
Features
- 📈 Spot Trading - 600+ trading pairs
- 📊 Futures Trading - Up to 125x leverage
- 💰 Earn - Staking, savings, liquidity farming
- 🔄 Convert - Simple token swaps
- 📱 Portfolio - Track all assets
API Base URLs
- Spot:
https://api.binance.com - Futures:
https://fapi.binance.com - Testnet:
https://testnet.binance.vision
Authentication
API_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)
Get Account Info
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")]
}'
Get Price
SYMBOL="BTCUSDT"
curl -s "https://api.binance.com/api/v3/ticker/price?symbol=${SYMBOL}" | jq '.'
Get Order Book
curl -s "https://api.binance.com/api/v3/depth?symbol=${SYMBOL}&limit=10" | jq '{
bids: .bids[:5],
asks: .asks[:5]
}'
Place Spot Order
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 '.'
Place Market Order
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 '.'
Get Open Orders
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}'
Cancel Order
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 '.'
Get Trade History
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}'
Futures: Get Position
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}'
Convert (Simple Swap)
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 '.'
Popular Trading Pairs
| Pair | Description |
|---|---|
| BTCUSDT | Bitcoin / Tether |
| ETHUSDT | Ethereum / Tether |
| BNBUSDT | BNB / Tether |
| SOLUSDT | Solana / Tether |
| XRPUSDT | XRP / Tether |
| DOGEUSDT | Dogecoin / Tether |
Order Types
| 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 |
Safety Rules
- ALWAYS display order details before execution
- VERIFY trading pair and amount
- CHECK account balance before trading
- WARN about leverage risks in futures
- NEVER execute without user confirmation
Error Handling
| Error | Cause | Solution |
|---|---|---|
-1013 | Invalid quantity | Check lot size filters |
-2010 | Insufficient balance | Check account balance |
-1021 | Timestamp outside recvWindow | Sync system time |
Links
こんな用途に最適
どんなときに使うか
This Skill provides a direct integration with the Binance exchange to trade spot and futures markets and manage crypto portfolios. Key capabilities include placing, modifying, and cancelling orders; querying real-time market data and price ticks;

01 · 会議前
意思決定用のブリーフを準備
投資委員会の前に、散らばった材料を構造化した論拠にまとめます。

02 · チームのワークフロー
引き継ぎを標準化
アナリスト、ポートフォリオマネージャー、Agent の間で一貫したリサーチ成果物を作ります。

03 · リアルタイム更新
投資仮説をアップデート
新しいカタリスト、KPI の発表、決算結果を受けてシナリオを更新します。
コミュニティのメモ
使うほど良くなる設計。
この Skill が使われ、レビューされるにつれて、フィードバックがここに表示されます。
さらに探す
関連する Skills
すべて見るhyperliquid-trading
The Hyperliquid Trading skill provides a concise interface for trading on Hyperliquid’s spot and perpetual markets. Use it to place limit and market orders, cancel open orders, query order status,…
bankr
Bankr enables executing crypto trading and DeFi operations via natural-language commands. It offers two integration options: a batteries-included Bankr CLI and a REST API at https://api.bankr.bot,…
pine-backtester
pine-backtester provides comprehensive backtesting for Pine Script indicators and strategies. Use it to append performance metrics, analyze trades, generate equity curves, compute win rates, track…