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

# Get Bybit Depth

> Bybit linear (USDT-perp) L2 (top-50) order-book snapshots.

Used as the Binance USD-M futures substitute because Binance futures
is geo-blocked from most DC IPs (see Phase 12 memory). Collected
via REST polling at ~200 ms cadence.



## OpenAPI

````yaml get /v1/bybit/depth
openapi: 3.1.0
info:
  title: PolyQuantLab API
  version: 0.1.0
  description: >-
    Sub-second Polymarket orderbook data, walk-the-book backtests, paper
    trading, and the live arb audit. Same endpoints the PolyQuantLab dashboard
    uses internally — Bearer-token auth, JSON-over-HTTPS, predictable
    pagination.
  contact:
    email: contact@polyquantlab.com
    url: https://polyquantlab.com/contact
  license:
    name: Proprietary
servers:
  - url: https://api.polyquantlab.com
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /v1/bybit/depth:
    get:
      summary: Get Bybit Depth
      description: |-
        Bybit linear (USDT-perp) L2 (top-50) order-book snapshots.

        Used as the Binance USD-M futures substitute because Binance futures
        is geo-blocked from most DC IPs (see Phase 12 memory). Collected
        via REST polling at ~200 ms cadence.
      operationId: get_bybit_depth_v1_bybit_depth_get
      parameters:
        - name: ticker
          in: query
          required: true
          schema:
            type: string
            examples:
              - BTC
              - ETH
              - SOL
            title: Ticker
        - name: start
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            title: Start
        - name: end
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            title: End
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 10000
            default: 200
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Offset
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetBybitDepthVBybitDepthGetResponse'
              example:
                ticker: BTC
                total: 86400
                limit: 100
                offset: 0
                snapshots:
                  - timestamp: '2026-06-06T03:55:00.100+00:00'
                    update_id: 78421042
                    bids:
                      - - 109519.5
                        - 0.842
                    asks:
                      - - 109520
                        - 0.612
                    best_bid: 109519.5
                    best_ask: 109520
                    n_bids: 25
                    n_asks: 25
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GetBybitDepthVBybitDepthGetResponse:
      type: object
      properties:
        ticker:
          type: string
          enum:
            - BTC
            - ETH
            - SOL
        total:
          type: integer
          format: int64
        limit:
          type: integer
          format: int64
        offset:
          type: integer
          format: int64
        snapshots:
          type: array
          items:
            type: object
            properties:
              timestamp:
                type: string
                format: date-time
              update_id:
                type: integer
                format: int64
              bids:
                type: array
                items:
                  type: array
                  items:
                    type: number
                    format: double
              asks:
                type: array
                items:
                  type: array
                  items:
                    type: number
                    format: double
              best_bid:
                type: number
                format: double
                description: Highest bid price on this snapshot's book.
              best_ask:
                type: number
                format: double
                description: Lowest ask price on this snapshot's book.
              n_bids:
                type: integer
                format: int64
                description: Number of bid levels in this snapshot.
              n_asks:
                type: integer
                format: int64
                description: Number of ask levels in this snapshot.
            required:
              - timestamp
              - update_id
              - bids
              - asks
              - best_bid
              - best_ask
              - n_bids
              - n_asks
      required:
        - ticker
        - total
        - limit
        - offset
        - snapshots
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````