Building a Prediction Market From Scratch (5): Positions — the Other Half of the Account
Balance tracked the cash; Position tracks the shares — the same conserving, checked shape, applied to holdings. How balances, positions, orders, users, and markets connect, and why a position deliberately stores no cost basis.