https://github.com/askmike/bitstamp-ws
Nodejs Wrapper for the Bitstamp WebSocket API
https://github.com/askmike/bitstamp-ws
Last synced: about 1 year ago
JSON representation
Nodejs Wrapper for the Bitstamp WebSocket API
- Host: GitHub
- URL: https://github.com/askmike/bitstamp-ws
- Owner: askmike
- License: mit
- Created: 2014-05-19T16:09:55.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2017-12-19T22:08:25.000Z (over 8 years ago)
- Last Synced: 2025-03-27T03:51:16.857Z (about 1 year ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 19
- Watchers: 4
- Forks: 14
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bitstamp-ws
Nodejs Wrapper for the Bitstamp WebSocket API.
## Howto
Install:
npm install bitstamp-ws
Use:
var Bitstamp = require('bitstamp-ws');
var ws = new Bitstamp();
ws.on('trade', function(trade) {
console.log('new trade:', trade);
});
ws.on('data', function(data) {
console.log('new order book event:', data);
});
And check out the example in `example.js` for full configuration and all available channels.
## Reference
Bitstamp WebSocket API documentation: https://www.bitstamp.net/websocket/