Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gswalden/tickertape

Generate a ticker tape for any number of simulated stocks
https://github.com/gswalden/tickertape

Last synced: 8 days ago
JSON representation

Generate a ticker tape for any number of simulated stocks

Awesome Lists containing this project

README

        

[![Build status](https://travis-ci.org/gswalden/tickertape.svg?branch=master)](https://travis-ci.org/gswalden/tickertape)
[![Dependencies](https://david-dm.org/gswalden/tickertape.svg)](https://david-dm.org/gswalden/tickertape)

### Install
```sh
npm install --save ticker-tape
```

---

### Use
```js
var TickerTape = require('ticker-tape')
, tape = new TickerTape()
;

tape.on('tick', function(stock) {
console.log('Stock symbol: ' stock.symbol);
console.log('Stock price: ' stock.price);
console.log('Stock volume: ' stock.volume);
});
```

---

### Tests
```sh
npm test
```