Stocks wavered in afternoon trading on Wall Street and hovered around their records set a day earlier, 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.