Skip to main content
GET
/
v1
/
market
/
asi
All Share Index historical data
curl --request GET \
  --url https://api.ngnmarket.com/v1/market/asi \
  --header 'Authorization: Bearer <token>'
{ "success": true, "data": { "period": "30d", "format": "detailed", "count": 22, "current": { "date": "2026-04-17", "value": 105432.18, "change": 876.44, "changePercent": 0.84 }, "statistics": { "periodChange": 3201.07, "periodChangePercent": 3.13, "minValue": 101847.29, "maxValue": 105432.18, "startDate": "2026-03-19", "endDate": "2026-04-17" }, "data": [ { "date": "2026-04-17", "timestamp": 1744848000000, "value": 105432.18, "change": 876.44, "changePercent": 0.84 }, { "date": "2026-04-16", "timestamp": 1744761600000, "value": 104555.74, "change": -210.11, "changePercent": -0.2 } ] }, "meta": { "plan": "free", "calls_used": 2, "calls_remaining": 9998, "reset_at": "2026-05-01T00:00:00.000Z" } }
The ASI endpoint returns a time series of the NGX All Share Index so you can chart performance, calculate returns over custom periods, or compare the index across date ranges. Each data point includes the closing index value alongside its absolute and percentage change from the prior day. The response also contains period-level statistics (minimum, maximum, and total change) so you can summarise the range without additional computation on your side.

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.

Query Parameters

startDate
string<date>

Start of the date range in YYYY-MM-DD format. Use with endDate to request a specific window. Overrides period.

Example:

"2026-01-01"

endDate
string<date>

End of the date range in YYYY-MM-DD format. Use with startDate.

Example:

"2026-04-17"

period
enum<string>
default:30d

Preset lookback window. Ignored when both startDate and endDate are supplied.

Available options:
7d,
30d,
90d,
1y,
5y,
all
limit
integer
default:1000

Maximum number of data points to return (1–5000).

Required range: 1 <= x <= 5000
format
enum<string>
default:detailed

Response shape for the data array. detailed returns full objects; chart returns compact [timestamp, value] pairs.

Available options:
detailed,
chart

Response

ASI history retrieved successfully.

success
boolean
required
meta
object

Quota and plan metadata included on every authenticated response.

data
object