The pace for markets around the world, though, remained sluggish.
At 10:53 a.m. ET, the Dow Jones Industrial Average (.DJI) was up 89.46 points, or 0.43 percent, at 20,986.07. Eastern time. If it stays there, it will surpass its record closing high set last week.
Benchmark U.S. crude slipped 19 cents to close at $48.66 a barrel in NY. It's hasn't topped $50 in almost three weeks.
Oil prices edged up about 0.7 per cent today, prompted by the dollar's decline and the expectation for a supply limit deal to extend into next year. Brent crude, used to price worldwide oils, lost 17 cents to settle at 51.65 USA dollars (£39.98) a barrel in London.
In the first few minutes of trade, the S&P 500 index hit 2,405.77, while the Nasdaq hit a record high of 6,160.82.
The S&P 500 retreated from records on Tuesday as crude oil pulled back from recent two-week highs and a series of disappointing retail earnings hurt the consumer sector.
Real estate shares slid 0.4% in the S&P 500, among the worst-performing sectors in the broad index Tuesday, after data showed USA new-home construction declined in April for the third time in four months.
Melissa McCarthy adds spice (and Spicer) as host of 'SNL'
Fleeing a press briefing, Spicer goes on a road trip to find Donald Trump , and learn once and for all if they really are friends. Finally, Steve Bannon is portrayed on a matryoshka doll Slimer from Ghostbusters and Attorney Jeff Sessions is Pikachu.
Asian stock markets were mostly lower on Wednesday as a rise in political uncertainties dented risk sentiment with investors keeping their eyes on developments in the White House.
Investors were also cautious about potential delays to the government's tax and regulation reform agenda after reports late Monday that President Donald Trump disclosed highly classified information to Russia's foreign minister about a planned Islamic State operation. Gold settled at a almost two-week high on Monday after more show of nuclear strength from North Korea finding traction after weekend comments from China about a boost in infrastructure projects. The index was 58 in May past year.
"A lot of technology right now is driven by worries about cyber security, as investors believe more companies will have to upgrade their computer systems", said Edward Jones' Warne.Authorities around the globe scrambled to prevent hackers from spreading the "WannaCry" ransomware that has infected more than 300,000 computers in 150 countries.
In small-caps, the Russell 2000 Index closed at 1,394.68 for a gain of 0.76 points or 0.05%. In Asia, Japan's Nikkei 225 stock index slipped 0.1 percent, and Hong Kong's Hang Seng index added 0.9 percent.
In other futures trading, natural gas fell 12 cents, or 3.6 percent, to $3.23 per 1,000 cubic feet. The euro rose to $1.1068 from $1.0978. Currencies of oil-linked economies climbed against the dollar, with the Russian ruble up 1.1%, the Norwegian krone up 0.4%, and the Canadian dollar up 0.5%.
In the bond market, Treasuries ended slightly lower with the 10-yr yield climbing one basis point to 2.34%. Revenue rose 3.2 percent to $7.78 billion, short of projections.