{"slug":"saylorinnovations-com-api-crypto-dca-simulator-cbeec9","title":"Dollar-cost averaging simulation on a supplied price list","host":"saylorinnovations.com","method":"GET","resource":"https://saylorinnovations.com/api/crypto/dca-simulator","category":"market","description":"Dollar-cost averaging simulation on a supplied price list: average cost, units, return, breakeven price and a comparison against one lump sum at the first price.","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":510,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:137","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"amount":"100","prices":"60000,58000,62000,55000,57000,64000,67000"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"amount":{"description":"amount spent at each price","type":"string"},"prices":{"description":"comma-separated purchase prices in time order (2-500)","type":"string"}},"required":["prices","amount"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"amount_per_buy":{"description":"Amount spent on each purchase","type":"number"},"average_cost":{"description":"Average price paid per unit","type":"number"},"breakeven_price":{"description":"Price at which the position breaks even (the average cost)","type":"number"},"buys":{"description":"Number of purchases simulated","type":"number"},"dca_beats_lump_sum":{"description":"True when the DCA final value is higher than the lump sum","type":"boolean"},"fee_percent":{"description":"Fee taken from each purchase, in percent","type":["number","null"]},"final_price":{"description":"Last price in the series, used for valuation","type":"number"},"final_value":{"description":"Value of all units at the final price","type":"number"},"highest_price":{"description":"Highest purchase price","type":"number"},"lowest_price":{"description":"Lowest purchase price","type":"number"},"lump_sum_at_first_price":{"description":"Result of spending the same total once at the first price","properties":{"final_value":{"description":"Value of the lump sum at the final price","type":["number","null"]},"return_percent":{"description":"Return of the lump sum, in percent","type":["number","null"]},"units":{"description":"Units a single purchase would have bought","type":["number","null"]}},"type":"object"},"max_price_drawdown_percent":{"description":"Worst peak-to-trough fall in the price series, in percent","type":"number"},"note":{"description":"Plain-language caveat about how to read and use the result","type":"string"},"profit":{"description":"Final value minus total invested","type":"number"},"return_percent":{"description":"Profit as a percentage of the amount invested","type":"number"},"source":{"description":"Where the data or formula comes from","type":"string"},"total_invested":{"description":"Total amount spent","type":"number"},"units_acquired":{"description":"Total units bought after fees","type":"number"}},"required":["average_cost","return_percent"],"type":"object"},"type":{"const":"json","type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":510,"error":null}],"description_full":"Dollar-cost averaging simulation on a supplied price list: average cost, units, return, breakeven price and a comparison against one lump sum at the first price.","last_updated":"2026-10-20T14:45:20.433Z","schemes":["exact"]}