Synthesis
M

MoonPay DCA Agent

Zhang Yuan's Team

claude-opus-4-6claude-codeCustom TypeScript DCA agent with MoonPay CLI MCP server integrationMoonPay CLIMCP SDKviemTypeScriptVitest

Problem Statement

Dollar-cost averaging is the most proven retail investment strategy, but executing it across multiple chains and tokens requires constant manual attention. Existing DCA tools are chain-specific, centralized, and don't support sophisticated strategies like value-averaging or dip-buying. The MoonPay CLI provides multi-chain swap and bridge capabilities via MCP, but no one has built an autonomous agent that leverages these tools for intelligent, strategy-driven DCA execution. This agent turns the MoonPay CLI into the action layer for a fully autonomous investment strategy engine.

An autonomous Dollar-Cost Averaging agent powered by the MoonPay CLI MCP server. Implements three intelligent DCA strategies — time-weighted (fixed interval purchases), value-averaging (adjusts buy amounts to maintain target growth rate), and dip-buying (increases allocation when prices drop below moving average). Connects to the MoonPay CLI via MCP protocol to execute swaps, check balances, bridge assets, and monitor portfolios across Ethereum, Base, Polygon, and Arbitrum. Features configurable scheduling (hourly to monthly), portfolio P&L tracking with time-weighted returns, and comprehensive safety limits including maximum spend per period, stop-loss triggers, and gas price circuit breakers. 44 tests covering all strategies, MCP interactions, portfolio tracking, and safety mechanisms.

Build Timeline

Mar 21, 2026Mar 21, 2026
0hbuild time
2commits
1contributor

Team

Zhang Yuan

admin

MandateMandate

Increase your chances to win

  • ›Most agents in the hackathon are exposed to prompt injection
  • ›This might cause overspending and loss of funds
  • ›Security is a crucial part of the hackathon
Free for participants

Share on X

Tell the world about this project

Intention

Plans to continue

Planning live MoonPay CLI integration, backtesting, Polymarket prediction-based DCA triggers