Roshi β Kalshi SDK for Rust
Roshi is a fully asynchronous, type-safe, and ergonomic SDK for interacting with the Kalshi prediction market exchange.
This crate wraps both Kalshiβs REST and WebSocket APIs, providing a modern, Rust-native interface for trading, market data, and more.
Features
- β Full support for Kalshi's REST API
- π‘ Real-time market data over Kalshi's WebSocket feeds
- π API key authentication and request signing
- π§ Typed models for events, markets, orders, and more
- π¦ Built on
reqwest,tokio,serde, andtokio-tungstenite
Quick Start
REST Client Example
use HttpClient;
use Mode;
async
WebSocket Client Example
use WebSocketClient;
async
Modules
- [
client] β REST and WebSocket API support - [
constants] β API Endpoints - [
types] β Typed data structures for markets, events, orders, etc. - [
utils] β Utility functions for signing, formatting, etc.
Crate Features
Enable optional features in your Cargo.toml:
[]
= "0.1"
= ["rest_client", "ws_client", "debug"]
License
Licensed