← 返回 Skills 市场
fpsjago

Binance Dca Tool

作者 fpsjago · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
1408
总下载
3
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install binance-dca-tool
功能描述
Binance Dollar-Cost Averaging (DCA) tool for automated and manual recurring crypto purchases. Use when the user wants to plan DCA strategies, execute recurring buys on Binance, check DCA projections, view trade history, or manage a systematic buying schedule for any trading pair (BTC/USDT, ETH/USDT, etc). Triggers on requests about DCA, recurring buys, cost averaging, accumulation strategies, or Binance spot purchases.
使用说明 (SKILL.md)

Binance DCA

Execute and plan Dollar-Cost Averaging strategies on Binance.

Setup

Requires two environment variables (never hardcode these):

export BINANCE_API_KEY="your-key"
export BINANCE_SECRET_KEY="your-secret"

Optional: BINANCE_BASE_URL (defaults to https://api.binance.com). Use https://testnet.binance.vision for paper trading.

Quick Start

# Check current BTC price
bash scripts/dca.sh price BTCUSDT

# Project a DCA plan: $50 every 7 days, 12 buys
bash scripts/dca.sh plan 50 7 12 BTCUSDT

# Execute a $50 market buy
bash scripts/dca.sh buy BTCUSDT 50

# Check recent trades
bash scripts/dca.sh history BTCUSDT 10

# Check USDT balance
bash scripts/dca.sh balance USDT

Actions

price [SYMBOL]

Get current spot price. Default: BTCUSDT.

balance [ASSET]

Check free and locked balance for an asset. Default: USDT.

buy SYMBOL AMOUNT [TYPE] [PRICE]

Place a buy order. AMOUNT is in quote currency (USDT).

  • MARKET (default): Execute immediately at market price
  • LIMIT: Requires price parameter — buy BTCUSDT 50 LIMIT 95000

history [SYMBOL] [LIMIT]

Show recent trades with timestamps, side, quantity, price, and fees.

plan [AMOUNT] [FREQ_DAYS] [NUM_BUYS] [SYMBOL]

Project a DCA plan with scenario analysis showing PnL at different price levels (-30% to +100%). Defaults: $50, every 7 days, 12 buys, BTCUSDT.

DCA Strategy Guidance

When helping users plan DCA:

  1. Ask about budget — How much per buy, and how often?
  2. Set expectations — DCA smooths volatility, not guaranteed profit
  3. Run projections — Use plan to show scenarios before committing
  4. Recommend testnet first — Set BINANCE_BASE_URL=https://testnet.binance.vision
  5. Position sizing — Suggest 1-2% of portfolio per buy for conservative approach
  6. Never store credentials — Always use environment variables

Scheduling DCA Buys

For automated recurring buys, suggest setting up a cron job or OpenClaw cron:

# Example: buy $50 BTC every Monday at 9am UTC
0 9 * * 1 BINANCE_API_KEY=... BINANCE_SECRET_KEY=... /path/to/dca.sh buy BTCUSDT 50

Or via OpenClaw cron for agent-managed scheduling with alerts and confirmations.

Error Handling

  • Missing API keys → clear error message with setup instructions
  • Invalid amounts → validation before API call
  • API failures → descriptive error with endpoint info
  • Always verify the order response status before confirming to user
安全使用建议
This bundle contains a straightforward Binance DCA shell script, but there are important red flags you should address before using it: (1) The registry metadata fails to declare required credentials — the script needs BINANCE_API_KEY and BINANCE_SECRET_KEY; do not rely on metadata alone. (2) Never put API keys directly into cron command lines or source-controlled files: that exposes them in shell history, process lists, and logs. Use a secure vault or environment injection mechanism, and prefer ephemeral/testnet keys when trying the tool. (3) Ensure any API key used has the minimum permissions (e.g., ENABLE_TRADING but NOT WITHDRAWALS) and enable IP whitelist where possible. (4) Verify BINANCE_BASE_URL is not set to an untrusted endpoint before running (the tool will send signed requests to whatever BASE_URL is provided). (5) Review the included scripts locally before executing; confirm the signing (openssl HMAC) and curl calls behave as expected. (6) Ask the publisher (or require an updated package) to fix the metadata to declare the required credentials and to remove or replace the insecure cron example. If you cannot validate the source and correct these issues, treat the skill as risky and avoid granting it secrets or running it on production accounts.
功能分析
Type: OpenClaw Skill Name: binance-dca-tool Version: 1.0.0 The OpenClaw skill 'binance-dca-tool' is designed for managing Dollar-Cost Averaging strategies on Binance. It securely handles API keys via environment variables and uses HMAC SHA256 for signing requests to the Binance API. All network communication is directed to Binance endpoints, and there is no evidence of data exfiltration, persistence mechanisms, or malicious prompt injection attempts in the SKILL.md. The script uses standard shell utilities and embedded Python for JSON parsing and calculations, all aligned with its stated purpose of executing and planning crypto purchases.
能力评估
Purpose & Capability
The script and SKILL.md clearly require BINANCE_API_KEY and BINANCE_SECRET_KEY to perform Binance account actions, but the registry metadata declares no required env vars or primary credential. That mismatch is incoherent — a Binance trading tool legitimately needs API credentials and should declare them.
Instruction Scope
SKILL.md and the included script stay within Binance trading scope (price, balance, buy, history, plan), but the documentation contradicts itself: it advises 'Never store credentials' while showing a cron example that places API keys inline in the cron command. The doc also suggests using 'OpenClaw cron' for agent-managed scheduling (which may cause the agent to store scheduling config) without clarifying how secrets are protected. No instructions request unrelated files, but the cron example risks exposing secrets.
Install Mechanism
There is no install spec (instruction-only with an included shell script), which minimizes install risk. The script will be written to disk as provided by the skill bundle; there is no external download or opaque installer. Review the included script before running.
Credentials
The script requires sensitive credentials (BINANCE_API_KEY, BINANCE_SECRET_KEY) but the skill metadata lists none; this omission prevents automated vetting of required secrets. The SKILL.md also suggests embedding keys directly in cron (exposes secrets to process lists/logs) and recommends agent-managed scheduling without explaining secret handling. The skill permits overriding BASE_URL, which is legitimate for testnet but could be misused if set to a malicious endpoint.
Persistence & Privilege
always is false and the skill does not request system-wide privileges or modify other skills. It does not claim permanent/global presence; autonomous invocation remains at the platform default.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install binance-dca-tool
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /binance-dca-tool 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of binance-dca-tool for automated and manual recurring crypto purchases on Binance. - Enables users to plan and execute Dollar-Cost Averaging (DCA) strategies. - Supports recurring buys, DCA projections, trade history, and balance checks for any trading pair. - Provides CLI commands for price checks, buy execution, history viewing, and DCA plan simulation. - Includes detailed setup, usage instructions, DCA strategy guidance, and scheduling examples. - Implements error handling for missing credentials, input validation, and API responses.
元数据
Slug binance-dca-tool
版本 1.0.0
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Binance Dca Tool 是什么?

Binance Dollar-Cost Averaging (DCA) tool for automated and manual recurring crypto purchases. Use when the user wants to plan DCA strategies, execute recurring buys on Binance, check DCA projections, view trade history, or manage a systematic buying schedule for any trading pair (BTC/USDT, ETH/USDT, etc). Triggers on requests about DCA, recurring buys, cost averaging, accumulation strategies, or Binance spot purchases. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1408 次。

如何安装 Binance Dca Tool?

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

Binance Dca Tool 是免费的吗?

是的,Binance Dca Tool 完全免费(开源免费),可自由下载、安装和使用。

Binance Dca Tool 支持哪些平台?

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

谁开发了 Binance Dca Tool?

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

💬 留言讨论