1.0.3 • Published 5 years ago

fake-stock-market-generator v1.0.3

Weekly downloads
63
License
ISC
Repository
-
Last release
5 years ago

Fake Stock Market Generator

Generates a fake symbol, company and price data for the specified number of days.

To install run this command:

npm install fake-stock-market-generator --save

Then import it

let fakestockmarketgenerator = require('fake-stock-market-generator');

Run it using this command

fakestockmarketgenerator.generateStockData(numberOfDays)

Test it by using this command

node -e 'require(\"./index.js\").generateStockData(5)'

An example of the output

{ symbol: 'RI',
  companyName: 'Crist LLC',
  catchPhrase: 'Down-sized bandwidth-monitored budgetary management',
  priceData: 
   [ { minute: 0, price: 524 },
     { minute: 1, price: 536.63 },
     { minute: 2, price: 565.37 },
     { minute: 3, price: 566.74 },
     { minute: 4, price: 576.08 } 
    ] 
}
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago