本文整理汇总了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() + "): ");
}
示例2: onQuoteClosing
public void onQuoteClosing(
MamdaSubscription sub,
MamdaQuoteListener listener,
MamaMsg msg,
MamdaQuoteClosing closingEvent,
MamdaQuoteRecap recap)
{
Console.WriteLine("Quote Closing (" + sub.getSymbol() + "): ");
}
示例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);
}
}
}
}
示例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;
}
示例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;
}
示例6: onTradeCorrection
public void onTradeCorrection(
MamdaSubscription sub,
MamdaTradeListener listener,
MamaMsg msg,
MamdaTradeCorrection correction,
MamdaTradeRecap recap)
{
Console.WriteLine("Trade correction (" + sub.getSymbol() + "): ");
}
示例7: onTradeCancelOrError
public void onTradeCancelOrError(
MamdaSubscription sub,
MamdaTradeListener listener,
MamaMsg msg,
MamdaTradeCancelOrError cancelOrError,
MamdaTradeRecap recap)
{
Console.WriteLine("Trade error/cancel (" + sub.getSymbol() + "): ");
}
示例8: onStale
public void onStale(
MamdaSubscription subscription,
mamaQuality quality)
{
Console.WriteLine("Stale (" + subscription.getSymbol() + "): ");
}