> For the complete documentation index, see [llms.txt](https://hdsd2.entrade.com.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hdsd2.entrade.com.vn/entrade-api/tai-lieu-api-cu/4.-giao-dich-phai-sinh/4.12.-thong-tin-lenh-dieu-kien.md).

# 4.12. Thông tin lệnh điều kiện

<table><thead><tr><th width="248">Type</th><th width="251">URL</th><th>Method</th></tr></thead><tbody><tr><td>Real</td><td><a href="https://services.entrade.com.vn/smart-order/orders?_start=%3Cstart%3E&#x26;_end=%3Cend%3E&#x26;investorId=%3Cinvestor_id%3E">https://services.entrade.com.vn/smart-order/orders?_start=%3Cstart%3E&#x26;_end=%3Cend%3E&#x26;investorId=%3Cinvestor_id%3E</a></td><td>GET</td></tr><tr><td>Demo</td><td><a href="https://services.entrade.com.vn/smart-order/orders?_start=%3Cstart%3E&#x26;_end=%3Cend%3E&#x26;investorId=%3Cinvestor_id%3E">https://services.entrade.com.vn/papertrade-smart-order/orders?_start=%3Cstart%3E&#x26;_end=%3Cend%3E&#x26;investorId=%3Cinvestor_id%3E</a></td><td>GET</td></tr></tbody></table>

#### Query Parameters

| Field      | Type        | Description                      |
| ---------- | ----------- | -------------------------------- |
| \_start    | <p><br></p> | Index bắt đầu duyệt, nên để là 0 |
| \_end      | <p><br></p> | Index kết thúc duyệt             |
| investorId | <p><br></p> | Mã khách hàng                    |

#### Request header

| Field         | Type        | Description         |
| ------------- | ----------- | ------------------- |
| Authorization | <p><br></p> | Bearer \<JWT Token> |

#### Request Body

| Field | Type        | Description |
| ----- | ----------- | ----------- |
| N/A   | <p><br></p> | <p><br></p> |

#### Response Body

| Field | Type        | Description                  |
| ----- | ----------- | ---------------------------- |
| total | <p><br></p> | Tổng số các lệnh điều kiện   |
| data  | <p><br></p> | Danh sách các lệnh điều kiện |

#### data

| Field                 | Type        | Description                                     |
| --------------------- | ----------- | ----------------------------------------------- |
| id                    | <p><br></p> | Số hiệu lệnh                                    |
| status                | <p><br></p> | “PendingTrigger”, “Canceled” hoặc “Triggered”   |
| investorId            | String      | Mã khách hàng                                   |
| investorAccountId     | Int         | Mã tài khoản                                    |
| bankMarginPortfolioId | Double      | Mã gói vay                                      |
| symbol                | String      | Mã phái sinh (ví dụ “VN30F2504”)                |
| condition             | String      | Điều kiện đặt lệnh (ví dụ “>= 1369”, “<= 1396”) |
| targetPrice           | Double      | Giá đặt                                         |
| targetSide            | String      | “NB” (Mua) hoặc “NS” (Bán)                      |
| targetQuantity        | Int         | Khối lượng đặt                                  |
| type                  | String      | Chỉ nhận giá trị “STOP”                         |
| expiredTime           | String      | Thời gian đóng lệnh                             |
| createdDate           | String      | <p><br></p>                                     |
| modifiedDate          | String      | <p><br></p>                                     |
| metadata              | <p><br></p> | <p><br></p>                                     |
