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

# Lịch sử giá khớp

> Lấy lịch sử giá khớp trong phiên của mã cổ phiếu.



## OpenAPI

````yaml /vi/openapi/tcbs.v1.openapi.yaml get /nyx/v1/intraday/{ticker}/his/paging
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:
  /nyx/v1/intraday/{ticker}/his/paging:
    get:
      tags:
        - market-data
      summary: Lịch sử giá khớp
      description: Lấy lịch sử giá khớp trong phiên của mã cổ phiếu.
      operationId: getNyxIntradayTickerHisPaging
      parameters:
        - name: ticker
          in: path
          required: true
          description: Mã cổ phiếu, ví dụ TCB.
          schema:
            type: string
        - name: page
          in: query
          required: false
          description: Số trang (bắt đầu từ 0).
          schema:
            type: number
            format: double
        - name: size
          in: query
          required: false
          description: Kích thước trang (max 100).
          schema:
            type: number
            format: double
        - name: headIndex
          in: query
          required: false
          description: Chỉ số đầu cho phân trang ngược (mặc định -1).
          schema:
            type: number
            format: double
      responses:
        '200':
          description: Phản hồi thành công
          content:
            application/json:
              schema:
                type: object
                properties:
                  page:
                    type: number
                    format: double
                    description: Trang hiện tại.
                  size:
                    type: number
                    format: double
                    description: Kích thước trang.
                  headIndex:
                    type: number
                    format: double
                    description: Chỉ số đầu.
                  numberOfItems:
                    type: number
                    format: double
                    description: Số bản ghi trả về.
                  total:
                    type: number
                    format: double
                    description: Tổng số lệnh khớp.
                  ticker:
                    type: string
                    description: Mã cổ phiếu.
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        p:
                          type: number
                          format: double
                          description: Giá khớp lệnh.
                        v:
                          type: number
                          format: double
                          description: Khối lượng.
                        cp:
                          type: number
                          format: double
                          description: Thay đổi giá (giá - giá tham chiếu).
                        a:
                          type: string
                          description: Hành động (Buy up/Sell down).
                        ba:
                          type: number
                          format: double
                          description: Tích lũy KL mua lên.
                        sa:
                          type: number
                          format: double
                          description: Tích lũy KL bán xuống.
                        hl:
                          type: boolean
                          description: Highlight nếu giá trị > 200M.
                        t:
                          type: string
                          description: Thời gian nhận lệnh từ sở.
              example:
                page: 0
                size: 20
                headIndex: 3974
                numberOfItems: 10
                total: 3975
                ticker: TCB
                data:
                  - p: 33850
                    v: 100
                    cp: -650
                    a: ''
                    ba: 6034800
                    sa: 10320100
                    hl: false
                    t: '14:45:00'
        '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.