# 🚀 Quantum HFT Engine **An Ultra-Low Latency Order Matching Engine Built in Pure C++**    
🧠 System Architecture & Concept
This system simulates the core brain of top stock exchanges. It matches 'Buy' (Bids) and 'Sell' (Asks) orders with extreme computational efficiency.
By utilizing self-sorting data structures, the engine ensures that the most aggressive buyers and cheapest sellers are matched instantly.
⚡ Core Engineering Features
- O(log N) Order Sorting: Utilizes C++
std::mapto automatically sort Buy orders in descending order and Sell orders in ascending order. - Instant Trade Execution: Cross-matches overlapping bids and asks the exact microsecond they arrive.
- Microsecond Profiling: Embedded
<chrono>library logic to track and print the execution time of each functional block. - Live Market Depth: Calculates and displays the current pending liquidity (Bids/Asks) after every execution cycle.
🚀 How to Run Locally
- Clone this repository:
```bash
git clone https://github.com/PrashantSomwanshi20-crypto/Quantum-HFT-Engine.git
Built With
- ai
- c++
Log in or sign up for Devpost to join the conversation.