Learn / Library / Market making
Realized profit by matching
A market maker buys units at , then buys units at , then sells units at . Sales are matched against the oldest purchases first. What is the realized profit?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Match the sale against the first lot, then the remainder against the second lot.
Solution
- The first sold are matched to the lot bought at and earn .
- The other sold are matched to the lot bought at and earn .
- The realized profit is .
Answer: