[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6PYFDNVMEYG1RPC5SB4H5XY":3,"skill-same:01M6PYFDNVMEYG1RPC5SB4H5XY":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M6PYFDNVMEYG1RPC5SB4H5XY","binance-dca",null,"Professional Binance Dollar-Cost Averaging (DCA) tool for automated and manual recurring crypto purchases. Plan DCA strategies with scenario analysis, execute market\u002Flimit buys, track history, and manage systematic accumulation schedules for any trading pair. Includes risk management, testnet support, and OpenClaw automation integration. Triggers on requests about DCA, recurring buys, cost averaging, accumulation strategies, or Binance spot purchases.","Kernel8901\u002Fai-agent-skills-classification","Kernel8901","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F72647553?v=4","01M6KV388J2H5PNC8D8P940BJD","01M6KV38CS5B3AY63RKZB410YM",7,"MIT","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F工作流自动化\u002Fbinance-dca\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"binance dca","binance","dca","strategies","track","for","limit","about","professional","systematic","triggers","scenario","openclaw","manage","cost","management","tool","plan","analysis","integration","2026-11-10 10:12:30",false,"---\nname: binance-dca\ndescription: Professional Binance Dollar-Cost Averaging (DCA) tool for automated and manual recurring crypto purchases. Plan DCA strategies with scenario analysis, execute market\u002Flimit buys, track history, and manage systematic accumulation schedules for any trading pair. Includes risk management, testnet support, and OpenClaw automation integration. Triggers on requests about DCA, recurring buys, cost averaging, accumulation strategies, or Binance spot purchases.\n---\n\n# Binance DCA — Professional Dollar-Cost Averaging Tool\n\n> **Systematic crypto accumulation made simple.**  \n> Plan, execute, and track DCA strategies on Binance with confidence.\n\n## What is DCA?\n\n**Dollar-Cost Averaging (DCA)** is an investment strategy where you buy a fixed dollar amount of an asset at regular intervals, regardless of price. This approach:\n\n- ✅ **Reduces timing risk** — no need to predict market tops\u002Fbottoms\n- ✅ **Smooths volatility** — averages out price fluctuations over time\n- ✅ **Removes emotion** — systematic buying, no panic or FOMO\n- ✅ **Builds discipline** — consistent accumulation, perfect for long-term holders\n\n**This tool** helps you plan, automate, and track your DCA strategy on Binance spot markets.\n\n---\n\n## Features\n\n- ? **DCA Plan Projections** — scenario analysis showing potential outcomes at different price levels\n- ? **Market & Limit Orders** — flexible execution options\n- ? **Trade History** — track your accumulation progress\n- ? **Secure** — credentials via environment variables only, zero hardcoded secrets\n- ? **Testnet Support** — practice on Binance testnet before going live\n- ? **OpenClaw Integration** — automate DCA buys via cron jobs with alerts\n- ?️ **Risk Management** — conservative defaults, validation before execution\n\n---\n\n## Setup\n\n### 1. Get Binance API Keys\n\n1. Log in to [binance.com](https:\u002F\u002Fwww.binance.com)\n2. Go to **Account** → **API Management**\n3. Create a new API key:\n   - **Label:** `OpenClaw-DCA` (or similar)\n   - **Restrictions:** Enable **Spot & Margin Trading** only\n   - **IP Whitelist:** Add your server IP for security (optional but recommended)\n4. Save your **API Key** and **Secret Key** securely\n\n⚠️ **Security tips:**\n- Never share your secret key\n- Enable IP whitelist if your server has a static IP\n- Use a separate API key for DCA (easier to revoke if needed)\n- Start with small amounts to test\n\n### 2. Set Environment Variables\n\n**Never hardcode credentials.** Always use environment variables:\n\n```bash\nexport BINANCE_API_KEY=\"your-api-key-here\"\nexport BINANCE_SECRET_KEY=\"your-secret-key-here\"\n```\n\n**Make them permanent** (optional, add to `~\u002F.bashrc` or `~\u002F.zshrc`):\n\n```bash\necho 'export BINANCE_API_KEY=\"your-api-key-here\"' >> ~\u002F.bashrc\necho 'export BINANCE_SECRET_KEY=\"your-secret-key-here\"' >> ~\u002F.bashrc\nsource ~\u002F.bashrc\n```\n\n**For testnet** (recommended for first-time users):\n\n```bash\nexport BINANCE_BASE_URL=\"https:\u002F\u002Ftestnet.binance.vision\"\n```\n\nGet testnet API keys at: [testnet.binance.vision](https:\u002F\u002Ftestnet.binance.vision\u002F)\n\n### 3. Verify Setup\n\n```bash\n# Check balance (should not error)\nbash scripts\u002Fdca.sh balance USDT\n\n# Check BTC price\nbash scripts\u002Fdca.sh price BTCUSDT\n```\n\nIf you see prices\u002Fbalances, you're ready!\n\n---\n\n## Quick Start Examples\n\n### Example 1: Check Current Price\n\n```bash\nbash scripts\u002Fdca.sh price BTCUSDT\n# Output: BTCUSDT = 95234.50\n```\n\nWorks for any pair:\n```bash\nbash scripts\u002Fdca.sh price ETHUSDT\nbash scripts\u002Fdca.sh price SOLUSDT\n```\n\n### Example 2: Check Your Balance\n\n```bash\nbash scripts\u002Fdca.sh balance USDT\n# Output: USDT: free=1000.00000000, locked=0.00000000\n```\n\nCheck any asset:\n```bash\nbash scripts\u002Fdca.sh balance BTC\nbash scripts\u002Fdca.sh balance ETH\n```\n\n### Example 3: Plan a DCA Strategy\n\n**Scenario:** You want to invest $600 over 3 months in BTC.\n\n```bash\n# $50 every week for 12 weeks\nbash scripts\u002Fdca.sh plan 50 7 12 BTCUSDT\n```\n\n**Output:**\n```\nDCA Plan: BTCUSDT\n==========================\nBuy amount:  $50 per buy\nFrequency:   every 7 days\nDuration:    12 buys\nCurrent:     95234.50\n==========================\nTotal invest:  $600.00\nAt cur. price: 0.00630245 BTC\nTime span:     84 days (~2.8 months)\n\nScenario Analysis (if avg price over period is):\n  -30% -> avg $ 66,664.15 -> 0.00900000 BTC -> PnL: -$186.00 (-31.0%)\n  -20% -> avg $ 76,187.60 -> 0.00787500 BTC -> PnL: -$126.00 (-21.0%)\n  -10% -> avg $ 85,711.05 -> 0.00700000 BTC -> PnL: -$63.00 (-10.5%)\n   +0% -> avg $ 95,234.50 -> 0.00630245 BTC -> PnL: +$0.00 (+0.0%)\n  +10% -> avg $104,757.95 -> 0.00572727 BTC -> PnL: +$63.00 (+10.5%)\n  +20% -> avg $114,281.40 -> 0.00525000 BTC -> PnL: +$126.00 (+21.0%)\n  +50% -> avg $142,851.75 -> 0.00420000 BTC -> PnL: +$378.00 (+63.0%)\n +100% -> avg $190,469.00 -> 0.00315122 BTC -> PnL: +$630.00 (+105.0%)\n```\n\n**What this tells you:**\n- If BTC stays flat → break even\n- If BTC averages -20% during your buys → you're down ~21% (but you own more BTC)\n- If BTC averages +50% → you're up ~63%\n\nUse this to **set realistic expectations** before committing.\n\n### Example 4: Execute Your First DCA Buy\n\n**Market order (instant execution):**\n\n```bash\n# Buy $50 worth of BTC at current market price\nbash scripts\u002Fdca.sh buy BTCUSDT 50\n```\n\n**Output:**\n```\nPlacing MARKET buy: BTCUSDT for 50 USDT...\nOrder #123456789: FILLED\nFilled: 0.00052500 BTC\n```\n\n**Limit order (wait for your price):**\n\n```bash\n# Only buy if BTC drops to $94,000\nbash scripts\u002Fdca.sh buy BTCUSDT 50 LIMIT 94000\n```\n\n**Output:**\n```\nPlacing LIMIT buy: BTCUSDT for 50 USDT...\nOrder #123456790: NEW\nFilled: 0.00000000 BTC\n```\n\n(Order will fill when price hits $94,000)\n\n### Example 5: Check Your Trade History\n\n```bash\n# Last 10 trades for BTCUSDT\nbash scripts\u002Fdca.sh history BTCUSDT 10\n```\n\n**Output:**\n```\nLast 10 trades for BTCUSDT:\n---\n1738752000 | BUY | qty=0.00052500 | price=95238.10 | fee=0.00000053 BNB\n1738665600 | BUY | qty=0.00051234 | price=97567.20 | fee=0.00000051 BNB\n...\n```\n\n---\n\n## Complete Action Reference\n\n### `price [SYMBOL]`\n\n**Get current spot price for a trading pair.**\n\n```bash\nbash scripts\u002Fdca.sh price BTCUSDT\nbash scripts\u002Fdca.sh price ETHUSDT\nbash scripts\u002Fdca.sh price SOLUSDT\n```\n\n**Default:** `BTCUSDT` if symbol is omitted.\n\n---\n\n### `balance [ASSET]`\n\n**Check free and locked balance for an asset.**\n\n```bash\nbash scripts\u002Fdca.sh balance USDT\nbash scripts\u002Fdca.sh balance BTC\nbash scripts\u002Fdca.sh balance ETH\n```\n\n**Output format:** `ASSET: free=X.XXXXXXXX, locked=Y.YYYYYYYY`\n\n**Default:** `USDT` if asset is omitted.\n\n**Use case:** Check how much capital you have available before placing orders.\n\n---\n\n### `buy SYMBOL AMOUNT [TYPE] [PRICE]`\n\n**Place a buy order.**\n\n**Arguments:**\n- `SYMBOL` — Trading pair (e.g., `BTCUSDT`, `ETHUSDT`)\n- `AMOUNT` — Amount in **quote currency** (USDT). The tool calculates how much BTC\u002FETH you get.\n- `TYPE` — `MARKET` (default) or `LIMIT`\n- `PRICE` — Required for `LIMIT` orders\n\n**Market order examples:**\n\n```bash\n# Buy $50 worth of BTC instantly\nbash scripts\u002Fdca.sh buy BTCUSDT 50\n\n# Buy $100 worth of ETH instantly\nbash scripts\u002Fdca.sh buy ETHUSDT 100\n```\n\n**Limit order examples:**\n\n```bash\n# Buy $50 BTC only if price drops to $90,000\nbash scripts\u002Fdca.sh buy BTCUSDT 50 LIMIT 90000\n\n# Buy $200 ETH only if price hits $3,200\nbash scripts\u002Fdca.sh buy ETHUSDT 200 LIMIT 3200\n```\n\n**Safety features:**\n- Amount validation (must be a number)\n- API key check before execution\n- Order status confirmation in output\n\n---\n\n### `history [SYMBOL] [LIMIT]`\n\n**Show recent trade history.**\n\n```bash\n# Last 10 trades for BTCUSDT\nbash scripts\u002Fdca.sh history BTCUSDT 10\n\n# Last 20 trades for ETHUSDT\nbash scripts\u002Fdca.sh history ETHUSDT 20\n\n# Last 50 trades for SOLUSDT\nbash scripts\u002Fdca.sh history SOLUSDT 50\n```\n\n**Defaults:** `BTCUSDT`, limit `10`\n\n**Output includes:**\n- Timestamp (Unix seconds)\n- Side (BUY\u002FSELL)\n- Quantity purchased\n- Execution price\n- Fees paid (and fee asset)\n\n**Use case:** Track your DCA progress over time, calculate average entry price.\n\n---\n\n### `plan [AMOUNT] [FREQ_DAYS] [NUM_BUYS] [SYMBOL]`\n\n**Project a DCA plan with scenario analysis.**\n\n**Arguments:**\n- `AMOUNT` — Dollar amount per buy (default: `50`)\n- `FREQ_DAYS` — Days between buys (default: `7`)\n- `NUM_BUYS` — Number of buys (default: `12`)\n- `SYMBOL` — Trading pair (default: `BTCUSDT`)\n\n**Examples:**\n\n```bash\n# Default plan: $50 every 7 days, 12 buys\nbash scripts\u002Fdca.sh plan\n\n# Aggressive: $200 every 3 days, 30 buys\nbash scripts\u002Fdca.sh plan 200 3 30 BTCUSDT\n\n# Conservative: $25 every 14 days, 24 buys\nbash scripts\u002Fdca.sh plan 25 14 24 BTCUSDT\n\n# ETH DCA: $100 weekly for 6 months\nbash scripts\u002Fdca.sh plan 100 7 26 ETHUSDT\n```\n\n**What you get:**\n- Total investment amount\n- BTC\u002FETH you'd own at current price\n- Time span (days + months)\n- **Scenario analysis:** PnL at -30%, -20%, -10%, 0%, +10%, +20%, +50%, +100% average prices\n\n**Use this to:**\n- Decide on a comfortable budget and frequency\n- Understand risk\u002Freward before starting\n- Show the math to justify DCA vs. lump sum\n\n---\n\n## DCA Strategy Guide\n\n### When to Use DCA\n\n✅ **Good for:**\n- Long-term accumulation (6+ months)\n- High-volatility assets (BTC, ETH, altcoins)\n- Building positions without timing stress\n- Removing emotional decision-making\n\n❌ **Not ideal for:**\n- Short-term trading (use manual buys)\n- Assets you want to flip quickly\n- Low-volatility stablecoins (just buy once)\n\n### Best Practices\n\n1. **Start small** — Test with 1-2% of your budget first\n2. **Use testnet** — Practice on `https:\u002F\u002Ftestnet.binance.vision` before going live\n3. **Set a timeline** — DCA works best over 3-12+ months\n4. **Stick to the plan** — Resist urge to stop during dips (that's when DCA shines)\n5. **Track progress** — Use `history` to see your average entry price\n6. **Adjust if needed** — Life changes, budgets change — recalculate with `plan` and adapt\n\n### Position Sizing Recommendations\n\n**Conservative (1-2% per buy):**\n- Portfolio: $10,000 → DCA $100-$200 per buy\n- Lower risk, slower accumulation\n\n**Moderate (3-5% per buy):**\n- Portfolio: $10,000 → DCA $300-$500 per buy\n- Balanced approach, standard for most users\n\n**Aggressive (5-10% per buy):**\n- Portfolio: $10,000 → DCA $500-$1,000 per buy\n- Higher risk, faster accumulation, requires strong conviction\n\n**Never go above 10% per buy** — leaves no room for unexpected dips or expenses.\n\n### Frequency Guidelines\n\n- **Daily** — For very active traders, high time commitment\n- **Every 3 days** — Aggressive, good for short DCA periods (1-3 months)\n- **Weekly** — Most popular, good balance (Mondays are common)\n- **Bi-weekly** — Aligns with paychecks, moderate pace\n- **Monthly** — Long-term HODLers, lowest effort\n\n**Pro tip:** Match DCA frequency to your income schedule (weekly paycheck → weekly DCA).\n\n---\n\n## Automation with OpenClaw\n\n### Manual Cron (Basic)\n\nRun DCA buys automatically via system cron:\n\n```bash\n# Every Monday at 9:00 AM UTC, buy $50 BTC\n0 9 * * 1 BINANCE_API_KEY=... BINANCE_SECRET_KEY=... \u002Fpath\u002Fto\u002Fdca.sh buy BTCUSDT 50\n```\n\n**Limitations:**\n- No alerts if it fails\n- No confirmations\n- Silent execution\n\n### OpenClaw Cron (Recommended)\n\nUse OpenClaw for intelligent DCA automation with alerts:\n\n**Example: Weekly BTC DCA with Telegram notifications**\n\n```json\n{\n  \"name\": \"Weekly BTC DCA\",\n  \"schedule\": {\n    \"kind\": \"cron\",\n    \"expr\": \"0 9 * * 1\",\n    \"tz\": \"America\u002FNew_York\"\n  },\n  \"sessionTarget\": \"isolated\",\n  \"payload\": {\n    \"kind\": \"agentTurn\",\n    \"message\": \"Execute weekly DCA: buy $50 BTCUSDT via binance-dca skill. After execution, send me a summary: amount bought, price, total BTC accumulated so far (check history). If it fails, alert me immediately.\",\n    \"deliver\": true,\n    \"channel\": \"telegram\"\n  }\n}\n```\n\n**Benefits:**\n- ✅ Execution confirmations sent to you\n- ✅ Failure alerts\n- ✅ Can ask agent to analyze history and report progress\n- ✅ Easy to pause\u002Fresume via `openclaw cron` commands\n\n**Setup:**\n\n```bash\n# Add the cron job (paste JSON above when prompted)\nopenclaw cron add\n\n# List all jobs\nopenclaw cron list\n\n# Run manually to test\nopenclaw cron run \u003CjobId>\n\n# Disable temporarily\nopenclaw cron update \u003CjobId> --enabled false\n```\n\n---\n\n## Troubleshooting\n\n### Error: `BINANCE_API_KEY not set`\n\n**Fix:** Set environment variables before running:\n\n```bash\nexport BINANCE_API_KEY=\"your-key\"\nexport BINANCE_SECRET_KEY=\"your-secret\"\nbash scripts\u002Fdca.sh price\n```\n\n---\n\n### Error: `Timestamp for this request is outside of the recvWindow`\n\n**Cause:** Your system clock is out of sync with Binance servers.\n\n**Fix (Linux\u002FmacOS):**\n\n```bash\n# Sync system time\nsudo ntpdate -s time.nist.gov\n\n# Or install\u002Fenable NTP\nsudo systemctl enable systemd-timesyncd\nsudo systemctl start systemd-timesyncd\n```\n\n**Fix (Docker):**\n\nAdd `--cap-add SYS_TIME` when running container, or sync host clock.\n\n---\n\n### Error: `Signature for this request is not valid`\n\n**Causes:**\n- Wrong `BINANCE_SECRET_KEY`\n- API key restrictions (IP whitelist mismatch, disabled Spot Trading)\n\n**Fix:**\n1. Double-check your secret key (copy-paste from Binance)\n2. Verify API key has **Spot & Margin Trading** enabled\n3. If using IP whitelist, confirm your server IP is allowed\n4. Regenerate API key if uncertain\n\n---\n\n### Error: `API request failed`\n\n**Causes:**\n- Network issues\n- Wrong `BINANCE_BASE_URL`\n- Binance API maintenance\n\n**Fix:**\n1. Test network: `curl -I https:\u002F\u002Fapi.binance.com`\n2. Check Binance status: [binance.com\u002Fen\u002Fsupport\u002Fannouncement](https:\u002F\u002Fwww.binance.com\u002Fen\u002Fsupport\u002Fannouncement)\n3. If using testnet, confirm: `export BINANCE_BASE_URL=\"https:\u002F\u002Ftestnet.binance.vision\"`\n\n---\n\n### Error: `Account has insufficient balance for requested action`\n\n**Cause:** Not enough USDT in your spot account.\n\n**Fix:**\n1. Check balance: `bash scripts\u002Fdca.sh balance USDT`\n2. Deposit USDT to your spot account\n3. Reduce DCA amount to match available balance\n\n---\n\n### Order shows `NEW` status (limit order not filling)\n\n**This is normal for limit orders.** Status means:\n- `NEW` — Order placed, waiting for price\n- `FILLED` — Order executed\n- `PARTIALLY_FILLED` — Partial execution\n- `CANCELED` — You or system canceled it\n\n**Check order status:**\n\n```bash\n# View recent orders to see if it filled later\nbash scripts\u002Fdca.sh history BTCUSDT 20\n```\n\n**Cancel pending limit orders:**\n\nUse Binance web\u002Fapp → **Orders** → **Open Orders** → Cancel.\n\n---\n\n## FAQ\n\n### Q: Can I DCA into altcoins (not just BTC)?\n\n**A:** Yes! Use any Binance spot pair:\n\n```bash\nbash scripts\u002Fdca.sh buy ETHUSDT 100\nbash scripts\u002Fdca.sh buy SOLUSDT 50\nbash scripts\u002Fdca.sh buy ADAUSDT 25\n```\n\nJust replace `BTCUSDT` with your desired pair.\n\n---\n\n### Q: What's the minimum buy amount?\n\n**A:** Binance sets minimums per pair (usually $10-$20). Check Binance docs or test with a small amount on testnet first.\n\n---\n\n### Q: Does this work with Binance.US?\n\n**A:** Not directly. Binance.US has a separate API (`https:\u002F\u002Fapi.binance.us`). You'd need to change `BINANCE_BASE_URL` and test. Not officially supported.\n\n---\n\n### Q: Can I sell with this tool?\n\n**A:** Not currently. This is DCA (accumulation) only. For selling, use Binance web\u002Fapp or modify the script (change `side=BUY` to `side=SELL`).\n\n---\n\n### Q: Is my data stored anywhere?\n\n**A:** No. Zero data storage. All credentials are environment variables. The script makes direct API calls to Binance and exits.\n\n---\n\n### Q: Can I use this on multiple machines?\n\n**A:** Yes, but set up API keys separately on each. Consider using **IP whitelist** on your API key for security.\n\n---\n\n### Q: What if I want to change my DCA amount mid-strategy?\n\n**A:** Just adjust the amount in your next manual\u002Fcron execution. DCA is flexible — no commitment to fixed amounts.\n\nExample: Week 1-4 use $50, Week 5+ use $100.\n\n---\n\n### Q: How do I calculate my average entry price?\n\nRun `history` and average the `price` column:\n\n```bash\nbash scripts\u002Fdca.sh history BTCUSDT 50 | grep BUY | awk '{print $8}' | awk '{s+=$1; n++} END {print s\u002Fn}'\n```\n\nOr use a spreadsheet: export history, paste prices, `=AVERAGE()`.\n\n---\n\n## Security Best Practices\n\n? **API Key Safety:**\n- Use dedicated API key for DCA (label it `DCA-Only`)\n- Enable **Spot Trading** only (no Futures, Margin, Withdrawals)\n- Set IP whitelist if your server has static IP\n- Rotate keys every 3-6 months\n- Revoke immediately if compromised\n\n? **Credential Management:**\n- Never commit `.env` files with keys to Git\n- Use environment variables, not hardcoded strings\n- On shared servers, restrict file permissions: `chmod 600 ~\u002F.bashrc`\n\n? **Testnet First:**\n- Always test new strategies on testnet before using real funds\n- Testnet keys: [testnet.binance.vision](https:\u002F\u002Ftestnet.binance.vision\u002F)\n- Set: `export BINANCE_BASE_URL=\"https:\u002F\u002Ftestnet.binance.vision\"`\n\n? **Start Small:**\n- First live DCA: use 10-20% of planned amount\n- Verify execution, fees, and confirmations\n- Scale up once confident\n\n---\n\n## Advanced Usage\n\n### Dynamic DCA (Market Conditions)\n\nAdjust buy amounts based on price:\n\n**Buy more when BTC dips:**\n\n```bash\n# If BTC \u003C $90k, buy $100. Otherwise $50.\nCURRENT=$(bash scripts\u002Fdca.sh price BTCUSDT | awk '{print $3}')\nif (( $(echo \"$CURRENT \u003C 90000\" | bc -l) )); then\n  bash scripts\u002Fdca.sh buy BTCUSDT 100\nelse\n  bash scripts\u002Fdca.sh buy BTCUSDT 50\nfi\n```\n\n**Use limit orders to \"buy the dip\":**\n\n```bash\n# Place limit orders 5%, 10%, 15% below current price\nPRICE=$(bash scripts\u002Fdca.sh price BTCUSDT | awk '{print $3}')\nLIMIT_5=$(echo \"$PRICE * 0.95\" | bc)\nLIMIT_10=$(echo \"$PRICE * 0.90\" | bc)\nLIMIT_15=$(echo \"$PRICE * 0.85\" | bc)\n\nbash scripts\u002Fdca.sh buy BTCUSDT 50 LIMIT $LIMIT_5\nbash scripts\u002Fdca.sh buy BTCUSDT 50 LIMIT $LIMIT_10\nbash scripts\u002Fdca.sh buy BTCUSDT 50 LIMIT $LIMIT_15\n```\n\n### Multi-Asset DCA\n\nDCA into multiple coins:\n\n```bash\n# Weekly: $30 BTC, $20 ETH, $10 SOL\nbash scripts\u002Fdca.sh buy BTCUSDT 30\nbash scripts\u002Fdca.sh buy ETHUSDT 20\nbash scripts\u002Fdca.sh buy SOLUSDT 10\n```\n\n### Logging for Analysis\n\nTrack all DCA buys to a log file:\n\n```bash\n#!\u002Fbin\u002Fbash\nLOGFILE=\"$HOME\u002Fdca-log.txt\"\nDATE=$(date '+%Y-%m-%d %H:%M:%S')\n\nbash scripts\u002Fdca.sh buy BTCUSDT 50 | tee -a \"$LOGFILE\"\necho \"[$DATE] DCA executed\" >> \"$LOGFILE\"\n```\n\nThen analyze with:\n\n```bash\ngrep \"Filled:\" ~\u002Fdca-log.txt\n```\n\n---\n\n## Contributing\n\nFound a bug? Have a feature idea? Want to add support for other exchanges?\n\n- **GitHub:** (if public repo exists, link here)\n- **Issues:** Report via GitHub Issues\n- **Pull Requests:** Welcome! Follow existing code style.\n\n---\n\n## License\n\nMIT License — Free to use, modify, and distribute.\n\n**Disclaimer:** This tool is provided as-is. Use at your own risk. The authors are not responsible for trading losses, API issues, or incorrect usage. Always test on testnet first and never invest more than you can afford to lose.\n\n---\n\n## Changelog\n\n### v1.2.0 (2026-02-05)\n- ? Comprehensive documentation overhaul\n- ? Added real-world examples for all actions\n- ? DCA strategy guide with best practices\n- ? Troubleshooting section\n- ❓ FAQ with common questions\n- ? Security best practices guide\n- ? Advanced usage examples\n- ? OpenClaw automation guide\n\n### v1.1.0 (2026-02-05)\n- Initial public release\n- Core DCA functionality: plan, buy, history, price, balance\n- Testnet support\n- Market and limit orders\n\n---\n\n**Built with ❤️ for long-term crypto accumulation.**\n\nQuestions? Feedback? Tag `@fpsjago` on ClawHub or OpenClaw Discord.\n","# Binance DCA — Professional Dollar-Cost Averaging Tool\n\n> **Systematic crypto accumulation made simple.**  \n> Plan, execute, and track DCA strategies on Binance with confidence.\n\n## What is DCA?\n\n**Dollar-Cost Averaging (DCA)** is an investment strategy where you buy a fixed dollar amount of an asset at regular intervals, regardless of price. This approach:\n\n- ✅ **Reduces timing risk** — no need to predict market tops\u002Fbottoms\n- ✅ **Smooths volatility** — averages out price fluctuations over time\n- ✅ **Removes emotion** — systematic buying, no panic or FOMO\n- ✅ **Builds discipline** — consistent accumulation, perfect for long-term holders\n\n**This tool** helps you plan, automate, and track your DCA strategy on Binance spot markets.\n\n---\n\n## Features\n\n- ? **DCA Plan Projections** — scenario analysis showing potential outcomes at different price levels\n- ? **Market & Limit Orders** — flexible execution options\n- ? **Trade History** — track your accumulation progress\n- ? **Secure** — credentials via environment variables only, zero hardcoded secrets\n- ? **Testnet Support** — practice on Binance testnet before going live\n- ? **OpenClaw Integration** — automate DCA buys via cron jobs with alerts\n- ?️ **Risk Management** — conservative defaults, validation before execution\n\n---\n\n## Setup\n\n### 1. Get Binance API Keys\n\n1. Log in to [binance.com](https:\u002F\u002Fwww.binance.com)\n2. Go to **Account** → **API Management**\n3. Create a new API key:\n   - **Label:** `OpenClaw-DCA` (or similar)\n   - **Restrictions:** Enable **Spot & Margin Trading** only\n   - **IP Whitelist:** Add your server IP for security (optional but recommended)\n4. Save your **API Key** and **Secret Key** securely\n\n⚠️ **Security tips:**\n- Never share your secret key\n- Enable IP whitelist if your server has a static IP\n- Use a separate API key for DCA (easier to revoke if needed)\n- Start with small amounts to test\n\n### 2. Set Environment Variables\n\n**Never hardcode credentials.** Always use environment variables:\n\n```bash\nexport BINANCE_API_KEY=\"your-api-key-here\"\nexport BINANCE_SECRET_KEY=\"your-secret-key-here\"\n```\n\n**Make them permanent** (optional, add to `~\u002F.bashrc` or `~\u002F.zshrc`):\n\n```bash\necho 'export BINANCE_API_KEY=\"your-api-key-here\"' >> ~\u002F.bashrc\necho 'export BINANCE_SECRET_KEY=\"your-secret-key-here\"' >> ~\u002F.bashrc\nsource ~\u002F.bashrc\n```\n\n**For testnet** (recommended for first-time users):\n\n```bash\nexport BINANCE_BASE_URL=\"https:\u002F\u002Ftestnet.binance.vision\"\n```\n\nGet testnet API keys at: [testnet.binance.vision](https:\u002F\u002Ftestnet.binance.vision\u002F)\n\n### 3. Verify Setup\n\n```bash\n# Check balance (should not error)\nbash scripts\u002Fdca.sh balance USDT\n\n# Check BTC price\nbash scripts\u002Fdca.sh price BTCUSDT\n```\n\nIf you see prices\u002Fbalances, you're ready!\n\n---\n\n## Quick Start Examples\n\n### Example 1: Check Current Price\n\n```bash\nbash scripts\u002Fdca.sh price BTCUSDT\n# Output: BTCUSDT = 95234.50\n```\n\nWorks for any pair:\n```bash\nbash scripts\u002Fdca.sh price ETHUSDT\nbash scripts\u002Fdca.sh price SOLUSDT\n```\n\n### Example 2: Check Your Balance\n\n```bash\nbash scripts\u002Fdca.sh balance USDT\n# Output: USDT: free=1000.00000000, locked=0.00000000\n```\n\nCheck any asset:\n```bash\nbash scripts\u002Fdca.sh balance BTC\nbash scripts\u002Fdca.sh balance ETH\n```\n\n### Example 3: Plan a DCA Strategy\n\n**Scenario:** You want to invest $600 over 3 months in BTC.\n\n```bash\n# $50 every week for 12 weeks\nbash scripts\u002Fdca.sh plan 50 7 12 BTCUSDT\n```\n\n**Output:**\n```\nDCA Plan: BTCUSDT\n==========================\nBuy amount:  $50 per buy\nFrequency:   every 7 days\nDuration:    12 buys\nCurrent:     95234.50\n==========================\nTotal invest:  $600.00\nAt cur. price: 0.00630245 BTC\nTime span:     84 days (~2.8 months)\n\nScenario Analysis (if avg price over period is):\n  -30% -> avg $ 66,664.15 -> 0.00900000 BTC -> PnL: -$186.00 (-31.0%)\n  -20% -> avg $ 76,187.60 -> 0.00787500 BTC -> PnL: -$126.00 (-21.0%)\n  -10% -> avg $ 85,711.05 -> 0.00700000 BTC -> PnL: -$63.00 (-10.5%)\n   +0% -> avg $ 95,234.50 -> 0.00630245 BTC -> PnL: +$0.00 (+0.0%)\n  +10% -> avg $104,757.95 -> 0.00572727 BTC -> PnL: +$63.00 (+10.5%)\n  +20% -> avg $114,281.40 -> 0.00525000 BTC -> PnL: +$126.00 (+21.0%)\n  +50% -> avg $142,851.75 -> 0.00420000 BTC -> PnL: +$378.00 (+63.0%)\n +100% -> avg $190,469.00 -> 0.00315122 BTC -> PnL: +$630.00 (+105.0%)\n```\n\n**What this tells you:**\n- If BTC stays flat → break even\n- If BTC averages -20% during your buys → you're down ~21% (but you own more BTC)\n- If BTC averages +50% → you're up ~63%\n\nUse this to **set realistic expectations** before committing.\n\n### Example 4: Execute Your First DCA Buy\n\n**Market order (instant execution):**\n\n```bash\n# Buy $50 worth of BTC at current market price\nbash scripts\u002Fdca.sh buy BTCUSDT 50\n```\n\n**Output:**\n```\nPlacing MARKET buy: BTCUSDT for 50 USDT...\nOrder #123456789: FILLED\nFilled: 0.00052500 BTC\n```\n\n**Limit order (wait for your price):**\n\n```bash\n# Only buy if BTC drops to $94,000\nbash scripts\u002Fdca.sh buy BTCUSDT 50 LIMIT 94000\n```\n\n**Output:**\n```\nPlacing LIMIT buy: BTCUSDT for 50 USDT...\nOrder #123456790: NEW\nFilled: 0.00000000 BTC\n```\n\n(Order will fill when price hits $94,000)\n\n### Example 5: Check Your Trade History\n\n```bash\n# Last 10 trades for BTCUSDT\nbash scripts\u002Fdca.sh history BTCUSDT 10\n```\n\n**Output:**\n```\nLast 10 trades for BTCUSDT:\n---\n1738752000 | BUY | qty=0.00052500 | price=95238.10 | fee=0.00000053 BNB\n1738665600 | BUY | qty=0.00051234 | price=97567.20 | fee=0.00000051 BNB\n...\n```\n\n---\n\n## Complete Action Reference\n\n### `price [SYMBOL]`\n\n**Get current spot price for a trading pair.**\n\n```bash\nbash scripts\u002Fdca.sh price BTCUSDT\nbash scripts\u002Fdca.sh price ETHUSDT\nbash scripts\u002Fdca.sh price SOLUSDT\n```\n\n**Default:** `BTCUSDT` if symbol is omitted.\n\n---\n\n### `balance [ASSET]`\n\n**Check free and locked balance for an asset.**\n\n```bash\nbash scripts\u002Fdca.sh balance USDT\nbash scripts\u002Fdca.sh balance BTC\nbash scripts\u002Fdca.sh balance ETH\n```\n\n**Output format:** `ASSET: free=X.XXXXXXXX, locked=Y.YYYYYYYY`\n\n**Default:** `USDT` if asset is omitted.\n\n**Use case:** Check how much capital you have available before placing orders.\n\n---\n\n### `buy SYMBOL AMOUNT [TYPE] [PRICE]`\n\n**Place a buy order.**\n\n**Arguments:**\n- `SYMBOL` — Trading pair (e.g., `BTCUSDT`, `ETHUSDT`)\n- `AMOUNT` — Amount in **quote currency** (USDT). The tool calculates how much BTC\u002FETH you get.\n- `TYPE` — `MARKET` (default) or `LIMIT`\n- `PRICE` — Required for `LIMIT` orders\n\n**Market order examples:**\n\n```bash\n# Buy $50 worth of BTC instantly\nbash scripts\u002Fdca.sh buy BTCUSDT 50\n\n# Buy $100 worth of ETH instantly\nbash scripts\u002Fdca.sh buy ETHUSDT 100\n```\n\n**Limit order examples:**\n\n```bash\n# Buy $50 BTC only if price drops to $90,000\nbash scripts\u002Fdca.sh buy BTCUSDT 50 LIMIT 90000\n\n# Buy $200 ETH only if price hits $3,200\nbash scripts\u002Fdca.sh buy ETHUSDT 200 LIMIT 3200\n```\n\n**Safety features:**\n- Amount validation (must be a number)\n- API key check before execution\n- Order status confirmation in output\n\n---\n\n### `history [SYMBOL] [LIMIT]`\n\n**Show recent trade history.**\n\n```bash\n# Last 10 trades for BTCUSDT\nbash scripts\u002Fdca.sh history BTCUSDT 10\n\n# Last 20 trades for ETHUSDT\nbash scripts\u002Fdca.sh history ETHUSDT 20\n\n# Last 50 trades for SOLUSDT\nbash scripts\u002Fdca.sh history SOLUSDT 50\n```\n\n**Defaults:** `BTCUSDT`, limit `10`\n\n**Output includes:**\n- Timestamp (Unix seconds)\n- Side (BUY\u002FSELL)\n- Quantity purchased\n- Execution price\n- Fees paid (and fee asset)\n\n**Use case:** Track your DCA progress over time, calculate average entry price.\n\n---\n\n### `plan [AMOUNT] [FREQ_DAYS] [NUM_BUYS] [SYMBOL]`\n\n**Project a DCA plan with scenario analysis.**\n\n**Arguments:**\n- `AMOUNT` — Dollar amount per buy (default: `50`)\n- `FREQ_DAYS` — Days between buys (default: `7`)\n- `NUM_BUYS` — Number of buys (default: `12`)\n- `SYMBOL` — Trading pair (default: `BTCUSDT`)\n\n**Examples:**\n\n```bash\n# Default plan: $50 every 7 days, 12 buys\nbash scripts\u002Fdca.sh plan\n\n# Aggressive: $200 every 3 days, 30 buys\nbash scripts\u002Fdca.sh plan 200 3 30 BTCUSDT\n\n# Conservative: $25 every 14 days, 24 buys\nbash scripts\u002Fdca.sh plan 25 14 24 BTCUSDT\n\n# ETH DCA: $100 weekly for 6 months\nbash scripts\u002Fdca.sh plan 100 7 26 ETHUSDT\n```\n\n**What you get:**\n- Total investment amount\n- BTC\u002FETH you'd own at current price\n- Time span (days + months)\n- **Scenario analysis:** PnL at -30%, -20%, -10%, 0%, +10%, +20%, +50%, +100% average prices\n\n**Use this to:**\n- Decide on a comfortable budget and frequency\n- Understand risk\u002Freward before starting\n- Show the math to justify DCA vs. lump sum\n\n---\n\n## DCA Strategy Guide\n\n### When to Use DCA\n\n✅ **Good for:**\n- Long-term accumulation (6+ months)\n- High-volatility assets (BTC, ETH, altcoins)\n- Building positions without timing stress\n- Removing emotional decision-making\n\n❌ **Not ideal for:**\n- Short-term trading (use manual buys)\n- Assets you want to flip quickly\n- Low-volatility stablecoins (just buy once)\n\n### Best Practices\n\n1. **Start small** — Test with 1-2% of your budget first\n2. **Use testnet** — Practice on `https:\u002F\u002Ftestnet.binance.vision` before going live\n3. **Set a timeline** — DCA works best over 3-12+ months\n4. **Stick to the plan** — Resist urge to stop during dips (that's when DCA shines)\n5. **Track progress** — Use `history` to see your average entry price\n6. **Adjust if needed** — Life changes, budgets change — recalculate with `plan` and adapt\n\n### Position Sizing Recommendations\n\n**Conservative (1-2% per buy):**\n- Portfolio: $10,000 → DCA $100-$200 per buy\n- Lower risk, slower accumulation\n\n**Moderate (3-5% per buy):**\n- Portfolio: $10,000 → DCA $300-$500 per buy\n- Balanced approach, standard for most users\n\n**Aggressive (5-10% per buy):**\n- Portfolio: $10,000 → DCA $500-$1,000 per buy\n- Higher risk, faster accumulation, requires strong conviction\n\n**Never go above 10% per buy** — leaves no room for unexpected dips or expenses.\n\n### Frequency Guidelines\n\n- **Daily** — For very active traders, high time commitment\n- **Every 3 days** — Aggressive, good for short DCA periods (1-3 months)\n- **Weekly** — Most popular, good balance (Mondays are common)\n- **Bi-weekly** — Aligns with paychecks, moderate pace\n- **Monthly** — Long-term HODLers, lowest effort\n\n**Pro tip:** Match DCA frequency to your income schedule (weekly paycheck → weekly DCA).\n\n---\n\n## Automation with OpenClaw\n\n### Manual Cron (Basic)\n\nRun DCA buys automatically via system cron:\n\n```bash\n# Every Monday at 9:00 AM UTC, buy $50 BTC\n0 9 * * 1 BINANCE_API_KEY=... BINANCE_SECRET_KEY=... \u002Fpath\u002Fto\u002Fdca.sh buy BTCUSDT 50\n```\n\n**Limitations:**\n- No alerts if it fails\n- No confirmations\n- Silent execution\n\n### OpenClaw Cron (Recommended)\n\nUse OpenClaw for intelligent DCA automation with alerts:\n\n**Example: Weekly BTC DCA with Telegram notifications**\n\n```json\n{\n  \"name\": \"Weekly BTC DCA\",\n  \"schedule\": {\n    \"kind\": \"cron\",\n    \"expr\": \"0 9 * * 1\",\n    \"tz\": \"America\u002FNew_York\"\n  },\n  \"sessionTarget\": \"isolated\",\n  \"payload\": {\n    \"kind\": \"agentTurn\",\n    \"message\": \"Execute weekly DCA: buy $50 BTCUSDT via binance-dca skill. After execution, send me a summary: amount bought, price, total BTC accumulated so far (check history). If it fails, alert me immediately.\",\n    \"deliver\": true,\n    \"channel\": \"telegram\"\n  }\n}\n```\n\n**Benefits:**\n- ✅ Execution confirmations sent to you\n- ✅ Failure alerts\n- ✅ Can ask agent to analyze history and report progress\n- ✅ Easy to pause\u002Fresume via `openclaw cron` commands\n\n**Setup:**\n\n```bash\n# Add the cron job (paste JSON above when prompted)\nopenclaw cron add\n\n# List all jobs\nopenclaw cron list\n\n# Run manually to test\nopenclaw cron run \u003CjobId>\n\n# Disable temporarily\nopenclaw cron update \u003CjobId> --enabled false\n```\n\n---\n\n## Troubleshooting\n\n### Error: `BINANCE_API_KEY not set`\n\n**Fix:** Set environment variables before running:\n\n```bash\nexport BINANCE_API_KEY=\"your-key\"\nexport BINANCE_SECRET_KEY=\"your-secret\"\nbash scripts\u002Fdca.sh price\n```\n\n---\n\n### Error: `Timestamp for this request is outside of the recvWindow`\n\n**Cause:** Your system clock is out of sync with Binance servers.\n\n**Fix (Linux\u002FmacOS):**\n\n```bash\n# Sync system time\nsudo ntpdate -s time.nist.gov\n\n# Or install\u002Fenable NTP\nsudo systemctl enable systemd-timesyncd\nsudo systemctl start systemd-timesyncd\n```\n\n**Fix (Docker):**\n\nAdd `--cap-add SYS_TIME` when running container, or sync host clock.\n\n---\n\n### Error: `Signature for this request is not valid`\n\n**Causes:**\n- Wrong `BINANCE_SECRET_KEY`\n- API key restrictions (IP whitelist mismatch, disabled Spot Trading)\n\n**Fix:**\n1. Double-check your secret key (copy-paste from Binance)\n2. Verify API key has **Spot & Margin Trading** enabled\n3. If using IP whitelist, confirm your server IP is allowed\n4. Regenerate API key if uncertain\n\n---\n\n### Error: `API request failed`\n\n**Causes:**\n- Network issues\n- Wrong `BINANCE_BASE_URL`\n- Binance API maintenance\n\n**Fix:**\n1. Test network: `curl -I https:\u002F\u002Fapi.binance.com`\n2. Check Binance status: [binance.com\u002Fen\u002Fsupport\u002Fannouncement](https:\u002F\u002Fwww.binance.com\u002Fen\u002Fsupport\u002Fannouncement)\n3. If using testnet, confirm: `export BINANCE_BASE_URL=\"https:\u002F\u002Ftestnet.binance.vision\"`\n\n---\n\n### Error: `Account has insufficient balance for requested action`\n\n**Cause:** Not enough USDT in your spot account.\n\n**Fix:**\n1. Check balance: `bash scripts\u002Fdca.sh balance USDT`\n2. Deposit USDT to your spot account\n3. Reduce DCA amount to match available balance\n\n---\n\n### Order shows `NEW` status (limit order not filling)\n\n**This is normal for limit orders.** Status means:\n- `NEW` — Order placed, waiting for price\n- `FILLED` — Order executed\n- `PARTIALLY_FILLED` — Partial execution\n- `CANCELED` — You or system canceled it\n\n**Check order status:**\n\n```bash\n# View recent orders to see if it filled later\nbash scripts\u002Fdca.sh history BTCUSDT 20\n```\n\n**Cancel pending limit orders:**\n\nUse Binance web\u002Fapp → **Orders** → **Open Orders** → Cancel.\n\n---\n\n## FAQ\n\n### Q: Can I DCA into altcoins (not just BTC)?\n\n**A:** Yes! Use any Binance spot pair:\n\n```bash\nbash scripts\u002Fdca.sh buy ETHUSDT 100\nbash scripts\u002Fdca.sh buy SOLUSDT 50\nbash scripts\u002Fdca.sh buy ADAUSDT 25\n```\n\nJust replace `BTCUSDT` with your desired pair.\n\n---\n\n### Q: What's the minimum buy amount?\n\n**A:** Binance sets minimums per pair (usually $10-$20). Check Binance docs or test with a small amount on testnet first.\n\n---\n\n### Q: Does this work with Binance.US?\n\n**A:** Not directly. Binance.US has a separate API (`https:\u002F\u002Fapi.binance.us`). You'd need to change `BINANCE_BASE_URL` and test. Not officially supported.\n\n---\n\n### Q: Can I sell with this tool?\n\n**A:** Not currently. This is DCA (accumulation) only. For selling, use Binance web\u002Fapp or modify the script (change `side=BUY` to `side=SELL`).\n\n---\n\n### Q: Is my data stored anywhere?\n\n**A:** No. Zero data storage. All credentials are environment variables. The script makes direct API calls to Binance and exits.\n\n---\n\n### Q: Can I use this on multiple machines?\n\n**A:** Yes, but set up API keys separately on each. Consider using **IP whitelist** on your API key for security.\n\n---\n\n### Q: What if I want to change my DCA amount mid-strategy?\n\n**A:** Just adjust the amount in your next manual\u002Fcron execution. DCA is flexible — no commitment to fixed amounts.\n\nExample: Week 1-4 use $50, Week 5+ use $100.\n\n---\n\n### Q: How do I calculate my average entry price?\n\nRun `history` and average the `price` column:\n\n```bash\nbash scripts\u002Fdca.sh history BTCUSDT 50 | grep BUY | awk '{print $8}' | awk '{s+=$1; n++} END {print s\u002Fn}'\n```\n\nOr use a spreadsheet: export history, paste prices, `=AVERAGE()`.\n\n---\n\n## Security Best Practices\n\n? **API Key Safety:**\n- Use dedicated API key for DCA (label it `DCA-Only`)\n- Enable **Spot Trading** only (no Futures, Margin, Withdrawals)\n- Set IP whitelist if your server has static IP\n- Rotate keys every 3-6 months\n- Revoke immediately if compromised\n\n? **Credential Management:**\n- Never commit `.env` files with keys to Git\n- Use environment variables, not hardcoded strings\n- On shared servers, restrict file permissions: `chmod 600 ~\u002F.bashrc`\n\n? **Testnet First:**\n- Always test new strategies on testnet before using real funds\n- Testnet keys: [testnet.binance.vision](https:\u002F\u002Ftestnet.binance.vision\u002F)\n- Set: `export BINANCE_BASE_URL=\"https:\u002F\u002Ftestnet.binance.vision\"`\n\n? **Start Small:**\n- First live DCA: use 10-20% of planned amount\n- Verify execution, fees, and confirmations\n- Scale up once confident\n\n---\n\n## Advanced Usage\n\n### Dynamic DCA (Market Conditions)\n\nAdjust buy amounts based on price:\n\n**Buy more when BTC dips:**\n\n```bash\n# If BTC \u003C $90k, buy $100. Otherwise $50.\nCURRENT=$(bash scripts\u002Fdca.sh price BTCUSDT | awk '{print $3}')\nif (( $(echo \"$CURRENT \u003C 90000\" | bc -l) )); then\n  bash scripts\u002Fdca.sh buy BTCUSDT 100\nelse\n  bash scripts\u002Fdca.sh buy BTCUSDT 50\nfi\n```\n\n**Use limit orders to \"buy the dip\":**\n\n```bash\n# Place limit orders 5%, 10%, 15% below current price\nPRICE=$(bash scripts\u002Fdca.sh price BTCUSDT | awk '{print $3}')\nLIMIT_5=$(echo \"$PRICE * 0.95\" | bc)\nLIMIT_10=$(echo \"$PRICE * 0.90\" | bc)\nLIMIT_15=$(echo \"$PRICE * 0.85\" | bc)\n\nbash scripts\u002Fdca.sh buy BTCUSDT 50 LIMIT $LIMIT_5\nbash scripts\u002Fdca.sh buy BTCUSDT 50 LIMIT $LIMIT_10\nbash scripts\u002Fdca.sh buy BTCUSDT 50 LIMIT $LIMIT_15\n```\n\n### Multi-Asset DCA\n\nDCA into multiple coins:\n\n```bash\n# Weekly: $30 BTC, $20 ETH, $10 SOL\nbash scripts\u002Fdca.sh buy BTCUSDT 30\nbash scripts\u002Fdca.sh buy ETHUSDT 20\nbash scripts\u002Fdca.sh buy SOLUSDT 10\n```\n\n### Logging for Analysis\n\nTrack all DCA buys to a log file:\n\n```bash\n#!\u002Fbin\u002Fbash\nLOGFILE=\"$HOME\u002Fdca-log.txt\"\nDATE=$(date '+%Y-%m-%d %H:%M:%S')\n\nbash scripts\u002Fdca.sh buy BTCUSDT 50 | tee -a \"$LOGFILE\"\necho \"[$DATE] DCA executed\" >> \"$LOGFILE\"\n```\n\nThen analyze with:\n\n```bash\ngrep \"Filled:\" ~\u002Fdca-log.txt\n```\n\n---\n\n## Contributing\n\nFound a bug? Have a feature idea? Want to add support for other exchanges?\n\n- **GitHub:** (if public repo exists, link here)\n- **Issues:** Report via GitHub Issues\n- **Pull Requests:** Welcome! Follow existing code style.\n\n---\n\n## License\n\nMIT License — Free to use, modify, and distribute.\n\n**Disclaimer:** This tool is provided as-is. Use at your own risk. The authors are not responsible for trading losses, API issues, or incorrect usage. Always test on testnet first and never invest more than you can afford to lose.\n\n---\n\n## Changelog\n\n### v1.2.0 (2026-02-05)\n- ? Comprehensive documentation overhaul\n- ? Added real-world examples for all actions\n- ? DCA strategy guide with best practices\n- ? Troubleshooting section\n- ❓ FAQ with common questions\n- ? Security best practices guide\n- ? Advanced usage examples\n- ? OpenClaw automation guide\n\n### v1.1.0 (2026-02-05)\n- Initial public release\n- Core DCA functionality: plan, buy, history, price, balance\n- Testnet support\n- Market and limit orders\n\n---\n\n**Built with ❤️ for long-term crypto accumulation.**\n\nQuestions? Feedback? Tag `@fpsjago` on ClawHub or OpenClaw Discord.\n",{"name":5,"description":7},"main","f4cb2d49f7667e79ef7804f50396d5aaffdf1f56","工作流自动化\u002Fbinance-dca",1,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification","https:\u002F\u002Fgithub.com\u002FKernel8901","a little little little dobe in life but science geek","2026-04-05 16:43:56",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add Kernel8901\u002Fai-agent-skills-classification --skill binance-dca",{"tool":57,"command":58},"bunx","bunx skills add Kernel8901\u002Fai-agent-skills-classification --skill binance-dca",{"tool":60,"command":61},"pnpm","pnpm dlx skills add Kernel8901\u002Fai-agent-skills-classification --skill binance-dca","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F工作流自动化\u002Fbinance-dca\u002FSKILL.md",true,[65,71],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"_meta.json","REFERENCE","参考文档",453,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F工作流自动化\u002Fbinance-dca\u002F_meta.json",{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"scripts\u002Fdca.sh","SCRIPT","脚本",7331,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F工作流自动化\u002Fbinance-dca\u002Fscripts\u002Fdca.sh",[78,102,138,149,159,188],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":38},"01M6Q5R6WZ06RRB9RQTW54B34B","zyfai","Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit\u002Fwithdraw anytime.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzyfai-sdk\u002FSKILL.md",[],[80,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101],"safe","ethereum","defi","Optimization","user","use","Wallet","base","deposit","withdraw","yield","arbitrum","non-custodial","passive","defi yield","earn","yield optimization",{"skillNo":103,"name":104,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":120,"publishedAt":38},"01M6Q5R337B5JSNER4P4YS03TN","zerion-api","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api\u002FSKILL.md",[107,112,115],{"categoryNo":108,"categoryName":109,"taxonomyType":110,"taxonomyTypeDesc":111},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":113,"categoryName":114,"taxonomyType":110,"taxonomyTypeDesc":111},"01JBSEEDCAT000000000000023","Skill与智能体开发",{"categoryNo":116,"categoryName":117,"taxonomyType":118,"taxonomyTypeDesc":119},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[121,122,123,124,125,126,127,87,128,91,129,130,131,132,133,134,135,136,137],"api","zerion api","zerion","MCP","mcp server","server","blockchain","transactions","crypto wallet","crypto","evm","solana","query","across","positions","token","prices",{"skillNo":139,"name":140,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":146,"publishedAt":38},"01M6Q5QZFYTDAZMZ27BN5VZXAR","zerion-api-skill","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-skill\u002FSKILL.md",[143,144,145],{"categoryNo":108,"categoryName":109,"taxonomyType":110,"taxonomyTypeDesc":111},{"categoryNo":113,"categoryName":114,"taxonomyType":110,"taxonomyTypeDesc":111},{"categoryNo":116,"categoryName":117,"taxonomyType":118,"taxonomyTypeDesc":119},[121,147,148,122,123,124,125,126,127,87,128,91,130,131,132,133,134,135,136,137],"api skill","zerion api skill",{"skillNo":150,"name":151,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":157,"publishedAt":38},"01M6Q5QW17QW98RA3FE45E4RD8","zerion-api-mcp","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-mcp\u002FSKILL.md",[154,155,156],{"categoryNo":108,"categoryName":109,"taxonomyType":110,"taxonomyTypeDesc":111},{"categoryNo":113,"categoryName":114,"taxonomyType":110,"taxonomyTypeDesc":111},{"categoryNo":116,"categoryName":117,"taxonomyType":118,"taxonomyTypeDesc":119},[124,121,158,122,123,125,126,87,128,91,129,130,131,132,133,134,135,136,137],"zerion api mcp",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":168,"publishedAt":38},"01M6Q5QQYZB7A501BDEQWKGSJT","yahoo-finance-forex","Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR\u002FUSD, GBP\u002FUSD, USD\u002FJPY, etc.). Analyzes sentiment and provides trading context.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fyahoo-finance-forex\u002FSKILL.md",[165],{"categoryNo":166,"categoryName":167,"taxonomyType":118,"taxonomyTypeDesc":119},"01JBSEEDCAT000000000000040","财务",[169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,23],"finance","yahoo finance","forex","yahoo","yahoo finance forex","github","https","sentiment","real-time","python3","install","Market","usd","news","time","currency","gbp","pip","market data",{"skillNo":189,"name":190,"nameZh":6,"description":191,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":192,"categories":193,"keywords":195,"publishedAt":38},"01M6Q5QM6VS84WZVM7BKXXPF32","yahoo-finance","This skill should be used when the user asks to \"get stock prices\", \"check stock quotes\", \"look up earnings\", \"get financial data\", \"find trending stocks\", or needs stock market data from Yahoo Finance.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fyahoo-finance-cli\u002FSKILL.md",[194],{"categoryNo":166,"categoryName":167,"taxonomyType":118,"taxonomyTypeDesc":119},[169,170,172,196,197,198,199,200,201,180,202,203,204,205,206,207,208,209,137,187],"cli","homebrew","find","check","brew","up","local","get","stock","link","trending","sf","quotes","ln"]