The S&P 500 and Nasdaq closed slightly higher on Friday as inflation worries and some struggling technology and energy stocks were offset by an advance in the consumer discretionary sector, led by Amazon .

Based on the latest available data, the Dow Jones Industrial Average fell 11.15 points, or 0.05 per cent, to 24,311.19, the S&P 500 gained 2.97 points, or 0.11 per cent, to 2,669.91 and the Nasdaq Composite added 1.12 points, or 0.02 per cent, to 7,119.80.

Canadian stock markets were shut down on Friday after the exchange operator TMX Group Ltd said it was experiencing issues with trading on all its exchange platforms.

TMX, which operates the Toronto Stock Exchange and other exchanges, did not identify what was causing the issues. In a series of the tweets, it said all users had been "equally impacted and are unable to connect to our exchanges."

The Toronto Stock Exchange's S&P/TSX Composite Index , the main Canadian index, was up 0.2 per cent at 15,688.93 points before the issues began.