A Node.js wrapper for the Poloniex cryptocurrency exchange REST and WebSocket APIs. Current stable version 3.1.3 supports v2 REST and WebSocket APIs, auto-reconnection, and rate limiting. This library is unmaintained since 2023 and only supports Node.js 19.x. Compared to alternative wrappers like ccxt, it is simpler but not regularly updated and lacks TypeScript definitions.
npm install poloniex-api-nodeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes the Poloniex client with API credentials, fetches the ticker for BTC/USDT, and subscribes to real-time ticker updates via WebSocket.
Ensure you pass { version: 2 } to openWebSocket; v1 may stop working.Always provide key and secret for authenticated endpoints.
Use .then() or async/await instead of callbacks.
Set options.autoReconnect = false if you manage reconnection manually.
Verify POLONIEX_KEY and POLONIEX_SECRET environment variables are set correctly.
Use `import Poloniex from 'poloniex-api-node'` (default) instead of `import { Poloniex } from ...`.Add `import Poloniex from 'poloniex-api-node'` or `const Poloniex = require('poloniex-api-node')`.