NEW YORK (Reuters) - Oil prices rose modestly on Tuesday, but settled off the day’s highs as the coronavirus pandemic’s heavy toll on demand offset hopes for a forthcoming $2 trillion U.S. economic relief package.

FILE PHOTO: The sun is seen behind a crude oil pump jack in the Permian Basin in Loving County, Texas, U.S., November 22, 2019. REUTERS/Angus Mordant

India, the world’s third largest oil consumer, ordered its 1.3 billion residents to stay home for three weeks as of Tuesday, the latest big fuel user to announce restrictions on social movement that have destroyed demand for gasoline and jet fuel worldwide.

The oil market has been hit by twin shocks. The unexpected price war between Saudi Arabia and Russia has unleashed a flood of supply while the pandemic is on track to cut fuel demand by at least 10% worldwide.

Brent LCOc1 futures rose 12 cents, or 0.4%, to settle at $27.15 a barrel. U.S. West Texas Intermediate (WTI) crude CLc1 gained 65 cents, or 2.8%, to settle at $24.01.

“No one has a handle of how much the world will come to a halt,” said Edward Moya, senior market analyst at OANDA in New York. “It will probably be impossible for oil prices to continue to stabilize.”

Early in the session both Brent and WTI were trading up over 5%. U.S. gasoline futures RBc1, meanwhile, soared over 30% early day and closed up about 8%.

The Fed on Monday rolled out programs including backing for corporate bond purchases for the first time. Senior Democrats and Republicans said on Tuesday they were close to a deal on a $2 trillion coronavirus economic stimulus package.

The price of oil has halved in 2020, hit by the demand shock caused by the pandemic and efforts to contain it, and removal of supply limits by the Organization of the Petroleum Exporting Countries and other producers, including Russia, when a deal by the so-called OPEC+ fell apart in early March.

Saudi Arabia plans to boost exports, although they have yet to increase in March, sources at companies that track oil flows said on Monday.

“The extreme imbalance between supply and demand due to the travel restrictions has only just began to unfold in the physical markets, and the true impact will be felt in the coming weeks,” said Rystad Energy’s head of oil markets, Bjornar Tonhaugen, in a note.

The latest round of weekly U.S. oil reports are expected to show crude inventories rose for a ninth straight week. [EIA/S]

Industry group the American Petroleum Institute (API) was scheduled to release its supply report on Tuesday at 4:30 EDT (2030 GMT), followed by the U.S. government’s figures on Wednesday.