> ## Documentation Index
> Fetch the complete documentation index at: https://hoalulab.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Lấy tiểu khoản Master

> Lấy thông tin tiểu khoản Master của khách hàng theo investorId.



## OpenAPI

````yaml /vi/openapi/entrade-v1.yaml get /investors/{investorId}/investor_account
openapi: 3.1.0
info:
  title: Entrade Open API
  version: 1.0.0
  description: Đặc tả được trích xuất từ các request Bruno trong `collections/Entrade`.
servers:
  - url: https://services.entrade.com.vn/entrade-api
    description: Môi trường production
  - url: https://services-staging.entrade.com.vn/papertrade-entrade-api
    description: Môi trường staging
security:
  - BearerAuth: []
tags:
  - name: authentication
    description: API đăng nhập và cấp JWT token.
    x-group: Xác thực
  - name: account
    description: Thông tin tài khoản, tài sản và cấu hình rủi ro.
    x-group: Tài khoản
  - name: derivatives
    description: Giao dịch, sức mua, gói vay và vị thế phái sinh.
    x-group: Phái sinh
  - name: smart-order
    description: Lệnh điều kiện trên dịch vụ Smart Order.
    x-group: Smart Order
paths:
  /investors/{investorId}/investor_account:
    get:
      tags:
        - account
      summary: Lấy tiểu khoản Master
      description: Lấy thông tin tiểu khoản Master của khách hàng theo investorId.
      operationId: getInvestorAccount
      parameters:
        - name: investorId
          in: path
          required: true
          description: Mã investorId của Khách Hàng
          schema:
            type: number
      responses:
        '200':
          description: Thành công
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvestorAccount'
        '400':
          $ref: '#/components/responses/BadRequest'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    InvestorAccount:
      type: object
      properties:
        id:
          type: number
        investorId:
          type: number
          description: Mã khách hàng
        orderSecure:
          type: number
          description: Cọc trong lệnh
        derivativeOrderSecure:
          type: number
        dealSecure:
          type: number
          description: Cọc trong deal
        initDerivativeDealSecures:
          type: array
          items: {}
        derivativeDealSecure:
          type: number
        tradingFeeSecure:
          type: number
        totalCash:
          type: number
          description: Cọc còn lại của tiểu khoản
        sellingTaxSecure:
          type: number
        orderMoneyAdvanceFeeSecure:
          type: number
        receivable:
          type: number
        taxCredit:
          type: number
        initCash:
          type: number
        holdOvernightSecure:
          type: number
          description: Cọc giữ qua đêm
        originalReferenceBonus:
          type: number
        referenceBonus:
          type: number
        netDerivativeOrderSecure:
          type: number
        createdDate:
          type: string
          description: Giờ tạo
        modifiedDate:
          type: string
          description: Giờ cập nhật
        status:
          type: string
          description: Trạng thái tiểu khoản
        type:
          type: string
        availableCash:
          type: number
        withdrawalCash:
          type: number
        purchasingPower:
          type: number
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        status:
          type: number
  responses:
    BadRequest:
      description: Yêu cầu không hợp lệ
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalError:
      description: Lỗi máy chủ
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT token lấy từ API đăng nhập.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.