TypeScript / Node.js
npm install polynode-sdkZero runtime dependencies. ESM + CJS. Node 18+.Rust
polynode = "0.3"Async with tokio. Typed events via serde.Features
Local Cache
SQLite-backed local storage. Backfill wallet history in seconds, query trades and positions instantly with zero API calls.
Short-Form Markets
Auto-rotating streams for 5m, 15m, and 1h crypto prediction markets. Includes price-to-beat, odds, and liquidity.
WebSocket Streaming
Builder-pattern subscriptions with 9 presets, 12 filter dimensions, and transparent compression.
Orderbook
Real-time orderbook data with local state management, filtered views, and 108k+ markets.
REST API
Typed methods for all 25 REST endpoints. Markets, pricing, settlements, wallets, enriched data.
RPC Proxy
JSON-RPC through PolyNode’s optimized Polygon endpoint with validator-targeted TX submission.
What the SDKs Cover
| Feature | TypeScript | Rust |
|---|---|---|
| Local cache (SQLite) | Yes | Yes |
| REST API (25 endpoints) | Yes | Yes |
| WebSocket streaming | Yes | Yes |
| Short-form markets (auto-rotation) | Yes | Yes |
| All 10 event types | Typed interfaces | Typed structs + enum |
| Subscription filters | Builder pattern | Builder pattern |
| Orderbook streaming | Yes | Yes |
| Local orderbook state | LocalOrderbook | LocalOrderbook |
| OrderbookEngine (views) | Yes | Yes |
| Zlib compression | Transparent | Transparent |
| Auto-reconnect | Exponential backoff | Exponential backoff |
| Enriched data (leaderboard, trending, profiles) | Yes | Yes |
| RPC proxy | Yes | Yes |
Quick Comparison
- TypeScript
- Rust

