Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions cmd/generate-fix/internal/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ func New({{template "field_args" $required_fields }}) (m {{ .Name }}) {
m.Trailer.Init()

m.Header.Set(field.NewMsgType("{{ .MessageDef.MsgType }}"))
m.Header.Set(field.NewBeginString("{{ routerBeginString .FIXSpec }}"))
{{- range $required_fields }}
m.Set({{ toLower .Name }})
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions fix40/advertisement/Advertisement.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(advid field.AdvIdField, advtranstype field.AdvTransTypeField, symbol fi
m.Trailer.Init()

m.Header.Set(field.NewMsgType("7"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(advid)
m.Set(advtranstype)
m.Set(symbol)
Expand Down
1 change: 1 addition & 0 deletions fix40/allocation/Allocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(allocid field.AllocIDField, alloctranstype field.AllocTransTypeField, s
m.Trailer.Init()

m.Header.Set(field.NewMsgType("J"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(allocid)
m.Set(alloctranstype)
m.Set(side)
Expand Down
1 change: 1 addition & 0 deletions fix40/allocationack/AllocationACK.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(allocid field.AllocIDField, tradedate field.TradeDateField, allocstatus
m.Trailer.Init()

m.Header.Set(field.NewMsgType("P"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(allocid)
m.Set(tradedate)
m.Set(allocstatus)
Expand Down
1 change: 1 addition & 0 deletions fix40/dontknowtrade/DontKnowTrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(dkreason field.DKReasonField, symbol field.SymbolField, side field.Side
m.Trailer.Init()

m.Header.Set(field.NewMsgType("Q"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(dkreason)
m.Set(symbol)
m.Set(side)
Expand Down
1 change: 1 addition & 0 deletions fix40/email/Email.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(emailtype field.EmailTypeField, linesoftext field.LinesOfTextField, tex
m.Trailer.Init()

m.Header.Set(field.NewMsgType("C"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(emailtype)
m.Set(linesoftext)
m.Set(text)
Expand Down
1 change: 1 addition & 0 deletions fix40/executionreport/ExecutionReport.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(orderid field.OrderIDField, execid field.ExecIDField, exectranstype fie
m.Trailer.Init()

m.Header.Set(field.NewMsgType("8"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(orderid)
m.Set(execid)
m.Set(exectranstype)
Expand Down
1 change: 1 addition & 0 deletions fix40/heartbeat/Heartbeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New() (m Heartbeat) {
m.Trailer.Init()

m.Header.Set(field.NewMsgType("0"))
m.Header.Set(field.NewBeginString("FIX.4.0"))

return
}
Expand Down
1 change: 1 addition & 0 deletions fix40/indicationofinterest/IndicationofInterest.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(ioiid field.IOIidField, ioitranstype field.IOITransTypeField, symbol fi
m.Trailer.Init()

m.Header.Set(field.NewMsgType("6"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(ioiid)
m.Set(ioitranstype)
m.Set(symbol)
Expand Down
1 change: 1 addition & 0 deletions fix40/listcancelrequest/ListCancelRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(listid field.ListIDField) (m ListCancelRequest) {
m.Trailer.Init()

m.Header.Set(field.NewMsgType("K"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(listid)

return
Expand Down
1 change: 1 addition & 0 deletions fix40/listexecute/ListExecute.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(listid field.ListIDField) (m ListExecute) {
m.Trailer.Init()

m.Header.Set(field.NewMsgType("L"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(listid)

return
Expand Down
1 change: 1 addition & 0 deletions fix40/liststatus/ListStatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(listid field.ListIDField, norpts field.NoRptsField, rptseq field.RptSeq
m.Trailer.Init()

m.Header.Set(field.NewMsgType("N"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(listid)
m.Set(norpts)
m.Set(rptseq)
Expand Down
1 change: 1 addition & 0 deletions fix40/liststatusrequest/ListStatusRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(listid field.ListIDField) (m ListStatusRequest) {
m.Trailer.Init()

m.Header.Set(field.NewMsgType("M"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(listid)

return
Expand Down
1 change: 1 addition & 0 deletions fix40/logon/Logon.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(encryptmethod field.EncryptMethodField, heartbtint field.HeartBtIntFiel
m.Trailer.Init()

m.Header.Set(field.NewMsgType("A"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(encryptmethod)
m.Set(heartbtint)

Expand Down
1 change: 1 addition & 0 deletions fix40/logout/Logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New() (m Logout) {
m.Trailer.Init()

m.Header.Set(field.NewMsgType("5"))
m.Header.Set(field.NewBeginString("FIX.4.0"))

return
}
Expand Down
1 change: 1 addition & 0 deletions fix40/neworderlist/NewOrderList.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(listid field.ListIDField, listseqno field.ListSeqNoField, listnoords fi
m.Trailer.Init()

m.Header.Set(field.NewMsgType("E"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(listid)
m.Set(listseqno)
m.Set(listnoords)
Expand Down
1 change: 1 addition & 0 deletions fix40/newordersingle/NewOrderSingle.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(clordid field.ClOrdIDField, handlinst field.HandlInstField, symbol fiel
m.Trailer.Init()

m.Header.Set(field.NewMsgType("D"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(clordid)
m.Set(handlinst)
m.Set(symbol)
Expand Down
1 change: 1 addition & 0 deletions fix40/news/News.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(linesoftext field.LinesOfTextField, text field.TextField) (m News) {
m.Trailer.Init()

m.Header.Set(field.NewMsgType("B"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(linesoftext)
m.Set(text)

Expand Down
1 change: 1 addition & 0 deletions fix40/ordercancelreject/OrderCancelReject.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(orderid field.OrderIDField, clordid field.ClOrdIDField) (m OrderCancelR
m.Trailer.Init()

m.Header.Set(field.NewMsgType("9"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(orderid)
m.Set(clordid)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(origclordid field.OrigClOrdIDField, clordid field.ClOrdIDField, handlin
m.Trailer.Init()

m.Header.Set(field.NewMsgType("G"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(origclordid)
m.Set(clordid)
m.Set(handlinst)
Expand Down
1 change: 1 addition & 0 deletions fix40/ordercancelrequest/OrderCancelRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(origclordid field.OrigClOrdIDField, clordid field.ClOrdIDField, cxltype
m.Trailer.Init()

m.Header.Set(field.NewMsgType("F"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(origclordid)
m.Set(clordid)
m.Set(cxltype)
Expand Down
1 change: 1 addition & 0 deletions fix40/orderstatusrequest/OrderStatusRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(clordid field.ClOrdIDField, symbol field.SymbolField, side field.SideFi
m.Trailer.Init()

m.Header.Set(field.NewMsgType("H"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(clordid)
m.Set(symbol)
m.Set(side)
Expand Down
1 change: 1 addition & 0 deletions fix40/quote/Quote.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(quoteid field.QuoteIDField, symbol field.SymbolField, bidpx field.BidPx
m.Trailer.Init()

m.Header.Set(field.NewMsgType("S"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(quoteid)
m.Set(symbol)
m.Set(bidpx)
Expand Down
1 change: 1 addition & 0 deletions fix40/quoterequest/QuoteRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(quotereqid field.QuoteReqIDField, symbol field.SymbolField) (m QuoteReq
m.Trailer.Init()

m.Header.Set(field.NewMsgType("R"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(quotereqid)
m.Set(symbol)

Expand Down
1 change: 1 addition & 0 deletions fix40/reject/Reject.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(refseqnum field.RefSeqNumField) (m Reject) {
m.Trailer.Init()

m.Header.Set(field.NewMsgType("3"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(refseqnum)

return
Expand Down
1 change: 1 addition & 0 deletions fix40/resendrequest/ResendRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(beginseqno field.BeginSeqNoField, endseqno field.EndSeqNoField) (m Rese
m.Trailer.Init()

m.Header.Set(field.NewMsgType("2"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(beginseqno)
m.Set(endseqno)

Expand Down
1 change: 1 addition & 0 deletions fix40/sequencereset/SequenceReset.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(newseqno field.NewSeqNoField) (m SequenceReset) {
m.Trailer.Init()

m.Header.Set(field.NewMsgType("4"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(newseqno)

return
Expand Down
1 change: 1 addition & 0 deletions fix40/testrequest/TestRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(testreqid field.TestReqIDField) (m TestRequest) {
m.Trailer.Init()

m.Header.Set(field.NewMsgType("1"))
m.Header.Set(field.NewBeginString("FIX.4.0"))
m.Set(testreqid)

return
Expand Down
1 change: 1 addition & 0 deletions fix41/advertisement/Advertisement.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(advid field.AdvIdField, advtranstype field.AdvTransTypeField, symbol fi
m.Trailer.Init()

m.Header.Set(field.NewMsgType("7"))
m.Header.Set(field.NewBeginString("FIX.4.1"))
m.Set(advid)
m.Set(advtranstype)
m.Set(symbol)
Expand Down
1 change: 1 addition & 0 deletions fix41/allocation/Allocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(allocid field.AllocIDField, alloctranstype field.AllocTransTypeField, s
m.Trailer.Init()

m.Header.Set(field.NewMsgType("J"))
m.Header.Set(field.NewBeginString("FIX.4.1"))
m.Set(allocid)
m.Set(alloctranstype)
m.Set(side)
Expand Down
1 change: 1 addition & 0 deletions fix41/allocationack/AllocationACK.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(allocid field.AllocIDField, tradedate field.TradeDateField, allocstatus
m.Trailer.Init()

m.Header.Set(field.NewMsgType("P"))
m.Header.Set(field.NewBeginString("FIX.4.1"))
m.Set(allocid)
m.Set(tradedate)
m.Set(allocstatus)
Expand Down
1 change: 1 addition & 0 deletions fix41/dontknowtrade/DontKnowTrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(dkreason field.DKReasonField, symbol field.SymbolField, side field.Side
m.Trailer.Init()

m.Header.Set(field.NewMsgType("Q"))
m.Header.Set(field.NewBeginString("FIX.4.1"))
m.Set(dkreason)
m.Set(symbol)
m.Set(side)
Expand Down
1 change: 1 addition & 0 deletions fix41/email/Email.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(emailthreadid field.EmailThreadIDField, emailtype field.EmailTypeField,
m.Trailer.Init()

m.Header.Set(field.NewMsgType("C"))
m.Header.Set(field.NewBeginString("FIX.4.1"))
m.Set(emailthreadid)
m.Set(emailtype)
m.Set(subject)
Expand Down
1 change: 1 addition & 0 deletions fix41/executionreport/ExecutionReport.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(orderid field.OrderIDField, execid field.ExecIDField, exectranstype fie
m.Trailer.Init()

m.Header.Set(field.NewMsgType("8"))
m.Header.Set(field.NewBeginString("FIX.4.1"))
m.Set(orderid)
m.Set(execid)
m.Set(exectranstype)
Expand Down
1 change: 1 addition & 0 deletions fix41/heartbeat/Heartbeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New() (m Heartbeat) {
m.Trailer.Init()

m.Header.Set(field.NewMsgType("0"))
m.Header.Set(field.NewBeginString("FIX.4.1"))

return
}
Expand Down
1 change: 1 addition & 0 deletions fix41/indicationofinterest/IndicationofInterest.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(ioiid field.IOIidField, ioitranstype field.IOITransTypeField, symbol fi
m.Trailer.Init()

m.Header.Set(field.NewMsgType("6"))
m.Header.Set(field.NewBeginString("FIX.4.1"))
m.Set(ioiid)
m.Set(ioitranstype)
m.Set(symbol)
Expand Down
1 change: 1 addition & 0 deletions fix41/listcancelrequest/ListCancelRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(listid field.ListIDField) (m ListCancelRequest) {
m.Trailer.Init()

m.Header.Set(field.NewMsgType("K"))
m.Header.Set(field.NewBeginString("FIX.4.1"))
m.Set(listid)

return
Expand Down
1 change: 1 addition & 0 deletions fix41/listexecute/ListExecute.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(listid field.ListIDField) (m ListExecute) {
m.Trailer.Init()

m.Header.Set(field.NewMsgType("L"))
m.Header.Set(field.NewBeginString("FIX.4.1"))
m.Set(listid)

return
Expand Down
1 change: 1 addition & 0 deletions fix41/liststatus/ListStatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(listid field.ListIDField, norpts field.NoRptsField, rptseq field.RptSeq
m.Trailer.Init()

m.Header.Set(field.NewMsgType("N"))
m.Header.Set(field.NewBeginString("FIX.4.1"))
m.Set(listid)
m.Set(norpts)
m.Set(rptseq)
Expand Down
1 change: 1 addition & 0 deletions fix41/liststatusrequest/ListStatusRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(listid field.ListIDField) (m ListStatusRequest) {
m.Trailer.Init()

m.Header.Set(field.NewMsgType("M"))
m.Header.Set(field.NewBeginString("FIX.4.1"))
m.Set(listid)

return
Expand Down
1 change: 1 addition & 0 deletions fix41/logon/Logon.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(encryptmethod field.EncryptMethodField, heartbtint field.HeartBtIntFiel
m.Trailer.Init()

m.Header.Set(field.NewMsgType("A"))
m.Header.Set(field.NewBeginString("FIX.4.1"))
m.Set(encryptmethod)
m.Set(heartbtint)

Expand Down
1 change: 1 addition & 0 deletions fix41/logout/Logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New() (m Logout) {
m.Trailer.Init()

m.Header.Set(field.NewMsgType("5"))
m.Header.Set(field.NewBeginString("FIX.4.1"))

return
}
Expand Down
1 change: 1 addition & 0 deletions fix41/neworderlist/NewOrderList.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(listid field.ListIDField, listseqno field.ListSeqNoField, listnoords fi
m.Trailer.Init()

m.Header.Set(field.NewMsgType("E"))
m.Header.Set(field.NewBeginString("FIX.4.1"))
m.Set(listid)
m.Set(listseqno)
m.Set(listnoords)
Expand Down
1 change: 1 addition & 0 deletions fix41/newordersingle/NewOrderSingle.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(clordid field.ClOrdIDField, handlinst field.HandlInstField, symbol fiel
m.Trailer.Init()

m.Header.Set(field.NewMsgType("D"))
m.Header.Set(field.NewBeginString("FIX.4.1"))
m.Set(clordid)
m.Set(handlinst)
m.Set(symbol)
Expand Down
1 change: 1 addition & 0 deletions fix41/news/News.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(headline field.HeadlineField) (m News) {
m.Trailer.Init()

m.Header.Set(field.NewMsgType("B"))
m.Header.Set(field.NewBeginString("FIX.4.1"))
m.Set(headline)

return
Expand Down
1 change: 1 addition & 0 deletions fix41/ordercancelreject/OrderCancelReject.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(orderid field.OrderIDField, clordid field.ClOrdIDField, origclordid fie
m.Trailer.Init()

m.Header.Set(field.NewMsgType("9"))
m.Header.Set(field.NewBeginString("FIX.4.1"))
m.Set(orderid)
m.Set(clordid)
m.Set(origclordid)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(origclordid field.OrigClOrdIDField, clordid field.ClOrdIDField, handlin
m.Trailer.Init()

m.Header.Set(field.NewMsgType("G"))
m.Header.Set(field.NewBeginString("FIX.4.1"))
m.Set(origclordid)
m.Set(clordid)
m.Set(handlinst)
Expand Down
1 change: 1 addition & 0 deletions fix41/ordercancelrequest/OrderCancelRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(origclordid field.OrigClOrdIDField, clordid field.ClOrdIDField, symbol
m.Trailer.Init()

m.Header.Set(field.NewMsgType("F"))
m.Header.Set(field.NewBeginString("FIX.4.1"))
m.Set(origclordid)
m.Set(clordid)
m.Set(symbol)
Expand Down
1 change: 1 addition & 0 deletions fix41/orderstatusrequest/OrderStatusRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(clordid field.ClOrdIDField, symbol field.SymbolField, side field.SideFi
m.Trailer.Init()

m.Header.Set(field.NewMsgType("H"))
m.Header.Set(field.NewBeginString("FIX.4.1"))
m.Set(clordid)
m.Set(symbol)
m.Set(side)
Expand Down
1 change: 1 addition & 0 deletions fix41/quote/Quote.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New(quoteid field.QuoteIDField, symbol field.SymbolField) (m Quote) {
m.Trailer.Init()

m.Header.Set(field.NewMsgType("S"))
m.Header.Set(field.NewBeginString("FIX.4.1"))
m.Set(quoteid)
m.Set(symbol)

Expand Down
Loading