Thai authorities have warned traders not to take advantage of shoppers flocking to buy black shirts to mourn King Bhumibol Adulyadej and have sent out teams of inspectors to scour markets for price gougers.

The 88-year-old king died on Thursday after 70 years on the throne, plunging the country into grief.

The government has declared a year of mourning and asked everyone to wear black or white, and to cancel any outdoor festivities, for the first 30 days.

"Regarding black shirts which have become more expensive, the commerce ministry has sent teams to inspect white and black clothing vendors to make sure the shirts are not being sold at prices that are too expensive," Major General Sansern Kaewkamnerd, a spokesman for the prime minister's office, told reporters on Saturday.

Black is the colour of mourning in Thailand but white, a colour that symbolises purity, is also sometimes worn. White is also worn by ethnic Chinese people at funerals.

Most people in Bangkok have been wearing black since the king died and shoppers have been flooding to markets to get new clothes.

Traders said business was brisk and they denied pushing up prices.

"Most people are buying black shirts," said Songkhan Tansonan, running a street stall next to a fetid canal outside Bangkok's Bobae Market.

She said she had sold 200 black shirts by midday on Saturday and 400 the previous day.

"I buy them for 90 baht ($2.60) from the wholesaler and sell them for 120 or 130 baht ($3.40 to $3.70)," she said.

Nongrak Bantaotuk, a nurse, said she was buying black shirts for herself and her family. She said prices had risen a bit, but that did not worry her.

"If you compare, the price is higher than before, but this isn't about prices," she said.

"We're going to wear them for a year."