Skip to content

a generic market implementation in oTree, using otree-redwood

Notifications You must be signed in to change notification settings

Leeps-Lab/otree_markets

Repository files navigation

oTree Markets

A generic market implementation in oTree

oTree Markets is an extension to oTree which provides a set of useful tools for the creation of market-based experiments. It was built on LEEPS lab's redwood framework for realtime communication. It consists of 3 main components:

  • a CDA market implementation (contained in cda_exchange.py) with support for multiple unit orders
  • extended versions of oTree models and views (contained in models.py and pages.py) which maintain records of players' cash and asset allocations and coordinates communication between the exchange and the frontend
  • a Javascript trading interface, as well as a set of reusable webcomponents for creating market GUIs (contained in the static files)

To see some market experiments built using oTree Markets, check out our single asset market or multiple asset market implementations. A more complex example can be found in our market with ETF experiment. This experiment overrides some of oTree Markets' functionality to add support for an ETF asset, as well as automated trading bots.

This project was started by Morgan Grant in fulfillment of his Masters project. You can read the writeup paper for that here

To get started with oTree Markets, check out the wiki

About

a generic market implementation in oTree, using otree-redwood

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published