66trust / 100

Finance Cagr Calculator

by AgentTools in Markets & finance

x402 APIFailing, checked 2 h ago

Calculate the compound annual growth rate that takes an initial value to a final value over a given number of years — the standard way to annualize returns. Use this when an agent needs to compound annual growth rate, time-normalized.

GET https://agenttools-hub.vercel.app/api/v1/finance/cagr-calculator

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
50.0%
Response time
148 ms typical, 148 ms slowest 5%
Last check
2 h ago: Expected HTTP 402, got 308
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agenttools-hub.vercel.app/api/v1/finance/cagr-calculator?final=16000&initial=10000&years=3"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagenttools-hub.vercel.app%2Fapi%2Fv1%2Ffinance%2Fcagr-calculator
const res = await pay("https://agenttools-hub.vercel.app/api/v1/finance/cagr-calculator?final=16000&initial=10000&years=3");
console.log(await res.json());

Example input

{
  "final": 16000,
  "initial": 10000,
  "years": 3
}

Example output

{
  "result": {
    "answer": "16.96%",
    "answerLabel": "CAGR per year",
    "details": [
      {
        "label": "Total growth multiple",
        "value": "1.6×"
      },
      {
        "label": "Total period",
        "value": "3 years"
      },
      {
        "label": "Value after 1 year at CAGR",
        "value": "11,696.07"
      }
    ],
    "steps": [
      "multiple = 16,000 ÷ 10,000 = 1.6×",
      "CAGR = 1.6^(1 ÷ 3) − 1 = 16.96%"
    ],
    "value": 16.96071
  },
  "tool": "cagr-calculator"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoExpected HTTP 402, got 308308109 ms-
5 h agoExpected HTTP 402, got 30830835 ms-
8 h agoPassed402150 ms$0.002
14 h agoPassed402148 ms$0.002