We present a model in which the microstructure of trade in a commodity or asset is endogenously determined. Producers and consumers of a commodity (or buyers and sellers of an asset) who wish to trade can choose between two competing types of intermediaries: 'middlemen' (dealer/brokers) and...