コード例 #1
0
 public Position this[Instrument instrument]
 {
     get
     {
         SmartQuant.Instruments.Position position = this.positionList[instrument.instrument];
         if (position != null)
         {
             return(new Position(position));
         }
         return(null);
     }
 }
コード例 #2
0
 public Position this[string symbol]
 {
     get
     {
         SmartQuant.Instruments.Position position = this.positionList[symbol];
         if (position != null)
         {
             return(new Position(position));
         }
         return(null);
     }
 }
コード例 #3
0
 internal Position(SmartQuant.Instruments.Position position)
 {
     this.position     = position;
     this.transactions = new TransactionList(position.Transactions);
 }
コード例 #4
0
ファイル: Position.cs プロジェクト: houzhongxu/OpenQuant.API
		internal Position(SmartQuant.Instruments.Position position)
		{
			this.position = position;
			this.transactions = new TransactionList(position.Transactions);
		}
コード例 #5
0
 public double Price(SmartQuant.Instruments.Position position)
 {
     return(this.pricer.Price(new Position(position)));
 }