Trading · Order book and P&L · Medium
Behind eighteen hundred
An exchange fills the orders resting at a price in the order in which they arrived. You place an order to buy 400 shares at 10.00 dollars, the best bid, and 1,800 shares are already resting at that price ahead of you. Then, in this order: 500 of the shares ahead of you are cancelled; 700 shares trade at 10.00 against the front of the queue; orders for 300 more shares join the queue behind you; and a sell order for 900 shares at 10.00 arrives. How many of your 400 shares have been filled after it?
Answer and solution
Answer
300
Solution
Only what is ahead of you in the queue stands between you and a fill.
Ahead of you: 1,800 − 500 − 700 = 600. The sell order for 900 fills those 600 first and the remaining 300 against you. 300 of your shares are filled.
Order book and P&L comes up in 3 firms' roundsCitadel Securities · Tower Research · IMC
These 4 rounds ask this kind of problem live, with follow-ups. Every round on every track is in Premium.