# 4.10. Hủy 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/%3Corder_id%3E">https://services.entrade.com.vn/smart-order/orders/&#x3C;order_id></a></td><td>DELETE</td></tr><tr><td>Demo</td><td><a href="https://services.entrade.com.vn/smart-order/orders/%3Corder_id%3E">https://services.entrade.com.vn/papertrade-smart-order/orders/&#x3C;order_id></a></td><td>DELETE</td></tr></tbody></table>

#### Path parameters

| Field     | Type        | Description  |
| --------- | ----------- | ------------ |
| order\_id | <p><br></p> | Số hiệu lệnh |

#### Request Header

| Field         | Type        | Description                         |
| ------------- | ----------- | ----------------------------------- |
| Authorization | <p><br></p> | Bearer \<JWT Token>                 |
| Trading-Token | <p><br></p> | Token được cấp sau khi xác thực OTP |

#### Request Body

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

#### Response Body

<table><thead><tr><th width="249">Field</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>id</td><td><br></td><td>Số hiệu lệnh</td></tr><tr><td>status</td><td><br></td><td>“PendingTrigger”, “Canceled” hoặc “Triggered”</td></tr><tr><td>investorId</td><td>String</td><td>Mã khách hàng</td></tr><tr><td>investorAccountId</td><td>Int</td><td>Mã tài khoản</td></tr><tr><td>bankMarginPortfolioId</td><td>Double</td><td>Mã gói vay</td></tr><tr><td>symbol</td><td>String</td><td>Mã phái sinh (ví dụ “VN30F2504”)</td></tr><tr><td>condition</td><td>String</td><td>Điều kiện đặt lệnh (ví dụ “>= 1369”, “&#x3C;= 1396”)</td></tr><tr><td>targetPrice</td><td>Double</td><td>Giá đặt</td></tr><tr><td>targetSide</td><td>String</td><td>“NB” (Mua) hoặc “NS” (Bán)</td></tr><tr><td>targetQuantity</td><td>Int</td><td>Khối lượng đặt</td></tr><tr><td>type</td><td>String</td><td>Chỉ nhận giá trị “STOP”</td></tr><tr><td>expiredTime</td><td>String</td><td>Thời gian đóng lệnh</td></tr><tr><td>createdDate</td><td>String</td><td><p>Thời điểm (ngày giờ) đặt lệnh, theo định dạng ISO UTC 8601 format datetime</p><p>Ví dụ: 2022-07-15T10:00:00.111+07:00</p></td></tr><tr><td>modifiedDate</td><td>String</td><td>Thời điểm (ngày giờ) thay đổi cuối cùng của lệnh</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hdsd2.entrade.com.vn/entrade-api/tai-lieu-api-cu/4.-giao-dich-phai-sinh/4.10.-huy-lenh-dieu-kien.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
