> 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/5.-lay-suc-mua.md).

# 5. Lấy sức mua

* **URL:**
  * PROD: <https://services.entrade.com.vn/entrade-api/derivative/investors/:investorId/ppse>
* **Method:** `GET`
* **Description:** Lấy sức mua qmax
* **Parameters:**
  * `investorId`: Mã investorId của Khách Hàng
* **Query parameters:**
  * `bankMarginPortfolio`: mã id gói vay
  * `price`: Giá
  * `symbol`: Mã
  * `side`:
    * NB: Short
    * NS: Long
* **Response:**

```
{
    "id": 1000000001,
    "investorId": 1000000001,
    "investorAccountId": 1000000001,
    "bankMarginPortfolioId": 123,
    "symbol": "VN30F2512",
    "price": 1922.8,
    "ppse": 0.0,
    "qmax": 0,
    "side": "NB",
    "dealId": 0
}

```

* **Mô tả:**
  * `investorId`: investorId của Khách Hàng
  * `investorAccountId`: id tiểu khoản
  * `bankMarginPortfolioId`: id gói vay
  * `symbol`: mã Phái Sinh
  * `ppse`: sức mua còn lại
  * `qmax`: số lượng tối đa có thể đặt
  * `side`: chiều đặt
