本文整理匯總了Golang中github.com/quickfixgo/quickfix/field.NewBeginString函數的典型用法代碼示例。如果您正苦於以下問題:Golang NewBeginString函數的具體用法?Golang NewBeginString怎麽用?Golang NewBeginString使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了NewBeginString函數的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
}
示例2: New
//New returns an initialized Message with specified required fields for ExecutionReport.
func New(
orderid *field.OrderIDField,
execid *field.ExecIDField,
exectranstype *field.ExecTransTypeField,
exectype *field.ExecTypeField,
ordstatus *field.OrdStatusField,
symbol *field.SymbolField,
side *field.SideField,
leavesqty *field.LeavesQtyField,
cumqty *field.CumQtyField,
avgpx *field.AvgPxField) Message {
builder := Message{Message: quickfix.NewMessage()}
builder.Header.Set(field.NewBeginString(enum.BeginStringFIX42))
builder.Header.Set(field.NewMsgType("8"))
builder.Body.Set(orderid)
builder.Body.Set(execid)
builder.Body.Set(exectranstype)
builder.Body.Set(exectype)
builder.Body.Set(ordstatus)
builder.Body.Set(symbol)
builder.Body.Set(side)
builder.Body.Set(leavesqty)
builder.Body.Set(cumqty)
builder.Body.Set(avgpx)
return builder
}
示例3: New
//New returns an initialized Message with specified required fields for AssignmentReport.
func New(
asgnrptid *field.AsgnRptIDField,
accounttype *field.AccountTypeField,
settlprice *field.SettlPriceField,
settlpricetype *field.SettlPriceTypeField,
underlyingsettlprice *field.UnderlyingSettlPriceField,
assignmentmethod *field.AssignmentMethodField,
openinterest *field.OpenInterestField,
exercisemethod *field.ExerciseMethodField,
settlsessid *field.SettlSessIDField,
settlsesssubid *field.SettlSessSubIDField,
clearingbusinessdate *field.ClearingBusinessDateField) Message {
builder := Message{Message: quickfix.NewMessage()}
builder.Header.Set(field.NewBeginString(enum.BeginStringFIX44))
builder.Header.Set(field.NewMsgType("AW"))
builder.Body.Set(asgnrptid)
builder.Body.Set(accounttype)
builder.Body.Set(settlprice)
builder.Body.Set(settlpricetype)
builder.Body.Set(underlyingsettlprice)
builder.Body.Set(assignmentmethod)
builder.Body.Set(openinterest)
builder.Body.Set(exercisemethod)
builder.Body.Set(settlsessid)
builder.Body.Set(settlsesssubid)
builder.Body.Set(clearingbusinessdate)
return builder
}
示例4: 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.BeginStringFIX44))
builder.Header.Set(field.NewMsgType("v"))
builder.Body.Set(securityreqid)
return builder
}
示例5: New
//New returns an initialized Message with specified required fields for MarketDataRequestReject.
func New(
mdreqid *field.MDReqIDField) Message {
builder := Message{Message: quickfix.NewMessage()}
builder.Header.Set(field.NewBeginString(enum.BeginStringFIX43))
builder.Header.Set(field.NewMsgType("Y"))
builder.Body.Set(mdreqid)
return builder
}
示例6: New
//New returns an initialized Message with specified required fields for SequenceReset.
func New(
newseqno *field.NewSeqNoField) Message {
builder := Message{Message: quickfix.NewMessage()}
builder.Header.Set(field.NewBeginString(enum.BeginStringFIX43))
builder.Header.Set(field.NewMsgType("4"))
builder.Body.Set(newseqno)
return builder
}
示例7: 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.BeginStringFIX42))
builder.Header.Set(field.NewMsgType("l"))
builder.Body.Set(nobidcomponents)
return builder
}
示例8: New
//New returns an initialized Message with specified required fields for Reject.
func New(
refseqnum *field.RefSeqNumField) Message {
builder := Message{Message: quickfix.NewMessage()}
builder.Header.Set(field.NewBeginString(enum.BeginStringFIX40))
builder.Header.Set(field.NewMsgType("3"))
builder.Body.Set(refseqnum)
return builder
}
示例9: 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.BeginStringFIX43))
builder.Header.Set(field.NewMsgType("W"))
builder.Body.Set(nomdentries)
return builder
}
示例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.BeginStringFIX40))
builder.Header.Set(field.NewMsgType("M"))
builder.Body.Set(listid)
return builder
}
示例11: New
//New returns an initialized Message with specified required fields for QuoteAcknowledgement.
func New(
quoteackstatus *field.QuoteAckStatusField) Message {
builder := Message{Message: quickfix.NewMessage()}
builder.Header.Set(field.NewBeginString(enum.BeginStringFIX42))
builder.Header.Set(field.NewMsgType("b"))
builder.Body.Set(quoteackstatus)
return builder
}
示例12: New
//New returns an initialized Message with specified required fields for SecurityStatus.
func New(
symbol *field.SymbolField) Message {
builder := Message{Message: quickfix.NewMessage()}
builder.Header.Set(field.NewBeginString(enum.BeginStringFIX42))
builder.Header.Set(field.NewMsgType("f"))
builder.Body.Set(symbol)
return builder
}
示例13: New
//New returns an initialized Message with specified required fields for TestRequest.
func New(
testreqid *field.TestReqIDField) Message {
builder := Message{Message: quickfix.NewMessage()}
builder.Header.Set(field.NewBeginString(enum.BeginStringFIX42))
builder.Header.Set(field.NewMsgType("1"))
builder.Body.Set(testreqid)
return builder
}
示例14: New
//New returns an initialized Message with specified required fields for Quote.
func New(
quoteid *field.QuoteIDField) Message {
builder := Message{Message: quickfix.NewMessage()}
builder.Header.Set(field.NewBeginString(enum.BeginStringFIX44))
builder.Header.Set(field.NewMsgType("S"))
builder.Body.Set(quoteid)
return builder
}
示例15: 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
}