# 4.2. Sức mua, sức bán

Lấy thông tin sức mua sức bán tối đa theo tiểu khoản, mã, giá và gói vay

| Type                        | URL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | Method |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ |
| <p></p><p> </p><p> Real</p> | <p><a href="https://services.entrade.com.vn/entrade-api/derivative/investors/<investorId>/ppse?bankMarginPortfolioId=<loanPackageId>&#x26;price=<price>&#x26;side=<side>&#x26;symbol=<symbol>">[https://services.entrade.com.vn/entrade-api/derivative/investors/\&#x3C;investorId>/ppse?bankMarginPortfolioId=\&#x3C;loanPackageId>\&#x26;price=\&#x3C;price>\&#x26;side=\&#x3C;side>\&#x26;symbol=\&#x3C;symbol>](https://services.entrade.com.vn/entrade-api/derivative/investors/\&#x3C;investorId>/ppse?bankMarginPortfolioId=\&#x3C;loanPackageId>\&#x26;price=\&#x3C;price>\&#x26;side=\&#x3C;side>\&#x26;symbol=\&#x3C;symbol>)</a></p><p> </p> | GET    |
| Demo                        | [https://services.entrade.com.vn/papertrade-entrade-api/derivative/investors/\<investorId>/ppse?bankMarginPortfolioId=\<loanPackageId>\&price=\<price>\&side=\<side>\&symbol=\<symbol>](https://services.entrade.com.vn/entrade-api/derivative/investors/<investorId>/ppse?bankMarginPortfolioId=<loanPackageId>\&price=<price>\&side=<side>\&symbol=<symbol>)                                                                                                                                                                                                                                                                                          | GET    |

#### **Path param**

| Field          | Type | Description   |
| -------------- | ---- | ------------- |
| **investorId** |      | Mã khách hàng |

#### **Query param**

| Field             | Type | Description                                                     |
| ----------------- | ---- | --------------------------------------------------------------- |
| **loanPackageId** |      | Mã gói vay (lấy Mã gói vay cần trong danh sách gói vay mục 4.a) |
| **side**          |      | Long (NB), Short (NS)                                           |
| **symbol**        |      | Mã, ví dụ: VN30F2306                                            |
| **price**         |      | Giá                                                             |

#### **Resquest header**

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

#### **Resquest body**

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

#### **Response body**

| Field                 | Type   | Description                |
| --------------------- | ------ | -------------------------- |
| **investorId**        |        | Mã khách hàng              |
| **investorAccountId** | String | Mã tiểu khoản              |
| **symbol**            | String | Mã                         |
| **price**             | Double | Giá tính sức mua           |
| **ppse**              | Double | Sức mua                    |
| **price**             | Double | Giá tính sức mua           |
| **side**              | String | Long (NB), Short (NS)      |
| **qmax**              | Double | Số lượng tối đa có thể đặt |


---

# 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.2.-suc-mua-suc-ban.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.
