Skip to content
Fourohtwo

x402.santyvv.com/api/fx/convert

Convert an amount from one currency to another using the ECB reference rate of the day, and return the rate, the converted amount, the date of the rate and a rounding hint. For invoices, expense reports and reports that must cite an official rate.

BaseAnswering
GEThttps://x402.santyvv.com/api/fx/convert

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://x402.santyvv.com/api/fx/convert?desde=Moneda+de+origen+%28ISO+3+letras%29+%28por+defecto%3A+USD%29+Ejemplo%3A+USD&hacia=Moneda+destino+%28ISO+3+letras%29+%28obligatorio%29+Ejemplo%3A+EUR&monto=Monto+a+convertir+%28por+defecto%3A+1%29+Ejemplo%3A+100");
console.log(await res.json());

Example input

{
  "desde": "Moneda de origen (ISO 3 letras) (por defecto: USD) Ejemplo: USD",
  "hacia": "Moneda destino (ISO 3 letras) (obligatorio) Ejemplo: EUR",
  "monto": "Monto a convertir (por defecto: 1) Ejemplo: 100"
}

More from santyvv-dataProvider status