A generic market implementation in oTree
otree_markets is an oTree app which is meant to be an easily modifiable reference implementation of a market experiment, created using LEEPS lab's redwood framework for realtime communication in oTree. It consists of 3 main components:
- a CDA market implementation (contained in exchange.py) with support for multiple unit orders
- an oTree app (contained in models.py and pages.py) which maintains records of players' cash and asset allocations and coordinates communication between the exchange and the frontend
The oTree app and exchange have support for multiple-asset trading situations, though the provided text interface is currently only configured for a single asset. Finishing multiple asset support is an immediate goal for this project.