> ## 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.

# Tài sản, vị thế mở

> Tra cứu vị thế mở phái sinh.



## OpenAPI

````yaml /vi/openapi/tcbs.v1.openapi.yaml get /khronos/v1/account/portfolio/status
openapi: 3.0.3
info:
  title: TCBS iFlash Open API
  description: REST APIs for trading stocks and derivatives on TCBS.
  version: 1.0.0
  contact:
    email: openapi@tcbs.com.vn
servers:
  - url: https://openapi.tcbs.com.vn
    description: Production
security:
  - bearerAuth: []
tags:
  - name: authentication
    description: Xác thực và cấp token truy cập.
    x-group: Xác thực
  - name: account
    description: Thông tin tài khoản, tài sản và hạn mức.
    x-group: Tài khoản
  - name: market-data
    description: Dữ liệu chứng khoán và phái sinh.
    x-group: Dữ liệu thị trường
  - name: cash
    description: Giao dịch và thông tin tiền.
    x-group: Tiền
  - name: stock-orders
    description: Đặt, sửa, hủy và tra cứu lệnh cổ phiếu.
    x-group: Lệnh cổ phiếu
  - name: derivative-orders
    description: Đặt, sửa, hủy và tra cứu lệnh phái sinh.
    x-group: Lệnh phái sinh
paths:
  /khronos/v1/account/portfolio/status:
    get:
      tags:
        - account
      summary: Tài sản, vị thế mở
      description: Tra cứu vị thế mở phái sinh.
      operationId: getKhronosAccountPortfolioStatus
      parameters:
        - name: accountId
          in: query
          required: true
          description: Số tài khoản lưu ký.
          schema:
            type: string
        - name: subAccountId
          in: query
          required: true
          description: Tiểu khoản phái sinh.
          schema:
            type: string
      responses:
        '200':
          description: Phản hồi thành công
          content:
            application/json:
              schema:
                type: object
                properties:
                  cmd:
                    type: string
                    description: Tên lệnh phản hồi.
                  rc:
                    type: string
                    description: Mã kết quả, 1 = thành công.
                  data:
                    type: array
                    description: Danh sách vị thế mở.
                    items:
                      type: object
                      properties:
                        symbol:
                          type: string
                          description: Mã hợp đồng.
                        side:
                          type: string
                          description: Loại giao dịch (B/S).
                        openPrice:
                          type: number
                          description: Giá mở TB.
                        closePrice:
                          type: number
                          description: Giá đóng TB.
                        closePosition:
                          type: string
                          description: Số vị thế đóng / tổng.
                        fee:
                          type: number
                          format: double
                          description: Phí giao dịch.
                        tax:
                          type: number
                          format: double
                          description: Thuế.
                        closeVM:
                          type: number
                          format: double
                          description: Lãi lỗ đã đóng.
                        unrealize:
                          type: number
                          format: double
                          description: Lãi lỗ chưa đóng.
                        closePC:
                          type: number
                          format: double
                          description: '% lãi/lỗ đã đóng.'
                        time:
                          type: string
                          description: Thời gian đóng cuối.
              example:
                cmd: Web.Portfolio.PositionClose
                rc: '1'
                data:
                  - symbol: TOTAL
                    side: ''
                    openPrice: 0
                    closePrice: 0
                    closePosition: '0'
                    fee: 11400
                    tax: 15275
                    closeVM: 500000
                    unrealize: 500000
                    closePC: 0
                    time: ''
                  - symbol: VN30F2103
                    side: S
                    openPrice: 1180
                    closePrice: 1175
                    closePosition: 1/1
                    fee: 5700
                    tax: 7637.5
                    closeVM: 500000
                    unrealize: 0
                    closePC: 3.26
                    time: '11:56:24'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  responses:
    Unauthorized:
      description: Không xác thực — thiếu, sai hoặc không hợp lệ Bearer token.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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