当前位置: 首页>>代码示例>>C#>>正文


C# MamdaSubscription.getSymbol方法代码示例

本文整理汇总了C#中Wombat.MamdaSubscription.getSymbol方法的典型用法代码示例。如果您正苦于以下问题:C# MamdaSubscription.getSymbol方法的具体用法?C# MamdaSubscription.getSymbol怎么用?C# MamdaSubscription.getSymbol使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Wombat.MamdaSubscription的用法示例。


在下文中一共展示了MamdaSubscription.getSymbol方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: onError

        public void onError(
			MamdaSubscription   subscription,
			MamdaErrorSeverity  severity,
			MamdaErrorCode      errorCode,
			string              errorStr)
        {
            Console.WriteLine("Error (" + subscription.getSymbol() + "): ");
        }
开发者ID:jacobraj,项目名称:MAMA,代码行数:8,代码来源:ComboTicker.cs

示例2: onQuoteClosing

        public void onQuoteClosing(
			MamdaSubscription   sub,
			MamdaQuoteListener  listener,
			MamaMsg             msg,
			MamdaQuoteClosing   closingEvent,
			MamdaQuoteRecap     recap)
        {
            Console.WriteLine("Quote Closing (" + sub.getSymbol() + "): ");
        }
开发者ID:jacobraj,项目名称:MAMA,代码行数:9,代码来源:ComboTicker.cs

示例3: handleUpdateImpl

        private void handleUpdateImpl(
			MamdaSubscription subscription,
			MamaMsg msg)
        {
            handleStandardFields(subscription, msg, true);
            if (createDeltaFromMamaMsg(mDeltaBook, msg))
            {

                mDeltaBook.setSymbol(subscription.getSymbol());
                mDeltaBook.setBookTime(msg.getDateTime(MamdaOrderBookFields.BOOK_TIME, mSrcTime));
                if (mFullBook != null)
                {
                    if (mUpdateInconsistentBook || mFullBook.getIsConsistent())
                    {
                        mFullBook.apply(mDeltaBook);
                    }

                    mFullBook.setBookTime(mDeltaBook.getBookTime());
                }
                if (mHandlers.Count > 0)
                {
                    if (mUpdateInconsistentBook || (mFullBook == null) || mFullBook.getIsConsistent())
                    {
                        invokeDeltaHandlers(subscription, msg);
                    }
                }
            }
        }
开发者ID:jacobraj,项目名称:MAMA,代码行数:28,代码来源:MamdaOrderBookListener.cs

示例4: handleRecap

        private void handleRecap(
			MamdaSubscription subscription,
			MamaMsg msg)
        {
            // Synchronize the current Order Book in case a snapshot is being created
            if (mFullBook != null)
            {
                lock (mFullBook)
                {
                    msg.tryU64(MamaReservedFields.SenderId, ref mPreviousSenderId);
                    handleStandardFields(subscription, msg, false);
                    if (createDeltaFromMamaMsg(mTempmDeltaBook, msg))
                    {
                        mDeltaBook.setSymbol(subscription.getSymbol());
                        mDeltaBook.setBookTime(msg.getDateTime(MamdaOrderBookFields.BOOK_TIME, mSrcTime));
                        mDeltaBook.setAsDeltaDifference(mFullBook, mTempmDeltaBook);
                        mFullBook.copy(mTempmDeltaBook);
                        mFullBook.setSymbol(subscription.getSymbol());
                        mFullBook.setBookTime(mDeltaBook.getBookTime());
                        mFullBook.setIsConsistent(true);
                        invokeRecapHandlers(subscription, msg);
                    }
                }
            }
            else
            {
                handleStandardFields(subscription, msg, false);
                // Set the delta to be the contents of the recap.
                if (createDeltaFromMamaMsg(mDeltaBook, msg))
                {
                        mDeltaBook.setSymbol(subscription.getSymbol());
                    invokeRecapHandlers(subscription, msg);
                }
            }
            mGotInitial = true;
        }
开发者ID:jacobraj,项目名称:MAMA,代码行数:36,代码来源:MamdaOrderBookListener.cs

示例5: handleClear

        private void handleClear(
			MamdaSubscription subscription,
			MamaMsg msg)
        {
            // Synchronize the current Order Book in case a snapshot is being created
            if (mFullBook != null)
            {
                lock (mFullBook)
                {
                    handleStandardFields(subscription, msg, false);

                    mDeltaBook.setSymbol(subscription.getSymbol());
                    mDeltaBook.setAsDeltaDeleted(mFullBook);
                    mFullBook.clear();
                    mFullBook.setSymbol(subscription.getSymbol());
                    mFullBook.setIsConsistent(true);
                }
            }
            else
            {
                handleStandardFields(subscription, msg, false);
            }
            invokeClearHandlers(subscription, msg);
            mGotInitial = true;
        }
开发者ID:jacobraj,项目名称:MAMA,代码行数:25,代码来源:MamdaOrderBookListener.cs

示例6: onTradeCorrection

        public void onTradeCorrection(
			MamdaSubscription        sub,
			MamdaTradeListener       listener,
			MamaMsg                  msg,
			MamdaTradeCorrection     correction,
			MamdaTradeRecap          recap)
        {
            Console.WriteLine("Trade correction (" + sub.getSymbol() + "): ");
        }
开发者ID:jacobraj,项目名称:MAMA,代码行数:9,代码来源:ComboTicker.cs

示例7: onTradeCancelOrError

        public void onTradeCancelOrError(
			MamdaSubscription        sub,
			MamdaTradeListener       listener,
			MamaMsg                  msg,
			MamdaTradeCancelOrError  cancelOrError,
			MamdaTradeRecap          recap)
        {
            Console.WriteLine("Trade error/cancel (" + sub.getSymbol() + "): ");
        }
开发者ID:jacobraj,项目名称:MAMA,代码行数:9,代码来源:ComboTicker.cs

示例8: onStale

        public void onStale(
			MamdaSubscription   subscription,
			mamaQuality         quality)
        {
            Console.WriteLine("Stale (" + subscription.getSymbol() + "): ");
        }
开发者ID:jacobraj,项目名称:MAMA,代码行数:6,代码来源:ComboTicker.cs


注:本文中的Wombat.MamdaSubscription.getSymbol方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。