Ejemplo n.º 1
0
        private bool ConnectGateway()
        {
            quoteUpdateFunc = new Gateway.QuoteUpdateDelegate(QuoteUpdateCallback);

            if (MarketDataServ.IsReal)
            {
                return(Gateway.ConnectMarketAgent(MarketDataServ.Address,
                                                  "9000", "880810898", "9804441", quoteUpdateFunc));
            }
            else
            {
                return(Gateway.ConnectMarketAgent(MarketDataServ.Address,
                                                  "2030", "00092", "888888", quoteUpdateFunc));
            }
        }