The TSX Composite forged out a gain of 8.23 points by the closing bell Wednesday to 20,191.66.
The Canadian dollar sank 0.19 cents to 79.44 cents U.S.
Energy stocks put the brakes on any further gains, with Canadian Natural Resources shedding 93 cents, or 1.9%, to $48.20, while Vermilion Energy dropped 66 cents or 4.2%, to $13.62.
Among consumer discretionary stocks, Gildan Activewear fell $2.38, or 5.1%, to $44.53, while Sleep Country lost 87 cents, or 2.6%, to $32.74.
In health-care, Tilray descended 31 cents, or 2.2%, to $13.65, while Bausch Health Companies declined 49 cents, or 1.4%, to $34.86.
Among the gainers, gold shone, with Equinox Gold triumphing 54 cxenbts, or 6.3%, to $9.17, while Iamgold moved up 14 cents to $3.01.
In tech issues, Shopify hiked $40.59, or 2.5%, to $1,696.60, while Nuvei Corp. jumped $7.02, or 4.5%, to $161.95.
In other resources, Osisko Mining gained seven cents, or 2.9%, to $2.50, while Pan American Silver picked up 80 cents, or 2.8%, to $29.81.
The TSX Venture Exchange subsided 4.56 points to 862.72
The 12 TSX subgroups were evenly divided, with energy stocks falling 2.3%, consumer discretionary stocks doffing 1.4%, and health-care off 1.2%.
The half-dozen gainers were led by gold, up 1.9%, information technology, ahead 0.6%, and materials up 0.5%.
Stocks staged a comeback on Wednesday as investors grew optimistic about a debt ceiling deal and bought into technology stocks.
The Dow Jones Industrials soared 102.32 points to 34,416.99.
The S&P 500 regained 17.83 points to 4,363.55
The NASDAQ Composite recovered 68.08 points, after spending much of the session in the red, to finish at 14,501.91.
Stocks reversed course on news that Senate Minority Leader Mitch McConnell told a closed meeting of Republicans that he would offer a short-term debt ceiling extension later Wednesday. That would help relieve some pressure on Congress to avoid a U.S. default currently expected on Oct. 18.
September’s ADP report showed that private companies hired at a faster clip than expected last month, despite worries about the delta variant. Private jobs rose by 568,000 for the month, better than the Dow Jones estimate from economists of 425,000.
Investors bought the dip in some key technology stocks. Microsoft rose 1.5%, Amazon gained nearly 1.3%, and Nvidia popped 1.2%. Alphabet also advanced 1.1%. All of the so-called FAANG stocks closed in the green.
Meanwhile, some stocks tied to the economic reopening drifted lower. American Airlines and JetBlue led reopening plays lower, American falling 4.3% and JetBlue docking nearly 2.7%, following a downgrade by Goldman Sachs. Goldman cited higher fuel prices and slower near-term demand.
Prices for 10-year Treasurys gained ground, lowering yields to 1.53% from Tuesday’s 1.54%. Treasury prices and yields move in opposite directions.
Oil prices dipped $1.92 to $77.01 U.S. a barrel.
Gold prices recovered $3.80 to $1,764.70 U.S. an ounce.