map-bgp / browserbook

Peer to peer browser based decentralized exchange
2 stars 1 forks source link

Matching Engine Algorithms #9

Open tejareddy8888 opened 2 years ago

tejareddy8888 commented 2 years ago

Two types of Matching Algorithms:

FIFO (First In First Out) algorithm:

In this Algorithm, the order which is received first takes priority over the other orders.

Pro-Rata Matching:

In this Algorithm, the priority is given to the highest-priced buy order and the orders are also partially filled in this algorithm to motivates other orders to join the queue with large limit orders.

References used:

  1. https://corporatefinanceinstitute.com/resources/knowledge/trading-investing/matching-orders/
  2. https://www.investopedia.com/terms/m/matchingorders.asp