Chi tiết lệnh theo ID
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
}trading
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.
GET
/
accounts
/
{accountNo}
/
orders
/
{orderId}
Chi tiết lệnh theo ID
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 đề
Tham số truy vấn
Phản hồi
OK