public Position this[Instrument instrument] { get { FreeQuant.Instruments.Position position = this.positionList[instrument.instrument]; if (position != null) { return(new Position(position)); } else { return((Position)null); } } }
public Position this[string symbol] { get { FreeQuant.Instruments.Position position = this.positionList[symbol]; if (position != null) { return(new Position(position)); } else { return((Position)null); } } }
internal Position(FreeQuant.Instruments.Position position) { this.position = position; this.transactions = new TransactionList(position.Transactions); }