Measure.py, Trading Engine