Iran Mercantile Exchange

v0.2.2
io.github.sepehr071/ime-mcp Checked 7 hours ago Published 13 days ago

Read-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.

ParameterTypeDescription
catintegerGroup id (with main_cat) to list its subgroups.
main_catintegerMain 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.

ParameterTypeDescription
query *stringPart of a producer name, Persian or English, e.g. فولاد مبارکه.
limitintegerMax 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.

ParameterTypeDescription
catintegerCategory id from ime_categories (0 = all).
date_fromPersian 1405/08/09 or Gregorian 2026-10-31.
date_toPersian 1405/08/09 or Gregorian 2026-10-31.
limitintegerMax trades to return (1-100).
main_catintegerCategory id from ime_categories (0 = all).
marketstringphysical, subsidiary (بازار فرعی), export (Kish hall) or premium (no producer filter).
producerintegerCategory id from ime_categories (0 = all).
searchCommodity, symbol or producer contains this text.
sortstringvalue (largest first), volume (largest first) or date (newest first).
sub_catintegerCategory 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.

ParameterTypeDescription
catintegerCategory id from ime_categories (0 = all).
date_fromPersian 1405/08/09 or Gregorian 2026-10-31.
date_toPersian 1405/08/09 or Gregorian 2026-10-31.
limitintegerMax offers to return (1-50).
main_catintegerCategory id from ime_categories (0 = all).
marketstringphysical, premium or export (Kish hall, priced in $).
offsetintegerSkip this many offers (paging).
producerintegerCategory id from ime_categories (0 = all).
searchCommodity, symbol, producer or supplier contains this text.
sub_catintegerCategory 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.

ParameterTypeDescription
catintegerCategory id from ime_categories (0 = all).
date_fromPersian 1405/08/09 or Gregorian 2026-10-31.
date_toPersian 1405/08/09 or Gregorian 2026-10-31.
main_catintegerCategory id from ime_categories (0 = all).
marketstringphysical, subsidiary (بازار فرعی), export (Kish hall) or premium (no producer filter).
producerintegerCategory id from ime_categories (0 = all).
searchCommodity, symbol or producer text, e.g. ورق گرم.
sub_catintegerCategory 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.

ParameterTypeDescription
date_fromPersian 1405/08/09 or Gregorian 2026-10-31.
date_toPersian 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).

ParameterTypeDescription
date_fromPersian 1405/08/09 or Gregorian 2026-10-31.
date_toPersian 1405/08/09 or Gregorian 2026-10-31.
marketstringphysical, 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.

ParameterTypeDescription
limitintegerMax 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.

ParameterTypeDescription
group_by *stringGrouping key (broker = buyer broker).
catintegerCategory id from ime_categories (0 = all).
date_fromPersian 1405/08/09 or Gregorian 2026-10-31.
date_toPersian 1405/08/09 or Gregorian 2026-10-31.
limitintegerMax groups to return (1-50).
main_catintegerCategory id from ime_categories (0 = all).
marketstringphysical, subsidiary (بازار فرعی), export (Kish hall) or premium (no producer filter).
producerintegerCategory id from ime_categories (0 = all).
searchCommodity, symbol or producer contains this text.
sub_catintegerCategory 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.

ParameterTypeDescription
limitintegerMax reports (1-60).
yearPersian 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").

ParameterTypeDescription
contractOne contract code: returns its day-by-day history.
date_fromPersian 1405/08/09 or Gregorian 2026-10-31.
date_toPersian 1405/08/09 or Gregorian 2026-10-31.
limitintegerMax contracts or days to return (1-100).
option_typestringcall (خرید), put (فروش) or all.
searchCode or description contains this text, e.g. GCES or صندوق طلا.
sortstringLargest first (settlement_change by size of move).
traded_onlybooleanOnly 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.

ParameterTypeDescription
date_fromPersian 1405/08/09 or Gregorian 2026-10-31.
date_toPersian 1405/08/09 or Gregorian 2026-10-31.
kindstringsalaf (سلف), certificate (saffron etc.), fund (commodity ETFs, mostly gold) or all.
limitintegerMax rows to return (1-100).
searchSymbol, code or name contains this text.
sortstringvalue/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.

ParameterTypeDescription
commodityCertificate id, code or name part: GoldBar, GoldCoin, SilverBar, SteelRebar... or طلا, سکه. Empty = all.
date_fromPersian 1405/08/09 or Gregorian 2026-10-31.
date_toPersian 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.

ParameterTypeDescription
kindstringfund (mostly gold), certificate (saffron etc.) or salaf.
limitintegerMax symbols to return (1-60).
searchSymbol, code or name contains this text.
sortstringvalue/volume largest first, change biggest move first.