/install binance-dca-tool
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 priceLIMIT: 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:
- Ask about budget — How much per buy, and how often?
- Set expectations — DCA smooths volatility, not guaranteed profit
- Run projections — Use
planto show scenarios before committing - Recommend testnet first — Set
BINANCE_BASE_URL=https://testnet.binance.vision - Position sizing — Suggest 1-2% of portfolio per buy for conservative approach
- 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
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install binance-dca-tool - 安装完成后,直接呼叫该 Skill 的名称或使用
/binance-dca-tool触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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。