{"uid":"cap_PF3toGTerRi3Q-ei2STqM","slug":"finmath-cagr-from-series-d67a1f53","name":"finmath CAGR from Series","description":"Deterministic finance and crypto math for AI agents: TradFi (NPV, IRR, XIRR, Black-Scholes + Greeks, bonds, VaR, Sharpe) and DeFi (impermanent loss, perp liquidation, funding, Uniswap v3, health factor, cost basis). Exact, model-free arithmetic that LLMs get wrong — priced per call in USDC.","url":"https://finmath.qzqh5rrbkz.workers.dev/v1/cagr_from_series","method":"POST","headers":{},"bodySchema":{"type":"object","required":["values"],"properties":{"values":{"type":"array","description":"values"},"periods_per_year":{"type":"number","description":"periods_per_year"}}},"responseSchema":{"type":"object","required":["result","meta"],"properties":{"meta":{"type":"object"},"result":{}}},"example":{"request":{"values":[100,110,121,133.1],"periods_per_year":1},"response":{"meta":{"tool":"cagr_from_series","disclaimer":"Deterministic calculation utility. Not financial, investment, or trading advice.","deterministic":true},"result":0.10000000000000009}},"exampleRequest":{"values":[100,110,121,133.1],"periods_per_year":1},"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CFR5cgg9ZmymWP0V-Dblx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the Compound Annual Growth Rate (CAGR) from a time series of values, with configurable periods-per-year.","exampleAgentPrompt":"Calculate the exact CAGR from this series of annual portfolio values — [100000, 112000, 125440, 140492] — with 1 period per year, using deterministic math so I get the precise annualized growth rate.","exampleUseCases":null,"resultDescription":"Returns a JSON object with a 'result' field containing the computed CAGR as a decimal (e.g. 0.12 for 12% annual growth), plus a 'meta' object with computation details such as the number of periods and annualization factor used.","failureModes":["Too few values in the series (fewer than 2 data points) — likely returns a validation error","Non-numeric or null values in the array — likely returns a parsing or computation error","periods_per_year set to zero or negative — division error or invalid parameter response","Malformed JSON body — 400 Bad Request","Payment not included or insufficient — 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a deterministic, exact CAGR calculation from a sequence of values — especially when LLM-native arithmetic is unreliable or when auditability matters. Prefer this over asking an LLM to compute CAGR directly, over spreadsheet-style tooling, or when the series frequency is non-annual (use periods_per_year to normalize). Ideal for portfolio performance reporting, fund analysis, and any workflow requiring reproducible finance math.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:55:56.905Z","isFirstParty":false}