Skip to main content
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

Authorization
string
header
required

Pass your API key as a Bearer token: Authorization: Bearer ngm_live_YOUR_KEY. Generate keys at ngnmarket.com/dashboard/developer.

Path Parameters

symbol
string
required

Index symbol (e.g. NGX30). Case-insensitive.

Example:

"NGX30"

Query Parameters

period
enum<string>
default:30d

Preset lookback window. Ignored when from/to are supplied.

Available options:
7d,
30d,
90d,
1y,
5y,
all
from
string<date>

Start date in YYYY-MM-DD format (inclusive). Takes priority over period.

Example:

"2026-01-01"

to
string<date>

End date in YYYY-MM-DD format (inclusive). Use with from.

Example:

"2026-04-17"

format
enum<string>
default:detailed

Response shape. detailed returns objects; chart returns compact [timestamp, value] pairs.

Available options:
detailed,
chart

Response

Index chart data retrieved successfully.

success
boolean
required
meta
object

Quota and plan metadata included on every authenticated response.

data
object