Stocks rose for a second straight session on Tuesday as better-than-expected corporate earnings helped to boost broader market sentiment. The Dow Jones Industrial Average rose over 300 points, while the S&P 500 Index and Nasdaq Composite gained 1% and 0.9%, respectively.

Here's how the market settled on Tuesday:

S&P 500 Index (SPY  ): +1.14% or +42.03 points to 3,719.98

Dow Jones Industrial Average (DIA  ): +1.12% or +337.98 points to 30,523.80

Nasdaq Composite Index (QQQ  ): +0.90% or +96.60 points to 10,772.40

Market participants were encouraged by Goldman Sachs' (GS  ) third-quarter earnings results topping expectations for both profit and revenue due to better-than-anticipated trading results.

Following the report, CEO David Solomon announced the bank plans to reorganize its corporate strategy. "Today, we enter the next phase of our growth, introducing a realignment of our businesses that will enable us to further capitalize on the predominant operating model of One Goldman Sachs," Solomon said, quoted by CNBC. "We are confident that our strategic evolution will drive high, more durable returns and unlock long-term value for shareholders."

Goldman is the last of the United States' big banks to report results, with its report following strong earnings from rivals like JPMorgan Chase (JPM  ), Bank of America (BAC  ) and Bank of New York Mellon (BK  ). The Financial Select Sector SPDR Fund (XLF  ) rose 1.6% on Tuesday as the broader financial sector outformed.

Despite the sentiment boost, trading sessions on Wall Street remain volatile as market participants continue to look for signs of a near-term recession. On Tuesday, market benchmarks hit their highest levels in the morning, with the Dow up over 600 points, while the Nasdaq turned negative two different times during the session.

Elsewhere, Salesforce (CRM  ) rose over 4% after activist Starboard Value LP revealed a stake in the Dow-component, CNBC reports. Carnival Cruise (CCL  ) shares also popped over 11% on Tuesday after subsidiary Carnival Holdings announced it will offer $1.25 billion of senior priority notes due 2028, with the proceeds covering debt and other expenses.