This paper aims to present the architecture of an artificial stock market that considers the microstructure of existing markets and understanding the complex patterns and phenomena that are observed in economic systems. In agent-based financial market models, prices can be endogenously formed by the system itself as the result of interaction of market participants. We identify and describe the ...