public void InitOrders(List <Order> orders, List <Position> positions) { Active = new OrderCacheGroup(orders, OrderStatus.Active); Inactive = new OrderCacheGroup(orders, OrderStatus.Inactive); InProgress = new OrderCacheGroup(orders, OrderStatus.ExecutionStarted); Positions = new PositionsCache(positions); }
public OrdersCache() { Active = new OrderCacheGroup(new Order[0], OrderStatus.Active); Inactive = new OrderCacheGroup(new Order[0], OrderStatus.Inactive); InProgress = new OrderCacheGroup(new Order[0], OrderStatus.ExecutionStarted); Positions = new PositionsCache(new Position[0]); }