go-kalshi

Unofficial Go client for Kalshi, generated from the API specs Kalshi publishes. The root package kalshi (github.com/psyb0t/go-kalshi) is an oapi-codegen REST client for the Trade API at https://external-api.kalshi.com/trade-api/v2 with a typed ...WithResponse method per endpoint (markets, events, series, orderbooks, trades, balance, positions, fills, orders, RFQs and quotes). kalshiws (/ws) streams market data (orderbook, ticker, trade, fill, lifecycle, RFQ and index pushes) through a typed Handler, kalshiperpsws (/perpsws) does the same for the perps channels, and kalshiauth (/auth) signs REST requests and WebSocket handshakes with an RSA-PSS or Ed25519 API key. Use when Go code needs to read Kalshi markets, manage a Kalshi account or stream Kalshi data, or already imports go-kalshi.

Install

openclaw skills install @psyb0t/go-kalshi