Saturday, February 13, 2010

Rex - an Order Matching Engine

An exchange simulator/order matching engine written in C++. The complete code will be posted later.

Briefly, it creates a thread per connection to handle incoming FIX messages. The messages are then queued, based on the security, to an order book that handles that security. Each order book runs in its own thread and does the actual matching. All outgoing messages are then sent in separate connection specific threads to the originator.

0 comments:

Post a Comment