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

# List public trades

> Returns recent public fills for one market, newest first.



## OpenAPI

````yaml /openapi.yaml get /markets/{symbol}/trades
openapi: 3.1.0
info:
  title: PaperDrill REST API
  version: 1.0.0
  description: >
    Trade PaperDrill credit markets and read live market data.


    Prices, quantities, balances, and other decimal values are encoded as
    strings so clients do not lose precision.
servers:
  - url: https://api.paperdrill.dev/v1
    description: Production
security: []
tags:
  - name: Market data
    description: Public markets, tickers, candles, trades, and order-book snapshots.
  - name: Trading
    description: Create, inspect, and cancel orders with a scoped API key.
  - name: Account
    description: Read balances, portfolio performance, and private trade history.
paths:
  /markets/{symbol}/trades:
    get:
      tags:
        - Market data
      summary: List public trades
      description: Returns recent public fills for one market, newest first.
      operationId: listPublicTrades
      parameters:
        - $ref: '#/components/parameters/Symbol'
        - name: limit
          in: query
          description: Maximum number of trades to return.
          schema:
            type: integer
            minimum: 1
            maximum: 500
            default: 50
      responses:
        '200':
          description: Trades returned successfully.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PublicTrade'
        '404':
          $ref: '#/components/responses/MarketNotFound'
        default:
          $ref: '#/components/responses/RequestError'
      security: []
components:
  parameters:
    Symbol:
      name: symbol
      in: path
      required: true
      description: Market symbol in underscore form.
      schema:
        type: string
      example: SOL_USD
  schemas:
    PublicTrade:
      type: object
      required:
        - id
        - symbol
        - price
        - qty
        - buyOrderId
        - sellOrderId
        - buyerId
        - sellerId
        - isBuyerMaker
        - createdAt
      properties:
        id:
          type: string
        symbol:
          type: string
        price:
          $ref: '#/components/schemas/DecimalString'
        qty:
          $ref: '#/components/schemas/DecimalString'
        buyOrderId:
          type: string
        sellOrderId:
          type: string
        buyerId:
          type: string
        sellerId:
          type: string
        isBuyerMaker:
          type: boolean
        createdAt:
          type: integer
          format: int64
          description: Unix milliseconds.
    DecimalString:
      type: string
      pattern: ^\d+(\.\d+)?$
      description: A non-negative decimal encoded as a string.
      example: '125.50'
    ApiError:
      type: object
      required:
        - error
        - requestId
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            details:
              type: array
              items:
                $ref: '#/components/schemas/ApiErrorDetail'
        requestId:
          type: string
          format: uuid
      example:
        error:
          code: VALIDATION_ERROR
          message: Request validation failed
          details:
            - field: qty
              message: invalid decimal format
        requestId: f4c0baf4-b8d2-4c9a-a17b-c8656c4a7b0e
    ApiErrorDetail:
      type: object
      required:
        - message
      properties:
        field:
          type: string
        message:
          type: string
  responses:
    MarketNotFound:
      description: The market does not exist.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    RequestError:
      description: The request failed. See Errors and rate limits for recovery guidance.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'

````

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