0.5.1 • Published 10 years ago

mtgox-orderbook v0.5.1

Weekly downloads
2
License
-
Repository
github
Last release
10 years ago

Signals for the Mt.Gox orderbook from the socket.io streaming API.

Getting started

$ npm install mtgox-orderbook socket.io-client
$ cat > easyticker.js
var socketio = require('socket.io-client')
var mtgox = require('mtgox-orderbook')

var obook = mtgox.connect(socketio, 'usd')

obook.on('ticker', function(ticker){
  console.log("high: "+ticker.high.display+
              " low: "+ticker.low.display)
})
$ node easyticker.js
high: $136.43210 low: $95.00000
high: $136.43 low: $95.00
high: $136.43210 low: $95.00000

Signals

socket.io signals

  • on('connect')
  • on('disconnect')

mtgox signals

  • on('subscribe', function(channel_name))
  • on('unsubscribe', function(channel_name))
  • on('remark', function(message))
  • on('lag', function(lag_detail_object))
  • on('trade', function(trade_detail_object))
  • on('depth', function(depth_detail_object))
  • on('ticker', function(ticker_detail_object))

See https://en.bitcoin.it/wiki/MtGox/API/Streaming for information about the detail objects.

0.5.1

10 years ago

0.5.0

10 years ago

0.4.0

11 years ago

0.3.1

11 years ago

0.3.0

11 years ago

0.2.0

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago