Market Structure And Behavioral Frictions: Demand And Supply Perspectives