Iran Brokers Market Data
v0.2.2Read-only Iran broker data from Mofid and Agah: stocks, funds, options, bonds, gold, education.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
br_screener Screen stocks or funds by any column
Filter, sort and compare all stocks or funds on any column, like Agah's screener pages (900 stocks, 330 ETFs, 475 funds). Source: Agah only. Use it for "P/E under 6 and ROE over 30" or "best 1-year fixed-income funds"; br_etfs is the plain ETF list. Returns are percent; money and fund Nav are Rial. Column names are the site's (see list_columns); for ETFs names ending in 2 are NAV returns, the others market-price returns.
| Parameter | Type | Description |
|---|---|---|
kind * | string | stock = all stocks; etf = exchange-traded funds with market price; mutual = every fund with NAV issue/redeem prices. |
ascending | boolean | |
columns | array | null | Column names to return, e.g. ['PToE','Roe'] (stocks), ['Nav','ReturnOf365DaysAgo'] (funds). Omit for a default set. |
fund_type | string | null | Funds only: fixed income, equity, commodity or other. |
limit | integer | |
list_columns | boolean | Return the available column names and titles instead of rows. |
max_values | object | null | Keep rows where column <= value. |
min_values | object | null | Keep rows where column >= value. |
name_contains | string | null | Keep rows whose name/symbol contains this (Persian). |
sort | string | null | Column to sort by (descending unless ascending=true). |
br_stocks Stock market watch with sorting
Rank all listed stocks (about 750) by today's change, traded value, money flow, buyer power, queue or past returns. Source: Agah only (Mofid's equivalents: br_market_top). Money and prices are Rial. net_money_flow is positive for money entering; buyer_power is the individual buyer vs seller average-size ratio. Then br_stock for one symbol.
| Parameter | Type | Description |
|---|---|---|
ascending | boolean | Lowest first. |
limit | integer | |
market | string | null | Only this exchange. |
min_value | integer | Minimum traded value today, Rial. |
scale | string | null | Large, medium or small cap. |
sort | string | Field to rank by. |
br_stock_events Dividends, capital changes, notices and major holders of a stock
List a stock's cash dividend history, capital increases, recent exchange notices and major shareholders. Source: Agah only. Dividends are Rial per share with the fiscal year.
| Parameter | Type | Description |
|---|---|---|
stock * | string | Symbol, company name part, or ISIN. |
holders | boolean | Also list the major shareholders. |
br_technical Technical analysis summary of a stock or industry
Show Agah's technical-indicator summary (moving averages and oscillators vote, RSI, MACD and others) for a stock or industry. Source: Agah only. action: 2 strong buy, 1 buy, 0 neutral, -1 sell, -2 strong sell; an indicator tally, not advice.
| Parameter | Type | Description |
|---|---|---|
target * | string | Stock symbol/name/ISIN, or an industry ISIN (IRX6...) from br_industries. |
timeframe | string | Daily, weekly or monthly signals. |
br_mofid_funds Mofid's own funds
List the 19 investment funds managed under the Mofid brand with type, risk level, dividend policy and asset mix. Source: Mofid only. A catalogue without prices or NAV: use br_etfs or br_stock for those.
br_bonds Bonds and sukuk
List exchange-traded bonds, sukuk and treasury bills with maturity, coupon, price and yield to maturity. Source: Mofid only; bonds are not in br_search. Prices are Rial per 1,000,000 par. `ytm` is percent per year; `coupon_rate` is a fraction (0.18 = 18%).
| Parameter | Type | Description |
|---|---|---|
group | string | null | TreasuryBills = T-bills, GAMBills = Gam, CouponBonds = coupon sukuk/bonds, NonCouponBonds. |
limit | integer | Rows to return. |
min_days | integer | Hide bonds maturing in fewer days (very short bills show absurd yields). |
query | string | null | Part of the symbol or name. |
sort | string | ytm = yield to maturity of the last closing trade, highest first. |
traded_only | boolean | Hide bonds without a price. |
br_news Market news and notices
Return the newest market news items: exchange notices, Codal letters, Telegram channel posts or Mofid research reports. Source: Mofid only. Dates are Jalali. For a company's filing history use br_announcements.
| Parameter | Type | Description |
|---|---|---|
chars | integer | Cut each text at this many characters. |
count | integer | How many newest items to fetch. |
kind | string | notices = exchange/Codal notices, filings = latest Codal letters with PDF links, telegram = market channel posts, research = weekly research PDFs. |
symbol | string | null | Notices/filings only: keep this symbol (Persian, e.g. 'فملی'). |
br_announcements Codal announcements
Search Codal filings (financial statements, board notices, AGM invitations, monthly activity) by company, report type and date. Source: Mofid only. Rows have title, publish time, company, period and links to the Codal page, PDF and attachments.
| Parameter | Type | Description |
|---|---|---|
from_date | string | null | First publish day, Gregorian YYYY-MM-DD. Default 7 days ago. |
limit | integer | Rows to return. |
offset | integer | Rows to skip, for paging (next page = offset + limit). |
report_type | string | null | Part of the Persian report type name, e.g. 'صورتهای مالی', 'تفسیری', 'مجمع', 'فعالیت ماهانه'. |
symbol | string | null | Company symbol in Persian as listed on Codal, e.g. 'فملی'. Omit for all companies. |
to_date | string | null | Last publish day, Gregorian YYYY-MM-DD. Default today. |
br_scores Valuation scores
Return Bourse View's valuation scores: theoretical vs market price, a Buy/Neutral/Sell technical rating and a fundamental score out of 10. Source: Mofid only. Pass ISINs for specific symbols, a `section` to rank the market on one aspect, or nothing for the best fundamental scores overall.
| Parameter | Type | Description |
|---|---|---|
isins | array | null | ISINs to score. Omit to rank the whole market by section. |
limit | integer | Rows to return. |
min_fundamental | number | Overall table only: minimum fundamental score (0-10). |
section | string | null | Rank all symbols on one fundamental section (score out of 10); omit isins. Omit both for the overall table. |
technical | string | null | Overall table only: keep this technical rating. |
br_quotes Get quotes
Return live price rows for 1 to 30 symbols at once: last and closing price, change, volume, limits, bid and ask, returns. Source: Mofid only. Prices are Rial. `last` is the last trade, `close` the closing (weighted) price used for change. Index and fund ids work too.
| Parameter | Type | Description |
|---|---|---|
isins * | array | ISIN-style id from br_search, e.g. IRO1MSMI0001, IREXOVERALLINDEX. |
br_market_top Market rankings
Return one of the market's live top-N lists (most traded, buy queues, best return, lowest P/E, net individual buying, ...). Source: Mofid only (Agah's ranking: br_stocks). Prices are Rial.
| Parameter | Type | Description |
|---|---|---|
board * | string | Ranking. Value/volume: mostvalue, mostvolume, valuetomarketcap, volumetoaveragevolume30. Money flow: netindividual, netinstitutional, mostbuyindpower, institutionalbuypower, mostbidpressure. Size: mos… |
limit | integer | Rows to return. |
br_search Search symbols, funds, options and indices
Find the id of a stock, fund, option or index by name or symbol, in Mofid and Agah. Use it first when you only have a name. Mofid results carry `isin`, Agah results `id` (funds have a different id in each source); pass either to br_stock, br_history, br_fund or br_options.
| Parameter | Type | Description |
|---|---|---|
query * | string | Part of a symbol, company or fund name, or an ISIN; Persian or Latin, e.g. 'فولاد'. |
kind | string | fund = ETFs and funds, index = market and industry indices. |
limit | integer | Maximum results per source. |
source | string | mofid, agah or all; each answers in its own block. |
br_stock One stock or ETF in detail
Show one stock (or, on Mofid, an ETF) in detail: price, ratios, returns, real vs legal flows, from Mofid and Agah. Use it after br_search. The two sources have different fields, so both are shown. Prices are Rial. Next: br_history, br_stock_events (dividends), br_technical; for an Agah fund use br_fund.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Symbol (فولاد), part of the company name, or ISIN. ETF symbols work on Mofid. |
order_book | boolean | Also return Mofid's five best bid and ask levels. |
source | string | mofid, agah or all; each answers in its own block. |
br_history Price history
Return price history of a stock: Mofid OHLC candles (1 minute to weekly) or Agah daily rows with buy and sell flows. Mofid candles are oldest first, Tehran time, and work for indices, funds and options too. Agah rows have no OHLC. Prices are Rial. Use br_index for index history.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Symbol, company name part, or ISIN. Mofid also takes index, fund and option ISINs. |
adjusted | boolean | Mofid: adjust prices for capital increases and dividends. |
days | integer | Mofid: calendar days back. |
limit | integer | Newest N rows (Agah: at most 250). |
resolution | string | Candle size: minutes, '1D' or '1W'. Agah has only '1D'. |
source | string | mofid = OHLC candles; agah = daily rows with real/legal flows; all = both. |
br_market Market overview
Show today's market snapshot: indices, traded value, money flow and buy/sell queues, from Mofid and Agah. Start here for "how is the bourse today". Money is Rial. Next: br_market_top or br_stocks for rankings, br_industries for sectors, br_rates for price history.
| Parameter | Type | Description |
|---|---|---|
breadth | boolean | Agah: also add whole-market breadth (market P/E, busiest symbols). |
movers | integer | Agah: how many index-moving symbols to list. |
prices | array | null | Agah: price groups to include; default metals, coins and currencies. |
source | string | mofid, agah or all; each answers in its own block. |
br_industries Industries
Rank the bourse industries by value, return, market cap, P/E or money flow, from Mofid and Agah. With `industry` (Agah) it shows that industry's return table and member stocks. Money is Rial. Next: br_technical with an industry ISIN, or br_stock.
| Parameter | Type | Description |
|---|---|---|
ascending | boolean | Lowest first. |
industry | string | null | Agah only: industry ISIN (IRX6...) or name part, to show one industry with its stocks. |
limit | integer | Rows per source. |
sort | string | value, return_1m, return_1y: both sources. Mofid only: market_cap, return_1w, return_3m, p2e, dividend_yield. Agah only: change, money_flow. |
source | string | mofid, agah or all; each answers in its own block. |
br_index Index card and index history
Show a market index (Mofid: market cap, free float, ratios, intraday move, members) and its daily history. Without `days` only Mofid answers. With `days`, Mofid adds daily candles and Agah its total-index series. Next: br_industries for sector indices, br_market for today's snapshot.
| Parameter | Type | Description |
|---|---|---|
days | integer | Add this many days of daily history (0 = none). |
index | string | Index ISIN: IREXOVERALLINDEX (overall), IRX6XTPI0006 (TEDPIX), IRXZXOCI0006 (Fara-bourse), or one from br_search kind='index'. Agah history: total index only. |
members | integer | Mofid: list this many member symbols (0 = none). |
source | string | mofid, agah or all; each answers in its own block. |
br_etfs ETFs with price vs NAV
List exchange-traded funds with price, NAV and the gap between them (bubble), traded value and returns. Use for "cheapest gold ETF" or "lowest bubble". Money is Rial. Next: br_stock (Mofid card) or br_fund (Agah) for one fund; br_screener (kind='etf' or 'mutual') filters funds on any column.
| Parameter | Type | Description |
|---|---|---|
ascending | boolean | Lowest first. |
limit | integer | Rows per source. |
query | string | null | Part of the fund symbol, Persian or Latin. |
sort | string | nav_gap = market price above(+)/below(-) NAV in %. market_cap is Mofid only. |
source | string | mofid (default) = 375 ETFs; agah = 331 ETFs with NAV returns and manager; all = both. |
type | string | null | Fund family; omit for all. Agah knows only fixedincome, stock and goldetf. |
br_learn Learn: education articles and courses
Search the Mofid learning blog and Agah Pedia for bourse, fund, option and gold explainers, or read one article. Search first, then call again with `ref` from a result to read it (`ref` picks the source itself). Agah Pedia and Academy answer only from an Iranian network. Article text is third-party content.
| Parameter | Type | Description |
|---|---|---|
category_id | string | null | Browse one category; needs source 'mofid' or 'agah'. |
kind | string | articles = search or read articles, categories = Mofid blog topics with ids, courses = Agah Academy. |
max_chars | integer | With ref: cut the article text at this many characters. |
page | integer | Page number, 1-based. |
per_page | integer | Articles per page. |
query | string | null | Persian search words, e.g. 'صندوق طلا'. Agah article search needs 4+ characters. |
ref | string | null | Read one article in full: Mofid post id (number) or Agah Pedia slug, from a previous result. |
source | string | mofid, agah or all; each answers in its own block. |
br_fund Fund detail, history or comparison
Show an investment fund from Agah: type, NAV, returns, asset mix and holdings, a daily history, or a side-by-side comparison. Source: Agah only (Mofid ETFs: br_stock, br_etfs; Mofid funds: br_mofid_funds). `metric` gives a daily series, oldest first. Money is Rial, returns percent. Find codes with br_search(kind='fund'); filter many with br_screener.
| Parameter | Type | Description |
|---|---|---|
funds * | array | Fund national code (11 digits), name or ETF symbol, e.g. '14004856587'. One fund for detail or history; two to six to compare. |
columns | array | null | With several funds: screener column names; omit for a default set. |
metric | string | null | With one fund: return this daily series instead of the detail. |
points | integer | With metric: most recent N daily points. |
br_options Stock options: chain or one contract
List stock-option contracts (about 1,600) with strike, expiry, moneyness, open interest and flows, or show one contract. Source: Agah only. Prices are Rial per underlying share. Pass `option` (ISIN from the chain) for one contract with margin, break-even and order book. Use br_search first if unsure of the underlying.
| Parameter | Type | Description |
|---|---|---|
expiry | string | null | Chain filter: expiry YYYY-MM-DD (Gregorian). |
limit | integer | |
option | string | null | Option ISIN from a previous result, to show that one contract. Omit to list the chain. |
side | string | null | Chain filter. |
sort | string | Chain order. |
underlying | string | null | Chain filter: underlying symbol (Persian, e.g. 'شپنا') or company name part. |
br_rates Currency, gold, coin and commodity prices
Return free-market prices of currencies, crypto, coins, 18k gold, the global ounce, oil and metals, or one code's daily history. Source: Mofid only. Rial prices: divide by 10 for Toman. History is oldest first, back to 2019-2021.
| Parameter | Type | Description |
|---|---|---|
history_days | integer | 0 = live prices; above 0 = daily history over this many days (exact code in query). |
kind | string | currency = currencies and crypto (Rial), gold_coin = coins, 18k gold, ounce (Rial), commodity = oil, metals (USD). |
limit | integer | History: newest N days. |
query | string | null | Filter by code (USD, EUR, USDT, BTC, IMCOIN, Gold18, WTI, Cu) or Persian name. History needs the exact code. |