4.4. Lấy sổ lệnh

GET/aion/v1/accounts/{accountNo}/orders
Lấy toàn bộ sổ lệnh của một tiểu khoản. Có thể lấy theo Order ID qua /orders/{orderID}.

Header

TênKiểuBắt buộcMô tả
AuthorizationstringBearer <access token>.
Content-Typestringapplication/json.

Path variable

TênKiểuBắt buộcMô tả
accountNostringSố tiểu khoản, ví dụ: 0001170730.
GET /aion/v1/accounts/0001170730/orders
curl "https://openapi.tcbs.com.vn/aion/v1/accounts/0001170730/orders" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json"
Xem realtime khớp lệnh tại mục 5.9 (WebSocket).

Response

TênKiểuBắt buộcMô tả
ordersarrayDanh sách lệnh trong sổ lệnh.
orders[].orderIdstringMã lệnh.
orders[].symbolstringMã chứng khoán.
orders[].execTypestringChiều giao dịch (NB/NS).
orders[].priceint64Giá đặt.
orders[].quantityint64Khối lượng đặt.
orders[].statusstringTrạng thái lệnh.
{
  "orders": [
    {
      "orderId": "9202205230000324355",
      "symbol": "VNM",
      "execType": "NB",
      "price": 10000,
      "quantity": 100,
      "status": "FILLED"
    }
  ]
}