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

# 查询市场成交记录

> 查询市场成交记录

查询市场成交记录。

> [!NOTE]
>
> 该接口为公开接口，不需要认证。


## OpenAPI

````yaml openapi/event-markets.yaml GET /api/v4/prediction/markets/{market_id}/trades
openapi: 3.0.3
info:
  title: DexBuilder Prediction Market API
  version: 1.0.0
  description: DexBuilder 事件市场 REST API
servers:
  - url: https://api.dexbuilder.com
security: []
paths:
  /api/v4/prediction/markets/{market_id}/trades:
    get:
      summary: 查询市场成交记录
      description: 查询市场成交记录
      operationId: query_market_trades
      parameters:
        - name: market_id
          in: path
          required: true
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: integer
        - name: cursor
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: 请求成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TradesPage'
        '400':
          description: 请求参数错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: 服务暂时不可用
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    TradesPage:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/Trade'
        next_cursor:
          type: string
          nullable: true
          description: 下一页游标；为 null 时表示没有更多结果。
      description: 市场成交分页响应。
    Error:
      type: object
      description: 错误响应。
      properties:
        label:
          type: string
          example: INVALID_ARGUMENT
        message:
          type: string
          example: invalid request
    Trade:
      type: object
      properties:
        trade_id:
          type: string
        market_id:
          type: string
        condition_id:
          type: string
        token_id:
          type: string
        side:
          type: string
        price:
          type: string
        size:
          type: string
        timestamp:
          type: integer
          description: 成交时间，Unix 毫秒。

````

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