NEW YORK (AP) — Stocks rose in afternoon trading on Wall Street Friday, keeping the market on track to break a three-week losing streak.

The S&P 500 rose 1.2% as of 12:15 p.m. Eastern and is up 3.3% for the week. The Dow Jones Industrial Average rose 306 points, or 1%, to 32,078 and the Nasdaq rose 1.7%. Each index is on track for its first weekly gain in four weeks.

Technology stocks and retailers had some of the biggest gains. Microsoft rose 1.8% and Amazon rose 1.6%.

DocuSign jumped 8% after the electronic signature company reported strong second-quarter sales and raised its subscription forecast.

All 11 industry sectors in the benchmark S&P 500 rose, though makers of household goods and utilities, which are typically considered less risky investments, lagged the market. U.S. crude oil prices rose 3.1%.

Bond yields were mixed. The yield on the 10-year Treasury, which influences interest rates on mortgages and other loans, fell to 3.31% from 3.33% late Tuesday. The two-year Treasury yield, which tends to track expectations for actions by the Federal Reserve, rose to 3.54% from 3.51%.

The Fed has been the main focus for investors as they try to figure out whether the central bank’s plan to cool the hottest inflation in four decades will work or possibly trip an already slowing economy into a recession. Stocks spent July and part of August gaining ground on hopes that the Fed would ease up on its interest rate hikes, but slumped over the last few weeks as it became clear the central bank remained resolute in raising rates.

The central bank has already raised rates four times this year and markets expect it to deliver another jumbo-sized increase of three-quarters of a percentage point at its next meeting in two weeks. Fed officials, including Chair Jerome Powell, have all reaffirmed the central bank’s determination in raising rates until inflation is under control.

That has left investors closely watching economic data for any sign that inflation might be cooling. The calendar for such updates will be busy next week.

The Labor Department will release its report on consumer prices for August on Tuesday and a report on wholesale prices on Wednesday. On Thursday, Wall Street will get an update on retail sales for August.