(Bloomberg) -- Hopes that a ceasefire deal could pave the way for an end to the Iran conflict drove stocks to a historic streak of weekly gains, with the market also buoyed by the artificial-intelligence trade.

Tech Rally Leads S&P 500, Nasdaq Higher

Data showed US consumer confidence edged down in May as views of current economic conditions settled back amid rising prices due to the war