All Projects → xat → finance-stream

xat / finance-stream

Licence: MIT license
realtime stock and exchange stream

Programming Languages

javascript
184084 projects - #8 most used programming language

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].