US stocks ended higher on Friday as investors held out hope for a peace deal between Iran and the United States and as SpaceX shares surged in their debut, making it Wall Street's biggest public listing in history.

US stocks ended higher on Friday as investors held out hope for a peace deal between Iran and the United States and as SpaceX shares surged in their debut, making it Wall Street's biggest public listing in history.