(Bloomberg) -- Oil rebounded after the U.S. and China inked the first phase of their trade deal, recouping losses driven by data showing American petroleum supplies rising to a four-month high.

Futures climbed as much as 0.9% in New York after China agreed to buy almost $95 billion of additional American commodities over two years including crude and refined products. That came after an Energy Information Administration report showed a near 15-million-barrel build in American petroleum inventories, highlighting weak demand and weighing on prices Wednesday.

China pledged $52.4 billion of further purchases of American energy over 2020 and 2021, although it didn’t say whether it would lift a retaliatory 5% tariff on U.S. crude. The buying commitment as well as the possibility that the improved relationship between the world’s two largest economies will spur economic growth is a fillip for oil prices that have fallen around 8% since the U.S. and Iran stepped back from the brink of war last week.

“Challenges lie ahead for China as part of its commitment to massively increase purchases of U.S. crude,” said Jeffrey Halley, a senior market analyst at Oanda in Singapore. “It will take time for China to ramp up these purchases and will thus have a limited supportive affect on U.S. crude prices.”

See also: Commodity Markets Shrug at China’s $95 Billion Purchase Pledge

West Texas Intermediate crude for February delivery rose 35 cents, or 0.6%, to $58.16 a barrel on the New York Mercantile Exchange as of 7:29 a.m. in London. The contract fell 0.7% to close at $57.81 on Wednesday.

Brent for March settlement climbed 0.6% to $64.35 a barrel on the ICE Futures Europe exchange after closing down 0.8% on Wednesday. The global benchmark crude traded at a $6.14 premium to WTI for the same month.

Wider raw materials markets shrugged at China’s $95 billion trade pledge. The Bloomberg Commodity Index added 0.1% after closing down 0.4% on Wednesday. Most agricultural commodities declined.

China would need to turbocharge U.S. oil imports to meet its buying pledge. The Asian nation’s purchases of American crude peaked at 14.7 million barrels in January 2018, official data show, but would need to rise to an average of 21.9 million barrels a month this year and 36.2 million barrels in 2021. Those estimates are based on Bloomberg calculations that assume an oil price of around $65 a barrel and that the proportion crude purchases would make up of the total energy buying would be similar to pre-trade war levels.

While U.S. petroleum stockpiles rose, crude inventories fell by 2.5 million barrels last week, the EIA data show. Four-week average demand for total oil products was down by 1% year-on-year, with diesel dropping by almost 7%. American crude production rose to a high of 13 million barrels a day.

--With assistance from James Thornhill.

To contact the reporter on this story: Elizabeth Low in Singapore at elow39@bloomberg.net

To contact the editors responsible for this story: Serene Cheong at scheong20@bloomberg.net, Andrew Janes, Ben Sharples

©2020 Bloomberg L.P.