US stocks jumped and oil prices dropped after Iran signalled it was willing to end the conflict with the United States and Israel.