{"uid":"cap_Cwy9sP35udzeQXNRD3WsF","slug":"vextorium-dca-simulator-94ee0c01","name":"Vextorium DCA Simulator","description":"Backtest buying a fixed amount of a token every N days (dollar-cost averaging) since a past date: invested, units, average cost, current value, return, and comparison with investing everything at the start. Prices from DefiLlama.","url":"https://api.vextorium.com/simulador-dca-pago?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["moneda","importe"],"properties":{"dias":{"type":"integer","description":"Days back (default 365, max 1825)"},"desde":{"type":"string","description":"Start date YYYY-MM-DD (or use dias)"},"moneda":{"type":"string","description":"BTC, ETH, SOL... or chain:contract"},"importe":{"type":"number"},"cada_dias":{"type":"integer","description":"Buy every N days (1-90)"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":["object","null"],"properties":{"nota":{"type":["string","null"]},"desde":{"type":["string","null"]},"moneda":{"type":["string","null"]},"compras":{"type":["number","null"]},"unidades":{"type":["number","null"]},"invertido":{"type":["number","null"]},"precio_medio":{"type":["number","null"]},"valor_actual":{"type":["number","null"]},"precio_actual":{"type":["number","null"]},"todo_de_golpe":{"type":["object","null"],"properties":{"valor_actual":{"type":["number","null"]},"rentabilidad_pct":{"type":["number","null"]}}},"mejor_estrategia":{"type":["string","null"]},"rentabilidad_pct":{"type":["number","null"]}}}}}}},"responseSchema":{"type":"json","example":{"nota":"Simulación con precio de cierre diario, sin comisiones. Rentabilidades pasadas no garantizan futuras. Fuente de precios: DefiLlama.","desde":"2025-10-02","moneda":"BTC","compras":53,"unidades":0.06850205,"invertido":5300,"precio_medio":77369.951068,"valor_actual":5860.11,"precio_actual":85546.5136562897,"todo_de_golpe":{"valor_actual":3804.2,"rentabilidad_pct":-28.22},"mejor_estrategia":"DCA","rentabilidad_pct":10.57}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YouLf93PisXkb5PUXI9ed","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Backtests a dollar-cost averaging strategy for any crypto token, showing invested amount, units accumulated, average cost, current value, return, and comparison against a lump-sum investment.","exampleAgentPrompt":"Simulate a DCA strategy where I invest $100 in BTC every 7 days starting from 2024-01-01, and compare it to putting all the money in at once.","exampleUseCases":[{"title":"BTC yearly DCA performance review","prompt":"How would I have done if I invested $50 in Bitcoin every 14 days for the last 365 days? Show me my total return and how it compares to just buying everything on day one."},{"title":"SOL weekly DCA since bear market bottom","prompt":"Backtest a $200 weekly SOL purchase starting from 2023-01-01 and tell me my average cost, total units, current value, and whether DCA beat a lump-sum entry."},{"title":"Altcoin DCA via contract address","prompt":"I want to simulate buying $25 of a Base token at contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 every 30 days for the past 180 days — what would my return be compared to investing everything upfront?"}],"resultDescription":"Returns a JSON object with the simulation start date, token symbol, number of purchases made, total units accumulated, total amount invested, average cost per unit, current token price, current portfolio value, return percentage for the DCA strategy, equivalent lump-sum investment value and return percentage, and which strategy performed better, plus a disclaimer note about the simulation methodology and price source (DefiLlama).","failureModes":["Invalid or unsupported token symbol returns an error or null results","Start date too far back (>1825 days) may be clamped or rejected","purchase interval outside 1–90 days range may be rejected","Missing required fields (moneda or importe) returns a validation error","Token with insufficient price history on DefiLlama returns partial or empty results","Network timeout for illiquid or obscure tokens"],"whenToPreferThis":"Use this endpoint when you need to backtest a periodic crypto investment strategy (DCA) for any token supported by DefiLlama, including long-tail DeFi tokens via chain:contract address. It is purpose-built for comparing DCA vs lump-sum performance with configurable intervals and start dates, making it ideal for investment analysis agents or portfolio planning. Prefer over generic price endpoints when the goal is strategy simulation rather than just price lookup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:41:49.637Z","isFirstParty":false,"canonicalSlug":"vextorium-dca-simulator-94ee0c01"}