Trade API fix from Jamie Quint.