Index history
ifb_index_historyRetrieve daily, weekly, or monthly history for Fara Bourse indices since 2009, including latest values and percentage changes across 1, 5, 21, and 250 trading days.
Instructions
Get the daily history of a Fara Bourse index since 2009, with change over a day, week, month and year.
Use it for "how has the Fara Bourse index done this year" (days=250) or a long trend (days=2000, step="monthly").
latest is the newest value; changes_pct compares it with 1, 5, 21 and 250 trading days before; points
are newest first. For today's intraday index and turnover call ifb_market_summary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How many of the latest trading days to cover (1-5000; all history is about 4,100). | |
| step | No | Keep every day, or every 5th or 21st trading day (use for long ranges). | daily |
| index | No | total = Fara Bourse total index (شاخص کل); equal_weight = total equal-weight index; price = price index; equal_weight_price = equal-weight price index; sukuk = weighted sukuk index. | total |