> 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/2.-lay-tieu-khoan-master.md).

# 2. Lấy tiểu khoản Master

* **URL:**
  * PROD: <https://services.entrade.com.vn/entrade-api/investors/:investorId/investor_account>
  * PAPERTRADE: \[<https://services.entrade.com.vn/papertrade-entrade-api/>    \\

    \
    :investorId/investor\_account]\(<https://services.entrade.com.vn/papertrade-entrade-api/&#xD;&#xA;&#xD;&#xA;:investorId/investor_account>)
* **Method:** `GET`
* **Description:** Lấy thông tin tài khoản master
* **Parameters:**
  * `investorId`: Mã investorId của Khách Hàng
* **Response:**

```
{
    "id": 1000000036,
    "investorId": 1000000036,
    "orderSecure": 0.0,
    "derivativeOrderSecure": 0.0,
    "dealSecure": 0.0,
    "initDerivativeDealSecures": [],
    "derivativeDealSecure": -3.810785127691032E10,
    "tradingFeeSecure": 0.0,
    "totalCash": 1.0437906825E10,
    "sellingTaxSecure": 0.0,
    "orderMoneyAdvanceFeeSecure": 0.0,
    "receivable": 0.0,
    "taxCredit": 1756499.95,
    "initCash": 1.0437906825E10,
    "holdOvernightSecure": 0.0,
    "originalReferenceBonus": 0.0,
    "referenceBonus": 0.0,
    "netDerivativeOrderSecure": 0.0,
    "cashOnHand": 0.0,
    "remainDebt": 5349990.0,
    "uncollectedCollateralFee": 0.0,
    "holdCollateralFee": 0.0,
    "createdDate": "2022-11-03T02:47:07.057Z",
    "modifiedDate": "2025-11-27T13:01:02.548Z",
    "status": "ACTIVE",
    "type": "MASTER",
    "lastActionAge": 3,
    "availableCash": 1.0437906825E10,
    "withdrawalCash": 1.0437906825E10,
    "purchasingPower": 1.0437906825E10,
    "depositionalCash": 0.0
}
```

* **Mô tả (các field quan trọng):**
  * `investorId`: investorId của Khác Hàng
  * `investorAccountId`: id của tiểu khoản chính
  * `totalCash`: cọc còn lại của tiểu khoản
  * `orderSecure`: cọc trong lệnh
  * `dealSecure`: cọc trong deal
  * `status`: trạng thái tiểu khoản
