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 BreakerTotal 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
| Symbol | Type | Sector | Close (IRR) | Change % | Volume | Net Real Vol | Orderbook |
|---|---|---|---|---|---|---|---|
| وفیروزه گروه توسعه مالی فیروزه | stock | — | 7,300 | +2.96% | 55,809,682 | -2,423,371 | 5B / 4A |
| فولاد فولاد مبارکه اصفهان | stock | فلزات اساسی | 6,120 | +2.51% | 2,143,829,575 | 20,080,674 | 5B / 0A |
| فملی ملی صنایع مس ایران | stock | فلزات اساسی | 28,390 | +2.6% | 613,422,940 | -89,124,647 | 5B / 5A |
| شاخص کل شاخص کل | index | Market Index | 9,390,582.25 | +2.38% | 0 | 0 | 0B / 0A |
| اراد1694 مرابحه عام دولت169-ش.خاص0512 | stock | اوراق تامین مالی | 964,145 | -0.6% | 200,000,000 | 0 | 0B / 0A |
| اراد2854 مرابحه عام دولت285-ش.خاص0704 | stock | اوراق تامین مالی | 817,533 | +0.17% | 134,640,000 | 0 | 0B / 0A |
| اراد2844 مرابحه عام دولت284-ش.خاص0604 | stock | اوراق تامین مالی | 919,781 | -8.02% | 100,000,000 | 0 | 0B / 0A |
| اراد2154 مرابحه عام دولت215-ش.خاص0702 | stock | اوراق تامین مالی | 832,230 | -10.99% | 109,500,000 | 0 | 0B / 0A |
Sample Normalized Record Payload
{
"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
| Dataset | Endpoint | Target |
|---|---|---|
MarketWatch + 5-Level Orderbook OHLC, closing/last prices, P/E, volume ratio, and top-5 bid/ask levels. | /api/ClosingPrice/GetMarketWatch | entities, market_snapshotsEvery 30s |
Real vs Legal Client Flow Individual vs institutional buy/sell volumes and trader counts. | /api/ClientType/GetClientTypeAll | market_snapshotsEvery 30s |
Market Indices (TEDPIX) Overall TEDPIX, equal-weighted index, and sector indices. | /api/Index/GetIndexB1LastAll/All/1 | entities, market_snapshotsEvery 30s |
15-Field Instrument Profiles ISIN, 5-char code, company code/ISIN, market board, sector & sub-sector. | /api/Instrument/GetInstrumentIdentity + GetInstrumentInfo | entities (source_mappings)Progressive SQLite hydration |
Adjusted Daily OHLCV History Corporate-action split/capital-increase backward-adjusted candles. | /api/ClosingPrice/GetClosingPriceDailyList + GetPriceAdjustList | market_snapshotsDaily 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_metricsEvery cycle |
Environment Variables
| Variable | Default | Purpose |
|---|---|---|
TSETMC_FORCE_IPV4 | true | Pins TCPConnector to AF_INET for consistent cdn.tsetmc.com routing. |
TSETMC_REQUESTS_PER_SECOND | 35.0 | Async token bucket rate ceiling across concurrent TSETMC API calls. |
TSETMC_PROFILE_HYDRATE_LIMIT | 40 | Uncached liquid instruments hydrated per cycle into SQLite. |
TSETMC_HISTORY_HYDRATE_LIMIT | 15 | Instruments backfilled with adjusted daily OHLCV candles per cycle. |