robot trading webapp/demo based on single-market-robot-simulator and market-* packages
JavaScript HTML Shell CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Build Status


Browser-based numerical market experiment webapp for agent-based computational economics and finance.

Trying out the software

Go to:

You do not need to install anything to try out this software.

The web demo above is pre-configured with a simple comparison of markets with different supply/demand intersection.

Initial Screen

Clicking the RUN button will run this simulation. The number of periods can be selected from the interface. Once the simulation has been run, there is a choice of visualizations from the pulldown menu.

Parameters of the simulations can be changed by clicking the "EDIT" tab at the top of the screen to expand the editor.

If you want to modify the simulator to work differently, or program your own agents, you may wish to install this code to your own server and/or create a fork.

Installing and Changing the source code: Pre-requisites

These steps are unnecessary if you are only trying out the software. A copy of this code is already running publicly on the web, see "Usage" above.

These installation instructions are indended for usage by technically inclined Ph.D. students or others with expertise in Linux, Javascript browser and server development, and agent-based economic simulation, who wish to examine the software more closely or adapt it to other usage.

You need

  • a Linux-based web server
  • a nodejs development environment
  • familiarity with ES6 JavaScript is essential; some knowledge of jspm and npm package management is also useful


  1. git clone
  2. Edit and run the build script in, in particular, change these lines before running:
# Put *your* code to deploy it below this line
rm -rf /var/web/
mkdir -p /var/web/
cp -a * /var/web/

You need to change /var/web/ to the directory where you wish to install the files on your web server.

Other Modules/Libraries (dependencies)

Code in robot-trading-webapp is limited to creating a user interface for reviewing and changing simulation parameters, and generating results in the form of graphs or a downloadable .zip package of simulation logs.

All market and agent processes are conducted in separate, tested modules. Modules are also used for user interface support, ETL, plotting, and saving data as zip files.

Significant modules, including modules authored by others, include:


Most imported modules above has tests that can be run by running "npm test" in that module's directory.

The top level code, which processes user input and displays the results, does not include automated tests at this time.


Code authored herein is

Copyright 2016 Paul Brewer, Economic and Financial Technology Consulting LLC


The MIT License