fx-macro

v1.0.0
io.github.abangdwie/fx-macro Checked 2 days ago Published 7 days ago

FX reference rates + euro-area macro data (ECB/Eurostat), pay-per-call in USDC on Base via x402.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

fx_rates

Get latest FX reference rates for a base currency (Frankfurter, blended reference rates from 112 central banks + official sources). Costs $0.002 USDC per call, paid via x402 on Base.

ParameterTypeDescription
basestringBase currency, ISO 4217 code, e.g. USD, EUR, IDR (default USD)
symbolsstringComma-separated target currencies, max 20, e.g. IDR,EUR,GBP (empty = all currencies)

fx_convert

Convert an amount between two currencies at the reference rate. Costs $0.002 USDC per call, paid via x402 on Base.

ParameterTypeDescription
from *stringSource currency, ISO 4217 code, e.g. USD
to *stringTarget currency, ISO 4217 code, e.g. IDR
amountnumberAmount to convert; must be > 0 and <= 1e12 (default 1)

fx_history

Get daily historical FX rates over a window, with first/last rate and percent change. Costs $0.005 USDC per call, paid via x402 on Base.

ParameterTypeDescription
basestringBase currency, ISO 4217 code, e.g. USD (default USD)
daysintegerNumber of days back (1-365, default 30)
symbolsstringComma-separated target currencies, max 5, e.g. IDR,EUR (default IDR)

macro_ecb

Get euro-area macro indicators from ECB Statistical Data Warehouse + Eurostat: HICP inflation, real GDP, M3, ECB policy rates (MRO, DFR), unemployment. Partial delivery: if some series fail upstream, the successful ones are still returned and failed series listed as {code, error}, full $0.005 charged; only a total failure of all requested series returns an error with no charge. Costs $0.005 USDC per call, paid via x402 on Base.

ParameterTypeDescription
seriesstringComma-separated series codes, e.g. HICP,GDP,M3,MRO,DFR,UNEMP (empty = all 6 series)

health

Check that the server is alive. Free, no payment required.

catalog

List all tools with their prices in USDC. Free, no payment required.