當前位置: 首頁>>代碼示例>>Golang>>正文


Golang field.NewDefaultApplVerID函數代碼示例

本文整理匯總了Golang中github.com/quickfixgo/quickfix/field.NewDefaultApplVerID函數的典型用法代碼示例。如果您正苦於以下問題:Golang NewDefaultApplVerID函數的具體用法?Golang NewDefaultApplVerID怎麽用?Golang NewDefaultApplVerID使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了NewDefaultApplVerID函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。

示例1: New

//New returns an initialized Message with specified required fields for SecurityStatus.
func New() Message {
	builder := Message{Message: quickfix.NewMessage()}
	builder.Header.Set(field.NewBeginString(enum.BeginStringFIXT11))
	builder.Header.Set(field.NewDefaultApplVerID(enum.ApplVerID_FIX50SP1))
	builder.Header.Set(field.NewMsgType("f"))
	return builder
}
開發者ID:jfyuen,項目名稱:quickfix,代碼行數:8,代碼來源:SecurityStatus.go

示例2: New

//New returns an initialized Message with specified required fields for TradingSessionListUpdateReport.
func New(
	notradingsessions *field.NoTradingSessionsField) Message {
	builder := Message{Message: quickfix.NewMessage()}
	builder.Header.Set(field.NewBeginString(enum.BeginStringFIXT11))
	builder.Header.Set(field.NewDefaultApplVerID(enum.ApplVerID_FIX50SP2))
	builder.Header.Set(field.NewMsgType("BS"))
	builder.Body.Set(notradingsessions)
	return builder
}
開發者ID:jfyuen,項目名稱:quickfix,代碼行數:10,代碼來源:TradingSessionListUpdateReport.go

示例3: New

//New returns an initialized Message with specified required fields for AllocationReportAck.
func New(
	allocreportid *field.AllocReportIDField) Message {
	builder := Message{Message: quickfix.NewMessage()}
	builder.Header.Set(field.NewBeginString(enum.BeginStringFIXT11))
	builder.Header.Set(field.NewDefaultApplVerID(enum.ApplVerID_FIX50SP2))
	builder.Header.Set(field.NewMsgType("AT"))
	builder.Body.Set(allocreportid)
	return builder
}
開發者ID:jfyuen,項目名稱:quickfix,代碼行數:10,代碼來源:AllocationReportAck.go

示例4: New

//New returns an initialized Message with specified required fields for UserNotification.
func New(
	userstatus *field.UserStatusField) Message {
	builder := Message{Message: quickfix.NewMessage()}
	builder.Header.Set(field.NewBeginString(enum.BeginStringFIXT11))
	builder.Header.Set(field.NewDefaultApplVerID(enum.ApplVerID_FIX50SP2))
	builder.Header.Set(field.NewMsgType("CB"))
	builder.Body.Set(userstatus)
	return builder
}
開發者ID:jfyuen,項目名稱:quickfix,代碼行數:10,代碼來源:UserNotification.go

示例5: New

//New returns an initialized Message with specified required fields for StreamAssignmentReport.
func New(
	streamasgnrptid *field.StreamAsgnRptIDField) Message {
	builder := Message{Message: quickfix.NewMessage()}
	builder.Header.Set(field.NewBeginString(enum.BeginStringFIXT11))
	builder.Header.Set(field.NewDefaultApplVerID(enum.ApplVerID_FIX50SP2))
	builder.Header.Set(field.NewMsgType("CD"))
	builder.Body.Set(streamasgnrptid)
	return builder
}
開發者ID:jfyuen,項目名稱:quickfix,代碼行數:10,代碼來源:StreamAssignmentReport.go

示例6: New

//New returns an initialized Message with specified required fields for OrderStatusRequest.
func New(
	side *field.SideField) Message {
	builder := Message{Message: quickfix.NewMessage()}
	builder.Header.Set(field.NewBeginString(enum.BeginStringFIXT11))
	builder.Header.Set(field.NewDefaultApplVerID(enum.ApplVerID_FIX50SP2))
	builder.Header.Set(field.NewMsgType("H"))
	builder.Body.Set(side)
	return builder
}
開發者ID:jfyuen,項目名稱:quickfix,代碼行數:10,代碼來源:OrderStatusRequest.go

示例7: New

//New returns an initialized Message with specified required fields for MarketDataSnapshotFullRefresh.
func New(
	nomdentries *field.NoMDEntriesField) Message {
	builder := Message{Message: quickfix.NewMessage()}
	builder.Header.Set(field.NewBeginString(enum.BeginStringFIXT11))
	builder.Header.Set(field.NewDefaultApplVerID(enum.ApplVerID_FIX50SP1))
	builder.Header.Set(field.NewMsgType("W"))
	builder.Body.Set(nomdentries)
	return builder
}
開發者ID:jfyuen,項目名稱:quickfix,代碼行數:10,代碼來源:MarketDataSnapshotFullRefresh.go

示例8: New

