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

# Get Trades

> API reference for GET /api/v1/trades



## OpenAPI

````yaml GET /api/v1/trades
openapi: 3.1.0
info:
  title: prediction-markets-api
  description: API for prediction markets
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://dev-prediction-markets-api.dflow.net
security:
  - api_key: []
tags:
  - name: Candlesticks
    description: Market and event candlesticks relay endpoints
  - name: Events
    description: Event management endpoints
  - name: Markets
    description: Market management endpoints
  - name: Trades
    description: Trade history endpoints
  - name: Series
    description: Series template endpoints
  - name: Tags
    description: Tag and category endpoints
  - name: Sports
    description: Sports filtering endpoints
  - name: Live Data
    description: Live data relay endpoints
  - name: Orderbook
    description: Orderbook endpoints
  - name: Search
    description: Full-text search endpoints
paths:
  /api/v1/trades:
    get:
      tags:
        - Trades
      summary: Get list of trades
      description: >-
        Returns a paginated list of all trades. Can be filtered by market ticker
        and

        timestamp range. Relays requests directly to Kalshi API.
      operationId: trades
      parameters:
        - name: limit
          in: query
          description: Maximum number of trades to return (1-1000, default 100)
          required: false
          schema:
            type: integer
            format: int32
            minimum: 0
        - name: cursor
          in: query
          description: Pagination cursor (trade ID) to start from
          required: false
          schema:
            type: string
        - name: ticker
          in: query
          description: Filter by market ticker
          required: false
          schema:
            type: string
        - name: minTs
          in: query
          description: Filter trades after this Unix timestamp
          required: false
          schema:
            type: integer
            format: int64
            minimum: 0
        - name: maxTs
          in: query
          description: Filter trades before this Unix timestamp
          required: false
          schema:
            type: integer
            format: int64
            minimum: 0
      responses:
        '200':
          description: List of trades
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MultiTradeResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    MultiTradeResponse:
      type: object
      required:
        - trades
      properties:
        cursor:
          type:
            - string
            - 'null'
        trades:
          type: array
          items:
            $ref: '#/components/schemas/SingleTradeResponse'
    ErrorResponse:
      type: object
      required:
        - msg
        - code
      properties:
        code:
          type: string
        msg:
          type: string
    SingleTradeResponse:
      type: object
      required:
        - tradeId
        - ticker
        - price
        - count
        - yesPrice
        - noPrice
        - yesPriceDollars
        - noPriceDollars
        - countFp
        - takerSide
        - createdTime
      properties:
        count:
          type: integer
          format: int32
          description: 'Deprecated: lossy integer count. Use count_fp instead.'
          deprecated: true
          minimum: 0
        countFp:
          type: string
          description: Fixed-point contract count (e.g. "10.50"). Up to 2 decimal places.
        createdTime:
          type: integer
          format: int64
          minimum: 0
        noPrice:
          type: integer
          format: int32
          description: 'Deprecated: lossy integer cents. Use no_price_dollars instead.'
          deprecated: true
          minimum: 0
        noPriceDollars:
          type: string
          description: >-
            Fixed-point dollar string for no price (e.g. "0.5800"). Up to 4
            decimal places.
        price:
          type: integer
          format: int32
          description: >-
            Deprecated: lossy integer cents. Use yes_price_dollars /
            no_price_dollars instead.
          deprecated: true
          minimum: 0
        takerSide:
          type: string
        ticker:
          type: string
        tradeId:
          type: string
        yesPrice:
          type: integer
          format: int32
          description: 'Deprecated: lossy integer cents. Use yes_price_dollars instead.'
          deprecated: true
          minimum: 0
        yesPriceDollars:
          type: string
          description: >-
            Fixed-point dollar string for yes price (e.g. "0.4200"). Up to 4
            decimal places.
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. Contact hello@dflow.net to obtain an API
        key.

````