When we found ourselves writing the same boilerplate for the fifth client project, we open-sourced it. These are production-tested modules - the same code we use internally.
Typed Python client for Polymarket CLOB. Order placement, book streams, fills subscription, EIP-712 signing, rate-limit handling.
View on GitHub →Typed Python client for Kalshi Trade API. Market data, orders, positions, with retry/back-off and tax-event hooks.
View on GitHub →Lightweight backtest harness for prediction markets. Per-trade fee accounting, slippage modeling, support for both venues.
View on GitHub →Polygon indexer specialized for Polymarket wallets. Ranking by PnL, win rate, position count. Powers our wallets directory.
View on GitHub →Using one of these modules and stuck on the integration? Or want a custom adapter for your OMS? That's our day job.