bitmex-websocket

An unofficial node.js wrapper for the BitMEX Bitcoin derivatives exchange websocket API

Usage no npm install needed!

<script type="module">
  import bitmexWebsocket from 'https://cdn.skypack.dev/bitmex-websocket';
</script>

README

bitmex-websocket

NPM Package Dev Dependencies

An unofficial node.js wrapper for the BitMEX Bitcoin derivatives exchange websocket API

Official BitMEX website: https://www.bitmex.com

Getting Started

Installation:

npm install bitmex-websocket --save

Usage:

var WebSocket = require('bitmex-websocket');

WebSocket(function(websocket) {

    console.log('Asking for help.');
    websocket.send('"help"');

    websocket.on('message', function(message) {
        console.log('Message received:');
        console.log(message);
    });

});