Skip to content

xat/finance-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

realtime stock and exchange stream

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published