Skip to main content

Command line (wscat)

Orderbook Integrity (PN1) provides copyable checksum code for Node.js, Python, Go, and Rust, plus the complete anchor, sequence, and targeted resync workflow. No PolyNode SDK is required.

Finding markets

Use the PolyNode REST API to search for markets:
The easiest approach: copy the slug from a Polymarket event URL and pass it directly in your subscribe message.

JavaScript (firehose)

JavaScript (specific markets)

Python (firehose)

Set max_size to at least 10 MB when connecting to the firehose (full data stream). Batch messages can be large when many markets update in the same 100ms window.

Python (specific markets)

Python with compression

Mixed identifier subscribe

You can mix slugs, condition IDs, and token IDs in a single subscribe: