Markets reacted positively after the United States and Iran reached a last-minute cease-fire agreement.