Free calculators
Crypto converter and DCA calculator documentation
Inputs, formulas, assumptions and API/MCP examples for the crypto converter and dca calculator. Reproduce a calculation and cite its sources.
Content updated . Assumptions reviewed .
Formula and assumptions
Conversion = coin amount × USD price × fiat per USD. DCA buys coins after each month’s assumed price change, less purchase fees.
- Reference prices are supplied through KlarFort snapshots. Powered by CoinGecko. Entered example prices are illustrative assumptions.
- DCA is a forward scenario, never a historical backtest. Purchases occur at month end; fractional coins are supported.
- FX remains constant through the DCA scenario. Ending values are before a possible future sale fee and tax.
Assumptions reviewed:
Sources
- KlarFort calculation methodology. Free to use with the credit line; vintage 1.
Parameters
| Name | Description | Type | Default | Minimum | Maximum |
|---|---|---|---|---|---|
| symbol | A supported symbol; arithmetic uses the price you enter. | string | "BTC" | ||
| currency | All entered amounts use this currency. No automatic currency conversion. | string | "USD" | ||
| mode | Mode | string | "convert" | ||
| direction | Conversion direction | string | "coin-to-fiat" | ||
| price | Your entered USD price, or an indicative quote when available. | number | 50000 | 0.000000001 | 1,000,000,000 |
| fxRate | One for USD. Other currencies require your entered conversion rate. | number | 1 | 0.000000001 | 1,000,000,000 |
| amount | Amount to convert | number | 1 | 0 | 1,000,000,000,000 |
| monthlyContribution | Monthly DCA contribution in fiat | number | 100 | 0 | 1,000,000,000,000 |
| months | DCA duration in months | integer | 12 | 1 | 600 |
| annualReturn | Assumed annual coin price change (%) | number | 0 | -99 | 100 |
| feePercent | Purchase or sale fee (%) | number | 0 | 0 | 99 |
| initialInvestment | Invested at the entered initial price, before monthly purchases. | number | 0 | 0 | 1,000,000,000,000 |
JSON API
GET accepts one input parameter containing URL-encoded JSON. POST sends the JSON input object. Prefer POST for personal figures. Inputs are limited to 16 KiB. POST results are not stored; GET results may be cached for up to 24 hours.
curl -X POST https://klarfort.com/tools/api/v1/crypto-converter -H "Content-Type: application/json" --data '{"symbol":"BTC","currency":"USD","mode":"convert","direction":"coin-to-fiat","price":50000,"fxRate":1,"amount":1,"monthlyContribution":100,"months":12,"annualReturn":0,"feePercent":0,"initialInvestment":0}'fetch("https://klarfort.com/tools/api/v1/crypto-converter", {method:"POST", headers:{"Content-Type":"application/json"}, body:JSON.stringify({"symbol":"BTC","currency":"USD","mode":"convert","direction":"coin-to-fiat","price":50000,"fxRate":1,"amount":1,"monthlyContribution":100,"months":12,"annualReturn":0,"feePercent":0,"initialInvestment":0})})import json, urllib.request
request = urllib.request.Request("https://klarfort.com/tools/api/v1/crypto-converter", data=json.dumps({"symbol":"BTC","currency":"USD","mode":"convert","direction":"coin-to-fiat","price":50000,"fxRate":1,"amount":1,"monthlyContribution":100,"months":12,"annualReturn":0,"feePercent":0,"initialInvestment":0}).encode(), headers={"Content-Type":"application/json"})
print(urllib.request.urlopen(request).read().decode())Connected assistants
Connect using https://klarfort.com/tools/mcp. Discover this calculator with tools/list, then call crypto-converter. Protocol versions 2026-07-28 and 2025-11-25 are supported. Modern requests carry protocol metadata and matching HTTP headers. Set Mcp-Name to params.name for tools/call and to params.uri for resources/read. Older clients initialize first.
Limits: 120 requests per minute per address and approximately 3,000 per minute per edge location. Simulations are capped at 1,000 paths, 600 months and 150,000 path-months (paths multiplied by months). Shorten the duration or reduce paths when that work limit is exceeded. A limit response returns 429 and Retry-After. No exact remaining-request count is available.
Usage and credit
Free for personal, commercial and any other lawful use with credit to KlarFort at https://klarfort.com/. Third-party data terms still apply.
Place a visible credit near the reused material or in the credits for your work or integration. One clear credit per work or integration is sufficient; no separate credit per API request is required. Links to individual calculators are optional.
Computed with KlarFort Calculators, https://klarfort.com/
The API returns this text in credit and the homepage in credit_url. The optional citation_url identifies the calculator for reference. See usage and credit for the full permission.
KlarFort is not financial, investment, tax, or legal advice. Verify outputs before making material decisions.