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.

The US stock market is rushing toward records as profits keep piling up for companies and as oil prices ease.