# 4.1.	 Danh sách gói vay

* ***Lấy thông tin gói vay, gói vay sẽ được dùng để đặt lệnh***
* ***Gói vay là khái niệm của DNSE định nghĩa để hỗ trợ phân biệt các tỷ lệ ký quỹ khi đặt lệnh (margin, không margin)***

| **URL**                                                                                                                                                                     | **Method** |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- |
| [https://services.entrade.com.vn/dnse-order-service/accounts/\<account>/loan-packages](https://services.entrade.com.vn/dnse-order-service/accounts/<account>/loan-packages) | GET        |

### **Path param**

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

### **Resquest header**

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

### **Resquest body**

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

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

| **Field**        | **Type**          | **Description**       |
| ---------------- | ----------------- | --------------------- |
| **loanPackages** | Loan Package List | Danh sách các gói vay |

### &#x20;**Loan Package**

<table data-header-hidden><thead><tr><th width="284.3333333333333"></th><th width="146"></th><th></th></tr></thead><tbody><tr><td><strong>Field</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td><strong>id</strong></td><td>Double</td><td>Mã gói vay</td></tr><tr><td><strong>name</strong></td><td>String</td><td>Tên gói vay</td></tr><tr><td><strong>type</strong></td><td>String</td><td>Loại gói vay. M: Margin, N: không vay</td></tr><tr><td><strong>initialRate</strong></td><td>Double</td><td>Tỷ lệ ký quỹ ban đầu</td></tr><tr><td><strong>maintenanceRate</strong></td><td>Double</td><td>Tỷ lệ duy trì (call margin)</td></tr><tr><td><strong>liquidRate</strong></td><td>Double</td><td>Tỷ lệ xử lý (bán xử lý)</td></tr><tr><td><strong>interestRate</strong></td><td>Double</td><td>Lãi suất margin (%/năm)</td></tr><tr><td><strong>preferentialPeriod</strong></td><td>Double</td><td>Thời gian ưu đãi lãi suất margin</td></tr><tr><td><strong>preferentialInterestRate</strong></td><td>Double</td><td>Lãi suất margin trong thời gian ưu đãi</td></tr><tr><td><strong>term</strong></td><td>Double</td><td>Kỳ hạn vay margin</td></tr><tr><td><strong>allowExtendLoanTerm</strong></td><td>Boolean</td><td>Cho phép gia hạn nợ</td></tr><tr><td><strong>allowEarlyPayment</strong></td><td>Boolean</td><td>Cho phép trả nợ trước hạn</td></tr><tr><td><strong>brokerFirmBuyingFeeRate</strong></td><td>Double</td><td>Phí mua DNSE thu</td></tr><tr><td><strong>brokerFirmSellingFeeRate</strong></td><td>Double</td><td>Phí bán DNSE thu</td></tr><tr><td><strong>transferFee</strong></td><td>Double</td><td>Phí chuyển chứng khoán do sở thu</td></tr><tr><td><strong>description</strong></td><td>Double</td><td>Mô tả</td></tr><tr><td><strong>symbols</strong></td><td>Double</td><td>Danh sách mã áp dụng gói vay, nếu trống có nghĩa áp dụng cho tất cả các mã</td></tr></tbody></table>

&#x20;

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

```
curl --location --request GET 'https://services.entrade.com.vn/dnse-order-service/accounts/<account>/loan-packages' \
--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.1.-danh-sach-goi-vay.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.
