← 返回 Skills 市场
0xspeter

Binance Pro 1.0.0

作者 0xspeter · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
316
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install binance-pro-1-0-0
功能描述
Complete Binance integration - world's largest crypto exchange. Trade spot, futures with up to 125x leverage, staking, and portfolio management. Use to check...
使用说明 (SKILL.md)

Binance Pro 🟡

Professional skill for trading on Binance - the world's largest crypto exchange.

🚀 Quick Start

Setup Credentials

Save to ~/.openclaw/credentials/binance.json:

{
  "apiKey": "YOUR_API_KEY",
  "secretKey": "YOUR_SECRET_KEY"
}

Environment Variables (alternative)

export BINANCE_API_KEY="your_api_key"
export BINANCE_SECRET="your_secret_key"

📊 Basic Queries

Check Spot Balance

TIMESTAMP=$(date +%s%3N)
QUERY="timestamp=${TIMESTAMP}"
SIGNATURE=$(echo -n "$QUERY" | openssl dgst -sha256 -hmac "$SECRET" | cut -d' ' -f2)

curl -s "https://api.binance.com/api/v3/account?${QUERY}&signature=${SIGNATURE}" \
  -H "X-MBX-APIKEY: ${API_KEY}" | jq '[.balances[] | select(.free != "0.00000000")]'

Get Current Price

curl -s "https://api.binance.com/api/v3/ticker/price?symbol=BTCUSDT" | jq '.'

Get All Futures Positions

TIMESTAMP=$(date +%s%3N)
QUERY="timestamp=${TIMESTAMP}"
SIGNATURE=$(echo -n "$QUERY" | openssl dgst -sha256 -hmac "$SECRET" | cut -d' ' -f2)

curl -s "https://fapi.binance.com/fapi/v2/positionRisk?${QUERY}&signature=${SIGNATURE}" \
  -H "X-MBX-APIKEY: ${API_KEY}" | jq '[.[] | select(.positionAmt != "0")]'

⚡ Futures (Leverage Trading)

Open LONG Position (Buy)

SYMBOL="BTCUSDT"
SIDE="BUY"
QUANTITY="0.001"

TIMESTAMP=$(date +%s%3N)
QUERY="symbol=${SYMBOL}&side=${SIDE}&type=MARKET&quantity=${QUANTITY}&timestamp=${TIMESTAMP}"
SIGNATURE=$(echo -n "$QUERY" | openssl dgst -sha256 -hmac "$SECRET" | cut -d' ' -f2)

curl -s -X POST "https://fapi.binance.com/fapi/v1/order?${QUERY}&signature=${SIGNATURE}" \
  -H "X-MBX-APIKEY: ${API_KEY}" | jq '.'

Open SHORT Position (Sell)

SYMBOL="BTCUSDT"
SIDE="SELL"
QUANTITY="0.001"

TIMESTAMP=$(date +%s%3N)
QUERY="symbol=${SYMBOL}&side=${SIDE}&type=MARKET&quantity=${QUANTITY}&timestamp=${TIMESTAMP}"
SIGNATURE=$(echo -n "$QUERY" | openssl dgst -sha256 -hmac "$SECRET" | cut -d' ' -f2)

curl -s -X POST "https://fapi.binance.com/fapi/v1/order?${QUERY}&signature=${SIGNATURE}" \
  -H "X-MBX-APIKEY: ${API_KEY}" | jq '.'

Set Stop Loss

SYMBOL="BTCUSDT"
SIDE="SELL"  # To close LONG use SELL, to close SHORT use BUY
STOP_PRICE="75000"

TIMESTAMP=$(date +%s%3N)
QUERY="symbol=${SYMBOL}&side=${SIDE}&type=STOP_MARKET&stopPrice=${STOP_PRICE}&closePosition=true&timestamp=${TIMESTAMP}"
SIGNATURE=$(echo -n "$QUERY" | openssl dgst -sha256 -hmac "$SECRET" | cut -d' ' -f2)

curl -s -X POST "https://fapi.binance.com/fapi/v1/order?${QUERY}&signature=${SIGNATURE}" \
  -H "X-MBX-APIKEY: ${API_KEY}" | jq '.'

Set Take Profit

SYMBOL="BTCUSDT"
SIDE="SELL"  # To close LONG use SELL, to close SHORT use BUY
TP_PRICE="85000"

TIMESTAMP=$(date +%s%3N)
QUERY="symbol=${SYMBOL}&side=${SIDE}&type=TAKE_PROFIT_MARKET&stopPrice=${TP_PRICE}&closePosition=true&timestamp=${TIMESTAMP}"
SIGNATURE=$(echo -n "$QUERY" | openssl dgst -sha256 -hmac "$SECRET" | cut -d' ' -f2)

curl -s -X POST "https://fapi.binance.com/fapi/v1/order?${QUERY}&signature=${SIGNATURE}" \
  -H "X-MBX-APIKEY: ${API_KEY}" | jq '.'

