コード例 #1
0
 public void CancelOrder(string symbol, string orderId)
 {
     if (IsConnected)
     {
         WriteToLog("Cancel order. Symbol: {0}; OrderId: {1}", symbol, orderId);
         SmartComServer.CancelOrder(Portfolio, symbol, orderId);
     }
 }
コード例 #2
0
 public void CancelOrder(string symbol, string orderId)
 {
     try
     {
         if (IsConnected)
         {
             WriteToLog("Cancel order. Symbol: {0}; OrderId: {1}", symbol, orderId);
             SmartComServer.CancelOrder(Portfolio, symbol, orderId);
         }
     } catch (Exception e)
     {
         throw new SmartException(e);
     }
 }