当前位置: 首页>>代码示例>>Golang>>正文


Golang field.ClOrdIDField类代码示例

本文整理汇总了Golang中github.com/quickfixgo/quickfix/field.ClOrdIDField的典型用法代码示例。如果您正苦于以下问题:Golang ClOrdIDField类的具体用法?Golang ClOrdIDField怎么用?Golang ClOrdIDField使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了ClOrdIDField类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。

示例1: processMsg

func (e *EchoApplication) processMsg(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
	var possResend field.PossResendField
	msg.Header.Get(&possResend)

	if msg.Body.Has(tag.ClOrdID) {
		var orderID field.ClOrdIDField

		if err := msg.Body.Get(&orderID); err != nil {
			return err
		}

		sessionOrderID := sessionID.String() + orderID.String()
		if possResend.FIXBoolean {
			if e.OrderIds[sessionOrderID] {
				return nil
			}
		}

		e.OrderIds[sessionOrderID] = true
	}

	reply := copyMessage(msg)
	if possResend.FIXBoolean {
		reply.Header.Set(possResend)
	}

	quickfix.SendToTarget(reply, sessionID)

	return nil
}
开发者ID:quickfixgo,项目名称:quickfix,代码行数:30,代码来源:echo_server.go

示例2: GetClOrdID

//GetClOrdID gets ClOrdID, Tag 11
func (m NewOrderSingle) GetClOrdID() (v string, err quickfix.MessageRejectError) {
	var f field.ClOrdIDField
	if err = m.Get(&f); err == nil {
		v = f.Value()
	}
	return
}
开发者ID:quickfixgo,项目名称:examples,代码行数:8,代码来源:NewOrderSingle.generated.go

示例3: GetClOrdID

//GetClOrdID gets ClOrdID, Tag 11
func (m ExecutionReport) GetClOrdID() (v string, err quickfix.MessageRejectError) {
	var f field.ClOrdIDField
	if err = m.Get(&f); err == nil {
		v = f.Value()
	}
	return
}
开发者ID:quickfixgo,项目名称:examples,代码行数:8,代码来源:ExecutionReport.generated.go

示例4: GetClOrdID

//GetClOrdID gets ClOrdID, Tag 11
func (m OrderCancelRequest) GetClOrdID() (v string, err quickfix.MessageRejectError) {
	var f field.ClOrdIDField
	if err = m.Get(&f); err == nil {
		v = f.Value()
	}
	return
}
开发者ID:quickfixgo,项目名称:quickfix,代码行数:8,代码来源:OrderCancelRequest.generated.go

示例5: GetClOrdID

//GetClOrdID gets ClOrdID, Tag 11
func (m RegistrationInstructionsResponse) GetClOrdID() (v string, err quickfix.MessageRejectError) {
	var f field.ClOrdIDField
	if err = m.Get(&f); err == nil {
		v = f.Value()
	}
	return
}
开发者ID:quickfixgo,项目名称:quickfix,代码行数:8,代码来源:RegistrationInstructionsResponse.generated.go

示例6: GetClOrdID

//GetClOrdID gets ClOrdID, Tag 11
func (m SettlementInstructions) GetClOrdID() (v string, err quickfix.MessageRejectError) {
	var f field.ClOrdIDField
	if err = m.Get(&f); err == nil {
		v = f.Value()
	}
	return
}
开发者ID:quickfixgo,项目名称:quickfix,代码行数:8,代码来源:SettlementInstructions.generated.go

示例7: GetClOrdID

//GetClOrdID gets ClOrdID, Tag 11
func (m TradeCaptureReportRequest) GetClOrdID() (v string, err quickfix.MessageRejectError) {
	var f field.ClOrdIDField
	if err = m.Get(&f); err == nil {
		v = f.Value()
	}
	return
}
开发者ID:quickfixgo,项目名称:quickfix,代码行数:8,代码来源:TradeCaptureReportRequest.generated.go


注:本文中的github.com/quickfixgo/quickfix/field.ClOrdIDField类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。