This oTree app is designed to visualize continuous double auction markets using heatmaps, utility grids, and other dynamic elements.
Add the following to your SESSION_CONFIGS
in settings.py
:
dict(
name='otree_visual_markets',
display_name='Visual Markets',
num_demo_participants=2,
app_sequence=['otree_visual_markets'],
session_config_file='demo.txt',
),
To run this app successfully, you must also include the following apps in your project directory:
Make sure these folders are present at the same level as otree_visual_markets
. Your directory structure should look like this:
your_project/
├── otree_redwood/
├── otree_markets/
├── otree_visual_markets/
├── settings.py
├── manage.py
These steps help you set up and run the Visual Markets app with oTree 3.x.
🛑 This version is NOT compatible with oTree Lite (5+).
git clone https://github.com/Leeps-Lab/otree_visual_markets.git
cd otree_visual_markets
pyenv local 3.7.17
python3 -m venv venv
source venv/bin/activate
If you have a requirements.txt
, install with:
pip install -r requirements.txt
Or install manually:
pip install numpy pandas js2py pyyaml channels otree-redwood otree-core
otree devserver
Then open your browser to:
http://localhost:8000
Do not run otree update_my_code
or upgrade to oTree 5, or this app may stop working.