The yuan is the main unit of the renminbi, China’s currency, and is widely used as its name. It has two market codes: CNY, the onshore yuan, and CNH, the offshore yuan traded outside mainland China. The People’s Bank of China sets a daily reference rate and keeps CNY within a band around it.
CNH is priced by market supply and demand and tends to move more freely. Capital controls can create short-term gaps between CNY and CNH, though the two rates typically track each other over longer periods. In forex, the yuan trades in currency pairs such as USD/CNH.

