IMC Trading–styleSoftware EngineerSoftware EngineerQuestion #70

How would you implement a trade matching engine? The API for it should support: (1) adding Buy/Sell orders (these methods should return a Trade if an existing order matches the new one), (2) deleting pending orders, and (3) getting market depth or demand (i.e., range of buy/sell prices and total volume of pending orders at each price).

Build Your Approach

State the assumptions, try a simple case, then work toward a general solution. Check the result and explain how it changes if an assumption changes.

Try the free diagnostic with worked solutions →

Get Free Interview Prep Resources

Practice the Reasoning Behind the Answer

Bring your target roles and interview timeline to a free quant consult. Discuss your preparation priorities and how Quant Blueprint’s lessons, practice and mock interviews can help.

Book a Free Quant Consult

Your goals · your preparation · your next steps