static void Main(string[] args)
        {
            stockBrokerService = new ETradeClient(SandboxConsumerToken);

            // authenticate
            OAuthProcess();

            // get account
            var account = stockBrokerService.GetAccount();

            // update position quotes
            account.Positions = stockBrokerService.GetQuotes(account.Positions);

            // get some other quotes
            var quotes = stockBrokerService.GetQuotes(new[] { "VA", "TSLA" });

            // get a list of symbols for which there are open orders
            var openOrderSymbols = stockBrokerService.GetOpenOrderSymbols();

            // execute some orders
            var orders =
                new List <Order>
            {
                new Order
                {
                    IsSale   = false,     // buy order
                    Price    = 32.00d,
                    Quantity = 100,
                    Symbol   = "VA"
                },
                new Order
                {
                    IsSale   = true,     // sell order
                    Price    = 260.00d,
                    Quantity = 100,
                    Symbol   = "TSLA"
                }
            };

            var response = stockBrokerService.ExecuteOrders(account.Id, orders);

            ExitPrompt();
        }
        static void Main(string[] args)
        {
            stockBrokerService = new ETradeClient(SandboxConsumerToken);

            // authenticate
            OAuthProcess();

            // get account
            var account = stockBrokerService.GetAccount();

            // update position quotes
            account.Positions = stockBrokerService.GetQuotes(account.Positions);

            // get some other quotes
            var quotes = stockBrokerService.GetQuotes(new[] { "VA", "TSLA" });

            // get a list of symbols for which there are open orders
            var openOrderSymbols = stockBrokerService.GetOpenOrderSymbols();

            // execute some orders
            var orders =
                new List<Order>
                  {
                      new Order
                      {
                          IsSale = false, // buy order
                          Price = 32.00d,
                          Quantity = 100,
                          Symbol = "VA"
                      },
                      new Order
                      {
                          IsSale = true, // sell order
                          Price = 260.00d,
                          Quantity = 100,
                          Symbol = "TSLA"
                      }
                 };

            var response = stockBrokerService.ExecuteOrders(account.Id, orders);

            ExitPrompt();
        }