> For the complete documentation index, see [llms.txt](https://hdsd2.entrade.com.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hdsd2.entrade.com.vn/entrade-api/tai-lieu-api-cu/4.-giao-dich-phai-sinh/4.1.-danh-sach-goi-vay.md).

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