# 5.7.  Danh sách deal nắm giữ

| **URL**                                                                           | **Method** |
| --------------------------------------------------------------------------------- | ---------- |
| <https://services.entrade.com.vn/dnse-derivative-core/deals?accountNo=0001008710> | GET        |

### &#x20;**Query param**

| **Field**   | **Type** | **Description** |
| ----------- | -------- | --------------- |
| **account** |          | Mã tiểu khoản   |

### &#x20;**Resquest header**

| **Field**         | **Type** | **Description**     |
| ----------------- | -------- | ------------------- |
| **Authorization** |          | Bearer \<JWT token> |

### &#x20;**Resquest body**

| **Field** | **Type** | **Description** |
| --------- | -------- | --------------- |
| **N/A**   |          |                 |

### &#x20;**Response body**

| **Field** | **Type**  | **Description**        |
| --------- | --------- | ---------------------- |
| **data**  | Deal List | Danh sách Deal nắm giữ |

### **Deal**

<table data-header-hidden><thead><tr><th width="288.3333333333333"></th><th width="184"></th><th></th></tr></thead><tbody><tr><td><strong>Fied</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td><strong>id</strong> </td><td>long </td><td>Id deal </td></tr><tr><td><strong>symbol</strong> </td><td>string </td><td>Mã chứng khoán </td></tr><tr><td><strong>accountNo</strong> </td><td>string </td><td>Số tiểu khoản </td></tr><tr><td><strong>status</strong> </td><td>string </td><td><p>Trạng thái của deal, thuộc các giá trị sau: <br> </p><p>OPEN: đang mở </p><p>CLOSED: đã đóng </p></td></tr><tr><td><strong>loanPackageId</strong></td><td>string </td><td>mã gói vay </td></tr><tr><td><strong>side</strong> </td><td>string </td><td><p>Bên mua/bán </p><p> </p><p>NB: mua </p><p>NS: bán </p></td></tr><tr><td><strong>secure</strong> </td><td>Double </td><td>cọc hiện tại của deal </td></tr><tr><td><strong>accumulateQuantity</strong> </td><td>integer </td><td>Khối lượng mở tích lũy </td></tr><tr><td><strong>closedQuantity</strong> </td><td>integer </td><td>khối lượng đã đóng </td></tr><tr><td><strong>openQuantity</strong></td><td>integer </td><td>Khối lương mở</td></tr><tr><td><strong>closedQuantity</strong></td><td>integer </td><td>Khối lượng đóng</td></tr><tr><td><strong>overNightQuantity</strong></td><td>integer </td><td>Khối lượng giữ qua đêm</td></tr><tr><td><strong>breakEvenPrice</strong></td><td>Double</td><td>Giá hoà vốn</td></tr><tr><td><strong>costPrice</strong></td><td>Double</td><td>Giá vốn toàn bộ open quantity</td></tr><tr><td><strong>costPriceVM</strong></td><td>Double</td><td>Giá vốn VM (theo gía hàng ngày)</td></tr><tr><td><strong>averageCostPrice</strong></td><td>Double</td><td>Giá mở trung bình</td></tr><tr><td><strong>averageClosePrice</strong></td><td>Double</td><td>Giá đóng trung bình</td></tr><tr><td><strong>totalUnrealizedProfit</strong></td><td>Double</td><td>Lãi mở (chưa bao gồm phí thuế)</td></tr><tr><td><strong>totalUnrealizedTaxAndFee</strong></td><td>Double</td><td>Phí thuế phần mổ</td></tr><tr><td><strong>totalRealizedProfit</strong></td><td>Double</td><td>Lãi đã đóng (chưa bao gồm phí thuế)</td></tr><tr><td><strong>totalRealizedTaxAndFee</strong></td><td>Double</td><td>Phí thuế phần đã đóng</td></tr><tr><td><strong>estimateRemainFee</strong></td><td>Double</td><td>Phí ước tính còn lại</td></tr><tr><td><strong>estimateRemainTax</strong></td><td>Double</td><td>Thuế ước tính còn lại</td></tr><tr><td><strong>totalRealizedPositionFee</strong></td><td>Double</td><td>Phí vị thế phần đã đóng</td></tr><tr><td><strong>totalUnrealizedPositionFee</strong></td><td>Double</td><td>Phí vị thế phần mở</td></tr><tr><td><strong>maturityFee</strong></td><td>Double</td><td>Phí đáo hạn</td></tr><tr><td><strong>createdDate</strong></td><td>Date</td><td>Giờ tạo</td></tr><tr><td><strong>modifiedDate</strong></td><td>Date</td><td>Giờ cập nhật</td></tr></tbody></table>

&#x20;

{% tabs %}
{% tab title="First Tab" %}

```
curl --location --request GET 'https://services.entrade.com.vn/dnse-derivative-core/deals?accountNo=<account>' \
--header 'content-type: application/json' \
--header 'authorization: Bearer <jwt_token_from_login_API_response_step_2.1>'
```

{% endtab %}
{% endtabs %}


---

# 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://hdsd.dnse.com.vn/san-pham-dich-vu/lightspeed-api-truoc-krx/ii.-trading-api/5.-giao-dich-phai-sinh/5.7.-danh-sach-deal-nam-giu.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.
