| Crates.io | polymarket-api |
| lib.rs | polymarket-api |
| version | 0.1.1 |
| created_at | 2026-01-01 20:59:03.004104+00 |
| updated_at | 2026-01-03 01:12:16.26949+00 |
| description | Rust client library for Polymarket REST and WebSocket APIs |
| homepage | https://github.com/penso/polymarket-tui |
| repository | https://github.com/penso/polymarket-tui |
| max_upload_size | |
| id | 2017507 |
| size | 223,012 |
Real-time Polymarket monitoring tool built in Rust. Monitor live market updates, trades, orderbook changes, and prices with beautiful colored console output.
This was started as a pet project for me to play with AI. This used Cursor, Claude and Codex.

crates/polymarket-api: Core library with WebSocket client, Gamma API client, and display formatterscrates/cli: Binary application for real-time monitoringcargo run -p polymarket-cli
The CLI will:
use polymarket_api::{GammaClient, PolymarketWebSocket, MarketUpdateFormatter};
// Fetch active markets
let gamma = GammaClient::new();
let asset_ids = gamma.get_all_active_asset_ids().await?;
// Connect to WebSocket
let mut ws = PolymarketWebSocket::new(asset_ids);
ws.connect_and_listen(|msg| {
let formatted = MarketUpdateFormatter::format_message(&msg, None);
println!("{}", formatted);
}).await?;
cargo buildcargo run -p polymarket-clicargo testcargo checkThe library provides three main modules:
gamma: Client for Polymarket's Gamma API (market discovery)websocket: WebSocket client for real-time market updatesdisplay: Formatters for colored console outputGitHub Actions runs on pushes and PRs: