コード例 #1
0
 private double GetPricing()
 {
     if (_askBased)
     {
         return(Orderbook.getAskPrice(GetAlphaVolume()));
     }
     else
     {
         return(Orderbook.getBidPrice(GetAlphaVolume()));
     }
 }
コード例 #2
0
 private double GetDualPricing()
 {
     try {
         if (_askBased)
         {
             return(Orderbook.getBidPrice(GetAlphaVolume()));
         }
         else
         {
             return(Orderbook.getAskPrice(GetAlphaVolume()));
         }
     }
     catch (Exception ex) {
         Console.WriteLine("In alpha=" + _alpha);
         throw ex;
     }
 }