Exemplo n.º 1
0
 public void DeliverInfo(InstrumentPositionInfoAdapted instrumentPositionInfoAdapted)
 {
     this.Account     = instrumentPositionInfoAdapted.Account;
     this.AccountName = instrumentPositionInfoAdapted.AccountName;
     this.Amount      = instrumentPositionInfoAdapted.Amount;
     this.Symbol      = instrumentPositionInfoAdapted.Symbol;
     this.NotifyChanges();
 }
Exemplo n.º 2
0
        public void DeliverInstrumentPositionInfo(InstrumentPositionInfoAdapted instrumentPositionInfoAdapted)
        {
            var item = this.InstrumentsPositions.FirstOrDefault(pos => pos.Symbol == instrumentPositionInfoAdapted.Symbol);

            if (item != null)
            {
                item.DeliverInfo(instrumentPositionInfoAdapted);
            }
            else
            {
                this.InstrumentsPositions.Add(new Position(instrumentPositionInfoAdapted));
            }
        }
Exemplo n.º 3
0
 public Position(InstrumentPositionInfoAdapted instrumentPositionInfoAdapted)
 {
     this.DeliverInfo(instrumentPositionInfoAdapted);
 }