Stocks rose higher Tuesday to close out a tough month for Wall Street. The Dow Jones Industrial Average climbed over 100 points, while the S&P 500 Index and Nasdaq Composite added roughly 0.7% and 0.5%, respectively.

Here's how the market settled on Tuesday:

S&P 500 Index (SPY  ): +0.65% or +26.98 points to 4,193.80

Dow Jones Industrial Average (DIA  ): +0.38% or +123.91 points to 33,052.87

Nasdaq Composite Index (QQQ  ): +0.48% or +61.76 points to 12,851.24

Tuesday marked the last trading day of October, with all three market benchmarks notching their third-straight losing month. The Dow and S&P 500 fell 1.4% and 2.2%, respectively, while the Nasdaq Composite dropped 2.8% for the month.

October's losses come amid higher interest rates and climbing U.S. Treasury yields. The month saw the 10-year U.S. Treasury yield top 5% for the first time since 2007, as higher-for-longer interest rates set by the Federal Reserve impacts outlooks. The central bank is set to release its forthcoming policy decision Wednesday afternoon, with more than 99% of market participants expecting the Fed will hold rates at their current level, according to CME Group's FedWatch tool.

On the earnings front for Tuesday, Caterpillar (CAT  ) shares were under pressure after the industrial giant reported better-than-expected third-quarter results, but issued weak forward guidance for its current quarter. Notably, the Dow-member's construction industries and energy and transportation segments saw double-digit sales growth year-over-year.

Pfizer (PFE  ) shares were under pressure after the drugmaker reported a narrower-than-expected adjusted loss for its third-quarter as the company faces waning demand for its COVID treatment and vaccine. The company said it recorded a $5.6 billion charge for inventory write-offs in the third quarter related to its COVID products -- with $4.7 billion attributed to Paxlovid and $900 million stemming from its mRNA vaccine.

Pinterest (PINS  ) shares jumped following its third-quarter earnings beat on both top and bottom lines. For the fourth quarter, the social blogging platform expects revenue growth of 11% to 13%.

"As we lean into Pinterest's unique differentiators as a visual search, discovery, and shopping platform, we're finding our best product market fit in years," Pinterest CEO Bill Ready said in a statement. "Our users are engaging deeply and we're delivering better results for advertisers through improved measurement and innovation across the full funnel."

On the economic front, consumer confidence came in higher-than-expected for October at a reading of 102.6, according to the Commerce Board's report on Tuesday. However, the reading was below the previous month's print of 103.0.

"October's retreat reflected pullbacks in both the Present Situation and Expectations Index. Write-in responses showed that consumers continued to be preoccupied with rising prices in general, and for grocery and gasoline prices in particular," said Dana Peterson, chief economist at The Conference Board, in a statement. "Consumers also expressed concerns about the political situation and higher interest rates. Worries around war/conflicts also rose, amid the recent turmoil in the Middle East."

Elsewhere, shares of Nvidia (NVDA  ) were lower Tuesday after The Wall Street Journal reported that the chipmaker may cancel more than $5 billion in orders from China following new U.S. export restrictions, according to sources familiar with the matter.

For Wednesday, investors will turn their attention towards the Fed's November policy decision in the afternoon, followed by remarks from Fed Chair Jerome Powell.