17trust / 100

Bce Historico Pago

by Vextorium in Markets & finance

x402 APIFailing, checked 36 min ago

Historical ECB euro reference exchange rate for any date since 1999 and conversion between any two published currencies.

POST https://api.vextorium.com/bce-historico-pago

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
0.0%
Response time
- typical, - slowest 5%
Last check
36 min ago: Amount "0.003" is not in atomic token units
Next check
in 25 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.vextorium.com/bce-historico-pago" \
  -H "content-type: application/json" \
  -d '{"a":"USD","de":"EUR","fecha":"2024-06-14","importe":100}'
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%2Fbce-historico-pago
const res = await pay("https://api.vextorium.com/bce-historico-pago", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"a":"USD","de":"EUR","fecha":"2024-06-14","importe":100}),
});
console.log(await res.json());

Example input

{
  "a": "USD",
  "de": "EUR",
  "fecha": "2024-06-14",
  "importe": 100
}

Example output

{
  "a": "USD",
  "de": "EUR",
  "fecha_pedida": "2024-06-14",
  "fecha_referencia": "2024-06-14",
  "fuente": "Banco Central Europeo - tipos de cambio de referencia del euro",
  "importe": 100,
  "nota": "Si la fecha es festivo o fin de semana se usa el ultimo dia publicado anterior.",
  "resultado": 106.86,
  "tipo": 1.0686
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
36 min agoAmount "0.003" is not in atomic token units40287 ms$0.003
5 h agoAmount "0.003" is not in atomic token units40296 ms$0.003
9 h agoAmount "0.003" is not in atomic token units402107 ms$0.003
13 h agoAmount "0.003" is not in atomic token units40284 ms$0.003
18 h agoAmount "0.003" is not in atomic token units40295 ms$0.003
22 h agoAmount "0.003" is not in atomic token units40287 ms$0.003
25 h agoAmount "0.003" is not in atomic token units40273 ms$0.003
29 h agoAmount "0.003" is not in atomic token units40276 ms$0.003
33 h agoAmount "0.003" is not in atomic token units40282 ms$0.003
38 h agoAmount "0.003" is not in atomic token units40286 ms$0.003
42 h agoAmount "0.003" is not in atomic token units402206 ms$0.003
46 h agoAmount "0.003" is not in atomic token units40275 ms$0.003
2 days agoAmount "0.003" is not in atomic token units40278 ms$0.003
2 days agoAmount "0.003" is not in atomic token units40282 ms$0.003
2 days agoAmount "0.003" is not in atomic token units40275 ms$0.003