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 = ;
Run it using this command
fakestockmarketgenerator
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: 53663 minute: 2 price: 56537 minute: 3 price: 56674 minute: 4 price: 57608