The record-breaking run in stocks gained fresh fuel after the US reached a trade agreement with Japan, with investors soon turning their attention to earnings from tech giants. Treasuries halted a five-day advance amid waning demand for haven assets.