The US stock market jumped to records as companies kept piling up profits and oil prices eased, while SpaceX released its first set of earnings since listing.

US stocks rose to finish a wild July for Wall Street as Amazon leaped, Apple sank and rising oil prices worsened worries about inflation staying high.

US stocks rallied the edge of their all-time high after easing oil prices helped calm Wall Street’s worries that inflation could get even worse.