Index card and index history
br_indexRetrieve a Tehran stock market index card with market cap, free float, P/E ratios, intraday move, members, and optional daily history from Mofid and Agah.
Instructions
Show a market index (Mofid: market cap, free float, P/E and other ratios, intraday move, members) and its daily history.
Without days only Mofid answers, with the index card. With days, Mofid adds daily candles of the index and Agah
returns its total-index series (series 0; Agah does not name its other two series, so they are not offered). Next:
br_industries for sector indices, br_market for today's snapshot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Add this many days of daily history (0 = none). Agah gives about 31 or 365 days. | |
| index | No | Index ISIN: IREXOVERALLINDEX (overall), IRX6XTPI0006 (TEDPIX), IRXZXOCI0006 (Fara-bourse), or an industry index from br_search kind='index'. Agah history exists only for the total index. | IREXOVERALLINDEX |
| source | No | mofid, agah or all. Each source answers in its own block; with all, a source that fails shows {'error': ...} and the other still answers. | all |
| members | No | Mofid: list this many member symbols (0 = none). |