/// <inheritdoc /> public override ICollection <PositionId> GetPositionClosedIds(TraderId traderId, StrategyId?filterStrategyId = null) { return(this.indexTraders.TryGetValue(traderId, out var traderIndex) ? SetFactory.IntersectionSorted(new[] { this.indexPositionsClosed, traderIndex.PositionIds(filterStrategyId) }) : new SortedSet <PositionId>()); }
/// <inheritdoc /> public override ICollection <OrderId> GetOrderCompletedIds(TraderId traderId, StrategyId?filterStrategyId = null) { return(this.indexTraders.TryGetValue(traderId, out var traderIndex) ? SetFactory.IntersectionSorted(new[] { this.indexOrdersCompleted, traderIndex.OrderIds(filterStrategyId) }) : new SortedSet <OrderId>()); }