Title: Endogenous contract choice and market structure