Official central-bank rate
get_official_rateThe official exchange rate per US dollar from central banks whose rates are hard for software to read, e.g. 'Bank of Ghana USD/GHS today'. Covers the Bank of Ghana, Central Bank of Nigeria, Bank of Botswana, Bank of Zambia, Banco de Moçambique, Reserve Bank of Malawi, Reserve Bank of Zimbabwe, Banque Centrale du Congo and other institutional fixings, read every hour from the publishers' own pages. Free: the latest rate with publisher, fixing date, source and whether it is fresh. Full answer (USD 0.25 per call by x402 in USDC on Base, or a paid key): up to 90 days of daily history and every publisher on record. Says so when no rate is on record; never estimates. The same data is GET https://swapeazi.io/api/v1/official-rates?currency=GHS.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"currency": "<currency>"
},
"name": "get_official_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Days of history for the full answer, 1 to 90 (default 30). | |
| currency | Yes | ISO code, e.g. GHS, NGN, BWP, ZMW, MZN, MWK, ZWG, CDF. | |
| access_key | No | A paid key (rk_...), if not sent as a Bearer header. |