Exemplo n.º 1
0
            /// <summary>
            /// 初始化回调结构
            /// </summary>
            void InitCallbackList()
            {
                callbackStruct = new EsunnyQuoteSpiCallbackStruct();

                callbackStruct.OpenCallback        = new OpenCallback(this.OnOpen);
                callbackStruct.CloseCallback       = new CloseCallback(this.OnClose);
                callbackStruct.QuoteCallback       = new QuoteCallback(this.OnQuote);
                callbackStruct.CombinQuoteCallback = new CombinQuoteCallback(this.OnCombinQuote);
            }
Exemplo n.º 2
0
            /// <summary>
            /// 初始化回调结构
            /// </summary>
            void InitCallbackList()
            {
                callbackStruct = new EsunnyQuoteSpiCallbackStruct();

                callbackStruct.OpenCallback = new OpenCallback(this.OnOpen);
                callbackStruct.CloseCallback = new CloseCallback(this.OnClose);
                callbackStruct.QuoteCallback = new QuoteCallback(this.OnQuote);
                callbackStruct.CombinQuoteCallback = new CombinQuoteCallback(this.OnCombinQuote);
            }