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

# Tra cứu sổ lệnh thường phái sinh

> Tra cứu sổ lệnh thường phái sinh.



## OpenAPI

````yaml /vi/openapi/tcbs.v1.openapi.yaml get /khronos/v1/order/in-day
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/order/in-day:
    get:
      tags:
        - derivative-orders
      summary: Tra cứu sổ lệnh thường phái sinh
      description: Tra cứu sổ lệnh thường phái sinh.
      operationId: getKhronosOrderInDay
      parameters:
        - name: accountId
          in: query
          required: true
          description: Số tài khoản lưu ký.
          schema:
            type: string
        - name: pageNo
          in: query
          required: true
          description: Số trang.
          schema:
            type: number
            format: double
        - name: pageSize
          in: query
          required: true
          description: Kích thước trang.
          schema:
            type: number
            format: double
        - name: symbol
          in: query
          required: true
          description: 'Bộ lọc: ALL,ALL = all; VN30F2303,B = by mã; ALL,B = by L/S.'
          schema:
            type: string
        - name: orderType
          in: query
          required: true
          description: >-
            Bộ lọc Loại lệnh: '' = all, 3 = Arbitrage, 4 = SL/TP, 5 =
            ForceClose, 6 = Thường.
          schema:
            $ref: '#/components/schemas/DerivativeOrderTypeFilter'
        - name: status
          in: query
          required: true
          description: 0 = all, 1 = waiting, 2 = matched.
          schema:
            $ref: '#/components/schemas/DerivativeOrderStatusFilter'
        - name: refId
          in: query
          required: false
          description: Ref ID của lệnh.
          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: Lệnh gọi (echo).
                  rc:
                    type: string
                    description: Mã kết quả, 1 = thành công.
                  data:
                    type: array
                    description: Danh sách lệnh thường.
                    items:
                      type: object
                      properties:
                        orderNo:
                          type: string
                          description: Số hiệu lệnh.
                        pk_orderNo:
                          type: string
                          description: Key lệnh.
                        refId:
                          type: string
                          description: Reference ID của lệnh.
                        orderTime:
                          type: string
                          description: Thời gian đặt lệnh.
                        accountCode:
                          type: string
                          description: Mã tài khoản.
                        side:
                          type: string
                          description: B = Long, S = Short.
                        symbol:
                          type: string
                          description: Mã hợp đồng.
                        volume:
                          type: number
                          format: double
                          description: Khối lượng đặt.
                        showPrice:
                          type: string
                          description: Giá đặt.
                        matchVolume:
                          type: number
                          format: double
                          description: Khối lượng khớp.
                        status:
                          type: string
                          description: Trạng thái lệnh.
                        orderStatus:
                          type: string
                          description: Mã trạng thái lệnh.
                        channel:
                          type: string
                          description: Kênh đặt lệnh.
                        group:
                          type: string
                          description: Nhóm sản phẩm.
                        isCancel:
                          type: string
                          description: 0 = không thể hủy, 1 = có thể hủy.
                        isAmend:
                          type: string
                          description: 0 = không thể sửa, 1 = có thể sửa.
                        orderType:
                          type: string
                          description: Loại lệnh.
                        source:
                          type: string
                          description: Nguồn đặt lệnh.
                      required:
                        - orderNo
                        - pk_orderNo
                        - side
                        - symbol
                        - volume
                        - showPrice
                        - matchVolume
                        - status
                        - isCancel
                        - isAmend
                required:
                  - rc
                  - data
              example:
                cmd: Web.Order.IndayOrder
                rc: '1'
                data:
                  - orderNo: '37'
                    pk_orderNo: '7625908'
                    refId: H.7387641765855363489
                    orderTime: '13:34:47'
                    accountCode: 000112A
                    side: S
                    symbol: VN30F2303
                    volume: 1
                    showPrice: MTL (1198)
                    matchVolume: 1
                    status: PM
                    orderStatus: '4'
                    channel: I
                    group: FU
                    isCancel: '0'
                    isAmend: '0'
                    orderType: 'N'
                    source: SYS
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    DerivativeOrderTypeFilter:
      type: string
      description: >-
        Loc loại lệnh: " = tất cả, 3 = Arbitrage, 4 = SL/TP, 5 = ForceClose, 6 =
        Thường.
      enum:
        - ''
        - '3'
        - '4'
        - '5'
        - '6'
    DerivativeOrderStatusFilter:
      type: string
      description: >-
        Bộ lọc trạng thái lệnh phái sinh: 0 = tất cả, 1 = chờ khớp/chờ kích
        hoạt, 2 = đã khớp/đã kích hoạt, 3 = từ chối.
      enum:
        - '0'
        - '1'
        - '2'
        - '3'
  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.