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

# Danh sách lệnh điều kiện

> Lấy danh sách các lệnh điều kiện đã tạo theo bộ lọc.



## OpenAPI

````yaml /vi/openapi/ssi.2026-08-21.openapi.yaml get /api/v3/trading/fco/list
openapi: 3.1.2
info:
  title: SSI FastConnect Open API
  version: 3.0.0
servers:
  - url: https://api.ssi.com.vn
    description: Production
security:
  - SsiBearerAuth: []
tags:
  - name: authentication
    description: Xác thực và quản lý token.
    x-group: Xác thực
  - name: account
    description: Thông tin tài khoản giao dịch.
    x-group: Tài khoản
  - name: market-data
    description: Dữ liệu thị trường.
    x-group: Dữ liệu thị trường
  - name: trading
    description: Giao dịch và quản lý lệnh.
    x-group: Giao dịch
  - name: conditional-orders
    description: Lệnh điều kiện.
    x-group: Lệnh điều kiện
paths:
  /api/v3/trading/fco/list:
    get:
      tags:
        - conditional-orders
      summary: Danh sách lệnh điều kiện
      description: Lấy danh sách các lệnh điều kiện đã tạo theo bộ lọc.
      operationId: listConditionalOrders
      parameters:
        - name: fcoId
          in: query
          description: ID của lệnh điều kiện cần truy vấn.
          required: false
          schema:
            type: string
        - name: accountNo
          in: query
          description: Tài khoản đặt lệnh.
          required: true
          schema:
            type: string
        - name: type
          in: query
          description: Loại lệnh điều kiện cần lọc.
          required: false
          schema:
            type: string
        - name: processStatus
          in: query
          description: >-
            Trạng thái lệnh điều kiện cần lọc. Hỗ trợ lọc nhiều trạng thái cùng
            lúc, phân cách bằng dấu phẩy.
          required: false
          schema:
            type: string
        - name: symbol
          in: query
          description: Mã chứng khoán hoặc mã hợp đồng phái sinh cần lọc.
          required: false
          schema:
            type: string
        - name: side
          in: query
          description: Chiều mua hoặc bán của lệnh.
          required: false
          schema:
            type: string
        - name: from
          in: query
          description: Ngày bắt đầu lọc, định dạng `YYYY/MM/DD`.
          required: false
          schema:
            type: string
        - name: to
          in: query
          description: Ngày kết thúc lọc, định dạng `YYYY/MM/DD`.
          required: false
          schema:
            type: string
        - name: pageIndex
          in: query
          description: Chỉ số trang khi phân trang kết quả, bắt đầu từ 1. Mặc định là 1.
          required: false
          schema:
            type: integer
        - name: pageSize
          in: query
          description: Số lượng bản ghi trên mỗi trang. Mặc định là 10.
          required: false
          schema:
            type: integer
        - $ref: '#/components/parameters/ContentType'
        - $ref: '#/components/parameters/UserAgent'
        - $ref: '#/components/parameters/AcceptLanguage'
      responses:
        '200':
          description: Thành công.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FcoListResponse'
              example:
                data:
                  - fcoId: c6b7362b-137f-46d5-9049-5785726d8690
                    username: Q12345
                    accountNo: Q123456
                    quantity: 100
                    price: '19600'
                    priceSlip: 0
                    symbol: SSI
                    orderType: null
                    matchedQuantity: 0
                    isPlaceOrder: false
                    status: WAIT
                    detail: ''
                    from: 2026/07/01 13:00:22
                    to: 2026/09/18 13:59:00
                    type: stop_limit
                    fco_params:
                      stopPrice: 19700
                      side: S
                      activePrice: 0
                      trailingAmount: 0
                      tpActivePrice: 0
                      slActivePrice: 0
                      tpPrice: null
                      slPrice: null
                      tpSlip: 0
                      slSlip: 0
                      price_operator: 0
                  - fcoId: c6b7362b-137f-46d5-9049-5785726d8690
                    username: Q12345
                    accountNo: Q123456
                    quantity: 100
                    price: '19600'
                    priceSlip: 0
                    symbol: SSI
                    orderType: null
                    matchedQuantity: 0
                    isPlaceOrder: false
                    status: TER
                    detail: ''
                    from: 2026/07/01 12:59:08
                    to: 2026/09/18 13:59:00
                    type: stop_limit
                    fco_params:
                      stopPrice: 19700
                      side: S
                      activePrice: 0
                      trailingAmount: 0
                      tpActivePrice: 0
                      slActivePrice: 0
                      tpPrice: null
                      slPrice: null
                      tpSlip: 0
                      slSlip: 0
                      price_operator: 4
                pageSize: 10
                pageIndex: 1
                itemsCount: 2
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - SsiBearerAuth: []
components:
  parameters:
    ContentType:
      name: Content-Type
      in: header
      required: true
      description: Định dạng nội dung request body. Chủ yếu là application/json.
      schema:
        type: string
        default: application/json
    UserAgent:
      name: User-Agent
      in: header
      required: false
      description: Thông tin client gửi request.
      schema:
        type: string
    AcceptLanguage:
      name: Accept-Language
      in: header
      required: false
      description: >-
        Ngôn ngữ phản hồi mong muốn. Nếu không có header này, hệ thống sẽ mặc
        định là en
      schema:
        type: string
        default: en
  schemas:
    FcoListResponse:
      type: object
      properties:
        pageIndex:
          description: Chỉ số trang.
          type: integer
        pageSize:
          description: Số lượng bản ghi trên mỗi trang.
          type: integer
        itemsCount:
          description: Tổng số bản ghi.
          type: integer
        pagesCount:
          description: Tổng số trang.
          type: string
        data:
          description: Danh sách lệnh điều kiện.
          type: array
          items:
            type: object
            properties:
              fcoId:
                description: ID của lệnh điều kiện.
                type: string
              username:
                description: Tên người dùng tại SSI.
                type: string
              accountNo:
                description: Số tài khoản giao dịch.
                type: string
              quantity:
                description: Khối lượng.
                type: number
              price:
                description: Giá đặt hoặc giá thực hiện.
                type: string
              priceSlip:
                description: Khoảng trượt giá.
                type: number
              symbol:
                description: Mã chứng khoán hoặc mã hợp đồng phái sinh.
                type: string
              type:
                description: Loại lệnh điều kiện.
                type: string
              orderType:
                description: Loại lệnh giao dịch.
                type:
                  - string
                  - 'null'
              from:
                description: Thời điểm bắt đầu hiệu lực hoặc khoảng thời gian lọc.
                type: string
              to:
                description: Thời điểm kết thúc hiệu lực hoặc khoảng thời gian lọc.
                type: string
              matchedQuantity:
                description: Khối lượng đã khớp.
                type: number
              isPlaceOrder:
                description: Cho biết lệnh thực đã được phát sinh hay chưa.
                type: boolean
              status:
                description: Trạng thái xử lý.
                type: string
              detail:
                description: Chi tiết kết quả hoặc lỗi.
                type: string
              fco_params:
                description: Các tham số của lệnh điều kiện.
                type: object
                additionalProperties: true
    ErrorResponse:
      type: object
      properties:
        code:
          description: Mã kết quả hoặc mã xác thực giao dịch.
          type: string
        msg:
          description: Thông báo kết quả xử lý.
          type: string
  responses:
    BadRequest:
      description: Yêu cầu không hợp lệ.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Chưa được xác thực hoặc token không hợp lệ.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalError:
      description: Lỗi nội bộ máy chủ.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    SsiBearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Access token lấy từ endpoint /api/v3/auth/token hoặc
        /api/v3/auth/refresh.

````

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