Stocks meandered to a mixed finish on Wall Street and remained close to their records, while oil prices held steady.

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.