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