China overtook the United States as the world's largest trading nation in 2012, with two-way trade in merchandise totaling $3.867 trillion, according to data released by China and the U.S.