Skip to content

DJsuhas/Java-Matching-Engine-Core

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trading Order Matching Engine

Overview

A Java-based trading order matching engine that simulates real-world stock exchange behavior using price-time priority.

Features

  • Buy/Sell order matching
  • Partial order execution
  • Thread-safe processing using PriorityBlockingQueue
  • REST API using Spring Boot
  • Logging and error handling

Tech Stack

  • Java
  • Spring Boot
  • Data Structures (Heap / Priority Queue)
  • Multithreading (Concurrency)

API Endpoint

POST /api/orders

Sample Request: { "id": "1", "price": 100, "quantity": 10, "type": "BUY" }

Future Improvements

  • WebSocket real-time updates
  • Database integration
  • UI dashboard

About

A matching engine written in Java.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 99.7%
  • Gherkin 0.3%