Calculate Dollar Cost Average
calculate_dollar_cost_averageCalculate DCA portfolio value and performance for recurring crypto investments. See list_bundles for related 'crypto' calculators.
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": {
"investment_per_period": "<investment_per_period>",
"periods": "<periods>",
"average_price": "<average_price>",
"current_price": "<current_price>"
},
"name": "calculate_dollar_cost_average"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| periods | Yes | Number of investment periods | |
| average_price | Yes | Average purchase price per unit over all periods | |
| current_price | Yes | Current market price per unit | |
| investment_per_period | Yes | Amount invested per period in fiat currency |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Computed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools). | |
| source | No | Authoritative source for the rule or formula (e.g. "Article 197 CGI", "NF DTU 21"). | |
| formula | No | Human-readable formula or method used (e.g. "I=P·r·t", "Magnus formula"). | |
| reference_url | No | Link to a calcul2 page documenting the calculation in detail. |