> ## Documentation Index
> Fetch the complete documentation index at: https://docs.raydium.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Liệt kê nhật ký sự kiện on-chain cho một hoặc nhiều limit-order PDA

> Trả về nhật ký sự kiện (`open`, `increase`, `decrease`, `settle`, `close`) cho một hoặc nhiều limit-order PDA. Hữu ích để hiển thị timeline theo từng lệnh. Phân trang theo cursor thông qua `nextPageId`.




## OpenAPI

````yaml /vi/api-reference/openapi/temp-api-v1.yaml get /limit-order/history/event/list-by-pda
openapi: 3.0.3
info:
  title: Temp API
  description: >
    Nơi tạm chứa các endpoint ngắn hạn chưa có vị trí cố định trong Raydium API
    chính.

    Các endpoint trong dịch vụ này có thể thay đổi, bị deprecated hoặc di chuyển
    mà không báo trước.


    **Cảnh báo về độ ổn định:** Dịch vụ này ưu tiên phát triển nhanh và không
    đảm bảo tính ổn định của API.

    Chỉ sử dụng cho các luồng không quan trọng, công cụ nội bộ hoặc các tính
    năng đang trong quá trình phát triển.
  version: 1.0.0
  contact:
    name: Raydium
    url: https://raydium.io
servers:
  - url: https://temp-api-v1.raydium.io
    description: Mainnet
  - url: https://temp-api-v1-devnet.raydium.io
    description: Devnet
security: []
tags:
  - name: Temporary
    description: Endpoint tạm thời (không ổn định)
paths:
  /limit-order/history/event/list-by-pda:
    get:
      tags:
        - Temporary
      summary: Liệt kê nhật ký sự kiện on-chain cho một hoặc nhiều limit-order PDA
      description: >
        Trả về nhật ký sự kiện (`open`, `increase`, `decrease`, `settle`,
        `close`) cho một hoặc nhiều limit-order PDA. Hữu ích để hiển thị
        timeline theo từng lệnh. Phân trang theo cursor thông qua `nextPageId`.
      operationId: listLimitOrderEventsByPda
      parameters:
        - name: pda
          in: query
          required: true
          description: >
            Một hoặc nhiều khóa công khai của limit-order PDA, phân cách bằng
            dấu phẩy. Mỗi giá trị phải là một pubkey base58 hợp lệ.
          schema:
            type: string
        - name: nextPageId
          in: query
          required: false
          description: >-
            Con trỏ phân trang không rõ ràng được trả về từ trang trước (TTL
            ~1h).
          schema:
            type: string
        - name: size
          in: query
          required: false
          description: Kích thước trang (1–100, mặc định 20).
          schema:
            type: integer
            default: 20
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitOrderEventByPdaResponse'
        '400':
          description: Yêu cầu không hợp lệ
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Lỗi máy chủ
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    LimitOrderEventByPdaResponse:
      type: object
      description: Dữ liệu phản hồi cho `/limit-order/history/event/list-by-pda`.
      properties:
        id:
          type: string
        success:
          type: boolean
          example: true
        data:
          type: object
          properties:
            rows:
              type: array
              items:
                $ref: '#/components/schemas/LimitOrderEventItem'
            nextPageId:
              type: string
              nullable: true
              description: >-
                Con trỏ mờ cho trang tiếp theo; vắng mặt khi đây là trang cuối
                cùng.
          required:
            - rows
      required:
        - success
        - data
    ErrorResponse:
      type: object
      properties:
        id:
          type: string
        success:
          type: boolean
          example: false
        msg:
          type: string
          description: Thông báo lỗi
      required:
        - success
        - msg
    LimitOrderEventItem:
      type: object
      description: >-
        Một sự kiện thay đổi trạng thái on-chain được ghi nhận trên một
        limit-order PDA.
      properties:
        pda:
          type: string
        txid:
          type: string
        slot:
          type: integer
        blockTime:
          type: integer
        poolId:
          type: string
        mintA:
          type: string
        mintB:
          type: string
        zeroForOne:
          type: boolean
        tick:
          type: integer
        price:
          type: number
        autoRunner:
          type: boolean
          description: >-
            True khi sự kiện được thực hiện bởi keeper `limit_order_admin`;
            false khi được ký bởi chủ sở hữu.
        type:
          type: string
          enum:
            - open
            - increase
            - decrease
            - settle
            - close
        inputAmountChangeUi:
          type: number
          description: >-
            Thay đổi ròng đối với số dư đầu vào của lệnh, theo đơn vị người dùng
            (có dấu).
        inputAmountValuePreUi:
          type: number
        inputAmountValuePostUi:
          type: number
        outputAmountChangeUi:
          type: number
          description: >-
            Thay đổi ròng đối với tổng đầu ra tích lũy của lệnh, theo đơn vị
            người dùng (có dấu).
        outputAmountValuePreUi:
          type: number
        outputAmountValuePostUi:
          type: number
      required:
        - pda
        - txid
        - slot
        - blockTime
        - poolId
        - mintA
        - mintB
        - zeroForOne
        - tick
        - price
        - autoRunner
        - type
        - inputAmountChangeUi
        - inputAmountValuePreUi
        - inputAmountValuePostUi
        - outputAmountChangeUi
        - outputAmountValuePreUi
        - outputAmountValuePostUi

````