Does the God of Wealth belong to Buddhism or Taoism?

Taoism is the earliest, so is Buddhism.

According to folk rumors, the God of Wealth was originally a Taoist, such as Fan Li, the literary God of Wealth, Guan Yu of Wu Caishen, and Zhao Gongming, the true God of Wealth. These are all Taoist gods, and there are generally more than five gods of wealth, commonly known as the five-way god of wealth. Later, Buddhism also accommodated the god of wealth, which was divided into yellow god of wealth, red god of wealth, white god of wealth, black god of wealth and green god of wealth.

A place dedicated to the god of wealth

The God of Wealth likes cleanliness. A quiet room is hard to come by. Too noisy fantasy will disturb the rest of the god of wealth, so we must prepare a clean and quiet room for the god of wealth. The house of the God of Wealth cannot directly face the toilet, which is disrespectful to the gods. The god of wealth is kept in the house, not facing the door. The face of the god of wealth is the leakage of money, and it is lucky for the house.