v1

latestOpenAPI 3.0.32026-08-04850206.9 KB
Calculators

Compound interest calculator

Pure math — no market data. Note that the rate applies PER COMPOUNDING PERIOD (the web calculator's convention), not per year.

get/api/v1/calculators/compound-interest

Query parameters

principalnumber required

Starting balance in USD.

Example:10000

Starting balance in USD.

ratenumber required

Interest rate in % per compounding period.

Example:1

Interest rate in % per compounding period.

durationinteger required

Length of the projection (years are capped at 50).

Example:5

Length of the projection (years are capped at 50).

duration_unitstring nullable

years (default) or months.

Example:years

years (default) or months.

compound_frequencystring nullable

daily, weekly, monthly (default), quarterly or annually.

Example:monthly

daily, weekly, monthly (default), quarterly or annually.

contributionnumber nullable

Recurring deposit in USD (default 0).

Example:100

Recurring deposit in USD (default 0).

contribution_frequencystring nullable

daily, weekly, monthly (default), quarterly or annually.

Example:monthly

daily, weekly, monthly (default), quarterly or annually.

Response

Example response

{
  "data": {
    "final_balance": 24471.19,
    "total_contributions": 16000,
    "total_interest": 8471.19,
    "roi": 52.94
  },
  "meta": {
    "note": "The rate applies per compounding period (web calculator parity), not per year."
  }
}