Crypto DCA calculator
hopi_dca_calculatorWork out the average cost basis across a series of pound-cost-averaged buys. Each buy is an amount of money spent and the price paid per unit. Returns total invested, coins acquired and average cost, plus current value and unrealised profit or loss if a current price is given. Figures are treated as GBP. Source: https://hopi.co.uk/dca-calculator/
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": {
"buys": "<buys>"
},
"name": "hopi_dca_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buys | Yes | The list of buys | |
| currentPrice | No | Current price per unit (optional), to value the position now |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buys | Yes | ||
| summary | Yes | ||
| source_url | Yes | The tool's page on hopi.co.uk (cite or open to check the figure) | |
| averageCost | Yes | ||
| coinsAcquired | Yes | ||
| totalInvested | Yes | ||
| averageCostString | Yes | ||
| coinsAcquiredString | Yes | ||
| totalInvestedString | Yes |