> ## 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.

# Orderbook

> Aggregated order book. Default depth is 24 levels; the maximum is defined in engine config. Public endpoint, no authentication required.



## OpenAPI

````yaml GET /orderbook
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:
  /orderbook:
    get:
      tags:
        - Market data
      summary: Orderbook
      description: >-
        Aggregated order book. Default depth is 24 levels; the maximum is
        defined in engine config. Public endpoint, no authentication required.
      operationId: getOrderbook
      parameters:
        - $ref: '#/components/parameters/Symbol'
        - name: depth
          in: query
          description: 'Number of price levels to return per side. Default: `24`.'
          schema:
            type: integer
            default: 24
      responses:
        '200':
          description: Aggregated order book.
          content:
            application/json:
              schema:
                type: object
                properties:
                  bids:
                    type: array
                    items:
                      type: array
                      items:
                        type: number
                  asks:
                    type: array
                    items:
                      type: array
                      items:
                        type: number
        '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
  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_...`'

````