U.S. President Donald Trump holds a campaign rally in Minneapolis, Minnesota, U.S., October 10, 2019. REUTERS/Leah Millis

WASHINGTON (Reuters) - President Donald Trump said on Friday the United States and China had come to a substantial phase-1 trade deal, reaching agreement on intellectual property, financial services and big agricultural purchases.

The two sides are very close to ending their trade war and it will take up to five weeks to get the deal written, Trump said, speaking to reporters after talks with Chinese Vice Premier Liu He.