A Node.js client for the Bitstamp REST and WebSocket API, supporting both v1 and v2 endpoints. Current stable version is 3.1.0, released in 2023. It covers all Bitstamp currencies (BTC, ETH, LTC, XRP) and includes automatic signature/nonce generation, request quota management, and automatic WebSocket reconnection. Compared to alternatives, it offers 100% promise-based interface, optional full control over HTTP responses, and built-in rate limiting to prevent bans.
npm install node-bitstampNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows REST API usage (ticker) and WebSocket live trades subscription with proper initialization.
Ensure key, secret, and clientId are provided when instantiating Bitstamp.
Use v2 API methods where available (e.g., ticker_hour instead of ticker for v2).
Store the returned channel name and attach listener: stream.on(channelName, handler).
Keep rateLimit: true or implement custom rate limiting.
Access response body via .body, e.g., const { body } = await bitstamp.ticker(...);Verify key, secret, and clientId from Bitstamp account settings. Ensure system clock is synchronized.
Ensure correct import: import { BitstampStream } from 'node-bitstamp' and instantiate: const stream = new BitstampStream();Correct import: import { Bitstamp } from 'node-bitstamp' and instantiate: const bitstamp = new Bitstamp(...);No dependency data recorded yet.