Historical index values
Returns a time series of daily closing values for a specific NGX market index. Use period for a preset lookback window or from/to for a custom range. Returns a statistics block alongside the data array.
Plan required: Starter
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.
"NGX30"
Query Parameters
Preset lookback window. Ignored when from/to are supplied.
7d, 30d, 90d, 1y, 5y, all Start date in YYYY-MM-DD format (inclusive). Takes priority over period.
"2026-01-01"
End date in YYYY-MM-DD format (inclusive). Use with from.
"2026-04-17"
Response shape. detailed returns objects; chart returns compact [timestamp, value] pairs.
detailed, chart