Skip to content

CodersSquad/ds-trading-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Stock Exchange Matching Engine

Traders continuously post bids to buy or sell stock. A limit order means that a buyer (seller) places an order to buy (sell) a specified amount of a given stock at or below (at or above) a given price. The order book displays buy and sell orders, and ranks them by price and then by time. Matching engine matches compatible buyers and sellers; if there are multiple possible buyers, break ties by choosing the buyer that placed the bid earliest. Use two priority queues for each stock, one for buyers and one for sellers.

A continuous limit order book (CLOB) is a trading system used by exchanges to match buy and sell orders based on both price and time priority, ensuring a transparent and real-time market. It operates as a central, dynamic list of all open orders, with bids on one side and asks on the other, continuously updated as new orders are added or existing ones are executed or canceled. CLOBs provide transparency into market depth and facilitate fair pricing by allowing traders to see and compete for the best available prices.

On this challenge, you're implementing a Continuos Limit Order Book (CLOB). Buyers and sellers will be dynamically created and then displayed in a real-time dashboard. Consider that your implementation should look as realist as possible (you can use colors). You are free to choose the number of rows to display. Take a look in the following document, the Island's limit order book can be a good example of what is expected, but in terminal.

How to build and run

ADD YOUR INSTRUCTIONS HERE

Deliverables

  • Source code must be implemented in *.cpp and *.h files
  • Instructions at How to build and run section
  • DOCS.md
    • Introduction
    • Research on stocks exchange
    • Software Design and Implementation (diagrams, charts, key functions, code snippets, etc)
    • Conclusions and Learnings (one per teammate)

Grading Policy

Rubric Points
Use of Priority Queues 40
Terminal-based real-time UI 30
Documentation 30
Total 100

About

Stocks Trading Simulator

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors