this project is test project for generating fake stock data.
it implements the order-driven market trading mechanism. In the initialization part it initialize 5 stock with some initial price and shares, and then it will randomly generate buy and sell orders for these 5 stocks, and output the prices after execute the order.
this project is writen in java and managed by maven, so you need to have a jdk8 and maven installed. And then you can deploy it by following methods.
you should first config the project by enter your websocket server in application.properties file in the resource directory "websocket.server=ws://localhost:3000/receiver" and make sure the websocker server is running.
you should first run the command "mvn package" first to package the project, than run the command "java -jar target/stockDataGenerator-0.0.1-SNAPSHOT.jar" to start the project.