Skip to content

Commit 7c3e305

Browse files
author
Chris Busbey
committed
generated code
1 parent 3ff29f9 commit 7c3e305

File tree

581 files changed

+617
-575
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

581 files changed

+617
-575
lines changed

fix40/advertisement/Advertisement.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (m Advertisement) ToMessage() quickfix.Message {
4040

4141
//New returns a Advertisement initialized with the required fields for Advertisement
4242
func New(advid field.AdvIdField, advtranstype field.AdvTransTypeField, symbol field.SymbolField, advside field.AdvSideField, shares field.SharesField) (m Advertisement) {
43-
m.Header.Init()
43+
m.Header = fix40.NewHeader()
4444
m.Init()
4545
m.Trailer.Init()
4646

fix40/allocation/Allocation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (m Allocation) ToMessage() quickfix.Message {
4040

4141
//New returns a Allocation initialized with the required fields for Allocation
4242
func New(allocid field.AllocIDField, alloctranstype field.AllocTransTypeField, side field.SideField, symbol field.SymbolField, shares field.SharesField, avgpx field.AvgPxField, tradedate field.TradeDateField) (m Allocation) {
43-
m.Header.Init()
43+
m.Header = fix40.NewHeader()
4444
m.Init()
4545
m.Trailer.Init()
4646

fix40/allocationack/AllocationACK.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (m AllocationACK) ToMessage() quickfix.Message {
4040

4141
//New returns a AllocationACK initialized with the required fields for AllocationACK
4242
func New(allocid field.AllocIDField, tradedate field.TradeDateField, allocstatus field.AllocStatusField) (m AllocationACK) {
43-
m.Header.Init()
43+
m.Header = fix40.NewHeader()
4444
m.Init()
4545
m.Trailer.Init()
4646

fix40/dontknowtrade/DontKnowTrade.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (m DontKnowTrade) ToMessage() quickfix.Message {
4040

4141
//New returns a DontKnowTrade initialized with the required fields for DontKnowTrade
4242
func New(dkreason field.DKReasonField, symbol field.SymbolField, side field.SideField, orderqty field.OrderQtyField, lastshares field.LastSharesField, lastpx field.LastPxField) (m DontKnowTrade) {
43-
m.Header.Init()
43+
m.Header = fix40.NewHeader()
4444
m.Init()
4545
m.Trailer.Init()
4646

fix40/email/Email.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (m Email) ToMessage() quickfix.Message {
4040

4141
//New returns a Email initialized with the required fields for Email
4242
func New(emailtype field.EmailTypeField, linesoftext field.LinesOfTextField, text field.TextField) (m Email) {
43-
m.Header.Init()
43+
m.Header = fix40.NewHeader()
4444
m.Init()
4545
m.Trailer.Init()
4646

fix40/executionreport/ExecutionReport.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (m ExecutionReport) ToMessage() quickfix.Message {
4040

4141
//New returns a ExecutionReport initialized with the required fields for ExecutionReport
4242
func New(orderid field.OrderIDField, execid field.ExecIDField, exectranstype field.ExecTransTypeField, ordstatus field.OrdStatusField, symbol field.SymbolField, side field.SideField, orderqty field.OrderQtyField, lastshares field.LastSharesField, lastpx field.LastPxField, cumqty field.CumQtyField, avgpx field.AvgPxField) (m ExecutionReport) {
43-
m.Header.Init()
43+
m.Header = fix40.NewHeader()
4444
m.Init()
4545
m.Trailer.Init()
4646

fix40/header.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ type Header struct {
1313
quickfix.Header
1414
}
1515

16+
//NewHeader returns a new, initialized Header instance
17+
func NewHeader() (h Header) {
18+
h.Init()
19+
h.SetBeginString("FIX.4.0")
20+
return
21+
}
22+
1623
//SetBeginString sets BeginString, Tag 8
1724
func (h Header) SetBeginString(v string) {
1825
h.Set(field.NewBeginString(v))

fix40/heartbeat/Heartbeat.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (m Heartbeat) ToMessage() quickfix.Message {
4040

4141
//New returns a Heartbeat initialized with the required fields for Heartbeat
4242
func New() (m Heartbeat) {
43-
m.Header.Init()
43+
m.Header = fix40.NewHeader()
4444
m.Init()
4545
m.Trailer.Init()
4646

fix40/indicationofinterest/IndicationofInterest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (m IndicationofInterest) ToMessage() quickfix.Message {
4040

4141
//New returns a IndicationofInterest initialized with the required fields for IndicationofInterest
4242
func New(ioiid field.IOIidField, ioitranstype field.IOITransTypeField, symbol field.SymbolField, side field.SideField, ioishares field.IOISharesField) (m IndicationofInterest) {
43-
m.Header.Init()
43+
m.Header = fix40.NewHeader()
4444
m.Init()
4545
m.Trailer.Init()
4646

fix40/listcancelrequest/ListCancelRequest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (m ListCancelRequest) ToMessage() quickfix.Message {
4040

4141
//New returns a ListCancelRequest initialized with the required fields for ListCancelRequest
4242
func New(listid field.ListIDField) (m ListCancelRequest) {
43-
m.Header.Init()
43+
m.Header = fix40.NewHeader()
4444
m.Init()
4545
m.Trailer.Init()
4646

0 commit comments

Comments
 (0)