Fx Live
by Tanod utilpeek in Markets & finance
Use when an agent must price an amount in EUR, GBP, MXN, BRL, CAD, SGD, ZAR or IDR against USD now, not at the ECB fix. Live FX exchange rates: indicative bid, ask, mid and ECB deviation for EUR, GBP, MXN, BRL, CAD, SGD, ZAR and IDR per USD, read from public stablecoin pools on Base (utilpeek by Tanod).
POST https://tanod.dev/v1/fx/live
Last 30 days
Status and outage history · Atom feed
- Uptime
- 100%
- Response time
- 813 ms typical, 1.1 s slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
POST https://tanod.dev/v1/fx/live
Each call costs $0.002 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://tanod.dev/v1/fx/live
content-type: application/json
{}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
amount_usd | number or null | No | Reference trade size in USD for the price-impact measurement, 100 to 100000 (default 1000). A pair whose impact at this size is 1% or more is listed under `thin`. Default: null. |
pairs | array of string or null | No | Pairs in market convention, for example EURUSD (USD per EUR) or USDMXN (MXN per USD). Omit for every supported pair; an unknown pair is a 422 that lists the supported ones. Default: null. |
Example response
The provider's example. We can't check it without paying.
Example response, 62 lines
{
"amount_usd": 1000,
"block": 52445369,
"cached": false,
"chain": "base",
"disclaimer": "Indicative on-chain prices read from one public stablecoin pool per pair on Base (the best of up to three configured pools) at the stated block. They are not dealable quotes, not a fixing and not investment advice: a pool price can differ from the interbank rate, move every block and be moved by a single trade. Do not use them to settle trades or as an oracle.",
"errors": [],
"indicative": true,
"licence": "Chain data: no licence restrictions. The ECB reference rate beside each mid is available free of charge from the ECB website; it is published for information purposes only.",
"method": "bid/ask: USDC per unit of the stablecoin from the pool's QuoterV2 (fee included) at USD 100. mid: geometric mean sqrt(bid * ask), which removes the pool fee. deviation_pct = (mid / ecb - 1) * 100.",
"pairs": [
{
"ask": "1.1198134",
"base": "EUR",
"bid": "1.1196564",
"block": 52445369,
"buy_leg_block": 52445368,
"buy_leg_timestamp": "2026-10-11T00:54:43Z",
"deviation_pct": -0.0772,
"ecb": {
"date": "2026-10-09",
"rate": "1.1206",
"stale": false
},
"fee_pct": 0.007,
"fee_tier": 70,
"mid": "1.1197349",
"pair": "EURUSD",
"pool": "0xf39B7c34BE147F5DC1bC374f27AF2E9f03AD3113",
"pools_quoted": 3,
"price_impact_buy_pct": 0.0001,
"price_impact_pct": 0.0001,
"price_impact_sell_pct": 0.0001,
"quote": "USD",
"quoter": "0x514c8B5f54112481E28028F1166Bd78501089259",
"reference_usd": 1000,
"small_usd": 100,
"spread_pct": 0.014,
"stablecoin": {
"address": "0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42",
"decimals": 6,
"symbol": "EURC"
},
"timestamp": "2026-10-11T00:54:45Z",
"venue": "aerodrome_slipstream"
}
],
"small_usd": 100,
"thin": [
{
"pair": "USDAUD",
"pool": "0xCde41D0B1AD079C3CeB7271559F738f503102852",
"reason": "about USD 261 of USDC in the pool; a USD 1,000 buy returned about USD 194 on the way back",
"researched": "2026-10-11",
"stablecoin": "AUDD",
"token": "0x449B3317a6d1efb1Bc3ba0700C9EaA4FFFf4Ae65",
"usdc_in_pool": 261,
"venue": "aerodrome_slipstream"
}
],
"timestamp": "2026-10-11T00:54:45Z"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.002.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://tanod.dev/v1/fx/live' \
-H 'content-type: application/json' \
--data-raw '{}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://tanod.dev/v1/fx/live' \
-H 'content-type: application/json' \
--data-raw '{}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.002 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.002" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.002 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftanod.dev%2Fv1%2Ffx%2Flive&method=POST
const res = await pay("https://tanod.dev/v1/fx/live", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.002 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.002"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://tanod.dev/v1/fx/live",
json={},
)
print(res.status_code, res.text)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 |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 1.1 s | $0.002 |
| 6 h ago | Passed | 402 | 2.1 s | $0.002 |
| 10 h ago | Passed | 402 | 452 ms | $0.002 |
| 14 h ago | Passed | 402 | 345 ms | $0.002 |
| 18 h ago | Passed | 402 | 1.0 s | $0.002 |
| 21 h ago | Passed | 402 | 432 ms | $0.002 |
| 26 h ago | Passed | 402 | 1.1 s | $0.002 |
| 29 h ago | Passed | 402 | 1.0 s | $0.002 |
| 33 h ago | Passed | 402 | 369 ms | $0.002 |
| 36 h ago | Passed | 402 | 1.0 s | $0.002 |
| 40 h ago | Passed | 402 | 338 ms | $0.002 |
| 44 h ago | Passed | 402 | 367 ms | $0.002 |
| 47 h ago | Passed | 402 | 1.1 s | $0.002 |
| 2 days ago | Passed | 402 | 1.1 s | $0.002 |
| 2 days ago | Passed | 402 | 813 ms | $0.002 |