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

# Sửa lệnh điều kiện phái sinh

> Sửa lệnh điều kiện phái sinh.



## OpenAPI

````yaml /vi/openapi/tcbs.v1.openapi.yaml post /khronos/v2/order/condition/change
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/v2/order/condition/change:
    post:
      tags:
        - derivative-orders
      summary: Sửa lệnh điều kiện phái sinh
      description: Sửa lệnh điều kiện phái sinh.
      operationId: postKhronosV2OrderConditionChange
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                accountId:
                  type: string
                  description: Mã tài khoản lưu ký.
                pkOrderNo:
                  type: string
                  description: pk_orderNo từ API tra cứu sổ lệnh.
                refId:
                  type: string
                  description: Unique reference ID.
                soPrice:
                  type: number
                  format: double
                  description: Giá kích hoạt mới.
                type:
                  type: string
                  description: Loại (empty).
                cmd:
                  type: string
                  description: Web.Order.ChangeCondition.
              required:
                - accountId
                - pkOrderNo
                - refId
                - soPrice
      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
                    items:
                      type: object
                      properties:
                        showPrice:
                          type: string
                          description: Giá kích hoạt.
                        price:
                          type: string
                          description: Giá đặt.
                        volume:
                          type: string
                          description: Khối lượng.
                        pkOrderNo:
                          type: string
                          description: Số hiệu lệnh.
                        notes:
                          type: string
                          description: Loại lệnh điều kiện.
              example:
                cmd: Web.Order.ChangeConditionOrder
                rc: '1'
                data:
                  - showPrice: '1453.9'
                    price: '1362.2'
                    volume: '1'
                    pkOrderNo: '901943'
                    notes: Stop order
        '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.