The United States has shipped several million tons of soybeans to China since the two countries' leaders met in June, Chinese state media said on Sunday, an apparent sign of goodwill before trade talks in Shanghai this week.

The U.S.-China trade war has curbed the export of U.S. crops to China, with soybean sales falling sharply after Beijing slapped tariffs of 25 percent on American cargoes.

China has made inquiries to U.S. suppliers for the purchase of soybeans, cotton, pork sorghum and other agricultural products since July 19, and some sales have been made, state broadcaster CCTV said, citing China's National Development and Reform Commission and Ministry of Commerce.