Market structure and equilibrium