What do you mean by Cost?

Each non-zero position has a cost which is the price times the volume on the trade. We aggregate positions by cparty, book, symbol so for each such combination, there will be a current net volume in the symbol (i.e. the size of the current position) and the net cost (which the volume weighted cost of that position)