Reference

Migration Guide

Already integrating with Polymarket or Kalshi directly? Here's how to switch to Heisenberg and get unified access, better analytics, and zero rate-limit headaches.

Why Migrate?

One endpoint, all platforms

Stop maintaining separate integrations for Polymarket, Kalshi, and social data.

No rate limit management

Heisenberg handles upstream rate limits. You never get throttled by source APIs.

Enriched data

Get computed metrics (H-Score, Wallet 360, Market 360) that don't exist in source APIs.

Sub-300ms latency

Faster than hitting source APIs directly, with always-fresh cached data.

From Polymarket API

Polymarket EndpointHeisenberg Equivalentagent_id
GET /marketsPolymarket Markets574
GET /tradesPolymarket Trades556
GET /prices/historyPolymarket Candlesticks568
GET /bookPolymarket Orderbook572
(not available)Wallet 360581
(not available)H-Score Leaderboard584
(not available)Price Jump Detection596
(not available)Market 360575
Before (Polymarket Direct)
GET https://clob.polymarket.com/markets
  ?closed=false
  &limit=10
Headers: ...
After (Heisenberg)
POST /api/v2/.../parameterized
{
  "agent_id": 574,
  "params": {"closed": "False"},
  "pagination": {"limit": 10}
}

From Kalshi API

Kalshi EndpointHeisenberg Equivalentagent_id
GET /marketsKalshi Markets565
GET /markets/tradesKalshi Trades573

Key Differences to Note

Single POST endpoint

Heisenberg uses one URL for everything. The agent_id in the body replaces different URL paths.

All params are strings

Unlike source APIs that accept mixed types, Heisenberg params are always string values: "1000" not 1000.

Unified pagination

Every endpoint uses the same limit/offset/has_more pattern. No per-endpoint cursor differences.

Bearer token auth

Single Authorization: Bearer header replaces per-platform auth schemes.