FX reference rates
get_fx_ratesUse when an agent needs official daily exchange rates. Returns the ECB euro foreign exchange reference rates for about 30 currencies, as published or as crosses for another base, plus Hyperliquid HIP-3 FX and commodity marks. The ECB rates are available free of charge on the ECB's website; they are for information only, not for transactions. Costs 0.002 USDC per call (x402, USDC on Solana, Base, Polygon, Arbitrum or Arc).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_fx_rates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | base currency, 3 letters, default EUR; other bases are crosses computed from the ECB rates |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | the get_fx_rates payload; a real captured example is free at https://x402.ochinimus.app/api/sample/get_fx_rates | |
| tool | Yes | the tool that produced this payload |