public void SetupCommandsAndBehaviour()
        {
            AddSymbolCommand = new RelayCommand(() =>
            {
                if (string.IsNullOrEmpty(SymbolToAdd))
                    return;

                var l1ViewModel = new SymbolViewModel(SymbolToAdd);
                client.Level1Updated += (sender, dto) =>
                {
                    if (dto.Symbol != SymbolToAdd)
                        return;

                    l1ViewModel.Update(dto);
                };
                SymbolViewModels.Add(l1ViewModel);
            });
        }
 private void SetupCommandsAndBehaviour()
 {
     SendOrderCommand = new RelayCommand(() =>
     {
         client.ModifyStopLimitOrder(exchangeOrderId, triggerPrice, limitPrice, quantity);
     });
 }
        private void SetupCommandsAndBehaviour()
        {
            CancelOrderCommand = new RelayCommand(() =>
            {
                client.CancelLimitOrder(limitOrder.ExchangeOrderId);
            });

            ModifyOrderCommand = new RelayCommand(() =>
            {
                var editViewModel = new EditLimitOrderViewModel(limitOrder, client);
                var editWindow = new EditLimitOrderView();
                editWindow.DataContext = editViewModel;
                editWindow.ShowDialog();
            });
        }
        private void SetupCommandsAndBehaviour()
        {
            SendOrderCommand = new RelayCommand(() =>
            {
                if (selectedLimitOrderType == "Limit order")
                    SendLimitOrder();
                else if (selectedLimitOrderType == "Stop limit order")
                    SendStopLimitOrder();

            });
        }
 private void SetupCommandsAndBehaviour()
 {
     BuyCommand = new RelayCommand(() => client.SubmitMarketOrder(Symbol, Quantity, WayEnum.Buy));
     SellCommand = new RelayCommand(() => client.SubmitMarketOrder(Symbol, Quantity, WayEnum.Sell));
 }
 private void SetupCommandsAndBehaviour()
 {
     SendOrderCommand = new RelayCommand(() =>
         client.ModifyLimitOrder(limitOrder.ExchangeOrderId, price, quantity));
 }
        private void SetupCommandsAndBehaviour()
        {
            CancelOrderCommand = new RelayCommand(() =>
            {
                client.CancelStopLimitOrder(orderId);
            });

            ModifyOrderCommand = new RelayCommand(() =>
            {
                var editViewModel = new EditStopLimitOrderViewModel(client, stopLimitOrder);
                var editView = new EditStopLimitOrderWindow();
                editView.DataContext = editViewModel;
                editView.Show();

            });
        }