Wall Street is growing less confident in the technology sector and continues to be negative on retailers, according to the latest data on short selling.

Across the 11 S&P 500 sectors, five saw increases in the amount of available shares that are sold short, a bet that they will decline in value.

The biggest increases were in shares of technology companies, where the average short interest is now at a 52-week high, wrote analysts at Bespoke Investment Group. Consumer discretionary stocks remained popular bets as well. Short interest in the sector, which includes retailers, was the highest in the S&P.

Source: Bespoke Investment Group

In a short sale, a stock is borrowed and then sold with the hope it will decline in value so it can be repurchased later to pay back the loan with a profit. It is a strategy that is popular with hedge funds.

The increased short selling in technology comes on the heels of a historic run for the sector, up more than 30 percent over the past 12 months and nearly 60 percent over the past two years. Chip stocks like Nvidia and Micron are up more than 40 percent over the past year as smartphone producers, computer companies and self-driving visionaries spur demand for semiconductors.

In comparison, the S&P 500 is up 13 percent over the past year and 29 percent over the past two years.