Stocks around the world rose on Tuesday as Wall Street eked out record highs ahead of earnings season, while U.S. Treasury prices pared gains after Catalonia's leader allowed for talks with Madrid as he proclaimed independence from Spain.

Oil futures rose on signs of supply rebalancing, helping shares in energy companies.

The dollar lost ground and the euro climbed to its highest point in a week and firmed further on the Catalan news.

Catalan leader Carles Puigdemont proclaimed the region's independence, but said its effects would be suspended to allow for talks with the Madrid government.

"If you really want to be bearish about this market, there's no shortage of macro events you could point to whether its North Korea or China, Catalonia or the Trump dynamics. So far the market has looked through every one of them," said Nathan Thooft, senior managing director in asset allocation at Manulife Asset Management in Boston.

"It’s this game of looking at macro events versus actual fundamentals, and fundamentals are driving the market," said Thooft who expects earnings to beat expectations.

The three major Wall Street indexes scaled new records, helped by gains in energy stocks and in Wal-Mart on the back of the company's $20 billion share buyback plan.

The Dow Jones industrial average hit a record closing high on Tuesday, helped by a surge in Wal-Mart Stores, while Amazon and Facebook lost ground and investors focused on upcoming quarterly reports.

Based on the latest available data, the Dow Jones industrial average rose 69.61 points, or 0.31 per cent, to 22,830.68, the S&P 500 gained 5.91 points, or 0.23 per cent, to 2,550.64 and the Nasdaq Composite added 7.52 points, or 0.11 per cent, to 6,587.25. 

European bourses ended the day slightly lower on Tuesday as investors braced themselves for a possible unilateral declaration of independence at the Catalan parliament.

The dollar index, which tracks the greenback against a basket of major currencies, fell for the third day in a row. It was down 0.41 per cent, with the euro up 0.54 per cent to US$1.1802.

On top of strong German export data, traders were also upbeat after one of the European Central Bank's German policymakers called for an end to its stimulus.

Benchmark 10-year notes last rose 7/32 in price to yield 2.3445 per cent, from 2.368 per cent late on Monday.

The 30-year bond last rose 15/32 in price to yield 2.8824 per cent, from 2.906 per cent late on Monday.

In commodities, Brent oil prices pushed above US$56 a barrel after top producer Saudi Arabia signaled it would trim its exports and as OPEC flagged ongoing efforts to try to restore the longer-term "balance" of the market.

U.S. crude rose 2.56 per cent to US$50.85 per barrel and Brent was last at US$56.49, up 1.25 per cent on the day.

Gold prices also hit their highest in more than a week against the backdrop of a weaker dollar although expectations for another U.S. interest rate hike capped gains. Spot gold added 0.4 per cent to $1,288.80 an ounce.