當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。