finance-stream

0.0.2 • Public • Published

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.

Package Sidebar

Install

npm i finance-stream

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • xat