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

# Place condition order (derivative)

> Place a conditional derivative order.



## OpenAPI

````yaml /en/openapi/tcbs-v1.yaml post /khronos/v1/order/condition/place
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/place:
    post:
      summary: Place condition order (derivative)
      description: Place a conditional derivative order.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                accountId:
                  type: string
                  description: Custody code.
                subAccountId:
                  type: string
                  description: Derivative sub-account number.
                side:
                  allOf:
                    - $ref: '#/components/schemas/DerivativeSide'
                  description: B = buy, S = sell.
                symbol:
                  type: string
                  description: Derivative code, e.g. VN30F2110.
                price:
                  type: number
                  format: double
                  description: Order price.
                volume:
                  type: number
                  format: double
                  description: Quantity, greater than 0.
                orderType:
                  allOf:
                    - $ref: '#/components/schemas/DerivativeConditionalOrderType'
                  description: >-
                    SOL = market price >= soPrice, SOU = market price <=
                    soPrice, TSO = Trailing Stop.
                soPrice:
                  type: number
                  format: double
                  description: Activation price.
                callbackPoint:
                  type: number
                  format: double
                  description: Trailing step (only for orderType = TSO).
                activationPrice:
                  type: number
                  format: double
                  description: Activation price (only for orderType = TSO).
                refId:
                  type: string
                  description: Unique order ID.
              required:
                - accountId
                - subAccountId
                - side
                - symbol
                - price
                - volume
                - orderType
                - soPrice
                - callbackPoint
                - activationPrice
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  rc:
                    type: string
                    description: Result code, 1 = success.
                  data[].symbol:
                    type: string
                    description: Contract code.
                  data[].status:
                    type: string
                    description: Order status.
                  data[].orderNo:
                    type: integer
                    format: int64
                    description: Order number.
                  data[].pk_orderNo:
                    type: string
                    description: Order key (for cancel/modify).
components:
  schemas:
    DerivativeSide:
      type: string
      description: 'Chiều lệnh phái sinh: B = mua, S = bán.'
      enum:
        - B
        - S
    DerivativeConditionalOrderType:
      type: string
      description: >-
        Loại lệnh điều kiện phái sinh: SOL = giá thị trường lớn hơn hoặc bằng
        soPrice, SOU = giá thị trường nhỏ hơn hoặc bằng soPrice, TSO = Trailing
        Stop.
      enum:
        - SOL
        - SOU
        - TSO
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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