本文整理匯總了C#中QuickFix.SessionID.getTargetCompID方法的典型用法代碼示例。如果您正苦於以下問題:C# SessionID.getTargetCompID方法的具體用法?C# SessionID.getTargetCompID怎麽用?C# SessionID.getTargetCompID使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類QuickFix.SessionID
的用法示例。
在下文中一共展示了SessionID.getTargetCompID方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: RequestMarketData
public void RequestMarketData(SessionID sessionId)
{
if (string.IsNullOrEmpty(quoteSessionTargetId)) return;
var sessionTarget = sessionId.getTargetCompID();
if (sessionTarget != quoteSessionTargetId)
{
Logger.InfoFormat("RequestMarketData skipped (session target is '{0}', target is '{1}')",
sessionTarget, quoteSessionTargetId);
return;
}
if (useTickerCsvDictionary)
RequestTickersFromCsvDic(sessionId);
else
RequestTickersFromTextFile(sessionId);
}
示例2: MakeQuoteRequest
public static Message MakeQuoteRequest(string ticker, SessionID sessionInfo)
{
var senderId = sessionInfo.getSenderCompID();
if (string.IsNullOrEmpty(senderId))
{
Logger.ErrorFormat("MakeMessage: код отправителя для [{0}] не найден", sessionInfo);
return null;
}
var msg =
FixMessage.FixVersion == FixVersion.Fix42 ?
(Message)new QuickFix42.MarketDataRequest(
new MDReqID(string.Format("{0}-{1:dd-HH-mm}", ticker, DateTime.Now)),
new SubscriptionRequestType((char)1), // subscribe
new MarketDepth(marketDepth))
: FixMessage.FixVersion == FixVersion.Fix43 ?
(Message)new QuickFix43.MarketDataRequest(
new MDReqID(string.Format("{0}-{1:dd-HH-mm}", ticker, DateTime.Now)),
new SubscriptionRequestType((char)1), // subscribe
new MarketDepth(marketDepth))
: new QuickFix44.MarketDataRequest(
new MDReqID(string.Format("{0}-{1:dd-HH-mm}", ticker, DateTime.Now)), // 262=EURAUD-02-17-07
new SubscriptionRequestType(SubscriptionRequestType.SNAPSHOT_PLUS_UPDATES), // subscribe
new MarketDepth(marketDepth));
msg.setField(new MDUpdateType(
quoteSubscriptionIncrementalUpdateType
? MDUpdateType.INCREMENTAL_REFRESH
: MDUpdateType.FULL_REFRESH));
if (!AddBidAskQueryClause(msg, ticker))
return null;
msg.getHeader().setField(new SenderCompID(senderId));
msg.getHeader().setField(new TargetCompID(sessionInfo.getTargetCompID()));
return msg;
}
示例3: onCreate
public void onCreate(SessionID __p1)
{
debug("session created" + __p1.getSenderCompID() + " " + __p1.getTargetCompID());
}