FX rates API
cdcko-38-190-144-122.free.pinggy.net/api/fx-rates
FX rates API - the live foreign exchange rate for any currency pair from THREE independent keyless sources (Frankfurter's ECB daily reference rates, open.er-api.com and exchangerate-api.com), cross-checked against each other. GET ?base=USD&to=EUR OR ?from=USD&to=EUR OR ?symbols=EUR,GBP OR ?amount=100&from=USD&to=JPY OR ?sample=1|2|3 OR POST application/json with base|from|to|amount. KEYLESS public
GET
https://cdcko-38-190-144-122.free.pinggy.net/api/fx-ratesUptime0.0% of 3 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://cdcko-38-190-144-122.free.pinggy.net/api/fx-rates?to=example&base=example&amount=example&sample=1&symbols=BTC%2CETH");
console.log(await res.json());Example input
{
"to": "example",
"base": "example",
"amount": "example",
"sample": "1",
"symbols": "BTC,ETH"
}