This is a simple demo for a matching engine written in Java. The matching engine simulates the matching of buy and sell orders based on limit and market orders.
The matching engine is a core component of financial exchanges, responsible for pairing buy and sell orders to facilitate trading. This Java demo provides a basic implementation of a matching engine that handles two types of orders: limit orders and market orders.
-
Limit Order: A limit order specifies the maximum (for a buy order) or minimum (for a sell order) price at which the order can be executed.
-
Market Order: A market order is an order to buy or sell a security immediately at the current market price.
This project is licensed under the MIT License - see the LICENSE file for details.
- This demo is for educational purposes and is not intended for use in real trading environments.
Feel free to explore and extend this demo for more advanced features or integrate it into your own projects. If you have any questions or feedback, please create an issue in the repository. Happy coding!