Both sides take the market price as a given, and the market-clearing price is the one at which there is neither excess supply nor excess ... willing to buy at each price is called the demand curve.