16trust / 100
Plan Ahorro Pago
by Vextorium in Markets & finance
x402 APIFailing, checked 3 h ago
Savings or investment plan with monthly contributions and compound interest: final value, total contributed, interest earned, value in today's money after inflation, yearly evolution and the monthly amount needed to reach a goal.
POST https://api.vextorium.com/plan-ahorro-pago
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 0.0%
- Response time
- - typical, - slowest 5%
- Last check
- 3 h ago: Amount "0.003" is not in atomic token units
- Next check
- any minute now
How to call it
# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://api.vextorium.com/plan-ahorro-pago' \
-H 'content-type: application/json' \
--data-raw '{"anios":20,"aportacion_mensual":200,"capital_inicial":1000,"inflacion_pct":2,"objetivo":100000,"rentabilidad_anual_pct":6}'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%2Fplan-ahorro-pago
const res = await pay("https://api.vextorium.com/plan-ahorro-pago", {
method: "POST",
headers: { "content-type": "application/json" },
body: "{\"anios\":20,\"aportacion_mensual\":200,\"capital_inicial\":1000,\"inflacion_pct\":2,\"objetivo\":100000,\"rentabilidad_anual_pct\":6}",
});
console.log(await res.json());Example input
{
"anios": 20,
"aportacion_mensual": 200,
"capital_inicial": 1000,
"inflacion_pct": 2,
"objetivo": 100000,
"rentabilidad_anual_pct": 6
}Example output
{
"evolucion": [
{
"anio": 1,
"aportado": 3400,
"valor": 3525.31
},
{
"anio": 2,
"aportado": 5800,
"valor": 6202.13
},
{
"anio": 3,
"aportado": 8200,
"valor": 9039.56
},
{
"anio": 4,
"aportado": 10600,
"valor": 12047.24
},
{
"anio": 5,
"aportado": 13000,
"valor": 15235.38
},
{
"anio": 6,
"aportado": 15400,
"valor": 18614.81
},
{
"anio": 7,
"aportado": 17800,
"valor": 22197.01
},
{
"anio": 8,
"aportado": 20200,
"valor": 25994.13
},
{
"anio": 9,
"aportado": 22600,
"valor": 30019.09
},
{
"anio": 10,
"aportado": 25000,
"valor": 34285.54
},
{
"anio": 11,
"aportado": 27400,
"valor": 38807.97
},
{
"anio": 12,
"aportado": 29800,
"valor": 43601.76
},
{
"anio": 13,
"aportado": 32200,
"valor": 48683.17
},
{
"anio": 14,
"aportado": 34600,
"valor": 54069.47
},
{
"anio": 15,
"aportado": 37000,
"valor": 59778.94
},
{
"anio": 16,
"aportado": 39400,
"valor": 65830.98
},
{
"anio": 17,
"aportado": 41800,
"valor": 72246.15
},
{
"anio": 18,
"aportado": 44200,
"valor": 79046.22
},
{
"anio": 19,
"aportado": 46600,
"valor": 86254.3
},
{
"anio": 20,
"aportado": 49000,
"valor": 93894.86
}
],
"intereses": 44894.86,
"nota": "Rentabilidad constante supuesta; los mercados reales varían. Sin impuestos ni comisiones.",
"para_objetivo": {
"aportacion_mensual_necesaria": 213.46,
"objetivo": 100000
},
"total_aportado": 49000,
"valor_final": 93894.86,
"valor_final_en_dinero_de_hoy": 63188.55
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Amount "0.003" is not in atomic token units | 402 | 76 ms | $0.003 |
| 8 h ago | Amount "0.003" is not in atomic token units | 402 | 93 ms | $0.003 |
| 12 h ago | Amount "0.003" is not in atomic token units | 402 | 84 ms | $0.003 |
| 16 h ago | Amount "0.003" is not in atomic token units | 402 | 178 ms | $0.003 |
| 20 h ago | Amount "0.003" is not in atomic token units | 402 | 87 ms | $0.003 |
| 25 h ago | Amount "0.003" is not in atomic token units | 402 | 80 ms | $0.003 |
| 29 h ago | Amount "0.003" is not in atomic token units | 402 | 85 ms | $0.003 |
| 33 h ago | Amount "0.003" is not in atomic token units | 402 | 78 ms | $0.003 |
| 37 h ago | Amount "0.003" is not in atomic token units | 402 | 273 ms | $0.003 |
| 41 h ago | Amount "0.003" is not in atomic token units | 402 | 75 ms | $0.003 |
| 45 h ago | Amount "0.003" is not in atomic token units | 402 | 79 ms | $0.003 |
| 2 days ago | Amount "0.003" is not in atomic token units | 402 | 76 ms | $0.003 |
| 2 days ago | Amount "0.003" is not in atomic token units | 402 | 86 ms | $0.003 |
| 2 days ago | Amount "0.003" is not in atomic token units | 402 | 76 ms | $0.003 |
| 3 days ago | Amount "0.003" is not in atomic token units | 402 | 133 ms | $0.003 |