AgentBIT
← all tools

FX Aggregator

Live foreign exchange rates (mid/bid/ask) for currency pairs with source attribution.

$0.005
USDC per call · x402
Endpoint
POST /v1/finance/fx
MCP name
agentbit.fx
Status
active
Latency / uptime (7d)
105 ms · 100%

Call with x402

1. Send the request. 2. Receive 402 with accepts[]. 3. Sign the payment and retry with the X-PAYMENT header.

curl -X POST https://agentbit.app/v1/finance/fx \
  -H 'Content-Type: application/json' \
  -d '{"pairs":["EUR/USD","EUR/RON"]}'

Input schema

{
    "type": "object",
    "properties": {
        "pairs": {
            "type": "array",
            "items": {
                "type": "string"
            }
        }
    },
    "required": [
        "pairs"
    ]
}

Output schema

{
    "type": "object",
    "properties": {
        "rates": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "pair": {
                        "type": "string"
                    },
                    "mid": {
                        "type": "number"
                    },
                    "bid": {
                        "type": "number"
                    },
                    "ask": {
                        "type": "number"
                    }
                },
                "required": []
            }
        }
    },
    "required": []
}

Code examples

// JavaScript (x402-fetch)
import { wrapFetchWithPayment } from "x402-fetch";
const fetchWithPay = wrapFetchWithPayment(fetch, wallet);
const r = await fetchWithPay("https://agentbit.app/v1/finance/fx", {
  method: "POST",
  headers: {"Content-Type": "application/json"},
  body: JSON.stringify({"pairs":["EUR/USD","EUR/RON"]})
});
console.log(await r.json());
# Python (x402 client)
from x402.clients.requests import x402_requests
s = x402_requests(account)
r = s.post("https://agentbit.app/v1/finance/fx",
  json={"pairs":["EUR/USD","EUR/RON"]})
print(r.json())
// PHP
$r = Http::withHeaders(['X-PAYMENT' => $signedPayment])
  ->post('https://agentbit.app/v1/finance/fx',
    array (
  'pairs' => 
  array (
    0 => 'EUR/USD',
    1 => 'EUR/RON',
  ),
));
$data = $r->json();