stock price simulation and  message transmitter using node.js