The S&P/TSX Composite Index experienced a slight decline of 0.1% to conclude at 31,866 on Tuesday. This decrease was mainly attributable to a downturn in the technology sector, which overshadowed gains made by commodity producers. Leading the decline, Shopify saw a notable drop of 2.5%, followed closely by Celestica with a 1.6% decrease, and Constellation Software, which fell by 0.9%. In contrast, the energy sector saw a boost, with key players like Canadian Natural advancing by 2.2% and Suncor increasing by 1.8%, benefitting from an upswing in oil prices. This sectoral uplift occurred amid investor deliberations over the uncertainty of a potential peace deal between Russia and Ukraine, compounded by escalating geopolitical tensions in the Middle East. Additionally, major mining companies such as Wheaton performed well, climbing 1.3% as gold prices saw a recovery of over 1.5% following the previous session's profit-taking phase. Overall, the TSX is on course to close the year with a robust growth of nearly 29%, the most significant annual gain since 2009, largely fueled by substantial advancements in prominent banks and gold mining operations.