Skip to content

A simple tool for simulating toy markets in the spirit of the paper "Self-referential behaviour, overreaction and conventions in financial markets"

Notifications You must be signed in to change notification settings

rcalsaverini/toymarket.rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

This is an implementation (in the Rust programming language) of an agent-based simulation of simple toy models for financial markets behavior similar to what is described in the paper Self-referential behaviour, overreaction and conventions in financial markets by Matthieu Wyart and Jean-Philippe Bouchaud.

The premise is that an asset is traded in a market by agents. This asset is represented by it's return series $x_t$, where $t$ is a discrete time parameter. At each tick of the market, each agent make a decision on a volume to buy/sell, with a given decision rule. The total volume is aggregated and the next value of the return is determined by a market response function, which takes the total volume ordered and calculates the next return in the series.

Agents are also given a "learning" oportunity at each tick, by observing the results in the series and re-calibrating their internal decision engine.

About

A simple tool for simulating toy markets in the spirit of the paper "Self-referential behaviour, overreaction and conventions in financial markets"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages