public Allocation AddTransaction(Transaction tx, FXMarket fxMarket) { Allocation res = AddTransaction(tx); res.Update(fxMarket); return(res); }
private void AddAllocationToHistory(Allocation alloc, FXMarket fx) { Allocation newAlloc = (Allocation)alloc.Clone(); newAlloc.CancelFee(); newAlloc.Update(fx); if (History.ContainsKey(fx.Date)) { History[fx.Date] = newAlloc; } else { History.Add(fx.Date, newAlloc); } }