In this paper, an artificial financial market based on heterogeneous agents is presented. The proposed market is composed of traders with limited amount of cash, one traded asset and a centralized mechanism, the market maker, matching buy and sell orders. The price formation process is given by the intersection of the demand and the supply curve. The artificial financial market has been impleme...