An Agent Based Model for implementing a double auction financial market 1.0.0

The model implements a double auction financial markets with two types of agents: rational and noise. Rational agents submit orders maximizing their expected utility while noise traders act randomly just caring of their budget constraints. Rational agents are endowed with a linear or a convex payoff. An agent with a linear payoff is a trader investing her own wealth, while an agent with a linear payoff is a portfolio manager investing on behalf of others. The model aims to study the impact of different compensation structure on the market stability and market quantities as prices, volumes, spreads. The convex payoffs increase prices, volatility and spreads while decrease volumes, letting the market to be less liquid.
This is a companion discussion topic for the original entry at