JPMorgan Chase, the largest U.S. lender, posted higher profit than Wall Street projected in the three months through September as rising interest rates and lending growth countered a late-summer swoon in bond trading.

Net income of $2.34 a share in the three months through September compared with the $2.26 average estimate from analysts surveyed by FactSet, while companywide revenue rose 5 percent to $27.8 billion. Net interest income, the amount earned from loans after payments on customer deposits, climbed 7 percent to $14.1 billion.

"The U.S. and the global economy continue to show strength, despite increasing economic and geopolitical uncertainties, which at some point in the future may have negative effects on the economy, Chief Executive Officer Jamie Dimon said in a statement.

[More: Jamie Dimon on the Fed: 'No president wants higher interest rates']

Dimon, who also chairs the Business Roundtable, an organization representing 200 of the largest U.S. companies, has cautioned that a U.S. trade war could undermine the economic benefits of a GOP-led tax overhaul that cut the top corporate rate to 21 percent from 35 percent and turned on a spigot of business spending for wages and factories.

Along with tariffs on $250 billion in Chinese goods so far and the threat of at least $250 billion more, the Trump administration has imposed double-digit duties on metals and threatened levies of 25 percent on automotive imports.

"Investors are going to be looking much more to comments about rest of the year and 2019, than the third-quarter results," Kenneth Leon, an analyst with CFRA Research, told the Washington Examiner before the report.

Revenue from the New York-based bank's trading businesses contracted during the quarter, though expansion in the stock markets curbed the impact of a 10 percent drop to $2.8 billion in bond-market trading. Asset and wealth management fees, meanwhile, pushed revenue in that business up 3 percent to $3.56 billion.

"Everything looks nice and steady for JPMorgan," said Octavio Marenzi, head of capital markets management consultancy Opimas. "This portends well for the rest of the US banking industry."

Jason Goldberg, an analyst with British lender Barclays, had predicted that higher-than-expected interest income and asset-management fees would trump the typical third-quarter drop in trading. The Federal Reserve has raised interest rates three times this year, to a range of 2 percent to 2.25 percent, moves that typically benefit lenders although stock markets react negatively, as they did this week.

Steep selloffs in U.S. equities, including an 832-point drop in the Dow Jones industrial average on Wednesday, prompted President Trump to opine that the U.S. central bank has "gone crazy."

[EXCLUSIVE: Trump takes credit for economy, blames 'overly aggressive' Fed for stock market]