refactored for trade deltas