Index history
fp_index_historyRetrieve daily history of a market or industry index, oldest first, up to 60 points. Compare index movement over time or against the fund market.
Instructions
Get the daily history of one market or industry index, oldest first, at most 60 evenly spaced points.
Use after fp_indices for "how did the bourse index move this year" or to compare an industry with the fund market. The value series also has the change over the window.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Latest trading days to cover (about 250 per year). | |
| series | No | value: daily close with the day's low and high. returns: the six rolling returns (percent). | value |
| ins_code | Yes | Index ins_code from fp_indices, e.g. '32097828799138957' (total index). |