16trust / 100

Loan Calculator

by Vextorium in Markets & finance

x402 APIFailing, checked 3 h ago

Loan or mortgage with French amortization (fixed installment): monthly payment, total paid, total interest, approximate APR (TAE) including fees, and a yearly or monthly amortization schedule.

POST https://api.vextorium.com/v1/loan-calculator

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
0.0%
Response time
- typical, - slowest 5%
Last check
3 h ago: Amount "0.004" is not in atomic token units
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.vextorium.com/v1/loan-calculator" \
  -H "content-type: application/json" \
  -d '{"annual_interest_pct":3,"capital":150000,"fees":1500,"term_months":300}'
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%2Fapi.vextorium.com%2Fv1%2Floan-calculator
const res = await pay("https://api.vextorium.com/v1/loan-calculator", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"annual_interest_pct":3,"capital":150000,"fees":1500,"term_months":300}),
});
console.log(await res.json());

Example input

{
  "annual_interest_pct": 3,
  "capital": 150000,
  "fees": 1500,
  "term_months": 300
}

Example output

{
  "apr_approx_pct": 3.136,
  "capital": 150000,
  "fees": 1500,
  "monthly_share": 711.32,
  "nominal_interest_pct": 3,
  "note": "French amortization (constant payment). Indicative calculation; does not include insurance or bundled products.",
  "table": [
    {
      "paid_interest": 4444.04,
      "pending": 145908.24,
      "repaid_capital": 4091.76,
      "until_month": 12
    },
    {
      "paid_interest": 4319.59,
      "pending": 141692.02,
      "repaid_capital": 4216.22,
      "until_month": 24
    }
  ],
  "term_months": 300,
  "total_interest": 63395.09,
  "total_paid": 213395.09
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoAmount "0.004" is not in atomic token units40286 ms$0.004
7 h agoAmount "0.004" is not in atomic token units402101 ms$0.004
12 h agoAmount "0.004" is not in atomic token units40283 ms$0.004
16 h agoAmount "0.004" is not in atomic token units40282 ms$0.004
20 h agoAmount "0.004" is not in atomic token units40283 ms$0.004
24 h agoAmount "0.004" is not in atomic token units40281 ms$0.004
28 h agoAmount "0.004" is not in atomic token units40277 ms$0.004
32 h agoAmount "0.004" is not in atomic token units40289 ms$0.004
36 h agoAmount "0.004" is not in atomic token units40288 ms$0.004
41 h agoAmount "0.004" is not in atomic token units40283 ms$0.004
44 h agoAmount "0.004" is not in atomic token units40277 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40276 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40276 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40279 ms$0.004
3 days agoAmount "0.004" is not in atomic token units402120 ms$0.004