private void DeleteOrderHandler(object sender, RoutedEventArgs e) { var clientOrderIdToDelete = ClOrderIdToDelete.Text; var operationExecutor = new BitMexOperationExecutor(_logger); operationExecutor.DeleteOrder(clientOrderIdToDelete); }
private void DeleteOrdersHandler(object sender, RoutedEventArgs e) { var clientOrderIdToDelete = ClOrderIdToDelete.Text; var ids = clientOrderIdToDelete.Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries); var orders = ids.Select(id => new BitMexLimitOrder { OrderId = id }).ToList(); var operationExecutor = new BitMexOperationExecutor(_logger); operationExecutor.DeleteOrders(ids.ToList()); }
private void SetOrderHandler(object sender, RoutedEventArgs e) { var size = int.Parse(Size.Text); var price = double.Parse(Price.Text); var symbol = Symbol.Text; var clientOrderId = ClOrderId.Text; var operationExecutor = new BitMexOperationExecutor(_logger); operationExecutor.SetOrder(new LimitOrder() { ClientOrderId = clientOrderId, Price = price, Size = size, Symbol = symbol }); }