US stocks have opened slightly higher as investors pinned their hopes on the possibility of a United States-Iran peace deal.