Realtime terminal dashboard over Polymarket public APIs — Gamma discovery, CLOB REST and WebSocket, and the Data API — with live prices and automatic reconnection.
MARKETS / REALTIMEData / analyticsPublic code · no license yet
Prediction market data is spread across a discovery API, an order book API and a data API, and a browser tab is a poor place to watch all three move.
The constraint
The data is live production data, not a mock, so a dropped WebSocket has to recover on its own rather than silently freeze the screen.
The approach
Gamma discovery, CLOB REST and WebSocket and the Data API feed an eight-panel terminal dashboard covering market data, order book, history and holders, with reconnection on exponential backoff.
The outcome
A terminal interface where the reconnection behaviour is part of the product, because the feed is real.
A methodology-fixed Ornstein–Uhlenbeck benchmark across C, Zig, Rust, Swift, V and TypeScript on Bun, with the same algorithm and checksum readback in every language.