Quoto

Learn / Library / Market making

Realized profit by matching

Market makingMedium

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.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Match the sale against the first lot, then the remainder against the second lot.

Solution
  1. The first sold are matched to the lot bought at and earn .
  2. The other sold are matched to the lot bought at and earn .
  3. The realized profit is .

Answer: