Now in Private Beta

The unified prediction market API.

Aggregated orderbooks, real-time streaming, and instant alerts across Polymarket, Kalshi, and more.

$ bun add @cashmere/sdk

Aggregating data from

PolymarketKalshiOpinionForecastExOvertimePredictMyriad

and more

Integrate once. Query everything.

One SDK. Every prediction market. No per-exchange glue code, no version chasing, no maintenance.

markets.ts
import { CashmereClient } from "@cashmere/sdk"
const cashmere = new CashmereClient({
apiKey: "vk_live_..."
})
// Every market, every platform
const { data } = await cashmere.getMarkets({
sort: "volume",
limit: 10,
})

Every market. In real time.

Live orderbooks, streaming prices, and programmable alerts from every prediction market — through a single connection.

Live event stream

Every price tick, new listing, and fill — the instant it happens. WebSocket and SSE.

ws://api.cashmerelabs.xyz/v1/ws
CONNECTED
price:changedBTC > $150k0.63 → 0.64
orderbook:updatedFed rate > 4%spread 0.02
market:newUK election 2029listed
price:changedGPT-5 release0.56 → 0.58
orderbook:updatedBTC > $150kdepth +1.2k
price:changedLakers NBA Finals0.44 → 0.46
alert:triggeredBTC > $150kthreshold 0.60
price:changedUS recession 20260.18 → 0.17
orderbook:updatedFed cut Decspread 0.01
price:changedTrump VP 20280.22 → 0.24

Aggregated orderbooks

Cross-exchange depth in a single book. Best bid, best ask — the full picture.

BTC > $150k
LIVE
TotalSizePrice
4,5204200.67
4,1008900.66
3,2101,3400.65
1,8701,8700.64
Spread$0.01(1.6%)
2,2402,2400.63
3,8001,5600.62
4,7809800.61
5,4206400.60

Programmable alerts

Set conditions on any market. Webhooks fire the moment they trigger — price thresholds, volume spikes, resolution events.

View docs
POST /v1/alerts201 Created
{
"marketId": "btc-150k",
"condition": {
"type": "price_above",
"threshold": 0.65
},
"webhook": "https://app.co/hook"
}

Predictable pricing.

Start building for free. No credit card required.

Free

$0forever

Everything you need to start building.

  • 1 req/sec
  • All platforms
  • REST + WebSocket
  • Community support
Start free
Popular

Pro

$49/mo

For teams shipping to production.

  • 100 req/sec
  • Aggregated orderbooks
  • Unlimited streaming
  • Alerts + webhooks
  • 10 WS connections
  • Priority support
Start free trial

Enterprise

Custom

For funds and institutions.

  • Unlimited everything
  • Dedicated infrastructure
  • Custom SLA
  • Portfolio aggregation
  • Slack support
Talk to us

Start building today.

One API key gets you every prediction market. Free forever to start.