v1
latestOpenAPI 3.0.32026-08-04850206.9 KBCalculators
DCA calculator
Dollar-cost averaging backtest over the coin's real daily price history: one buy of amount per interval between start and end. Pass series=true to include the full per-purchase series.
get/api/v1/calculators/dca
Query parameters
slugstring required
The coin's slug identifier.
Example:bitcoin
The coin's slug identifier.
amountnumber required
USD spent per purchase (0.01–1,000,000,000).
Example:100
USD spent per purchase (0.01–1,000,000,000).
intervalstring required
Purchase cadence: daily, weekly, monthly, quarterly or yearly.
Example:weekly
Purchase cadence: daily, weekly, monthly, quarterly or yearly.
startstring required
date First purchase date (after 2008-12-31).
Example:2024-01-01
date First purchase date (after 2008-12-31).
endstring nullable
date Last purchase date (defaults to today).
Example:2025-01-01
date Last purchase date (defaults to today).
seriesboolean nullable
Include the per-purchase series in the payload.
Include the per-purchase series in the payload.
Response
Example response
{
"data": {
"summary": {
"purchases": 53,
"invested": 5300,
"accumulated": 0.0754210998,
"final_value": 7098.9,
"profit": 1798.9,
"roi": 33.94
},
"series": null
},
"meta": {
"coin": "bitcoin",
"interval": "weekly",
"start": "2024-01-01",
"end": "2025-01-01",
"amount_per_buy": 100,
"currency": "USD"
}
}