Title: Demand theory in models of financial markets