//New returns an initialized Message with specified required fields for QuoteCancel.
func New(
	quotecanceltype *field.QuoteCancelTypeField) Message {
	builder := Message{Message: quickfix.NewMessage()}
	builder.Header.Set(field.NewBeginString(enum.BeginStringFIXT11))
	builder.Header.Set(field.NewDefaultApplVerID(enum.ApplVerID_FIX50SP2))
	builder.Header.Set(field.NewMsgType("Z"))
	builder.Body.Set(quotecanceltype)
	return builder
}
開發者ID:jfyuen,項目名稱:quickfix,代碼行數:10,代碼來源:QuoteCancel.go

示例9: New

//New returns an initialized Message with specified required fields for MassQuoteAcknowledgement.
func New(
	quotestatus *field.QuoteStatusField) Message {
	builder := Message{Message: quickfix.NewMessage()}
	builder.Header.Set(field.NewBeginString(enum.BeginStringFIXT11))
	builder.Header.Set(field.NewDefaultApplVerID(enum.ApplVerID_FIX50))
	builder.Header.Set(field.NewMsgType("b"))
	builder.Body.Set(quotestatus)
	return builder
}
開發者ID:jfyuen,項目名稱:quickfix,代碼行數:10,代碼來源:MassQuoteAcknowledgement.go

示例10: New

//New returns an initialized Message with specified required fields for ListStatusRequest.
func New(
	listid *field.ListIDField) Message {
	builder := Message{Message: quickfix.NewMessage()}
	builder.Header.Set(field.NewBeginString(enum.BeginStringFIXT11))
	builder.Header.Set(field.NewDefaultApplVerID(enum.ApplVerID_FIX50))
	builder.Header.Set(field.NewMsgType("M"))
	builder.Body.Set(listid)
	return builder
}
開發者ID:jfyuen,項目名稱:quickfix,代碼行數:10,代碼來源:ListStatusRequest.go

示例11: New

//New returns an initialized Message with specified required fields for PartyDetailsListReport.
func New(
	partydetailslistreportid *field.PartyDetailsListReportIDField) Message {
	builder := Message{Message: quickfix.NewMessage()}
	builder.Header.Set(field.NewBeginString(enum.BeginStringFIXT11))
	builder.Header.Set(field.NewDefaultApplVerID(enum.ApplVerID_FIX50SP2))
	builder.Header.Set(field.NewMsgType("CG"))
	builder.Body.Set(partydetailslistreportid)
	return builder
}
開發者ID:jfyuen,項目名稱:quickfix,代碼行數:10,代碼來源:PartyDetailsListReport.go

示例12: New

//New returns an initialized Message with specified required fields for BidResponse.
func New(
	nobidcomponents *field.NoBidComponentsField) Message {
	builder := Message{Message: quickfix.NewMessage()}
	builder.Header.Set(field.NewBeginString(enum.BeginStringFIXT11))
	builder.Header.Set(field.NewDefaultApplVerID(enum.ApplVerID_FIX50))
	builder.Header.Set(field.NewMsgType("l"))
	builder.Body.Set(nobidcomponents)
	return builder
}
開發者ID:jfyuen,項目名稱:quickfix,代碼行數:10,代碼來源:BidResponse.go

示例13: New

//New returns an initialized Message with specified required fields for SecurityTypeRequest.
func New(
	securityreqid *field.SecurityReqIDField) Message {
	builder := Message{Message: quickfix.NewMessage()}
	builder.Header.Set(field.NewBeginString(enum.BeginStringFIXT11))
	builder.Header.Set(field.NewDefaultApplVerID(enum.ApplVerID_FIX50))
	builder.Header.Set(field.NewMsgType("v"))
	builder.Body.Set(securityreqid)
	return builder
}
開發者ID:jfyuen,項目名稱:quickfix,代碼行數:10,代碼來源:SecurityTypeRequest.go

示例14: New

//New returns an initialized Message with specified required fields for ApplicationMessageRequestAck.
func New(
	applresponseid *field.ApplResponseIDField) Message {
	builder := Message{Message: quickfix.NewMessage()}
	builder.Header.Set(field.NewBeginString(enum.BeginStringFIXT11))
	builder.Header.Set(field.NewDefaultApplVerID(enum.ApplVerID_FIX50SP2))
	builder.Header.Set(field.NewMsgType("BX"))
	builder.Body.Set(applresponseid)
	return builder
}
開發者ID:jfyuen,項目名稱:quickfix,代碼行數:10,代碼來源:ApplicationMessageRequestAck.go

示例15: New

//New returns an initialized Message with specified required fields for RFQRequest.
func New(
	rfqreqid *field.RFQReqIDField,
	norelatedsym *field.NoRelatedSymField) Message {
	builder := Message{Message: quickfix.NewMessage()}
	builder.Header.Set(field.NewBeginString(enum.BeginStringFIXT11))
	builder.Header.Set(field.NewDefaultApplVerID(enum.ApplVerID_FIX50SP2))
	builder.Header.Set(field.NewMsgType("AH"))
	builder.Body.Set(rfqreqid)
	builder.Body.Set(norelatedsym)
	return builder
}
開發者ID:jfyuen,項目名稱:quickfix,代碼行數:12,代碼來源:RFQRequest.go


注:本文中的github.com/quickfixgo/quickfix/field.NewDefaultApplVerID函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。