Skip to main content
GET
/
api
/
feeds
/
{feed}
/
fetchOrderBook
import pmxt

# API key optional — enables faster catalog-backed lookups
exchange = pmxt.Polymarket(
    pmxt_api_key="YOUR_PMXT_API_KEY",
)
result = exchange.feed_fetch_order_book(symbol="BTC-USD", limit=10)
{
  "success": true,
  "data": {
    "asks": [
      [
        123
      ]
    ],
    "bids": [
      [
        123
      ]
    ],
    "timestamp": 123,
    "datetime": "<string>",
    "symbol": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Required when calling the hosted API directly (curl, requests, fetch). SDK users pass credentials via constructor params instead.

Path Parameters

feed
enum<string>
required

The data feed provider.

Available options:
binance,
chainlink

Query Parameters

symbol
string
required

Trading pair

limit
integer

Depth limit

Response

200 - application/json

Successful response

success
boolean
Example:

true

data
object