Skip to main content
GET
/
v1
/
indices
/
{symbol}
/
chart
Historical index values
curl --request GET \
  --url https://api.ngnmarket.com/v1/indices/{symbol}/chart \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "symbol": "NGX30",
    "data": [
      {
        "date": "2026-04-15",
        "value": 2819.3
      },
      {
        "date": "2026-04-16",
        "value": 2829.88
      },
      {
        "date": "2026-04-17",
        "value": 2841.45
      }
    ]
  },
  "meta": {
    "plan": "starter",
    "calls_used": 4823,
    "calls_remaining": 95177,
    "reset_at": "2026-05-01T00:00:00.000Z"
  }
}
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 omit them to receive the full available history. Each data point is a date/value pair you can plot directly without transformation. This endpoint requires a Starter plan or higher.

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

from
string<date>

Start date in YYYY-MM-DD format (inclusive).

Example:

"2026-01-01"

to
string<date>

End date in YYYY-MM-DD format (inclusive). Defaults to today.

Example:

"2026-04-17"

Response

Index chart data retrieved successfully.

success
boolean
required
meta
object

Quota and plan metadata included on every authenticated response.

data
object