started refactoring for useful trade deltas