0.0.7 • Published 3 years ago

bitmex v0.0.7

Weekly downloads
23
License
MIT
Repository
-
Last release
3 years ago

bitmex

NPM Package Dev Dependencies

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

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

Getting Started

Installation:

npm install bitmex --save

Usage:

var BitMEX = require('bitmex');

BitMEX(function(bitmex) {

    bitmex.swagger.chat.get({count: 1, reverse: true}, function(response) {
        var message = JSON.parse(response.data)[0];
        console.log('Here is the most recent chat message from the Swagger API:');
        console.log(message.user + ': ' + message.message);
    });

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

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

});
0.0.7

3 years ago

0.0.6

8 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago