US stocks remain near record territory heading into mid-August, propped up by an exceptionally strong second-quarter earnings season even as two persistent sources of uncertainty — the Federal Reserve's next move and volatile oil prices tied to the ongoing Iran war — continue to inject volatility into daily trading.

Earnings Are Doing the Heavy Lifting

With roughly 90% of S&P 500 companies having reported second-quarter results, earnings growth is tracking near 48% — more than double the 24% estimate analysts had at the start of earnings season, according to Edward Jones. FactSet data shows S&P 500 earnings per share on pace to run 50% higher than a year earlier, one of the strongest reporting periods outside of major post-recession rebounds. That strength has been the primary pillar supporting equities this year, with the S&P 500 up roughly 14% and the tech-heavy Nasdaq up around 15% year-to-date. "The inflation picture at the moment isn't enough to derail what really remains an earnings-driven market," said Bill Merz, head of capital markets research at U.S. Bank Asset Management.

The Fed Remains a Genuine Wild Card

Markets have grown increasingly focused on the Federal Reserve's next move, particularly since Fed Chairman Kevin Warsh has scaled back the central bank's use of forward guidance, leaving investors with fewer explicit signals to work from. "It remains to be seen how the Fed under new Chair Warsh is going to interpret these numbers and what they do about it, if anything, and so that remains a little bit of an uncertainty that markets are digesting," Merz said. A weaker-than-expected July jobs report initially pushed the probability of a September rate hike below 50%, and subsequent cooler-than-expected CPI and PPI inflation readings have reinforced that shift — July's Producer Price Index rose 4.7% year-over-year, below the 4.9% forecast and well under June's 5.5% reading, while core PPI came in at 4.2%, roughly in line with expectations.

Oil Prices Keep Swinging on Hormuz Uncertainty

The other major source of market volatility remains oil, where prices have swung wildly since the US and Israel attacked Iran in late February, closing the Strait of Hormuz and keeping much of the Middle East's oil supply bottled up. Brent crude ranged between roughly $72 and $102 a barrel in a single recent month, according to AP reporting, with prices briefly topping $90 before retreating below $87 in one particularly volatile session. These swings have kept Treasury yields elevated and mortgage rates near multi-year highs, complicating the broader economic picture even as corporate earnings continue to impress. Notably, major oil companies have posted outsized profits as the US-Iran conflict drives energy prices higher, creating a split-screen effect where energy sector strength coexists with broader inflation concerns.

Bond Yields Offering Some Support

On the fixed-income side, bond yields have moved modestly lower in recent sessions, which analysts view as broadly supportive of equity valuations. The 2-year Treasury yield, which tends to track Fed policy expectations most closely, eased from around 4.2% to roughly 4.15% following the recent run of softer economic data — a small move, but one that reflects the market's shifting read on how aggressively (or not) the Fed will need to act in September.

What Analysts Are Watching Going Forward

Market strategists say the coming weeks will likely see investor attention pivot from earnings back toward economic data, particularly any further inflation readings ahead of the Fed's September 15-16 meeting. Edward Jones analysts note that "a combination of strong earnings growth and stable labor-market and consumption trends continues to underpin stock market gains," while cautioning that "history suggests some caution is warranted, as growth has tended to lose momentum in the second half of the year." Semiconductor and AI-linked names remain a particular focus, given how directly they've benefited from — and remain exposed to — the broader AI infrastructure spending boom that's driven a meaningful share of this year's earnings strength.

The Bigger Picture

For now, the market's message is one of resilience layered with caution: corporate profits are running well ahead of expectations and continuing to justify record index levels, but the twin uncertainties of Fed policy direction and Hormuz-driven oil volatility mean investors are likely to stay on alert for sudden repricing in either direction. For live market data and Fed policy tracking, see CNBC Markets.

With earnings season nearly complete and the Fed's next major decision still weeks away, markets are entering a data-dependent stretch where every inflation print and oil price swing carries outsized weight for where stocks head next.