---
title: "DCA calculator"
method: GET
path: "/api/v1/calculators/dca"
tags: ["Calculators"]
---

# DCA calculator

`GET /api/v1/calculators/dca`

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.

## Query parameters

- `slug` string, required — The coin's slug identifier.
- `amount` number, required — USD spent per purchase (0.01–1,000,000,000).
- `interval` string, required — Purchase cadence: `daily`, `weekly`, `monthly`, `quarterly` or `yearly`.
- `start` string, required — date First purchase date (after 2008-12-31).
- `end` string, nullable — date Last purchase date (defaults to today).
- `series` boolean, nullable — Include the per-purchase series in the payload.

## Response `200`

- object
  - `data` object
    - `summary` object
      - `purchases` integer
      - `invested` integer
      - `accumulated` number
      - `final_value` number
      - `profit` number
      - `roi` number
    - `series` string, nullable
  - `meta` object
    - `coin` string
    - `interval` string
    - `start` string
    - `end` string
    - `amount_per_buy` integer
    - `currency` string

---

[API](https://skmtc.net/bitculator/apis/bitculator-data-api.md) · [All operations](https://skmtc.net/bitculator/apis/bitculator-data-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bitculator/bitculator-data-api/revisions/ed1378af68b6/schema)
