KalshiClient has a method for every operation in Kalshi Predictions OpenAPI
3.31.0: 117 operations across markets, events, series, portfolio, orders, order
groups, RFQs and quotes, block trades, subaccounts, API keys, account limits,
live data, milestones, multivariate collections, structured targets,
incentives, historical data, search, and FCM. operations.md
lists them all.
The generated route tests call each operation and check its method and path.
tests/test_operations.cpp pins exact request bodies and response parsing for
the most used ones.
WebSocketClient handles every channel and command in Kalshi's AsyncAPI
document: all 13 channels, subscribe, unsubscribe, update_subscription
(markets, snapshots, CF Benchmarks indices, Pyth underlyings), and
list_subscriptions. channels.md maps each channel to its
message types.
Every example frame in the AsyncAPI document parses in tests/test_ws_messages.cpp.
tests/test_ws_client.cpp runs the client against a local server to cover the
handshake, acknowledgements, reconnects, and sequence gaps.