Ngày làm việc
curl --request GET \
--url https://openapi-uat.dnse.com.vn/market/working-dates \
--header 'X-API-Key: <x-api-key>' \
--header 'X-Aux-Date: <x-aux-date>' \
--header 'X-Signature: <x-signature>'import requests
url = "https://openapi-uat.dnse.com.vn/market/working-dates"
headers = {
"X-API-Key": "<x-api-key>",
"X-Aux-Date": "<x-aux-date>",
"X-Signature": "<x-signature>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-API-Key': '<x-api-key>',
'X-Aux-Date': '<x-aux-date>',
'X-Signature': '<x-signature>'
}
};
fetch('https://openapi-uat.dnse.com.vn/market/working-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://openapi-uat.dnse.com.vn/market/working-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 => [
"X-API-Key: <x-api-key>",
"X-Aux-Date: <x-aux-date>",
"X-Signature: <x-signature>"
],
]);
$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://openapi-uat.dnse.com.vn/market/working-dates"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
req.Header.Add("X-Aux-Date", "<x-aux-date>")
req.Header.Add("X-Signature", "<x-signature>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://openapi-uat.dnse.com.vn/market/working-dates")
.header("X-API-Key", "<x-api-key>")
.header("X-Aux-Date", "<x-aux-date>")
.header("X-Signature", "<x-signature>")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi-uat.dnse.com.vn/market/working-dates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
request["X-Aux-Date"] = '<x-aux-date>'
request["X-Signature"] = '<x-signature>'
response = http.request(request)
puts response.read_body{
"workingDates": [
"2026-04-16",
"2026-04-17",
"2026-04-20",
"2026-04-21",
"2026-04-22",
"2026-04-23",
"2026-04-24",
"2026-04-27",
"2026-04-28",
"2026-04-29",
"2026-05-04",
"2026-05-05",
"2026-05-06",
"2026-05-07",
"2026-05-08",
"2026-05-11",
"2026-05-12",
"2026-05-13",
"2026-05-14",
"2026-05-15",
"2026-05-18",
"2026-05-19",
"2026-05-20",
"2026-05-21",
"2026-05-22",
"2026-05-25",
"2026-05-26",
"2026-05-27",
"2026-05-28",
"2026-05-29",
"2026-06-01",
"2026-06-02",
"2026-06-03",
"2026-06-04",
"2026-06-05",
"2026-06-08",
"2026-06-09",
"2026-06-10",
"2026-06-11",
"2026-06-12",
"2026-06-15",
"2026-06-16",
"2026-06-17",
"2026-06-18",
"2026-06-19",
"2026-06-22",
"2026-06-23",
"2026-06-24",
"2026-06-25",
"2026-06-26",
"2026-06-29",
"2026-06-30",
"2026-07-01",
"2026-07-02",
"2026-07-03",
"2026-07-06",
"2026-07-07",
"2026-07-08",
"2026-07-09",
"2026-07-10",
"2026-07-13",
"2026-07-14",
"2026-07-15",
"2026-07-16",
"2026-07-17",
"2026-07-20",
"2026-07-21",
"2026-07-22",
"2026-07-23",
"2026-07-24",
"2026-07-27",
"2026-07-28",
"2026-07-29",
"2026-07-30",
"2026-07-31",
"2026-08-03",
"2026-08-04",
"2026-08-05",
"2026-08-06",
"2026-08-07",
"2026-08-10",
"2026-08-11",
"2026-08-12",
"2026-08-13",
"2026-08-14",
"2026-08-17",
"2026-08-18",
"2026-08-19",
"2026-08-20",
"2026-08-21",
"2026-08-24",
"2026-08-25",
"2026-08-26",
"2026-08-27",
"2026-08-28",
"2026-08-31",
"2026-09-01",
"2026-09-03",
"2026-09-04",
"2026-09-07",
"2026-09-08",
"2026-09-09",
"2026-09-10",
"2026-09-11",
"2026-09-14",
"2026-09-15",
"2026-09-16",
"2026-09-17",
"2026-09-18",
"2026-09-21",
"2026-09-22",
"2026-09-23",
"2026-09-24",
"2026-09-25",
"2026-09-28",
"2026-09-29",
"2026-09-30",
"2026-10-01",
"2026-10-02",
"2026-10-05",
"2026-10-06",
"2026-10-07",
"2026-10-08",
"2026-10-09",
"2026-10-12",
"2026-10-13",
"2026-10-14",
"2026-10-15",
"2026-10-16",
"2026-10-19",
"2026-10-20",
"2026-10-21",
"2026-10-22",
"2026-10-23",
"2026-10-26",
"2026-10-27",
"2026-10-28",
"2026-10-29",
"2026-10-30",
"2026-11-02",
"2026-11-03",
"2026-11-04",
"2026-11-05",
"2026-11-06",
"2026-11-09",
"2026-11-10",
"2026-11-11",
"2026-11-12",
"2026-11-13",
"2026-11-16",
"2026-11-17",
"2026-11-18",
"2026-11-19",
"2026-11-20",
"2026-11-23",
"2026-11-24",
"2026-11-25",
"2026-11-26",
"2026-11-27",
"2026-11-30",
"2026-12-01",
"2026-12-02",
"2026-12-03",
"2026-12-04",
"2026-12-07",
"2026-12-08",
"2026-12-09",
"2026-12-10",
"2026-12-11",
"2026-12-14",
"2026-12-15",
"2026-12-16",
"2026-12-17",
"2026-12-18",
"2026-12-21",
"2026-12-22",
"2026-12-23",
"2026-12-24",
"2026-12-25",
"2026-12-28",
"2026-12-29",
"2026-12-30",
"2026-12-31",
"2027-01-04",
"2027-01-05",
"2027-01-06",
"2027-01-07",
"2027-01-08",
"2027-01-11",
"2027-01-12",
"2027-01-13",
"2027-01-14",
"2027-01-15",
"2027-01-18",
"2027-01-19",
"2027-01-20",
"2027-01-21",
"2027-01-22",
"2027-01-25",
"2027-01-26",
"2027-01-27",
"2027-01-28",
"2027-01-29",
"2027-02-01",
"2027-02-02",
"2027-02-03",
"2027-02-04",
"2027-02-05",
"2027-02-08",
"2027-02-09",
"2027-02-10",
"2027-02-11",
"2027-02-12",
"2027-02-15",
"2027-02-16",
"2027-02-17",
"2027-02-18",
"2027-02-19",
"2027-02-22",
"2027-02-23",
"2027-02-24",
"2027-02-25",
"2027-02-26",
"2027-03-01",
"2027-03-02",
"2027-03-03",
"2027-03-04",
"2027-03-05",
"2027-03-08",
"2027-03-09",
"2027-03-10",
"2027-03-11",
"2027-03-12",
"2027-03-15",
"2027-03-16",
"2027-03-17",
"2027-03-18",
"2027-03-19",
"2027-03-22",
"2027-03-23",
"2027-03-24",
"2027-03-25",
"2027-03-26",
"2027-03-29",
"2027-03-30",
"2027-03-31",
"2027-04-01",
"2027-04-02",
"2027-04-05",
"2027-04-06",
"2027-04-07",
"2027-04-08",
"2027-04-09",
"2027-04-12",
"2027-04-13",
"2027-04-14",
"2027-04-15",
"2027-04-16"
]
}{
"code": "OA-003",
"message": "Thông tin nhập không hợp lệ",
"status": 400
}{
"code": "OA-009",
"message": "Lỗi hệ thống",
"status": 500
}market-data
Ngày làm việc
Truy vấn danh sách ngày làm việc (ngày giao dịch) của thị trường chứng khoán trong vòng 1 năm tính từ ngày hiện tại, đã loại trừ các ngày nghỉ lễ và cuối tuần.
GET
/
market
/
working-dates
Ngày làm việc
curl --request GET \
--url https://openapi-uat.dnse.com.vn/market/working-dates \
--header 'X-API-Key: <x-api-key>' \
--header 'X-Aux-Date: <x-aux-date>' \
--header 'X-Signature: <x-signature>'import requests
url = "https://openapi-uat.dnse.com.vn/market/working-dates"
headers = {
"X-API-Key": "<x-api-key>",
"X-Aux-Date": "<x-aux-date>",
"X-Signature": "<x-signature>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-API-Key': '<x-api-key>',
'X-Aux-Date': '<x-aux-date>',
'X-Signature': '<x-signature>'
}
};
fetch('https://openapi-uat.dnse.com.vn/market/working-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://openapi-uat.dnse.com.vn/market/working-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 => [
"X-API-Key: <x-api-key>",
"X-Aux-Date: <x-aux-date>",
"X-Signature: <x-signature>"
],
]);
$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://openapi-uat.dnse.com.vn/market/working-dates"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
req.Header.Add("X-Aux-Date", "<x-aux-date>")
req.Header.Add("X-Signature", "<x-signature>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://openapi-uat.dnse.com.vn/market/working-dates")
.header("X-API-Key", "<x-api-key>")
.header("X-Aux-Date", "<x-aux-date>")
.header("X-Signature", "<x-signature>")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi-uat.dnse.com.vn/market/working-dates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
request["X-Aux-Date"] = '<x-aux-date>'
request["X-Signature"] = '<x-signature>'
response = http.request(request)
puts response.read_body{
"workingDates": [
"2026-04-16",
"2026-04-17",
"2026-04-20",
"2026-04-21",
"2026-04-22",
"2026-04-23",
"2026-04-24",
"2026-04-27",
"2026-04-28",
"2026-04-29",
"2026-05-04",
"2026-05-05",
"2026-05-06",
"2026-05-07",
"2026-05-08",
"2026-05-11",
"2026-05-12",
"2026-05-13",
"2026-05-14",
"2026-05-15",
"2026-05-18",
"2026-05-19",
"2026-05-20",
"2026-05-21",
"2026-05-22",
"2026-05-25",
"2026-05-26",
"2026-05-27",
"2026-05-28",
"2026-05-29",
"2026-06-01",
"2026-06-02",
"2026-06-03",
"2026-06-04",
"2026-06-05",
"2026-06-08",
"2026-06-09",
"2026-06-10",
"2026-06-11",
"2026-06-12",
"2026-06-15",
"2026-06-16",
"2026-06-17",
"2026-06-18",
"2026-06-19",
"2026-06-22",
"2026-06-23",
"2026-06-24",
"2026-06-25",
"2026-06-26",
"2026-06-29",
"2026-06-30",
"2026-07-01",
"2026-07-02",
"2026-07-03",
"2026-07-06",
"2026-07-07",
"2026-07-08",
"2026-07-09",
"2026-07-10",
"2026-07-13",
"2026-07-14",
"2026-07-15",
"2026-07-16",
"2026-07-17",
"2026-07-20",
"2026-07-21",
"2026-07-22",
"2026-07-23",
"2026-07-24",
"2026-07-27",
"2026-07-28",
"2026-07-29",
"2026-07-30",
"2026-07-31",
"2026-08-03",
"2026-08-04",
"2026-08-05",
"2026-08-06",
"2026-08-07",
"2026-08-10",
"2026-08-11",
"2026-08-12",
"2026-08-13",
"2026-08-14",
"2026-08-17",
"2026-08-18",
"2026-08-19",
"2026-08-20",
"2026-08-21",
"2026-08-24",
"2026-08-25",
"2026-08-26",
"2026-08-27",
"2026-08-28",
"2026-08-31",
"2026-09-01",
"2026-09-03",
"2026-09-04",
"2026-09-07",
"2026-09-08",
"2026-09-09",
"2026-09-10",
"2026-09-11",
"2026-09-14",
"2026-09-15",
"2026-09-16",
"2026-09-17",
"2026-09-18",
"2026-09-21",
"2026-09-22",
"2026-09-23",
"2026-09-24",
"2026-09-25",
"2026-09-28",
"2026-09-29",
"2026-09-30",
"2026-10-01",
"2026-10-02",
"2026-10-05",
"2026-10-06",
"2026-10-07",
"2026-10-08",
"2026-10-09",
"2026-10-12",
"2026-10-13",
"2026-10-14",
"2026-10-15",
"2026-10-16",
"2026-10-19",
"2026-10-20",
"2026-10-21",
"2026-10-22",
"2026-10-23",
"2026-10-26",
"2026-10-27",
"2026-10-28",
"2026-10-29",
"2026-10-30",
"2026-11-02",
"2026-11-03",
"2026-11-04",
"2026-11-05",
"2026-11-06",
"2026-11-09",
"2026-11-10",
"2026-11-11",
"2026-11-12",
"2026-11-13",
"2026-11-16",
"2026-11-17",
"2026-11-18",
"2026-11-19",
"2026-11-20",
"2026-11-23",
"2026-11-24",
"2026-11-25",
"2026-11-26",
"2026-11-27",
"2026-11-30",
"2026-12-01",
"2026-12-02",
"2026-12-03",
"2026-12-04",
"2026-12-07",
"2026-12-08",
"2026-12-09",
"2026-12-10",
"2026-12-11",
"2026-12-14",
"2026-12-15",
"2026-12-16",
"2026-12-17",
"2026-12-18",
"2026-12-21",
"2026-12-22",
"2026-12-23",
"2026-12-24",
"2026-12-25",
"2026-12-28",
"2026-12-29",
"2026-12-30",
"2026-12-31",
"2027-01-04",
"2027-01-05",
"2027-01-06",
"2027-01-07",
"2027-01-08",
"2027-01-11",
"2027-01-12",
"2027-01-13",
"2027-01-14",
"2027-01-15",
"2027-01-18",
"2027-01-19",
"2027-01-20",
"2027-01-21",
"2027-01-22",
"2027-01-25",
"2027-01-26",
"2027-01-27",
"2027-01-28",
"2027-01-29",
"2027-02-01",
"2027-02-02",
"2027-02-03",
"2027-02-04",
"2027-02-05",
"2027-02-08",
"2027-02-09",
"2027-02-10",
"2027-02-11",
"2027-02-12",
"2027-02-15",
"2027-02-16",
"2027-02-17",
"2027-02-18",
"2027-02-19",
"2027-02-22",
"2027-02-23",
"2027-02-24",
"2027-02-25",
"2027-02-26",
"2027-03-01",
"2027-03-02",
"2027-03-03",
"2027-03-04",
"2027-03-05",
"2027-03-08",
"2027-03-09",
"2027-03-10",
"2027-03-11",
"2027-03-12",
"2027-03-15",
"2027-03-16",
"2027-03-17",
"2027-03-18",
"2027-03-19",
"2027-03-22",
"2027-03-23",
"2027-03-24",
"2027-03-25",
"2027-03-26",
"2027-03-29",
"2027-03-30",
"2027-03-31",
"2027-04-01",
"2027-04-02",
"2027-04-05",
"2027-04-06",
"2027-04-07",
"2027-04-08",
"2027-04-09",
"2027-04-12",
"2027-04-13",
"2027-04-14",
"2027-04-15",
"2027-04-16"
]
}{
"code": "OA-003",
"message": "Thông tin nhập không hợp lệ",
"status": 400
}{
"code": "OA-009",
"message": "Lỗi hệ thống",
"status": 500
}Tiêu đề
API Key được cấp khi đăng ký dịch vụ
Chữ ký xác thực yêu cầu
Thời gian thực hiện yêu cầu
Phiên bản API
Phản hồi
OK
Danh sách ngày làm việc
Ngày làm việc (yyyy-mm-dd)
Ví dụ:
["2026-04-16"]