public void CancelOrder(string symbol, string orderId) { if (IsConnected) { WriteToLog("Cancel order. Symbol: {0}; OrderId: {1}", symbol, orderId); SmartComServer.CancelOrder(Portfolio, symbol, orderId); } }
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); } }