Riding the shifts in regime as middlemen is always a precarious existence. Yet their riches in jade, nephrite, silks, carpets, embroideries, herbs, spices and dried fruits flowed into the markets of the Tang capital, where in the dynasty’s heyday there were perhaps as many as 30,000 Sogdian residents.