Wall Street stocks mostly rose Tuesday, lifting the S&P 500 and Nasdaq to fresh records on hopes for a Middle East peace deal.

The gains came despite a jump in Brent oil prices after US military strikes on Iran prompted worries about a military rebuttal from Tehran.

"Risk-on winds are dominating Wall Street today as progress on the US-Iran negotiations raises optimism concerning a sustained retreat in crude oil and yields," said Jose Torres of Interactive Brokers.