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

# Get Recent Trades

> Query for recent public trades, optionally filtered by symbol.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/market/recent-trade
openapi: 3.1.0
info:
  title: ekiden-gateway
  description: >-
    API Gateway and WebSocket proxy based on Axum and Utoipa, handling auth,
    rate limiting, and connection buffering.
  license:
    name: ''
  version: 0.1.1
servers:
  - url: https://api.ekiden.fi/
    description: Production
  - url: https://api.staging.ekiden.fi/
    description: Staging
  - url: https://api.dev.ekiden.fi/
    description: Development
  - url: http://localhost:4020/
    description: Local
security: []
paths:
  /api/v1/market/recent-trade:
    get:
      tags:
        - Market
      summary: Get Recent Trades
      description: Query for recent public trades, optionally filtered by symbol.
      operationId: get_recent_trade
      parameters:
        - name: symbol
          in: query
          required: false
          schema:
            oneOf:
              - type: 'null'
              - $ref: '#/components/schemas/Symbol'
        - name: limit
          in: query
          required: false
          schema:
            type:
              - integer
              - 'null'
            format: int32
            minimum: 0
      responses:
        '200':
          description: Recent trades
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetRecentTradeResponse'
        '400':
          description: Bad Request
components:
  schemas:
    Symbol:
      type: string
      example: BTCUSDC
    GetRecentTradeResponse:
      type: object
      description: Response for recent public trades.
      required:
        - list
      properties:
        list:
          type: array
          items:
            $ref: '#/components/schemas/PublicTrade'
    PublicTrade:
      type: object
      description: A single trade entry from the public trade stream.
      required:
        - i
        - s
        - S
        - v
        - p
        - seq
        - T
      properties:
        S:
          $ref: '#/components/schemas/Side'
          description: Side of taker.
        T:
          type: integer
          format: int64
          description: The timestamp (ms) that the order is filled.
          example: '1672531200000'
          minimum: 0
        i:
          type: string
          description: Trade ID.
        p:
          type: string
          description: Trade price.
        s:
          $ref: '#/components/schemas/Symbol'
          description: Symbol name.
        seq:
          type: integer
          format: int64
          description: Cross sequence.
          minimum: 0
        v:
          type: string
          description: Trade size.
    Side:
      type: string
      description: 'Order side: buy or sell.'
      enum:
        - Sell
        - Buy

````