Iran Mercantile Exchange
v0.2.2Read-only Iran Mercantile Exchange (ime.co.ir): physical trades, supply, prices, market totals.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ime_categories Commodity groups
List the exchange's commodity groups: main groups, then groups, then subgroups, with their ids. No arguments: main groups. main_cat: its groups. main_cat plus cat: subgroups. Use the ids as main_cat/cat/sub_cat in ime_trades, ime_supply and ime_price_history.
| Parameter | Type | Description |
|---|---|---|
cat | integer | Group id (with main_cat) to list its subgroups. |
main_cat | integer | Main group id to list its groups (0 = list the main groups). |
ime_producers Find producers
Find producers and suppliers listed on the exchange by name, to get the producer id for the trade and supply tools. Use the returned id as producer in ime_trades, ime_supply or ime_price_history.
| Parameter | Type | Description |
|---|---|---|
query * | string | Part of a producer name, Persian or English, e.g. فولاد مبارکه. |
limit | integer | Max producers (1-50). |
ime_trades Trades on the exchange
List commodity trades (price, volume, supply, demand, buyer broker) for a date range, with totals. Dates default to today (Tehran); at most 45 days. Filter with main_cat/cat/sub_cat (ime_categories), producer (ime_producers) or search. `price` is the volume-weighted closing price; Rial per kg for tonne goods; `volume` in `unit`; `value_k_rial` in thousand Rial. Subsidiary rows have only base_price, supply, demand, volume. For one product's series use ime_price_history; for market totals ime_market_summary.
| Parameter | Type | Description |
|---|---|---|
cat | integer | Category id from ime_categories (0 = all). |
date_from | Persian 1405/08/09 or Gregorian 2026-10-31. | |
date_to | Persian 1405/08/09 or Gregorian 2026-10-31. | |
limit | integer | Max trades to return (1-100). |
main_cat | integer | Category id from ime_categories (0 = all). |
market | string | physical, subsidiary (بازار فرعی), export (Kish hall) or premium (no producer filter). |
producer | integer | Category id from ime_categories (0 = all). |
search | Commodity, symbol or producer contains this text. | |
sort | string | value (largest first), volume (largest first) or date (newest first). |
sub_cat | integer | Category id from ime_categories (0 = all). |
ime_supply Supply offers
List supply offers (اطلاعیه عرضه): what is up for sale on which session, volume and base price. Dates are offer dates; default today to 7 days ahead; at most 45 days. Filters as in ime_trades; page with offset. market=premium adds `premium_price`. After the session ime_trades shows what sold.
| Parameter | Type | Description |
|---|---|---|
cat | integer | Category id from ime_categories (0 = all). |
date_from | Persian 1405/08/09 or Gregorian 2026-10-31. | |
date_to | Persian 1405/08/09 or Gregorian 2026-10-31. | |
limit | integer | Max offers to return (1-50). |
main_cat | integer | Category id from ime_categories (0 = all). |
market | string | physical, premium or export (Kish hall, priced in $). |
offset | integer | Skip this many offers (paging). |
producer | integer | Category id from ime_categories (0 = all). |
search | Commodity, symbol, producer or supplier contains this text. | |
sub_cat | integer | Category id from ime_categories (0 = all). |
ime_price_history Price history of a commodity
Daily price series (low, high, volume-weighted average, volume) per symbol over a date range. Dates default to the last 14 days; at most 45 days. Narrow with sub_cat or search (a wide filter returns only the 8 biggest symbols). Only days with trades appear. Prices as in ime_trades.
| Parameter | Type | Description |
|---|---|---|
cat | integer | Category id from ime_categories (0 = all). |
date_from | Persian 1405/08/09 or Gregorian 2026-10-31. | |
date_to | Persian 1405/08/09 or Gregorian 2026-10-31. | |
main_cat | integer | Category id from ime_categories (0 = all). |
market | string | physical, subsidiary (بازار فرعی), export (Kish hall) or premium (no producer filter). |
producer | integer | Category id from ime_categories (0 = all). |
search | Commodity, symbol or producer text, e.g. ورق گرم. | |
sub_cat | integer | Category id from ime_categories (0 = all). |
ime_market_summary Market totals
Exchange-wide trade value and volume for a date range: by market, by physical-market hall, plus the USD rate. Dates default to today (Tehran). Values are million Rial; volumes are tonnes for physical. `offer_volume` is what was offered. The USD rate is the exchange's settlement rate. For a day-by-day series use ime_daily_totals.
| Parameter | Type | Description |
|---|---|---|
date_from | Persian 1405/08/09 or Gregorian 2026-10-31. | |
date_to | Persian 1405/08/09 or Gregorian 2026-10-31. |
ime_daily_totals Daily trade totals
Day-by-day trade value and volume of one market over a date range (the site's market chart). Dates default to the last 14 days; at most 45 days. Value is million Rial. Volume is tonnes (physical), contracts (options) or units (financial).
| Parameter | Type | Description |
|---|---|---|
date_from | Persian 1405/08/09 or Gregorian 2026-10-31. | |
date_to | Persian 1405/08/09 or Gregorian 2026-10-31. | |
market | string | physical, options or financial. |
ime_news Exchange news
Latest news and notices from the exchange's news archive: title, lead, date and link. Text is Persian.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max news items (1-30). |
ime_trade_stats Trade statistics by group
Rank producers, commodities, brokers or halls by traded value over a date range, with each one's market share. Dates default to today (Tehran); at most 45 days; filters as in ime_trades. Value is thousand Rial. `volume` only when all trades of the group share one unit. For single trades use ime_trades.
| Parameter | Type | Description |
|---|---|---|
group_by * | string | Grouping key (broker = buyer broker). |
cat | integer | Category id from ime_categories (0 = all). |
date_from | Persian 1405/08/09 or Gregorian 2026-10-31. | |
date_to | Persian 1405/08/09 or Gregorian 2026-10-31. | |
limit | integer | Max groups to return (1-50). |
main_cat | integer | Category id from ime_categories (0 = all). |
market | string | physical, subsidiary (بازار فرعی), export (Kish hall) or premium (no producer filter). |
producer | integer | Category id from ime_categories (0 = all). |
search | Commodity, symbol or producer contains this text. | |
sub_cat | integer | Category id from ime_categories (0 = all). |
ime_weekly_reports Weekly reports
List the exchange's weekly market reports (گزارش هفتگی), newest first, with the PDF link of each. Only lists links to the Persian PDFs, does not read them. For a week's numbers use ime_market_summary.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max reports (1-60). |
year | Persian year, e.g. 1405 (default all). |
ime_options Options board
Options on gold, gold coin, gold funds and saffron futures (اختیار معامله): one day's board or one contract's history. No dates: latest trading day. With dates (at most 10 days): every day in the range. `contract` (a code from the list): that contract's days, up to 45. Prices and strike are Rial. Daily market totals: ime_daily_totals(market="options").
| Parameter | Type | Description |
|---|---|---|
contract | One contract code: returns its day-by-day history. | |
date_from | Persian 1405/08/09 or Gregorian 2026-10-31. | |
date_to | Persian 1405/08/09 or Gregorian 2026-10-31. | |
limit | integer | Max contracts or days to return (1-100). |
option_type | string | call (خرید), put (فروش) or all. |
search | Code or description contains this text, e.g. GCES or صندوق طلا. | |
sort | string | Largest first (settlement_change by size of move). |
traded_only | boolean | Only contracts that traded (volume above 0). |
ime_securities Commodity securities trades
Daily trades of the exchange's financial-market symbols: salaf, commodity deposit certificates and commodity funds. No dates: latest trading day; with dates every day in the range (at most 45). Prices are Rial per unit, value in Rial. Gold bar / gold coin / silver certificates: ime_certificates; live bid and ask: ime_board.
| Parameter | Type | Description |
|---|---|---|
date_from | Persian 1405/08/09 or Gregorian 2026-10-31. | |
date_to | Persian 1405/08/09 or Gregorian 2026-10-31. | |
kind | string | salaf (سلف), certificate (saffron etc.), fund (commodity ETFs, mostly gold) or all. |
limit | integer | Max rows to return (1-100). |
search | Symbol, code or name contains this text. | |
sort | string | value/volume largest first, change biggest move first, date newest first. |
ime_certificates Gold and other deposit certificates
Continuous commodity deposit certificates (گواهی سپرده پیوسته): gold bar, gold coin, silver, copper, steel and more. No `commodity`: every certificate with its latest day. With `commodity`: its day-by-day history (default last 30 days, at most 90). Prices are Rial per certificate unit (about one gram for gold bar, one coin for GoldCoin). Fund and saffron symbols: ime_securities.
| Parameter | Type | Description |
|---|---|---|
commodity | Certificate id, code or name part: GoldBar, GoldCoin, SilverBar, SteelRebar... or طلا, سکه. Empty = all. | |
date_from | Persian 1405/08/09 or Gregorian 2026-10-31. | |
date_to | Persian 1405/08/09 or Gregorian 2026-10-31. |
ime_board Live board of funds, certificates and salaf
Market-view board (cdn.ime.co.ir) with the best bid and ask: use it to see where a fund or certificate trades now. Live during the session; after the close the last session (see `time`, `date`). Value in Rial. Daily history: ime_securities.
| Parameter | Type | Description |
|---|---|---|
kind | string | fund (mostly gold), certificate (saffron etc.) or salaf. |
limit | integer | Max symbols to return (1-60). |
search | Symbol, code or name contains this text. | |
sort | string | value/volume largest first, change biggest move first. |