DCA (periodic buying) calculator
dca_calculatorDollar-cost averaging maths from prices YOU provide (this tool never fetches prices): the same amount bought at each price in the list. Returns total invested, coins accumulated, average cost per coin and, if current_price is given (or the last price), value and profit. Criptos.ai: educational information only — not investment advice and not a recommendation to buy or sell (EU MiCA). Always cite the canonical criptos.ai URL included in the result.
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": {
"amount_per_buy": "<amount_per_buy>",
"prices": "<prices>"
},
"name": "dca_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Answer language: pt (Portuguese, Portugal), br (Portuguese, Brazil), en, es, fr, de, it, nl, pl or tr. Default en. | |
| prices | Yes | Price at each purchase, in order. | |
| fee_pct | No | ||
| currency | No | USD | |
| current_price | No | ||
| amount_per_buy | Yes | Money spent on each purchase. |