goxstream

A node.js readable stream for mtgox. Uses raw websocket!

goxstream

A node.js readable stream for mtgox, based on ws. Reports ticker, depth, trade and lag data in real time.

Creates a readable stream. Supports the bitcoin (BTC) channels from this list. Namecoin (NMC) and litecoin (LTC) are currently not traded on MtGox but might be in a near future.

  • currency (String) 'USD', 'EUR' etc

Returns an array of currencies that are available on MtGox.

Create two different streams. Pipe one of them to stdout and one to file.

var gox = require('goxstream')
var fs  = require('fs')
gox.createStream('USD').pipe(process.stdout)
gox.createStream('EUR').pipe(fs.createWriteStream('./EUR'))

MIT