# 4.1. Danh sách gói vay

| Type | URL                                                                                                                                                                                                                 | Method |
| ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ |
| Real | [https://services.entrade.com.vn/entrade-api/investors/\<investor\_id>/derivative\_margin\_portfolios](https://services.entrade.com.vn/entrade-api/investors/<investor_id>/derivative_margin_portfolios)            | GET    |
| Demo | [https://services.entrade.com.vn/papertrade-entrade-api/investors/\<investor\_id>/derivative\_margin\_portfolios](https://services.entrade.com.vn/entrade-api/investors/<investor_id>/derivative_margin_portfolios) | GET    |

#### **Path param**

| Field            | Type | Description   |
| ---------------- | ---- | ------------- |
| **Investor\_id** |      | Mã khách hàng |

#### **Resquest header**

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

#### **Resquest body**

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

#### **Response body**

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

#### **Loan Package**

| Field                                             | Type            | Description             |
| ------------------------------------------------- | --------------- | ----------------------- |
| **id**                                            | Double          | Mã gói vay              |
| **name**                                          | String          | Tên gói vay             |
| **interestRate**                                  | Double          | Phí đóng vị thế         |
| **tradingFeeRate**                                | Double          | Phí giao dịch lệnh      |
| <p><strong>closedPositionFee</strong></p><p> </p> | Double          | Phí giữ vị thế qua đêm  |
| **liquidRate**                                    | Double          | Tỷ lệ xử lý (bán xử lý) |
| **tradingFee**                                    | Trading fee     | Thông tin phí giao dịch |
| **portfolio**                                     | Portfolio array | Các mã áp dụng gói vay  |

#### **Portfolio**

| Field                                         | Type   | Description           |
| --------------------------------------------- | ------ | --------------------- |
| **symbol**                                    | Double | Mã                    |
| **initialRate**                               | String | Tỷ lệ cọc ban đầu     |
| **maintenanceRate**                           | Double | Tỷ lệ cọc duy trì     |
| <p><strong>liquidateRate</strong></p><p> </p> | Double | Tỷ lệ cọc xử lý       |
| <p><strong>overnightRate</strong></p><p> </p> | Double | Tỷ lệ cọc giữ qua đêm |


---

# 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.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.
