Contract trading engine built with Twisted