Skip to main content

Join the Graylayer Discord

Request an API key in #api-key-request under the Community tab.
Platform key: kalshi · Upstream: https://api.elections.kalshi.com/trade-api/v2 Public endpoints (markets, events, series) work without platform credentials. Authenticated endpoints (orders, portfolio) require KALSHI_ACCESS_KEY and KALSHI_PRIVATE_KEY in .env. The proxy signs requests automatically using RSA-PSS.
Kalshi demo environment uses different credentials than production. If your key was created at demo.kalshi.co, set KALSHI_BASE_URL=https://demo-api.kalshi.co/trade-api/v2 in .env.

Exchange

Markets

Common query parameters for /markets

Events

Series

Historical data

Orders

Requires KALSHI_ACCESS_KEY and KALSHI_PRIVATE_KEY. Read-only—list and inspect orders.

Order groups

Portfolio

Requires KALSHI_ACCESS_KEY and KALSHI_PRIVATE_KEY.

RFQ / Communications

FCM

Structured targets and milestones

Search and misc

WebSocket

Real-time Kalshi data via WebSocket proxy. See Kalshi WebSockets.