Close Position (Market)

# First, get current position quantity
POSITION=$(curl -s "https://fapi.binance.com/fapi/v2/positionRisk?timestamp=${TIMESTAMP}&signature=${SIGNATURE}" \
  -H "X-MBX-APIKEY: ${API_KEY}" | jq -r '.[] | select(.symbol=="BTCUSDT") | .positionAmt')

# If POSITION > 0, it's LONG, close with SELL
# If POSITION \x3C 0, it's SHORT, close with BUY

Change Leverage

SYMBOL="BTCUSDT"
LEVERAGE="10"  # 1 to 125

TIMESTAMP=$(date +%s%3N)
QUERY="symbol=${SYMBOL}&leverage=${LEVERAGE}&timestamp=${TIMESTAMP}"
SIGNATURE=$(echo -n "$QUERY" | openssl dgst -sha256 -hmac "$SECRET" | cut -d' ' -f2)

curl -s -X POST "https://fapi.binance.com/fapi/v1/leverage?${QUERY}&signature=${SIGNATURE}" \
  -H "X-MBX-APIKEY: ${API_KEY}" | jq '.'

📈 Spot Trading

Buy (Market)

SYMBOL="ETHUSDT"
QUANTITY="0.1"

TIMESTAMP=$(date +%s%3N)
QUERY="symbol=${SYMBOL}&side=BUY&type=MARKET&quantity=${QUANTITY}&timestamp=${TIMESTAMP}"
SIGNATURE=$(echo -n "$QUERY" | openssl dgst -sha256 -hmac "$SECRET" | cut -d' ' -f2)

curl -s -X POST "https://api.binance.com/api/v3/order?${QUERY}&signature=${SIGNATURE}" \
  -H "X-MBX-APIKEY: ${API_KEY}" | jq '.'

Sell (Market)

SYMBOL="ETHUSDT"
QUANTITY="0.1"

TIMESTAMP=$(date +%s%3N)
QUERY="symbol=${SYMBOL}&side=SELL&type=MARKET&quantity=${QUANTITY}&timestamp=${TIMESTAMP}"
SIGNATURE=$(echo -n "$QUERY" | openssl dgst -sha256 -hmac "$SECRET" | cut -d' ' -f2)

curl -s -X POST "https://api.binance.com/api/v3/order?${QUERY}&signature=${SIGNATURE}" \
  -H "X-MBX-APIKEY: ${API_KEY}" | jq '.'

🔧 Utilities

View Open Orders

TIMESTAMP=$(date +%s%3N)
QUERY="timestamp=${TIMESTAMP}"
SIGNATURE=$(echo -n "$QUERY" | openssl dgst -sha256 -hmac "$SECRET" | cut -d' ' -f2)

# Futures
curl -s "https://fapi.binance.com/fapi/v1/openOrders?${QUERY}&signature=${SIGNATURE}" \
  -H "X-MBX-APIKEY: ${API_KEY}" | jq '.'

Cancel Order

SYMBOL="BTCUSDT"
ORDER_ID="123456789"

TIMESTAMP=$(date +%s%3N)
QUERY="symbol=${SYMBOL}&orderId=${ORDER_ID}&timestamp=${TIMESTAMP}"
SIGNATURE=$(echo -n "$QUERY" | openssl dgst -sha256 -hmac "$SECRET" | cut -d' ' -f2)

curl -s -X DELETE "https://fapi.binance.com/fapi/v1/order?${QUERY}&signature=${SIGNATURE}" \
  -H "X-MBX-APIKEY: ${API_KEY}" | jq '.'

View Trade History

SYMBOL="BTCUSDT"
TIMESTAMP=$(date +%s%3N)
QUERY="symbol=${SYMBOL}&timestamp=${TIMESTAMP}"
SIGNATURE=$(echo -n "$QUERY" | openssl dgst -sha256 -hmac "$SECRET" | cut -d' ' -f2)

curl -s "https://fapi.binance.com/fapi/v1/userTrades?${QUERY}&signature=${SIGNATURE}" \
  -H "X-MBX-APIKEY: ${API_KEY}" | jq '.[-10:]'

🏦 Detailed Futures Balance

TIMESTAMP=$(date +%s%3N)
QUERY="timestamp=${TIMESTAMP}"
SIGNATURE=$(echo -n "$QUERY" | openssl dgst -sha256 -hmac "$SECRET" | cut -d' ' -f2)

curl -s "https://fapi.binance.com/fapi/v2/balance?${QUERY}&signature=${SIGNATURE}" \
  -H "X-MBX-APIKEY: ${API_KEY}" | jq '[.[] | select(.balance != "0")]'

📋 Popular Pairs

Pair Description
BTCUSDT Bitcoin
ETHUSDT Ethereum
BNBUSDT BNB
SOLUSDT Solana
XRPUSDT XRP
DOGEUSDT Dogecoin
ADAUSDT Cardano
AVAXUSDT Avalanche

