Skip to main content
Get a prediction market order book

Overview

This endpoint returns the live book of one outcome of a Polymarket or Kalshi market, best price first, with each level’s dollar notional and running total. The answer adds the best bid and ask, the implied probability, the spread in basis points of the $1 payout, and the dollars resting within 1, 5 and 10 cents of the best bid and ask. Ask for the YES side (default) or the NO side, up to 100 levels a side.

Example

Authorizations

X-API-KEY
string
header
required

A Darvas data API key: dvk_ and 43 characters.

Query Parameters

market_id
string
required

The market of the book: a Polymarket market id, condition id or slug, or a Kalshi market ticker.

Maximum string length: 241
Pattern: ^[A-Za-z0-9][A-Za-z0-9.-]{1,240}$
venue
enum<string>

polymarket or kalshi, when the id alone does not say which venue it belongs to.

Available options:
polymarket,
kalshi
Maximum string length: 16
outcome
enum<string>
default:yes

The book of the YES or the NO side (default yes).

Available options:
yes,
no
Maximum string length: 3
depth
integer<int32>
default:20

Price levels per side (1 to 100; default 20).

Required range: 1 <= x <= 100

Response

Get a prediction market order book: one page.

The answer of GET /prediction-markets/orderbook.

venue
any
required
market_id
any
required
outcome
enum<string>
required

The side of the book.

Available options:
yes,
no
Example:

"yes"

question
any
required
url
any
required
bids
object[]
required

Bids, best first.

Maximum array length: 100
asks
object[]
required

Asks, best first.

Maximum array length: 100
token_id
string | null

Polymarket token id of the side.

Maximum string length: 100
Pattern: ^[^\x00-\x08\x0b\x0c\x0e-\x1f]*$
Example:

"11166212965282826688"

book_time
string<date-time> | null

When the book was read.

Maximum string length: 40
Example:

"2026-11-30T09:00:00.000Z"

book_hash
string | null

Polymarket's hash of the book state.

Maximum string length: 80
Pattern: ^[^\x00-\x08\x0b\x0c\x0e-\x1f]*$
Example:

"4182098d13"

api_url
string<uri>

The venue's public JSON of the book.

Maximum string length: 500
Example:

"https://api.elections.kalshi.com/trade-api/v2/markets/KXFEDDECISION-26DEC-H25/orderbook"

best_bid
number<double> | null

Best bid, from 0 to 1.

Example:

0.93

best_ask
number<double> | null

Best ask, from 0 to 1.

Example:

0.94

probability_0_to_1
number<double> | null

Midpoint of the best bid and ask, from 0 to 1.

Example:

0.935

implied_prob_pct
number<double> | null

The midpoint, in percent.

Example:

93.5

spread_0_to_1
number<double> | null

Ask less bid, from 0 to 1.

Example:

0.01

spread_bps
number<double> | null

Ask less bid in basis points of the $1 payout.

Example:

100

bid_depth
object

USD near the best price of one side.

Example:
ask_depth
object

USD near the best price of one side.

Example: