本文整理汇总了C#中QuickFix.getText方法的典型用法代码示例。如果您正苦于以下问题:C# QuickFix.getText方法的具体用法?C# QuickFix.getText怎么用?C# QuickFix.getText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QuickFix
的用法示例。
在下文中一共展示了QuickFix.getText方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: onMessage
new public void onMessage(QuickFix.FIX43.MarketDataRequestReject reject, SessionID sessionID)
{
string str = reject.isSetText() ? reject.getText().getValue() : "";
this.provider.EmitError(string.Format(BeAEwTZGlZaeOmY5cm.J00weU3cM6(582), (object)reject.getMDReqID().getValue(), (object)str));
}
示例2: onMessage
public void onMessage(QuickFix.FIX42.TradingSessionStatus message, SessionID sessionID)
{
List<string> list = new List<string>();
list.Add(BeAEwTZGlZaeOmY5cm.J00weU3cM6(1532));
if (this.SessionEquals(sessionID, this.priceSessionID))
list.Add(BeAEwTZGlZaeOmY5cm.J00weU3cM6(1578));
if (this.SessionEquals(sessionID, this.orderSessionID))
list.Add(BeAEwTZGlZaeOmY5cm.J00weU3cM6(1592));
if (message.isSetTradSesStatus())
{
int num = message.getTradSesStatus().getValue();
list.Add(string.Format(BeAEwTZGlZaeOmY5cm.J00weU3cM6(1606), (object) num, (object) FIXTradSesStatus.ToString(num)));
}
if (message.isSetText())
list.Add(string.Format(BeAEwTZGlZaeOmY5cm.J00weU3cM6(1654), (object) message.getText().getValue()));
this.provider.EmitError(string.Join(BeAEwTZGlZaeOmY5cm.J00weU3cM6(1674), (IEnumerable<string>) list));
}
示例3: onMessage
//.........这里部分代码省略.........
if (report.isSetSecurityDesc())
report1.SecurityDesc = report.getSecurityDesc().getValue();
if (report.isSetEncodedSecurityDescLen())
report1.EncodedSecurityDescLen = report.getEncodedSecurityDescLen().getValue();
if (report.isSetEncodedSecurityDesc())
report1.EncodedSecurityDesc = report.getEncodedSecurityDesc().getValue();
if (report.isSetSide())
((FIXExecutionReport)report1).Side = report.getSide().getValue();
if (report.isSetOrderQty())
report1.OrderQty = report.getOrderQty().getValue();
if (report.isSetCashOrderQty())
report1.CashOrderQty = report.getCashOrderQty().getValue();
if (report.isSetOrdType())
((FIXExecutionReport)report1).OrdType = report.getOrdType().getValue();
if (report.isSetPrice())
report1.Price = report.getPrice().getValue();
if (report.isSetStopPx())
report1.StopPx = report.getStopPx().getValue();
if (report.isSetDiscretionInst())
report1.DiscretionInst = report.getDiscretionInst().getValue();
if (report.isSetDiscretionOffset())
report1.DiscretionOffsetValue = report.getDiscretionOffset().getValue();
if (report.isSetCurrency())
report1.Currency = report.getCurrency().getValue();
if (report.isSetComplianceID())
report1.ComplianceID = report.getComplianceID().getValue();
if (report.isSetTimeInForce())
((FIXExecutionReport)report1).TimeInForce = report.getTimeInForce().getValue();
if (report.isSetEffectiveTime())
report1.EffectiveTime = report.getEffectiveTime().getValue();
if (report.isSetExpireDate())
report1.ExpireDate = DateTime.Parse(report.getExpireDate().getValue());
if (report.isSetExpireTime())
report1.ExpireTime = report.getExpireTime().getValue();
if (report.isSetExecInst())
report1.ExecInst = report.getExecInst().getValue();
if (report.isSetLastShares())
report1.LastQty = report.getLastShares().getValue();
if (report.isSetLastPx())
report1.LastPx = report.getLastPx().getValue();
if (report.isSetLastSpotRate())
report1.LastSpotRate = report.getLastSpotRate().getValue();
if (report.isSetLastForwardPoints())
report1.LastForwardPoints = report.getLastForwardPoints().getValue();
if (report.isSetLastMkt())
report1.LastMkt = report.getLastMkt().getValue();
if (report.isSetTradingSessionID())
report1.TradingSessionID = report.getTradingSessionID().getValue();
if (report.isSetLastCapacity())
report1.LastCapacity = report.getLastCapacity().getValue();
if (report.isSetLeavesQty())
report1.LeavesQty = report.getLeavesQty().getValue();
if (report.isSetCumQty())
report1.CumQty = report.getCumQty().getValue();
if (report.isSetAvgPx())
report1.AvgPx = report.getAvgPx().getValue();
if (report.isSetDayOrderQty())
report1.DayOrderQty = report.getDayOrderQty().getValue();
if (report.isSetDayCumQty())
report1.DayCumQty = report.getDayCumQty().getValue();
if (report.isSetDayAvgPx())
report1.DayAvgPx = report.getDayAvgPx().getValue();
if (report.isSetGTBookingInst())
report1.GTBookingInst = report.getGTBookingInst().getValue();
if (report.isSetTradeDate())
report1.TradeDate = DateTime.Parse(report.getTradeDate().getValue());
if (report.isSetTransactTime())
report1.TransactTime = report.getTransactTime().getValue();
if (report.isSetCommission())
report1.Commission = report.getCommission().getValue();
if (report.isSetCommType())
((FIXExecutionReport)report1).CommType = report.getCommType().getValue();
if (report.isSetGrossTradeAmt())
report1.GrossTradeAmt = report.getGrossTradeAmt().getValue();
if (report.isSetSettlCurrAmt())
report1.SettlCurrAmt = report.getSettlCurrAmt().getValue();
if (report.isSetSettlCurrency())
report1.SettlCurrency = report.getSettlCurrency().getValue();
if (report.isSetHandlInst())
report1.HandlInst = report.getHandlInst().getValue();
if (report.isSetMinQty())
report1.MinQty = report.getMinQty().getValue();
if (report.isSetMaxFloor())
report1.MaxFloor = report.getMaxFloor().getValue();
if (report.isSetMaxShow())
report1.MaxShow = report.getMaxShow().getValue();
if (report.isSetText())
report1.Text = report.getText().getValue();
if (report.isSetEncodedTextLen())
report1.EncodedTextLen = report.getEncodedTextLen().getValue();
if (report.isSetEncodedText())
report1.EncodedText = report.getEncodedText().getValue();
if (report.isSetOrderQty2())
report1.OrderQty2 = report.getOrderQty2().getValue();
if (report.isSetMultiLegReportingType())
report1.MultiLegReportingType = report.getMultiLegReportingType().getValue();
if (this.dyw7Oec2k == null)
return;
this.dyw7Oec2k((object)this, new ExecutionReportEventArgs(report1));
}