This is parts of a stock trading system, including two components. The first component is a central processor, which processes instructions from the client, such as sell, buy, check balance, etc. The second component is the display center, which shows the result of trading and the history of instructions.
The architecture of the whole trading system is shown in the following picture.
The architecture of
The central processor is responsible for:
- Receive and check the instructions from the client
- Check the stock balance and money balance
- Calculate the instruction with certain rules
- Return the processing results
- Provide interfaces for query
The project is developed with Node.js.
Because running of the whole system needs three other components, we are not able to provide an online demo.