Historical price series
Company Endpoints
Price Chart
Retrieve historical price series for an NGX-listed company.
GET
Historical price series
The chart endpoint returns the complete OHLCV (open, high, low, close, volume) history for a company sourced directly from daily exchange records. Each data point includes a timestamp, date, and full OHLCV fields alongside VWAP (volume-weighted average price), trade count, and daily change.
Use
from and to (YYYY-MM-DD) to narrow results to a specific date range, or use the period parameter to request a named time window (7d, 30d, 90d, 1y, 5y, all). Three format options let you pick the shape that fits your charting library:
detailed(default) — full objects per day. Includespriceas an alias forclosefor backward compatibility, plusopen,high,low,close,volume,value_traded,vwap,trade_count,change,change_percent.chart— compact[timestamp, close]arrays. Backward-compatible with the previous API behaviour, suited for line charts.ohlcv— compact[timestamp, open, high, low, close, volume]arrays. Pass this directly to TradingView Lightweight Charts, ApexCharts, or Highcharts candlestick series.
Build a candlestick chart
Step-by-step guide showing how to fetch OHLCV data and render it as an interactive candlestick chart with TradingView Lightweight Charts. Includes a live demo, vanilla JS, and a React component.
Authorizations
Pass your API key as a Bearer token: Authorization: Bearer ngm_live_YOUR_KEY.
Generate keys at ngnmarket.com/dashboard/developer.
Path Parameters
NGX ticker symbol (e.g. DANGCEM). Case-insensitive.
Example:
"DANGCEM"
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 for data points.
detailed(default): full objects with OHLCV, VWAP, and change fields. Includespriceas an alias forclosefor backward compatibility.chart: compact[timestamp, close]arrays — backward-compatible line chart format.ohlcv: compact[timestamp, open, high, low, close, volume]arrays — use this for candlestick charts.
Available options:
detailed, chart, ohlcv