# 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


---

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