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

# Fetch Order Book

> Returns the current order book for a symbol (where supported).



## OpenAPI

````yaml /api-reference/openapi.json get /api/feeds/{feed}/fetchOrderBook
openapi: 3.0.0
info:
  title: PMXT Hosted API
  description: >-
    One API for supported prediction markets. Hosted catalog search in under
    10ms, a unified schema for supported venues, and venue-native trading where
    venues expose writes.
  version: 2.54.0
servers:
  - url: https://api.pmxt.dev
    description: Hosted PMXT (production)
security: []
tags:
  - name: Hosted
    description: >-
      Requires a PMXT API key. These endpoints use the cross-venue catalog and
      have no local equivalent.
  - name: Local Only
    description: >-
      Executed locally by the SDK against the venue. Never proxied through PMXT
      servers.
  - name: Data Feeds
    description: >-
      Auxiliary price and oracle data feeds (Binance, Chainlink).
      CCXT-compatible method names and response shapes.
paths:
  /api/feeds/{feed}/fetchOrderBook:
    get:
      tags:
        - Data Feeds
      summary: Fetch Order Book
      description: Returns the current order book for a symbol (where supported).
      operationId: feedFetchOrderBook
      parameters:
        - in: path
          name: feed
          schema:
            type: string
            enum:
              - binance
              - chainlink
          required: true
          description: The data feed provider.
        - in: query
          name: symbol
          required: true
          schema:
            type: string
          description: Trading pair
        - in: query
          name: limit
          required: false
          schema:
            type: integer
          description: Depth limit
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      asks:
                        type: array
                        items:
                          type: array
                          items:
                            type: number
                      bids:
                        type: array
                        items:
                          type: array
                          items:
                            type: number
                      timestamp:
                        type: integer
                      datetime:
                        type: string
                      symbol:
                        type: string
      security:
        - bearerAuth: []
      x-codeSamples:
        - lang: python
          label: Python
          source: |-
            import requests

            resp = requests.get(
                "https://api.pmxt.dev/api/feeds/binance/fetchOrderBook",
                params={"symbol": "BTC/USDT", "limit": 10},
                headers={"Authorization": "Bearer YOUR_PMXT_API_KEY"},
            )
            book = resp.json()["data"]
            print(book["bids"][:3])
        - lang: javascript
          label: TypeScript
          source: >-
            const params = new URLSearchParams({ symbol: "BTC/USDT", limit: "10"
            });

            const resp = await
            fetch(`https://api.pmxt.dev/api/feeds/binance/fetchOrderBook?${params}`,
            {
              headers: { Authorization: "Bearer YOUR_PMXT_API_KEY" },
            });

            const { data: book } = await resp.json();

            console.log(book.bids.slice(0, 3));
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Required when calling the hosted API directly (curl, requests, fetch).
        SDK users pass credentials via constructor params instead.

````