Lloyd Blankfein. Goldman Sachs Stock markets have been on a tear since Donald Trump's electoral victory in November, but at least one Wall Street titan says the president-elect can't take all the credit.

Goldman Sachs CEO Lloyd Blankfein on Wednesday told CNBC that the market had been on the right path before the election and that the "Trump effect" simply added to the momentum.

"I think one of the reasons why the election had such a dramatic effect is because it was drawing people in the direction that it was already heading," Blankfein said from the World Economic Forum in Davos, Switzerland.

"I think the markets were improving, you know, the Fed's focus on the likelihood of them raising rates, the growth was already in it," he said of the Federal Reserve. "We were already getting at or near full employment."

Those factors, he said, were already "baked in" and provide a tailwind for Trump's "stimulative" platform.

Goldman's own stock has helped lead the rally and is currently up about 26.7% since the election.

His comments contrast those of other Wall Street CEOs who appear more bullish on Trump's plan for the economy. Jamie Dimon of JPMorgan told CNBC that "some people are starting to spend in anticipation" of tax reform and repatriation resulting from Trump's election.

"I've heard some CEOs here say, 'I'm going to invest faster now,'" he said.

Of course, Blankfein said, Trump's message has filled investors with greater confidence. The president-elect has promised lower corporate taxes, more infrastructure spending, and less regulation, among other things.

Blankfein added that the Trump effect did not result just from the difference between the new expectations and the status quo, but rather from the difference between the new expectations and what had been built in for a Hillary Clinton win. Blankfein said before the election that he was backing her bid for president.

That said, Blankfein referred to the president-elect as simply "part of the macroenvironment."

"It was going in this way, you know, the basic bones of the US economy is good," Blankfein said.

"The balance sheets of companies and balance sheets of individuals had been fixed. Again, we've talked about full employment, wage growth ... so this is pushing in the direction of the momentum."

When asked if he wished he had backed a different horse, given that Clinton had pushed for higher taxes and more regulation, Blankfein said there was more to it than just those two factors.

"Let me put it this way: I am dying to look back at this and like the outcome of it, and I'm certainly going to behave in as supportive of a fashion as I possibly can to make sure that I like it," he said.

Goldman Sachs reported fourth-quarter earnings on Wednesday that beat analysts' expectations.