Trading · Order book and P&L · Medium
Four fills
You start with no position in a stock and get four fills in this order: buy 200 shares at 25.00 dollars, buy 300 at 25.40, sell 100 at 25.60, buy 100 at 25.84. Your book keeps an average price for the shares you hold: a purchase is averaged in by size, and a sale leaves the average price of the remaining shares unchanged. What is the average price in dollars of the 500 shares you hold at the end?
Answer and solution
Answer
25.36
Solution
Purchases move the average and sales do not, so the order of the fills matters.
After two purchases: 500 shares for 5,000 + 7,620 = 12,620, an average of 25.24. The sale leaves 400 shares at 25.24, a cost of 10,096. Adding 100 at 25.84 gives 12,680 for 500 shares: 25.36 dollars.
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.