# Get orderbook

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/orderbook/{pair}:
    get:
      summary: Get orderbook
      deprecated: false
      description: >-
        Returns a snapshot of the order book (bids and asks) for the specified
        trading pair.
      operationId: getOrderbook
      tags:
        - API/Market data
        - Orderbook
      parameters:
        - name: pair
          in: path
          description: Trading pair identifier
          required: true
          example: BTC-EUR
          schema:
            type: string
        - name: depth
          in: query
          description: Number of bid/ask levels to return. Min 1, max 100. Defaults to 10.
          required: false
          example: 10
          schema:
            maximum: 100
            minimum: 1
            type: integer
            format: int32
            default: 10
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  pair:
                    type: string
                    description: Trading pair identifier
                    examples:
                      - BTC-EUR
                  timestamp:
                    type: string
                    description: ISO 8601 timestamp of the snapshot (UTC)
                    examples:
                      - '2025-05-08T16:17:01.863Z'
                  bids:
                    type: array
                    description: Bid levels sorted by price descending
                    items:
                      type: object
                      properties:
                        price:
                          type: string
                          description: Price level
                          examples:
                            - '49990.0'
                        quantity:
                          type: string
                          description: Quantity available at this price level
                          examples:
                            - '0.051'
                        totalQuantity:
                          type: string
                          description: >-
                            Cumulative sum of quantities available from the best
                            price down to that price level
                          examples:
                            - '0.072'
                      description: Ask levels sorted by price ascending
                      x-apidog-orders:
                        - price
                        - quantity
                        - totalQuantity
                  asks:
                    type: array
                    description: Ask levels sorted by price ascending
                    items:
                      type: object
                      properties:
                        price:
                          type: string
                          description: Price level
                          examples:
                            - '49990.0'
                        quantity:
                          type: string
                          description: Quantity available at this price level
                          examples:
                            - '0.051'
                        totalQuantity:
                          type: string
                          description: >-
                            Cumulative sum of quantities available from the best
                            price down to that price level
                          examples:
                            - '0.072'
                      description: Ask levels sorted by price ascending
                      x-apidog-orders:
                        - price
                        - quantity
                        - totalQuantity
                x-apidog-orders:
                  - pair
                  - timestamp
                  - bids
                  - asks
          headers: {}
          x-apidog-name: ''
        '400':
          description: Invalid depth parameter
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                          description: Machine-readable error code
                          examples:
                            - VALIDATION_ERROR
                        status:
                          type: integer
                          description: HTTP status code
                          format: int32
                          examples:
                            - 400
                        field:
                          type: string
                          description: >-
                            Field that caused the error; null for non-validation
                            errors
                          examples:
                            - limit
                          nullable: true
                        title:
                          type: string
                          description: Human-readable error message
                          examples:
                            - Invalid value for parameter 'limit'
                      x-apidog-orders:
                        - code
                        - status
                        - field
                        - title
                x-apidog-orders:
                  - errors
          headers: {}
          x-apidog-name: ''
        '404':
          description: Pair not found or no orderbook data available
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                          description: Machine-readable error code
                          examples:
                            - VALIDATION_ERROR
                        status:
                          type: integer
                          description: HTTP status code
                          format: int32
                          examples:
                            - 400
                        field:
                          type: string
                          description: >-
                            Field that caused the error; null for non-validation
                            errors
                          examples:
                            - limit
                          nullable: true
                        title:
                          type: string
                          description: Human-readable error message
                          examples:
                            - Invalid value for parameter 'limit'
                      x-apidog-orders:
                        - code
                        - status
                        - field
                        - title
                x-apidog-orders:
                  - errors
          headers: {}
          x-apidog-name: ''
        '500':
          description: Unexpected server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                          description: Machine-readable error code
                          examples:
                            - VALIDATION_ERROR
                        status:
                          type: integer
                          description: HTTP status code
                          format: int32
                          examples:
                            - 400
                        field:
                          type: string
                          description: >-
                            Field that caused the error; null for non-validation
                            errors
                          examples:
                            - limit
                          nullable: true
                        title:
                          type: string
                          description: Human-readable error message
                          examples:
                            - Invalid value for parameter 'limit'
                      x-apidog-orders:
                        - code
                        - status
                        - field
                        - title
                x-apidog-orders:
                  - errors
          headers: {}
          x-apidog-name: ''
      security:
        - ApiKeyAuth: []
          x-apidog:
            schemeGroups:
              - id: 3bCYfCefwKr7hUO3MNsmf
                schemeIds:
                  - ApiKeyAuth
            required: true
            use:
              id: 3bCYfCefwKr7hUO3MNsmf
            scopes:
              3bCYfCefwKr7hUO3MNsmf:
                ApiKeyAuth: []
      x-apidog-folder: API/Market data
      x-apidog-status: released
      x-run-in-apidog: https://app.eu.apidog.com/web/project/363759/apis/api-4205406-run
components:
  schemas: {}
  securitySchemes:
    ApiKeyAuth:
      type: apikey
      description: API key for authentication. Issued by Bitpanda.
      name: x-api-key
      in: header
servers:
  - url: https://api.fusion.bitpanda.com
    description: Production
security: []

```