Abstract We study a model of over-the-counter trading in which ex ante identical traders invest contact technology and participate bilateral trade. show that rich market structure emerges both equilibrium an optimal allocation. There is continuous heterogeneity access under weak regularity conditions. If the cost per constant, governed by power law there are middlemen, participants with unbound...