public OrderAllocation Map(AllocationFileContract contract) { if (contract == null) { this.FailedParseTotal += 1; return(null); } return(this.MapAllocation(contract)); }
private OrderAllocation MapAllocation(AllocationFileContract contract) { var orderFilledVolume = this.MapDecimal(contract.OrderFilledVolume); var allocation = new OrderAllocation( null, contract.OrderId, contract.Fund, contract.Strategy, contract.ClientAccountId, contract.AllocationId, orderFilledVolume.GetValueOrDefault(0), DateTime.UtcNow); return(allocation); }