Run a real DCA backtest on historical data
run_dca_backtestSimulates dollar-cost averaging into one asset using dcamethod.com's own engine and historical price data. Returns total invested, final value, profit, CAGR, average buy price, best/worst month and purchase count. Dates outside the available range are clamped to it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>",
"amount": "<amount>",
"frequency": "<frequency>"
},
"name": "run_dca_backtest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | USD invested per purchase, e.g. 100 | |
| symbol | Yes | Asset symbol or name, e.g. 'BTC', 'AAPL', 'gold' | |
| end_date | No | Optional ISO date (YYYY-MM-DD); defaults to latest available | |
| frequency | Yes | Purchase schedule | |
| start_date | No | Optional ISO date (YYYY-MM-DD); defaults to earliest available |