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

# Khối lượng mua bán tối đa

> Lấy khối lượng mua/bán tối đa theo tài khoản, mã và giá.



## OpenAPI

````yaml /vi/openapi/ssi.2026-08-21.openapi.yaml get /api/v3/trading/maxBuySell
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/maxBuySell:
    get:
      tags:
        - trading
      summary: Khối lượng mua bán tối đa
      description: Lấy khối lượng mua/bán tối đa theo tài khoản, mã và giá.
      operationId: getMaxBuySell
      parameters:
        - name: accountNo
          in: query
          description: Tài khoản giao dịch cần kiểm tra khối lượng mua/bán tối đa.
          required: true
          schema:
            type: string
        - name: symbol
          in: query
          description: Mã chứng khoán cần kiểm tra khối lượng mua/bán tối đa.
          required: true
          schema:
            type: string
        - name: price
          in: query
          description: Giá cần kiểm tra khối lượng mua/bán tối đa.
          required: true
          schema:
            type: string
        - $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/MaxBuySellResponse'
              example:
                accountNo: Q123456
                maxBuyQty: 100
                marginRatio: 0%
                purchasingPower: 100000
                maxSellQty: 0
        '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:
    MaxBuySellResponse:
      description: Dữ liệu trả về.
      type: object
      properties:
        accountNo:
          description: Số tài khoản giao dịch.
          type: string
        maxBuyQty:
          description: Khối lượng mua tối đa.
          type: number
        marginRatio:
          description: Tỷ lệ ký quỹ.
          type: string
        maxSellQty:
          description: Khối lượng bán tối đa.
          type: number
        purchasingPower:
          description: Sức mua.
          type: number
    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.