81trust / 100
Fx Rates
by FiatDock in Markets & finance
x402 APIPassing, checked 3 h ago
Live exchange rates and a conversion for ~170 currencies and the major crypto assets, with the European Central Bank reference rate beside each live one and the deviation between them - an independent check in the same answer. {from, to, amount}; send {} for USD against eight majors. Pay-per-call via x402.
POST https://fiatdock.com/v1/fx/rates
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 45 ms typical, 45 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://fiatdock.com/v1/fx/rates" \
-H "content-type: application/json" \
-d '{"amount":100,"from":"USD","to":"EUR,GBP"}'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.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ffiatdock.com%2Fv1%2Ffx%2Frates
const res = await pay("https://fiatdock.com/v1/fx/rates", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"amount":100,"from":"USD","to":"EUR,GBP"}),
});
console.log(await res.json());Example input
{
"amount": 100,
"from": "USD",
"to": "EUR,GBP"
}Example output
{
"amount": 100,
"asOf": "2026-10-05T00:00:00.000Z",
"ecbDate": "2026-10-02",
"from": "USD",
"note": "rate = units of each target one USD buys (a mid rate, before any spread or fee).",
"rates": [
{
"converted": 85.1,
"deviationFromEcbPct": -0.024,
"ecbRate": 0.8512,
"rate": 0.851,
"to": "EUR"
},
{
"converted": 74.2,
"deviationFromEcbPct": 0.013,
"ecbRate": 0.7419,
"rate": 0.742,
"to": "GBP"
}
],
"source": "Coinbase exchange rates (live mid) + ECB reference rates via Frankfurter"
}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 | Passed | 402 | 45 ms | $0.001 |