Our frontend dev was working on order form and order book features but our dev is on vacation.
Assuming you are new joiner and you are assigned to continue working on this task.
- Please git checkout to a new branch
- After finished the challenge, use git cmd
git format-patch your-branch -o patches
, Then zip patches folder to interviewer email.
- Simple order book UI to show orders
- Simple order form UI that can add order buy or sell with price and amount to orderbook
-
Orders in order book should be sorted by price, from high to low
-
Order book should show volume for each price
-
If users place order with the same price, those orders should be merged together. For example:
-
Buy price = 10, amount = 5
-
Buy price = 10, amount = 4
Order book should show single entry with: Price = 10, amount = 9
-
-
Volume bar, showing order size relative to other orders in order book.
-
Market price
-
Allow user to submit order with decimal places with following validations:
- Price should be greater than 0
- Amount should be greater than 0
-
Some unit tests should be added
- e.g. utility function or UI that have condition
Bonus challenge:
-
Depth chart implementation. What is market depth? See here
-
Beautify Order book and order form
- Any design are welcome
- You can use any lib to style
-
Improve codebase
- Show us what you got !