The average of two purchase prices can give the wrong cost basis when quantities differ.

Hypothetical example: 2 units at 20 and 3 at 30 cost 130 in total. Divide by 5 units: 26 per unit, before fees.

Quantity changes the calculation.