@@ -24,4 +24,7 @@ This class implements the logic for the program. It maintains two queues for ord
# Algorithm
The program currently maintains two linked lists - one for orders of type buy, and one for orders of type sell.
Pending orders are stored in these linked lists in chronological order. It finds the matches for an order through a linear scan and removes matched orders or modifies a partially matched order. If trade is possible, matched orders are return to Main class and displayed to the user.
\ No newline at end of file
Pending orders are stored in these linked lists in chronological order. It finds the matches for an order through a linear scan and removes matched orders or modifies a partially matched order. If trade is possible, matched orders are return to Main class and displayed to the user.
# JUnit Tests
JUnit tests for a class is provided in file with same class name appended with "Test". For example, tests for OrderMatching class is in OrderMatchingTest class.