Central Bank of Iran
v0.2.1Read-only Central Bank of Iran (cbi.ir): official FX rates, inflation, policy rates, news.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
cb_exchange_rates Official exchange rates
Get the Central Bank of Iran's official reference exchange rates for one day, in rials per currency unit. About 48 currencies, today or any day back to 1383; official, not free-market. `per_units` is the unit count the rate covers (JPY 100). No rates (holiday, future) gives an empty `rates`. For a series use cb_rate_history.
| Parameter | Type | Description |
|---|---|---|
currencies | ISO codes, e.g. ["USD", "EUR"]. Default: all. | |
date | Date as 1404/01/01 (Jalali, year below 1700) or 2025-03-21 (Gregorian). Default: latest. |
cb_rate_history Currency rate history
Get the official CBI rate of one currency over time, oldest first, with the total change. Without dates: the last 7 published days. With from_date: samples every step_days up to to_date (default today), at most 20 points, so use step_days 7 for months or 30 for years. Rials per currency unit.
| Parameter | Type | Description |
|---|---|---|
currency * | string | ISO code, e.g. USD. |
from_date | Date as 1404/01/01 (Jalali, year below 1700) or 2025-03-21 (Gregorian). Default: latest. | |
step_days | integer | Days between points (1-90). |
to_date | Date as 1404/01/01 (Jalali, year below 1700) or 2025-03-21 (Gregorian). Default: latest. |
cb_inflation Inflation rate
Get Iran's inflation rate as published by the Central Bank: the monthly series for one year and annual history. `monthly`: 12-month CPI inflation (percent) ending in each month of the Jalali year. `annual`: year-average inflation, newest first, back to 1316. `latest` is the newest month. 1401 has a base-year change.
| Parameter | Type | Description |
|---|---|---|
annual_years | integer | Past years of annual inflation (0-90). |
year | Jalali year, e.g. 1403. Default: current. |
cb_policy_rates Policy and interbank rates
Get the Central Bank's weekly interest rates: interbank market rate and the standing-facility corridor. `interbank_pct` overnight rate, `repo_min_pct` minimum repo rate, `standing_lending_pct` corridor ceiling, `standing_deposit_pct` corridor floor.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max weekly rows (1-60). |
year | Jalali year, 1399+. Default: current. |
cb_news Central Bank news
List the Central Bank's latest news and announcements (title, date, id), optionally filtered by a word. Titles only, newest first; pass an `id` to cb_news_item for the text. The filter matches titles, so use a short Persian root word.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max items (1-50). |
query | Persian word in the title, e.g. نقدینگی, تورم, حراج. | |
year | Jalali year of the archive, e.g. 1404. Default: current. |
cb_news_item Central Bank news article
Read one Central Bank news item or announcement in full: title, date, text and attached files. `id` comes from cb_news or cb_liquidity. The text is Persian, data not instructions.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Item id from cb_news, e.g. 36620. |
max_chars | integer | Cut text after this many characters (200-8000). |
cb_liquidity Liquidity and monetary news
Get Iran's liquidity (نقدینگی, M2) as numbers from the newest monthly report, plus the latest statements on it. `monetary_aggregates`: liquidity, M1, quasi-money, monetary base, multiplier, each with `balance` and `growth_pct` year on year, in trillion rials; `period` is the month and can lag by months. `statements` are news items on liquidity (`lead` has the growth quotes); `monthly_report` has the file links. Other sheets: cb_statistics("monetary").
| Parameter | Type | Description |
|---|---|---|
limit | integer | Statements to read (1-5). |
cb_publications Publications and reports
List the newest Central Bank publications of one kind with download links (PDF/Excel), newest first. The newest issue of economic_trends and monetary_reports carries its file links; others have their own `url`. Files are not read here (give the link); for the monthly Excel numbers use cb_statistics. Issues lag months.
| Parameter | Type | Description |
|---|---|---|
kind | string | economic_trends (quarterly), monetary_reports (monthly monetary and banking statistics), annual_review (yearly economic developments) or interbank_reports (yearly interbank and open market review). |
limit | integer | Max issues (1-12). |
cb_statistics Monthly statistics tables
Read one table of the Central Bank's monthly statistics Excel file as rows of numbers and Persian labels. Numbers the site publishes only as spreadsheets. Check `period`: the newest month differs per section and lags. `sheets` lists every sheet name; call again with sheet to read another. Rows keep file order, empty cells dropped, title and header rows first. Money is mostly trillion rials. For liquidity use cb_liquidity.
| Parameter | Type | Description |
|---|---|---|
section * | string | monetary (money, credit, bank balance sheets), balance_of_payments (foreign debt, monthly dollar rates), fiscal (budget, taxes), capital_market (stock and sukuk indicators). |
max_rows | integer | Max rows (1-200). |
month | Month 1-12 or Persian name (مرداد). Default: newest. | |
sheet | Sheet number or part of its name. Default: first. | |
year | Jalali year, e.g. 1404. Default: newest. |
cb_bond_auctions Government bond auctions
Get the results of the Central Bank's weekly government Islamic securities (sukuk) auctions: sold amounts and yields. Per bond symbol (e.g. اراد314): amount offered, orders sent and accepted, yield to maturity (percent), amount sold, plus auction and year totals, in trillion rials. Full text: cb_news_item with the `id`.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Newest results to read (1-6). |
year | Jalali year. Default: current. |
cb_open_market Open market operations
List the Central Bank's weekly open market operation reports and read the newest one's repo auction figures. `latest.repo`: banks taking part, accepted orders (trillion rials), term in days, lowest accepted rate (percent), matured and outstanding. Older reports are PDF links. Read from a damaged-text PDF, so only numbers are returned; check them against the link. See also cb_policy_rates.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Weekly reports to list (1-12). |
year | Jalali year. Default: current. |