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

# Recent trades

> Latest public trade feed for a symbol. Public endpoint, no authentication required.



## OpenAPI

````yaml GET /trades
openapi: 3.1.0
info:
  title: DojiFunded Trading API
  description: >-
    Public REST interface for algorithmic trading on DojiFunded. Place orders,
    manage positions, and pull account state programmatically.
  version: 1.0.0
  contact:
    email: business@dojifunded.com
servers:
  - url: https://engine.dojifunded.com/v1
    description: Production
security:
  - apiKey: []
    apiSecret: []
tags:
  - name: Accounts
    description: Account state, positions, history, risk, and analytics.
  - name: Orders
    description: Place, cancel, and close orders across all venues.
  - name: Market data
    description: Public price feeds and symbol catalog. No authentication required.
paths:
  /trades:
    get:
      tags:
        - Market data
      summary: Recent trades
      description: >-
        Latest public trade feed for a symbol. Public endpoint, no
        authentication required.
      operationId: getRecentTrades
      parameters:
        - $ref: '#/components/parameters/Symbol'
        - name: limit
          in: query
          description: Number of trades to return. Capped per endpoint config.
          schema:
            type: integer
      responses:
        '200':
          description: Recent public trades.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Trade'
        '404':
          $ref: '#/components/responses/NotFound'
      security: []
components:
  parameters:
    Symbol:
      name: symbol
      in: query
      required: true
      description: >-
        Tradable symbol. Variants like `BTCUSD`, `BTC/USD`, and `btc-usd` are
        resolved automatically.
      schema:
        type: string
        example: BTC-USD
  schemas:
    Trade:
      type: object
      properties:
        id:
          type: string
          description: Trade fill ID.
        symbol:
          type: string
        side:
          type: string
          enum:
            - BUY
            - SELL
        quantity:
          type: number
        price:
          type: number
          description: Fill price.
        timestamp:
          type: string
          format: date-time
  responses:
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: not_found
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key generated at Dashboard, Settings, Developer. Format:
        `doji_ak_...`
    apiSecret:
      type: apiKey
      in: header
      name: X-API-Secret
      description: 'API secret returned once at key creation. Format: `doji_sk_...`'

````