Skip to main content
The public endpoints are defaults. Override them only when PolyNode gives you another endpoint.
Use context managers to close HTTP clients. Streams have their own explicit lifecycle.
Configure PN1 through OrderbookEngine(..., integrity=True, allow_stale_reads=False). Configure perps capacity and reconnect behavior through PerpsWS(...) constructor arguments. Event and perps queues are bounded. Observe overflow callbacks and keep slow work out of message handlers. API keys belong in environment variables or a secret manager, never source code or logs.