Historical index values
Index Endpoints
Index Chart
Retrieve historical daily closing values for any NGX market index.
GET
Historical index values
This endpoint returns a time series of daily closing values for a specific NGX market index. Narrow the result set with
from and to date parameters, or use period (7d, 30d, 90d, 1y, 5y, all) to request a named time window.
In detailed format, each data point includes a normalized_value field that rebases the index to 100 at the start of the requested period — useful for comparing two indices on the same scale in a single chart.
The statistics block now also includes return_1m, return_3m, return_1y, and return_ytd — percentage returns versus fixed historical reference points, computed independently of the period you requested.
Use format=chart for compact [timestamp, value] arrays suited for line charting libraries.
For example, to fetch one year of NGX 30 closes in chart-ready format:
Authorizations
Pass your API key as a Bearer token: Authorization: Bearer ngm_live_YOUR_KEY.
Generate keys at ngnmarket.com/dashboard/developer.
Path Parameters
Index symbol (e.g. NGX30). Case-insensitive.
Example:
"NGX30"
Query Parameters
Preset lookback window. Ignored when from/to are supplied.
Available options:
7d, 30d, 90d, 1y, 5y, all Start date in YYYY-MM-DD format (inclusive). Takes priority over period.
Example:
"2026-01-01"
End date in YYYY-MM-DD format (inclusive). Use with from.
Example:
"2026-04-17"
Response shape. detailed returns objects; chart returns compact [timestamp, value] pairs.
Available options:
detailed, chart