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

# Get trades

> Public trades of a market, newest first, described from the taker's side. Pass `cursor` back for the next (older) page. Accounts are never published.



## OpenAPI

````yaml api-reference/openapi.json GET /markets/{ticker}/trades
openapi: 3.1.0
info:
  title: updown Trade API
  version: 1.0.0
  description: >-
    Public REST API. Market data needs no key; `/account` (and order entry, when
    it ships) takes an API key. Prices are dollar strings on the 1¢ grid, counts
    are contract strings, times are epoch ms. Generated from packages/protocol —
    do not edit by hand.
servers:
  - url: https://api.updown.fast/trade-api/v1
    description: production
security: []
paths:
  /markets/{ticker}/trades:
    get:
      summary: Get trades
      description: >-
        Public trades of a market, newest first, described from the taker's
        side. Pass `cursor` back for the next (older) page. Accounts are never
        published.
      operationId: getTrades
      parameters:
        - name: ticker
          in: path
          required: true
          description: Market ticker
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            default: 100
            type: integer
            minimum: 1
            maximum: 500
        - name: cursor
          in: query
          required: false
          schema:
            type: string
            pattern: ^\d+$
      responses:
        '200':
          description: Trades.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TradesResponse'
        '400':
          description: Invalid request (code BAD_REQUEST).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: MARKET_NOT_FOUND
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited (code RATE_LIMITED); wait `Retry-After` seconds.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: The book could not be read (code EXCHANGE_UNAVAILABLE); retry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security: []
components:
  schemas:
    TradesResponse:
      type: object
      properties:
        trades:
          type: array
          items:
            type: object
            properties:
              trade_id:
                type: string
              market_ticker:
                type: string
                pattern: ^[a-z0-9][a-z0-9-]{0,63}-\d{6}-\d{4}-\d{4}(d\d{1,2})?$
                description: >-
                  Market ticker (one window of a series), e.g.
                  "btc-15m-261002-1400-1415". Opaque.
              taker_outcome:
                type: string
                enum:
                  - up
                  - down
              taker_action:
                type: string
                enum:
                  - buy
                  - sell
              price:
                type: string
                pattern: ^0\.(0[1-9]|[1-9]\d)$
                description: 'Contract price in dollars, "0.01"–"0.99" (v1: whole cents).'
              up_price:
                type: string
                pattern: ^0\.(0[1-9]|[1-9]\d)$
                description: 'Contract price in dollars, "0.01"–"0.99" (v1: whole cents).'
              down_price:
                type: string
                pattern: ^0\.(0[1-9]|[1-9]\d)$
                description: 'Contract price in dollars, "0.01"–"0.99" (v1: whole cents).'
              count:
                type: string
                pattern: ^(0|[1-9]\d*)$
                description: 'Contracts, as a string (v1: whole contracts).'
              ts_ms:
                type: integer
                minimum: 0
                maximum: 9007199254740991
                description: Epoch milliseconds (UTC).
            required:
              - trade_id
              - market_ticker
              - taker_outcome
              - taker_action
              - price
              - up_price
              - down_price
              - count
              - ts_ms
            additionalProperties: false
        cursor:
          type: string
      required:
        - trades
      additionalProperties: false
    Error:
      type: object
      properties:
        code:
          type: string
          enum:
            - BAD_REQUEST
            - NOT_FOUND
            - SERIES_NOT_FOUND
            - MARKET_NOT_FOUND
            - METHOD_NOT_ALLOWED
            - RATE_LIMITED
            - UNAUTHORIZED
            - INTERNAL_ERROR
            - EXCHANGE_UNAVAILABLE
        message:
          type: string
        details:
          type: string
      required:
        - code
        - message
      additionalProperties: false

````

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