Octomind
Same model as opencode, same endpoint, same prices — octomind solved 24/25 to its 19/25, at half the cost. Open-source agent runtime: one binary, any model, runs unattended in CI. Apache 2.0.
Official Central Bank of Nigeria rates for 2 Nov 2026: 1 USD = 1346.94 NGN, 1 EUR = 1511.14 NGN. All 13 currencies published, history back to 2001. Free JSON API for tax, audits, and compliant invoici
Developer toolsJavaScriptGitHub @AllRates-TodayOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Central Bank of Nigeria official exchange rates via the AllRatesToday API — zero-dependency Node.js/TypeScript SDK
Translation pending
Taken from the repository README
Loading the full README.
Read the full README ↗Official Central Bank of Nigeria (Nigeria) daily exchange rates for Node.js and TypeScript. The published central bank rates behind tax filings, customs valuations, audits, and compliant invoicing — not market estimates, but the numbers Central Bank of Nigeria itself prints, every business day.
rate_date on every responsederived: true, never mixed with official printsfetch; Node 18+, Bun, Deno, and edge runtimesrate_type, publication date, and source disclaimer on every responseOfficial rate, not mid-market: every value here is a number Central Bank of Nigeria itself published, fixed once printed and carrying the central bank's own
rate_date— what filings and audits require. Need the live mid-market rate for pricing or display instead? Use the mid-market API or@allratestoday/sdk. The two can diverge by several percent.
Get a free API key at allratestoday.com/register — no credit card required. Latest rates are on every plan, including free.
The image is rendered live from the keyless endpoint, so it follows the central bank's publications on npm and on GitHub alike without a new release. The same table as text is folded below for search and copy-paste: on GitHub a daily Action refreshes it whenever the central bank publishes a new table; on npm it is as of the package's publish date.
| Base | Quote | Type | Rate |
|---|---|---|---|
| AED | NGN | buy | 366.6649 |
| AED | NGN | middle | 366.801 |
| AED | NGN | sell | 366.9371 |
| CHF | NGN | buy | 1643.6162 |
| CHF | NGN | middle | 1644.2264 |
| CHF | NGN | sell | 1644.8365 |
| CNY | NGN | buy | 202.5753 |
| CNY | NGN | middle | 202.6505 |
| CNY | NGN | sell | 202.7257 |
| DKK | NGN | buy | 202.1831 |
| DKK | NGN | middle | 202.2581 |
| DKK | NGN | sell | 202.3332 |
| EUR | NGN | buy | 1511.1359 |
| EUR | NGN | middle | 1511.6969 |
| EUR | NGN | sell | 1512.2578 |
| GBP | NGN | buy | 1808.0023 |
| GBP | NGN | middle | 1808.6734 |
| GBP | NGN | sell | 1809.3446 |
| JPY | NGN | buy | 8.5401 |
| JPY | NGN | middle | 8.5433 |
| JPY | NGN | sell | 8.5464 |
| SAR | NGN | buy | 358.8787 |
| SAR | NGN |
Source: Official rates published by CBN, served by AllRatesToday. Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
npm install cbn-exchange-rate
yarn add cbn-exchange-rate
pnpm add cbn-exchange-rate
Requires Node 18+ (global fetch); also runs on Bun, Deno and edge runtimes. Also published under the org scope as @allratestoday/cbn-exchange-rate — same code, same versions.
import { getRate } from 'cbn-exchange-rate';
const pair = await getRate('USD', 'NGN', { apiKey: 'art_live_...' });
console.log(pair.rate, pair.rate_date); // the official Central Bank of Nigeria rate, on the central bank's own date
Free plan and up. Pairs the central bank does not print directly are resolved from its table and flagged (see Published vs derived rates below).
const pair = await getRate('USD', 'NGN', { apiKey: 'art_live_...' });
Response:
{
bank: 'cbn',
name: 'Central Bank of Nigeria',
rate_date: '2026-10-13', // Central Bank of Nigeria's own publication date
source: 'USD',
target: 'NGN',
rate: 1332.4728,
rate_type: 'middle',
derived: false,
method: 'published',
disclaimer: 'Official rates as published by the named central bank. On weekends/holidays the most recent published rate_date is returned.'
}
Free plan and up. The complete table for the latest publication date.
import { getLatestRates } from 'cbn-exchange-rate';
const table = await getLatestRates({ apiKey: 'art_live_...' });
console.log(table.rate_date, table.rates.length);
Response:
{
bank: 'cbn',
name: 'Central Bank of Nigeria',
rate_date: '2026-10-13',
rates: [
{ "base": "USD", "quote": "NGN", "type": "middle", "value": 1332.4728 },
{ "base": "USD", "quote": "NGN", "type": "sell", "value": 1332.9728 },
{ "base": "USD", "quote": "NGN", "type": "buy", "value": 1331.9728 },
// … the rest of the published table (13 currencies vs NGN)
],
disclaimer: '…'
}
Paid plans. The official table for any date since 2001 — weekends and holidays return the most recent published date, flagged via published_on_requested_date, which is exactly the in-force rate a filing needs.
import { getRatesForDate } from 'cbn-exchange-rate';
const day = await getRatesForDate('2026-06-30', { apiKey: 'art_live_...' });
// Optionally narrow to one pair:
const one = await getRatesForDate('2026-06-30', { apiKey: 'art_live_...', source: 'USD', target: 'NGN' });
Response:
{
bank: 'cbn',
requested_date: '2026-06-30',
rate_date: '2026-06-30', // the date actually published
published_on_requested_date: true, // false when a weekend/holiday fell back
rates: [ /* the full table for that date */ ],
disclaimer: '…'
}
Paid plans. One resolved rate per publication date — ready for charting, revaluation runs, or audit workpapers.
import { getHistory } from 'cbn-exchange-rate';
const series = await getHistory(
{ source: 'USD', target: 'NGN', from: '2026-01-01', to: '2026-10-13' },
{ apiKey: 'art_live_...' }
);
Response:
{
bank: 'cbn',
source: 'USD',
target: 'NGN',
from: '2026-01-01',
to: '2026-10-13',
count: 152,
rates: [
// one entry per publication date
{ date: '2026-10-13', rate: 1332.4728, rate_type: 'middle', derived: false, method: 'published' },
// …
],
disclaimer: '…'
}
Pass { symbol: 'USD' } instead of source/target to get the raw published rows for one currency (all rate types, no pair resolution).
Central Bank of Nigeria currently publishes rates covering 13 currencies against the NGN (as of the latest table):
🇦🇪 AED · 🇨🇭 CHF · 🇨🇳 CNY · 🇩🇰 DKK · 🇪🇺 EUR · 🇬🇧 GBP · 🇯🇵 JPY · 🇸🇦 SAR · 🇺🇸 USD · XDR · XOF · XUA · 🇿🇦 ZAR
The Central Bank of Nigeria is Nigeria's central bank. It publishes official naira exchange rates (buying, central, and selling) each business day, with an archive reaching back to 2001 — the official reference for Nigerian customs and tax.
rate_date moves; every response carries the same figure as available_by_utc — see when to pollrate_date on every row — see the methodologyvalue is always quote currency per 1 unit of base currency (base: "EUR", quote: "USD", value: 1.15 means 1 EUR = 1.15 USD).base: "USD", quote: "NGN" means NGN per one US dollar).getRate(target, source) and the API inverts or crosses for you, flagged derived: true — never divide a published rate yourself in a compliance workflow.rate_type tells you which of the central bank's series a row belongs to (middle here); some publishers print buy/sell or several fixings for the same pair.Loading the official Central Bank of Nigeria rate into an accounting system is a supported workflow, not a hack. Step-by-step guides with the direction each system expects:
The same keyed endpoints return ?format=csv, ?format=xml and ?format=xlsx, and accept the key as ?api_key= on the URL for importers that cannot send headers:
curl "https://allratestoday.com/api/v1/central-bank/cbn/latest?format=xml&api_key=art_live_..."
npx -y @allratestoday/central-bank-mcp (stdio) or the hosted endpoint https://allratestoday.com/api/mcp — tools for official rates, history, cross-bank comparison and publication calendars@allratestoday/sdk 1.4+ has officialRates('cbn') and @allratestoday/mcp-server 0.6+ has a get_official_rates tool — both return this source's latest table with no key, so you can add it without a second dependency/plugin marketplace add AllRates-Today/claude-code-plugin then /plugin install allratestoday@allratestoday — bundles both MCP servers plus an /official-rate cbn ... commandPOST https://allratestoday.com/api/agent/keys (send Content-Type: application/json) returns a 100-call key valid 7 days that covers the free-plan methods (latest table, pairs); dated tables and history need a paid plan. The MCP servers expose it as request_trial_keyIf Central Bank of Nigeria does not print a pair directly, the API resolves it from the central bank's own table and says so — official and computed values are never confused:
method | derived | Meaning |
|---|---|---|
published | false | The central bank printed this pair directly |
inverse | true | Computed as 1 ÷ the published opposite direction |
cross | true | Computed via NGN from two published rates |
Errors are thrown as Error with status (HTTP code) and body (the API's JSON error) attached:
try {
const pair = await getRate('USD', 'XXX', { apiKey: 'art_live_...' });
} catch (err) {
console.log(err.message); // human-readable reason
console.log(err.status); // e.g. 404
}
| Status | Meaning |
|---|---|
| — | Missing apiKey (thrown before any request) |
400 | Malformed date or parameters |
401 | Invalid API key |
403 | Endpoint needs a paid plan (historical dates & series) |
404 | Pair or date range not covered by Central Bank of Nigeria |
429 | Monthly quota exceeded |
Full definitions ship with the package — no @types install:
import type { LatestRates, PairRate, DatedRates, RateEntry, HistoryQuery, RequestOptions } from 'cbn-exchange-rate';
const { getRate } = require('cbn-exchange-rate');
getRate('USD', 'NGN', { apiKey: 'art_live_...' }).then((pair) => console.log(pair.rate));
| Method | Plan | Description |
|---|---|---|
getRate(source, target, { apiKey }) | Free | Latest rate for one pair, resolved from the published table |
getLatestRates({ apiKey }) | Free | The central bank's full latest published table |
getRatesForDate(date, { apiKey, source?, target? }) | Paid | The official table (or one pair) for a YYYY-MM-DD date |
getHistory({ symbol | source+target, from?, to? }, { apiKey }) | Paid | Daily series since 2001 |
Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
rates/cbn.csv)https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/cbn/latest.jsonMIT
| middle |
| 359.0119 |
| SAR | NGN | sell | 359.1451 |
| USD | NGN | buy | 1346.9435 |
| USD | NGN | middle | 1347.4435 |
| USD | NGN | sell | 1347.9435 |
| XDR | NGN | buy | 1826.5901 |
| XDR | NGN | middle | 1827.2681 |
| XDR | NGN | sell | 1827.9462 |
| XOF | NGN | buy | 2.272 |
| XOF | NGN | middle | 2.282 |
| XOF | NGN | sell | 2.292 |
| XUA | NGN | buy | 1823.6803 |
| XUA | NGN | middle | 1824.3572 |
| XUA | NGN | sell | 1825.0342 |
| ZAR | NGN | buy | 81.1294 |
| ZAR | NGN | middle | 81.1596 |
| ZAR | NGN | sell | 81.1897 |