Skip to main content
Adapters/tsetmcLive · Production

TSETMC Market Feed

Real-time Tehran Stock Exchange & Fara Bourse equities, ETFs, 5-level limit orderbooks, individual vs institutional money flow, market indices (TEDPIX), 15-field instrument profiles, backward-adjusted daily OHLCV, and mutual fund NAVs.

Upstream: https://cdn.tsetmc.com/api/* · IPv4-pinned aiohttp + msgspec · Token Bucket + Circuit Breaker
Total Symbols
4,382
Equities
3,391
Funds & ETFs
915
OHLCV Snapshots
95,379

Usage Examples

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_symbol_realtime",
    "arguments": {
      "symbol": "وفیروزه"
    }
  }
}

Live Sample Market Quotes

Latest TSETMC Snapshots in Postgres
SymbolTypeSectorClose (IRR)Change %VolumeNet Real VolOrderbook
وفیروزه
گروه توسعه مالی فیروزه
stock—7,300+2.96%55,809,682-2,423,3715B / 4A
فولاد
فولاد مبارکه اصفهان
stockفلزات اساسی6,120+2.51%2,143,829,57520,080,6745B / 0A
فملی
ملی صنایع مس ایران
stockفلزات اساسی28,390+2.6%613,422,940-89,124,6475B / 5A
شاخص کل
شاخص کل
indexMarket Index9,390,582.25+2.38%000B / 0A
اراد1694
مرابحه عام دولت169-ش.خاص0512
stockاوراق تامین مالی964,145-0.6%200,000,00000B / 0A
اراد2854
مرابحه عام دولت285-ش.خاص0704
stockاوراق تامین مالی817,533+0.17%134,640,00000B / 0A
اراد2844
مرابحه عام دولت284-ش.خاص0604
stockاوراق تامین مالی919,781-8.02%100,000,00000B / 0A
اراد2154
مرابحه عام دولت215-ش.خاص0702
stockاوراق تامین مالی832,230-10.99%109,500,00000B / 0A

Sample Normalized Record Payload

Live TSETMC Snapshot (فولاد)
{
  "symbol": "فولاد",
  "isin": "IRO1FOLD0001",
  "name_fa": "فولاد مبارکه اصفهان",
  "name_en": "S*Mobarakeh Steel",
  "type": "stock",
  "sector": "فلزات اساسی",
  "sources": {
    "tsetmc_id": "46348559193224090",
    "board_code": "1",
    "sector_code": "27",
    "sector_name": "فلزات اساسی",
    "company_isin": "IRO1FOLD0009",
    "market_title": "بازار اول (تابلوی اصلی) بورس",
    "symbol_code_5": "FOLD1",
    "company_code_4": "FOLD",
    "sub_sector_code": "2710",
    "sub_sector_name": "تولید آهن و فولاد پایه",
    "instrument_type_code": "300"
  },
  "price": {
    "open": 5940,
    "high": 6140,
    "low": 5890,
    "close": 6120,
    "last": 6140,
    "change_pct": 2.51,
    "pe_ratio": 8.8
  },
  "orderbook": {
    "asks": [],
    "bids": [
      {
        "count": 446,
        "price": 6140,
        "volume": 97100755
      },
      {
        "count": 42,
        "price": 6130,
        "volume": 866023
      },
      {
        "count": 31,
        "price": 6120,
        "volume": 336184
      },
      {
        "count": 38,
        "price": 6110,
        "volume": 311996
      },
      {
        "count": 70,
        "price": 6100,
        "volume": 4177620
      }
    ]
  },
  "timestamp": "2026-12-02 08:59:58+00"
}

Upstream Endpoints & Datasets

Adapter Datasets
DatasetEndpointTarget
MarketWatch + 5-Level Orderbook
OHLC, closing/last prices, P/E, volume ratio, and top-5 bid/ask levels.
/api/ClosingPrice/GetMarketWatchentities, market_snapshots
Every 30s
Real vs Legal Client Flow
Individual vs institutional buy/sell volumes and trader counts.
/api/ClientType/GetClientTypeAllmarket_snapshots
Every 30s
Market Indices (TEDPIX)
Overall TEDPIX, equal-weighted index, and sector indices.
/api/Index/GetIndexB1LastAll/All/1entities, market_snapshots
Every 30s
15-Field Instrument Profiles
ISIN, 5-char code, company code/ISIN, market board, sector & sub-sector.
/api/Instrument/GetInstrumentIdentity + GetInstrumentInfoentities (source_mappings)
Progressive SQLite hydration
Adjusted Daily OHLCV History
Corporate-action split/capital-increase backward-adjusted candles.
/api/ClosingPrice/GetClosingPriceDailyList + GetPriceAdjustListmarket_snapshots
Daily progressive sync
Mutual Fund Registry
Issue/cancel/statistical NAVs, 1m/3m/1y returns, and AUM across 300+ funds.
/api/Fund/GetFunds/{4,6,7}entities, fund_metrics
Every cycle

Environment Variables

Adapter Environment Settings
VariableDefaultPurpose
TSETMC_FORCE_IPV4truePins TCPConnector to AF_INET for consistent cdn.tsetmc.com routing.
TSETMC_REQUESTS_PER_SECOND35.0Async token bucket rate ceiling across concurrent TSETMC API calls.
TSETMC_PROFILE_HYDRATE_LIMIT40Uncached liquid instruments hydrated per cycle into SQLite.
TSETMC_HISTORY_HYDRATE_LIMIT15Instruments backfilled with adjusted daily OHLCV candles per cycle.