Factors of culture and trade in Tang capital