⚠️ Safety Rules

  1. ALWAYS verify position before closing
  2. ALWAYS set Stop Loss on leveraged trades
  3. NEVER use leverage higher than 10x without experience
  4. VERIFY pair and quantity before executing
  5. CONFIRM with user before executing large orders

🔗 Links


Skill created by Total Easy Software - Clayton Martins

安全使用建议
This skill's content shows it will perform real Binance trades and requires your API key and secret, but the package metadata does not declare those credentials or the openssl binary it uses — that's an internal inconsistency. Additional red flags: no source/homepage, owner ID mismatch in provided _meta.json, and always:true (the skill will be force-loaded). Before installing: 1) Do not enable this with real funds. Create Binance API keys with the minimum permissions (ideally testnet or read-only) and low-risk limits. 2) Ask the publisher for source code, a homepage, and corrected metadata that declares required env vars (API key & secret) and required binaries (openssl, date). 3) Verify and correct the environment variable names (examples use API_KEY/SECRET but doc suggests BINANCE_API_KEY/BINANCE_SECRET). 4) If you proceed, store secrets securely (avoid plaintext files or restrict file permissions) and consider disabling always:true and preventing autonomous invocation. 5) If you cannot verify the publisher or the source, treat the skill as untrusted and do not provide production API keys.
功能分析
Type: OpenClaw Skill Name: binance-pro-1-0-0 Version: 1.0.0 The skill provides a comprehensive set of Binance trading templates but is classified as suspicious due to the lack of input sanitization in the shell command examples within SKILL.md. The templates use raw shell variables (e.g., $SYMBOL, $QUANTITY, $STOP_PRICE) directly in commands involving `openssl` and `curl`, which creates a significant risk of command injection if the AI agent processes malicious user input. Additionally, the documentation includes a promotional affiliate referral link (ref=CPA_00F3AR52CL) for account creation.
能力评估
Purpose & Capability
The SKILL.md implements a full Binance trading integration (spot, futures, order placement, leverage changes) which legitimately requires API credentials and cryptographic signing. The registry metadata, however, declares no required env vars/credentials and no config paths, and there is no homepage or source URL. The implemented capability (trade execution) therefore requires secrets that are not reflected in the declared requirements — an incoherence.
Instruction Scope
The runtime instructions tell the agent to read/store credentials (~/.openclaw/credentials/binance.json) or environment variables and to build HMAC signatures using openssl and date; they send curl requests to Binance endpoints to place/cancel orders. The SKILL.md uses variable names inconsistently (examples reference API_KEY/SECRET but suggested env names are BINANCE_API_KEY/BINANCE_SECRET), and the instructions assume openssl is available even though it is not declared. The instructions enable sensitive actions (autonomous trading) and rely on secrets and local file writes that are not declared in metadata.
Install Mechanism
This is an instruction-only skill with no install spec or downloaded code, which is the lowest install risk. Nothing is written to disk by an installer step beyond what the instructions ask the user/agent to do at runtime.
Credentials
The skill requires Binance API key and secret in practice, but requires.env and primary credential fields are empty in metadata. Required binaries list omits openssl (used for HMAC signing) and the SKILL.md recommends storing secrets in an unencrypted JSON file in the user's home directory without guidance on permissions. This mismatch and the lack of declared primary credential are disproportionate and reduce transparency about what sensitive data the skill needs.
Persistence & Privilege
always: true is set for this skill, meaning it will be force-included in every agent run. Combined with the ability to place/cancel orders and change leverage via API calls, that creates a high-impact persistence/privilege profile. The skill also allows autonomous invocation (disable-model-invocation is false by default), which further increases blast radius if the skill or agent is compromised.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install binance-pro-1-0-0
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /binance-pro-1-0-0 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release providing full Binance exchange integration: - Supports trading spot and futures (up to 125x leverage), staking, and portfolio management. - Check balances, open/close positions, set stop loss and take profit, and view PnL. - Includes commands for querying prices, trade history, leverage management, and open orders. - Safety guidelines and usage examples provided for all major Binance operations. - Setup via credentials file or environment variables.
元数据
Slug binance-pro-1-0-0
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Binance Pro 1.0.0 是什么?

Complete Binance integration - world's largest crypto exchange. Trade spot, futures with up to 125x leverage, staking, and portfolio management. Use to check... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 316 次。

如何安装 Binance Pro 1.0.0?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install binance-pro-1-0-0」即可一键安装,无需额外配置。

Binance Pro 1.0.0 是免费的吗?

是的,Binance Pro 1.0.0 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Binance Pro 1.0.0 支持哪些平台?

Binance Pro 1.0.0 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Binance Pro 1.0.0?

由 0xspeter(@0xspeter)开发并维护,当前版本 v1.0.0。

💬 留言讨论