本文整理汇总了C#中QuickFix.Fields.Currency类的典型用法代码示例。如果您正苦于以下问题:C# QuickFix.Fields.Currency类的具体用法?C# QuickFix.Fields.Currency怎么用?C# QuickFix.Fields.Currency使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
QuickFix.Fields.Currency类属于命名空间,在下文中一共展示了QuickFix.Fields.Currency类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Set
public void Set(QuickFix.Fields.Currency val)
{
this.Currency = val;
}
示例2: OnMessage
//receive contract parameters
public void OnMessage(QuickFix.FIX42.SecurityDefinition message, QuickFix.SessionID session)
{
//parseMessage(message, session);
string SecEx = null;
string symbol = null;
string secID = null;
try
{
QuickFix.Fields.SecurityExchange se = new QuickFix.Fields.SecurityExchange();
if (message.IsSetField(se))
{ SecEx = message.GetField(se).ToString(); }
QuickFix.Fields.Symbol s = new QuickFix.Fields.Symbol();
if (message.IsSetField(s))
{ symbol = message.GetField(s).ToString(); }
QuickFix.Fields.SecurityID sid = new QuickFix.Fields.SecurityID();
if (message.IsSetField(sid))
{ secID = message.GetField(sid).ToString(); }
string cur = null;
decimal exPtVal = 0.00M;
QuickFix.Fields.ExchPointValue epv = new QuickFix.Fields.ExchPointValue();
if (message.IsSetField(epv))
{ exPtVal = message.GetField(epv).getValue(); }
QuickFix.Fields.Currency ccy = new QuickFix.Fields.Currency();
if (message.IsSetField(ccy))
{ cur = message.GetField(ccy).getValue(); }
updateSecurity(SecEx, symbol, secID, cur, exPtVal);
}
catch (Exception ex)
{
updateDisplay("QuickFIX Error");
log.WriteLog(ex.ToString());
}
}