Anjali Bhimanadham
/Stock-Trading-Engine
/src
Main.java
Order.java
StockTradingEngine.java
/bin
/.vscode
README.md
- Need to be at project's root folder To compile all the Java files in the src file, run this command:
javac -d bin src/*.javaAfter compiling the project, you can run the stock trading engine simulator using:
java -cp bin MainMain.java: The main entry point for the simulation.Order.java: defines the Order class for buying and selling stock ordersStockTradingEngine.java: defines the Stock Trading Engine class and all the methods for it, including addOrder and matchOrder