Exemplo n.º 1
0
        public void OrderBookRefresh()
        {
            var trading = new TradingController();

            gridOrdersBook.DataSource = trading.GetAllOpenOrders();


            //gridOrdersBook.Columns.Add(new DataGridViewColumn() { Name = "test"});
        }
Exemplo n.º 2
0
        private void btnClearOrder_Click(object sender, EventArgs e)
        {
            TradingController tc = new TradingController();
            var orders           = tc.GetAllOpenOrders();
            var currencyPair     = new CurrencyPair(listMarket.SelectedItem.ToString(), cbCurrencyAchat.SelectedItem.ToString());

            foreach (var item in orders)
            {
                if (item.CurrencyPair == currencyPair)
                {
                    tc.DeleteOrder(currencyPair, item.IdOrder);

                    Reinitialisation();
                }
            }
        }