How many shares can you buy under an average-price cap?
Asked at Flow Traders
The offer side of the book looks like this:
| Side | Price | Size |
|---|---|---|
| Ask | ||
| Ask | ||
| Ask |
You are willing to buy as many shares as possible, but only if your average price is at or below .
What is the largest quantity you can buy, and what average price do you pay?
Show a hint
Fill the cheap levels first, then figure out how many shares from the expensive level you can add before the blended average crosses your cap.
Your answer
This one is open-ended. Work it through, then check your reasoning against the full solution.