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

| **URL**                                                                                                                                                     | **Method** |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- |
| [https://services.entrade.com.vn/dnse-deal-service/deals?accountNo=\<account>](https://services.entrade.com.vn/dnse-deal-service/deals?accountNo=<account>) | 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**        |
| --------- | --------- | ---------------------- |
| **deals** | Deal List | Danh sách Deal nắm giữ |

### **Deal**

<table data-header-hidden><thead><tr><th width="328.3333333333333"></th><th width="144"></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>orderIds</strong> </td><td>[]string </td><td>danh sách Order Id thuộc deal </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>t0ReceivingQuantity</strong> </td><td>integer </td><td> </td></tr><tr><td><strong>t1ReceivingQuantity</strong> </td><td>integer </td><td> </td></tr><tr><td><strong>t2ReceivingQuantity</strong> </td><td>integer </td><td> </td></tr><tr><td><strong>costPrice</strong> </td><td>double </td><td>Giá vốn hiện tại của deal </td></tr><tr><td><strong>averageCostPrice</strong> </td><td>double </td><td>Giá mở cửa trung bình của deal </td></tr><tr><td><strong>marketPrice</strong> </td><td>double </td><td>Giá thị trường </td></tr><tr><td><strong>realizedProfit</strong> </td><td>double </td><td>Lãi lỗ phần đã chốt, chưa bao gồm phí thuế </td></tr><tr><td><strong>realizedTotalTaxAndFee</strong> </td><td>double </td><td>Phí thuế của phần đã chốt, bao gồm cả mở và đóng </td></tr><tr><td><strong>collectedBuyingFee</strong> </td><td>double </td><td>Tổng phí mua </td></tr><tr><td><strong>collectedBuyingTax</strong> </td><td>doulbe </td><td>Tổng thuế mua </td></tr><tr><td><strong>collectedSellingFee</strong> </td><td>doulbe </td><td>tổng phí bán </td></tr><tr><td><strong>collectedSellingTax</strong> </td><td>doulbe </td><td>tổng thuế bán </td></tr><tr><td><strong>collectedStockTransferFee</strong> </td><td>double </td><td>tổng phí chuyển khoản chứng khoán khi bán </td></tr><tr><td><strong>collectedInterestFee</strong> </td><td>double </td><td>Tổng lãi vay khi dùng margin </td></tr><tr><td><strong>estimateRemainTaxAndFee</strong> </td><td>doulbe </td><td>phí thuế đóng tạm tính cho phần còn lại của deal, tính theo giá thị trường </td></tr><tr><td><strong>unrealizedProfit</strong> </td><td>doulbe </td><td>lãi lỗ tạm tính cho phần còn lại của deal, tính theo giá thị trường </td></tr><tr><td><strong>breakEvenPrice</strong> </td><td>double </td><td>giá hòa vốn </td></tr><tr><td><strong>dividendReceivingQuantity</strong> </td><td>integer </td><td> </td></tr><tr><td><strong>dividendQuantity</strong> </td><td>integer </td><td> </td></tr><tr><td><strong>cashReceiving</strong> </td><td>double </td><td> </td></tr><tr><td><strong>rightReceivingCash</strong> </td><td>double </td><td> </td></tr><tr><td><strong>t0ReceivingCash</strong> </td><td>double </td><td> </td></tr><tr><td><strong>t1RecevingCash</strong> </td><td>double </td><td> </td></tr><tr><td><strong>t2RecevingCash</strong> </td><td>double </td><td> </td></tr><tr><td><strong>createdDate</strong> </td><td>string </td><td>ISO UTC 8601, format datetime </td></tr><tr><td><strong>modifiedDate</strong> </td><td>string </td><td>datetime </td></tr><tr><td><strong>currentDebt</strong> </td><td>double </td><td>nợ của phần đang mở </td></tr><tr><td><strong>currentInterest</strong> </td><td>double </td><td>lãi của phần đang mở </td></tr><tr><td><strong>unrealizedOpenTaxAndFee</strong> </td><td>double </td><td>phí thuế mua của phần đang mở </td></tr><tr><td><strong>currentDebtExcludeToCollect</strong> </td><td>double </td><td>nợ chưa trả của deal </td></tr><tr><td><strong>accumulateSecure</strong> </td><td>double </td><td> </td></tr><tr><td><strong>accumulateDebt</strong> </td><td>double </td><td> </td></tr><tr><td><strong>averageClosePrice</strong> </td><td>double </td><td> </td></tr><tr><td><strong>currentInterestExcludeToCollect</strong> </td><td>double </td><td>lãi chưa trả của deal </td></tr></tbody></table>

&#x20;

{% tabs %}
{% tab title="cURL" %}

```
curl --location --request GET 'https://services.entrade.com.vn/dnse-deal-service/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/4.-giao-dich-co-so/4.6.-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.
