public Position(Taxlot taxlot, Security security) { if (_taxlots == null) { _taxlots = new List <Taxlot>(); } if (_taxlots != null) { Ticker = taxlot.Ticker; } Taxlots.Add(taxlot); Security = security; }
private async Task ExecuteSavePortfolio() { using (var portFileOps = new PortfolioFileOps()) { var saved = await portFileOps.TrySaveSession(new SessionData(LimitOrderList.ToList(), Taxlots.ToList())); } }
public void AddTaxlot(Taxlot taxlotToAdd) { Taxlots.Add(taxlotToAdd); }