0.0.2 • Published 10 years ago

finance-stream v0.0.2

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

finance-stream

realtime stock and exchange stream.

Usage

var fstream = require('finance-stream');
var _ = require('highland');

// build an ongoing ticker which fetches
// yahoo and google stock data in an interval
// of 1 sec
fstream
  .stockTicker(['YHOO', 'GOOG'], ['symbol', 'Ask', 'Bid'])
  .through(fstream.toFloat('Ask', 'Bid'))
  .each(_.log);

// convert euro into baht and
// pipe the response to stdout
fstream
  .exchangeStream('EURTHB')
  .pluck('Rate')
  .pipe(process.stdout);

Installation

npm install finance-stream

License

Copyright (c) 2014 Simon Kusterer Licensed under the MIT license.