/// <summary> /// cancel order /// отозвать ордер /// </summary> public void CancelOrder(Order order) { try { _kraken.CancelOrder(order.NumberMarket); } catch (Exception error) { SendLogMessage(error.ToString(), LogMessageType.Error); } Order newOrder = new Order(); newOrder.SecurityNameCode = order.SecurityNameCode; newOrder.NumberUser = order.NumberUser; newOrder.NumberMarket = order.NumberMarket; newOrder.PortfolioNumber = order.PortfolioNumber; newOrder.Side = order.Side; newOrder.State = OrderStateType.Cancel; if (NewOrderEvent != null) { NewOrderEvent(newOrder); } }
/// <summary> /// cancel order /// отозвать ордер /// </summary> public void CancelOrder(Order order) { KrakenApi.CancelOrder(order); }