Skip to main content
polynode-sdk is the Node.js client for PolyNode’s V3 API, event stream, PN1 orderbook, perps stream, short-form markets, and trading helpers.

Install

Node.js 18 or newer is required. The package supports ESM imports and CommonJS runtime loading. The examples use ESM.
package.json
Keep your key server-side:

First request

Client surfaces

Each WebSocket is independent. Close the subscription or client you opened when your process shuts down.

V3 API

Call any registered V3 operation.

Settlement stream

Subscribe with replay and overflow visibility.

Short-form and TWAP

Rotate with the correct Chainlink window.

PN1 orderbook

Maintain fail-closed local state.

Perps stream

Subscribe to tickers, books, trades, and klines.

Trading and fees

Use the current V2 defaults safely.