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

# Get condition order book (derivative)

> Query the derivative conditional order book.



## OpenAPI

````yaml /en/openapi/tcbs-v1.yaml get /khronos/v1/order/condition/detail
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: []
paths:
  /khronos/v1/order/condition/detail:
    get:
      summary: Get condition order book (derivative)
      description: Query the derivative conditional order book.
      parameters:
        - name: accountId
          in: query
          required: true
          description: Custody account number.
          schema:
            type: string
        - name: subAccountID
          in: query
          required: true
          description: Derivative account number.
          schema:
            type: string
        - name: pageNo
          in: query
          required: true
          description: Page number.
          schema:
            type: string
        - name: PageSize
          in: query
          required: true
          description: Page size.
          schema:
            type: string
        - name: orderStatus
          in: query
          required: true
          description: 0 = all, 1 = waiting, 2 = activated, 3 = rejected.
          schema:
            $ref: '#/components/schemas/DerivativeOrderStatusFilter'
        - name: orderType
          in: query
          required: true
          description: ''''' = all, 3 = Arbitrage, 4 = SL/TP, 5 = Stop order.'
          schema:
            $ref: '#/components/schemas/DerivativeConditionalOrderTypeFilter'
        - name: Symbol
          in: query
          required: true
          description: 'Filter: ALL,ALL = all; VN30F2303,B = by symbol.'
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  rc:
                    type: string
                    description: Result code, 1 = success.
                  data:
                    type: array
                    items:
                      type: object
                    description: List of conditional orders.
                  data[].orderNo:
                    type: string
                    description: Order number.
                  data[].pk_orderNo:
                    type: string
                    description: Order key.
                  data[].side:
                    type: string
                    description: B = Long, S = Short.
                  data[].symbol:
                    type: string
                    description: Contract code.
                  data[].showPrice:
                    type: number
                    format: double
                    description: Order price.
                  data[].volume:
                    type: number
                    format: double
                    description: Order volume.
                  data[].soPrice:
                    type: number
                    format: double
                    description: Stop price.
                  data[].orderType:
                    type: string
                    description: SL = price >=, SU = price <=.
                  data[].status:
                    allOf:
                      - $ref: '#/components/schemas/DerivativeConditionalStatus'
                    description: 0 = pending, 1 = activated, 2 = canceled, 3 = rejected.
                  data[].notes:
                    type: string
                    description: 'Order type: SL/TP, Stop order, Arbitrage.'
components:
  schemas:
    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'
    DerivativeConditionalOrderTypeFilter:
      type: string
      description: >-
        Bộ lọc loại lệnh điều kiện phái sinh: chuỗi rỗng = tất cả, 3 =
        Arbitrage, 4 = SL/TP, 5 = Stop order.
      enum:
        - ''
        - '3'
        - '4'
        - '5'
    DerivativeConditionalStatus:
      type: string
      description: >-
        Trạng thái lệnh điều kiện phái sinh: 0 = chờ kích hoạt, 1 = đã kích
        hoạt, 2 = đã hủy, 3 = từ chối.
      enum:
        - '0'
        - '1'
        - '2'
        - '3'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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