Market data date index
curl --request GET \
--url https://api.ngnmarket.com/v1/market/available-dates \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ngnmarket.com/v1/market/available-dates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ngnmarket.com/v1/market/available-dates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ngnmarket.com/v1/market/available-dates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ngnmarket.com/v1/market/available-dates"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ngnmarket.com/v1/market/available-dates")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ngnmarket.com/v1/market/available-dates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"count": 3,
"latest": "2026-04-17",
"earliest": "2026-04-15",
"data": [
{
"date": "2026-04-17",
"label": "latest",
"asi": 105432.18,
"formatted_date": "Fri, Apr 17, 2026"
},
{
"date": "2026-04-16",
"label": "previous",
"asi": 104555.74,
"formatted_date": "Thu, Apr 16, 2026"
},
{
"date": "2026-04-15",
"label": null,
"asi": 104765.85,
"formatted_date": "Wed, Apr 15, 2026"
}
]
},
"meta": {
"plan": "free",
"calls_used": 3,
"calls_remaining": 9997,
"reset_at": "2026-05-15T23:57:00.000Z"
}
}Market Endpoints
Available Dates
List dates for which NGX market data is available.
GET
/
market
/
available-dates
Market data date index
curl --request GET \
--url https://api.ngnmarket.com/v1/market/available-dates \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ngnmarket.com/v1/market/available-dates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ngnmarket.com/v1/market/available-dates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ngnmarket.com/v1/market/available-dates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ngnmarket.com/v1/market/available-dates"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ngnmarket.com/v1/market/available-dates")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ngnmarket.com/v1/market/available-dates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"count": 3,
"latest": "2026-04-17",
"earliest": "2026-04-15",
"data": [
{
"date": "2026-04-17",
"label": "latest",
"asi": 105432.18,
"formatted_date": "Fri, Apr 17, 2026"
},
{
"date": "2026-04-16",
"label": "previous",
"asi": 104555.74,
"formatted_date": "Thu, Apr 16, 2026"
},
{
"date": "2026-04-15",
"label": null,
"asi": 104765.85,
"formatted_date": "Wed, Apr 15, 2026"
}
]
},
"meta": {
"plan": "free",
"calls_used": 3,
"calls_remaining": 9997,
"reset_at": "2026-05-15T23:57:00.000Z"
}
}Use this endpoint to discover which trading dates are available in the dataset before querying other market endpoints. Dates are listed in reverse chronological order.
Each entry includes the closing ASI value and a convenience label (
today, yesterday, latest, or previous) for the most recent entries. This is useful for building date pickers or validating user-supplied dates before making downstream requests.Authorizations
Pass your API key as a Bearer token: Authorization: Bearer ngm_live_YOUR_KEY.
Generate keys at ngnmarket.com/dashboard/developer.
Query Parameters
Maximum number of dates to return (1–365). Dates are returned newest-first.
Required range:
1 <= x <= 365