本文整理汇总了C#中Symbol.getValue方法的典型用法代码示例。如果您正苦于以下问题:C# Symbol.getValue方法的具体用法?C# Symbol.getValue怎么用?C# Symbol.getValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Symbol
的用法示例。
在下文中一共展示了Symbol.getValue方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: fromApp
public void fromApp(QuickFix.Message message, SessionID sessionID)
{
// receiving messages
Symbol sym = new Symbol();
message.getField(sym);
Tick k = new TickImpl(sym.getValue());
{
// bid
BidPx bp = new BidPx();
BidSize bs = new BidSize();
k.bid = (decimal)bp.getValue();
k.bs = (int)message.getField(bs).getValue();
}
{
// ask
OfferPx op = new OfferPx();
OfferSize os = new OfferSize();
k.ask = (decimal)op.getValue();
k.os = (int)message.getField(os).getValue();
}
{
// last
Price price = new Price();
message.getField(price);
k.trade = (decimal)price.getValue();
}
tl.newTick(k);
//ClOrdID clOrdID = new ClOrdID();
//message.getField(clOrdID);
}
示例2: onMessage
public override void onMessage(QuickFix42.SecurityDefinition securityDefinition, SessionID sessionID)
{
AddText("securityDefinition " + securityDefinition + Environment.NewLine);
try
{
SecurityExchange securityExchange = new SecurityExchange();
securityDefinition.getField(securityExchange);
Symbol symbol = new Symbol();
securityDefinition.getField(symbol);
SecurityType securityType = new SecurityType();
securityDefinition.getField(securityType);
SpreadMatrixData smd = SpreadMatrixCollection.Get(securityExchange.getValue(), symbol.getValue());
if (smd != null)
{
SecurityEntry entry = new SecurityEntry(securityDefinition);
smd.Add(entry);
MarketDataRequest(securityDefinition);
}
}
catch (Exception exception)
{
AddText(exception.Message + Environment.NewLine);
throw;
}
}