curl --request GET \
--url https://openapi-uat.dnse.com.vn/accounts/{accountNo}/orders/{orderId}import requests
url = "https://openapi-uat.dnse.com.vn/accounts/{accountNo}/orders/{orderId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://openapi-uat.dnse.com.vn/accounts/{accountNo}/orders/{orderId}', 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/accounts/{accountNo}/orders/{orderId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/accounts/{accountNo}/orders/{orderId}"
req, _ := http.NewRequest("GET", url, nil)
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/accounts/{accountNo}/orders/{orderId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi-uat.dnse.com.vn/accounts/{accountNo}/orders/{orderId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": 966,
"side": "NS",
"accountNo": "0001179019",
"symbol": "41I1G4000",
"price": 1706.1,
"quantity": 5,
"orderType": "LO",
"loanPackageId": 2278,
"orderCategory": "NORMAL",
"orderStatus": "Filled",
"fillQuantity": 5,
"lastQuantity": 2,
"lastPrice": 1706.1,
"averagePrice": 1750.96,
"transDate": "2026-03-16",
"taxRate": 0,
"exchangeFeeRate": 0,
"feeRate": 0,
"leaveQuantity": 0,
"canceledQuantity": 0,
"error": "",
"marketType": "DERIVATIVE",
"priceSecure": 1706.1,
"createdDate": "2026-03-23T03:10:06.556826794Z",
"modifiedDate": "2026-03-23T04:07:45.683977124Z",
"metadata": "{\"orderSession\":\"OPEN\",\"dealId\":\"1.77410795472387E14\",\"releaseSecureOnFilled\":\"false\",\"originMaker\":\"1000005917-close_deal_177410795472387\",\"dtaAccountNo\":\"D000113702\",\"isForeigner\":false,\"probType\":\"CUSTOMER\",\"eventNo\":5}"
}{
"status": 400,
"code": "RESOURCE_NOT_FOUND",
"message": "OrderRepository: cannot find object with id: 96"
}{
"code": "OA-009",
"message": "Lỗi hệ thống",
"status": 500
}Chi tiết lệnh theo ID
Lấy thông tin chi tiết của một lệnh giao dịch cụ thể theo orderId, bao gồm trạng thái, khối lượng, giá và các thông tin liên quan.
curl --request GET \
--url https://openapi-uat.dnse.com.vn/accounts/{accountNo}/orders/{orderId}import requests
url = "https://openapi-uat.dnse.com.vn/accounts/{accountNo}/orders/{orderId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://openapi-uat.dnse.com.vn/accounts/{accountNo}/orders/{orderId}', 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/accounts/{accountNo}/orders/{orderId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/accounts/{accountNo}/orders/{orderId}"
req, _ := http.NewRequest("GET", url, nil)
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/accounts/{accountNo}/orders/{orderId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi-uat.dnse.com.vn/accounts/{accountNo}/orders/{orderId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": 966,
"side": "NS",
"accountNo": "0001179019",
"symbol": "41I1G4000",
"price": 1706.1,
"quantity": 5,
"orderType": "LO",
"loanPackageId": 2278,
"orderCategory": "NORMAL",
"orderStatus": "Filled",
"fillQuantity": 5,
"lastQuantity": 2,
"lastPrice": 1706.1,
"averagePrice": 1750.96,
"transDate": "2026-03-16",
"taxRate": 0,
"exchangeFeeRate": 0,
"feeRate": 0,
"leaveQuantity": 0,
"canceledQuantity": 0,
"error": "",
"marketType": "DERIVATIVE",
"priceSecure": 1706.1,
"createdDate": "2026-03-23T03:10:06.556826794Z",
"modifiedDate": "2026-03-23T04:07:45.683977124Z",
"metadata": "{\"orderSession\":\"OPEN\",\"dealId\":\"1.77410795472387E14\",\"releaseSecureOnFilled\":\"false\",\"originMaker\":\"1000005917-close_deal_177410795472387\",\"dtaAccountNo\":\"D000113702\",\"isForeigner\":false,\"probType\":\"CUSTOMER\",\"eventNo\":5}"
}{
"status": 400,
"code": "RESOURCE_NOT_FOUND",
"message": "OrderRepository: cannot find object with id: 96"
}{
"code": "OA-009",
"message": "Lỗi hệ thống",
"status": 500
}Tiêu đề
API Key được cấp khi đăng ký dịch vụ
Thời gian thực hiện yêu cầu
Chữ ký xác thực yêu cầu
Phiên bản API
Tham số truy vấn
Loại thị trường
- STOCK: Sổ lệnh cơ sở
- DERIVATIVE: Sổ lệnh phái sinh
Phân loại lệnh thường, lệnh điều kiện (mặc định NORMAL)
Phản hồi
OK
ID lệnh
966
Chiều giao dịch
- NB: Mua
- NS: Bán
"NS"
Số tiểu khoản
"0001179019"
Mã hợp đồng phái sinh
"41I1G4000"
Giá đặt lệnh
1706.1
Khối lượng đặt lệnh
5
Loại lệnh
- LO: Lệnh giới hạn
- MOK/MAK/MTL: Lệnh thị trường
- ATO/ATC: Lệnh phiên định kỳ mở cửa/đóng cửa
- PLO: Lệnh khớp lệnh sau giờ
"LO"
Mã gói vay
2278
Phân loại lệnh (mặc định NORMAL)
"NORMAL"
Trạng thái lệnh
- Pending/PendingNew: Chờ gửi
- New: Chờ khớp
- PartiallyFilled: Khớp một phần
- Filled: Khớp toàn bộ
- Rejected: Bị từ chối
- Expired: Hết hạn trong phiên
- DoneForDay: Lệnh được giải tỏa do không khớp trong phiên
"Filled"
Khối lượng đã khớp
5
Khối lượng khớp gần nhất
2
Giá khớp gần nhất
1706.1
Giá khớp trung bình
1750.96
Ngày giao dịch
"2026-03-16"
Tỷ lệ thuế
0
Tỷ lệ phí trả Sở giao dịch
0
Tổng tỷ lệ phí của lệnh
0
Khối lượng còn lại chưa khớp
0
Khối lượng đã hủy
0
Mã lỗi nếu lệnh bị từ chối
""
Loại thị trường
- STOCK: Sổ lệnh cơ sở
- DERIVATIVE: Sổ lệnh phái sinh
"DERIVATIVE"
Giá dùng để kiểm tra sức mua/đặt lệnh
1706.1
Thời điểm tạo lệnh
"2026-03-23T03:10:06.556826794Z"
Thời điểm cập nhật lệnh
"2026-03-23T04:07:45.683977124Z"
Thông tin bổ sung của lệnh
"{\"orderSession\":\"OPEN\",\"dealId\":\"1.77410795472387E14\",\"releaseSecureOnFilled\":\"false\",\"originMaker\":\"1000005917-close_deal_177410795472387\",\"dtaAccountNo\":\"D000113702\",\"isForeigner\":false,\"probType\":\"CUSTOMER\",\"eventNo\":5}"