Skip to content

Commit 8e028a7

Browse files
author
Chris Busbey
committed
generated code
1 parent b5947a3 commit 8e028a7

File tree

416 files changed

+31516
-31101
lines changed

Some content is hidden

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

416 files changed

+31516
-31101
lines changed

field/fields.generated.go

Lines changed: 1145 additions & 1145 deletions
Large diffs are not rendered by default.

fix40/advertisement/Advertisement.generated.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package advertisement
22

33
import (
4+
"github.com/shopspring/decimal"
45
"time"
56

67
"github.com/quickfixgo/quickfix"
@@ -96,8 +97,8 @@ func (m Advertisement) SetIDSource(v string) {
9697
}
9798

9899
//SetPrice sets Price, Tag 44
99-
func (m Advertisement) SetPrice(v float64) {
100-
m.Set(field.NewPrice(v))
100+
func (m Advertisement) SetPrice(value decimal.Decimal, scale int32) {
101+
m.Set(field.NewPrice(value, scale))
101102
}
102103

103104
//SetSecurityID sets SecurityID, Tag 48
@@ -106,8 +107,8 @@ func (m Advertisement) SetSecurityID(v string) {
106107
}
107108

108109
//SetShares sets Shares, Tag 53
109-
func (m Advertisement) SetShares(v float64) {
110-
m.Set(field.NewShares(v))
110+
func (m Advertisement) SetShares(value decimal.Decimal, scale int32) {
111+
m.Set(field.NewShares(value, scale))
111112
}
112113

113114
//SetSymbol sets Symbol, Tag 55

fix40/allocation/Allocation.generated.go

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package allocation
22

33
import (
4+
"github.com/shopspring/decimal"
45
"time"
56

67
"github.com/quickfixgo/quickfix"
@@ -68,8 +69,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
6869
}
6970

7071
//SetAvgPx sets AvgPx, Tag 6
71-
func (m Allocation) SetAvgPx(v float64) {
72-
m.Set(field.NewAvgPx(v))
72+
func (m Allocation) SetAvgPx(value decimal.Decimal, scale int32) {
73+
m.Set(field.NewAvgPx(value, scale))
7374
}
7475

7576
//SetCurrency sets Currency, Tag 15
@@ -88,8 +89,8 @@ func (m Allocation) SetSecurityID(v string) {
8889
}
8990

9091
//SetShares sets Shares, Tag 53
91-
func (m Allocation) SetShares(v float64) {
92-
m.Set(field.NewShares(v))
92+
func (m Allocation) SetShares(value decimal.Decimal, scale int32) {
93+
m.Set(field.NewShares(value, scale))
9394
}
9495

9596
//SetSide sets Side, Tag 54
@@ -178,13 +179,13 @@ func (m Allocation) SetSecurityDesc(v string) {
178179
}
179180

180181
//SetNetMoney sets NetMoney, Tag 118
181-
func (m Allocation) SetNetMoney(v float64) {
182-
m.Set(field.NewNetMoney(v))
182+
func (m Allocation) SetNetMoney(value decimal.Decimal, scale int32) {
183+
m.Set(field.NewNetMoney(value, scale))
183184
}
184185

185186
//SetSettlCurrAmt sets SettlCurrAmt, Tag 119
186-
func (m Allocation) SetSettlCurrAmt(v float64) {
187-
m.Set(field.NewSettlCurrAmt(v))
187+
func (m Allocation) SetSettlCurrAmt(value decimal.Decimal, scale int32) {
188+
m.Set(field.NewSettlCurrAmt(value, scale))
188189
}
189190

190191
//SetSettlCurrency sets SettlCurrency, Tag 120
@@ -606,8 +607,8 @@ func (m NoAllocs) SetAllocAccount(v string) {
606607
}
607608

608609
//SetAllocShares sets AllocShares, Tag 80
609-
func (m NoAllocs) SetAllocShares(v float64) {
610-
m.Set(field.NewAllocShares(v))
610+
func (m NoAllocs) SetAllocShares(value decimal.Decimal, scale int32) {
611+
m.Set(field.NewAllocShares(value, scale))
611612
}
612613

613614
//SetProcessCode sets ProcessCode, Tag 81
@@ -626,8 +627,8 @@ func (m NoAllocs) SetClientID(v string) {
626627
}
627628

628629
//SetCommission sets Commission, Tag 12
629-
func (m NoAllocs) SetCommission(v float64) {
630-
m.Set(field.NewCommission(v))
630+
func (m NoAllocs) SetCommission(value decimal.Decimal, scale int32) {
631+
m.Set(field.NewCommission(value, scale))
631632
}
632633

633634
//SetCommType sets CommType, Tag 13
@@ -794,13 +795,13 @@ func (m NoExecs) SetExecID(v string) {
794795
}
795796

796797
//SetLastShares sets LastShares, Tag 32
797-
func (m NoExecs) SetLastShares(v float64) {
798-
m.Set(field.NewLastShares(v))
798+
func (m NoExecs) SetLastShares(value decimal.Decimal, scale int32) {
799+
m.Set(field.NewLastShares(value, scale))
799800
}
800801

801802
//SetLastPx sets LastPx, Tag 31
802-
func (m NoExecs) SetLastPx(v float64) {
803-
m.Set(field.NewLastPx(v))
803+
func (m NoExecs) SetLastPx(value decimal.Decimal, scale int32) {
804+
m.Set(field.NewLastPx(value, scale))
804805
}
805806

806807
//SetLastMkt sets LastMkt, Tag 30
@@ -881,8 +882,8 @@ type NoMiscFees struct {
881882
}
882883

883884
//SetMiscFeeAmt sets MiscFeeAmt, Tag 137
884-
func (m NoMiscFees) SetMiscFeeAmt(v float64) {
885-
m.Set(field.NewMiscFeeAmt(v))
885+
func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) {
886+
m.Set(field.NewMiscFeeAmt(value, scale))
886887
}
887888

888889
//SetMiscFeeCurr sets MiscFeeCurr, Tag 138

fix40/dontknowtrade/DontKnowTrade.generated.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package dontknowtrade
22

33
import (
4+
"github.com/shopspring/decimal"
45
"time"
56

67
"github.com/quickfixgo/quickfix"
@@ -72,13 +73,13 @@ func (m DontKnowTrade) SetExecID(v string) {
7273
}
7374

7475
//SetLastPx sets LastPx, Tag 31
75-
func (m DontKnowTrade) SetLastPx(v float64) {
76-
m.Set(field.NewLastPx(v))
76+
func (m DontKnowTrade) SetLastPx(value decimal.Decimal, scale int32) {
77+
m.Set(field.NewLastPx(value, scale))
7778
}
7879

7980
//SetLastShares sets LastShares, Tag 32
80-
func (m DontKnowTrade) SetLastShares(v float64) {
81-
m.Set(field.NewLastShares(v))
81+
func (m DontKnowTrade) SetLastShares(value decimal.Decimal, scale int32) {
82+
m.Set(field.NewLastShares(value, scale))
8283
}
8384

8485
//SetOrderID sets OrderID, Tag 37
@@ -87,8 +88,8 @@ func (m DontKnowTrade) SetOrderID(v string) {
8788
}
8889

8990
//SetOrderQty sets OrderQty, Tag 38
90-
func (m DontKnowTrade) SetOrderQty(v float64) {
91-
m.Set(field.NewOrderQty(v))
91+
func (m DontKnowTrade) SetOrderQty(value decimal.Decimal, scale int32) {
92+
m.Set(field.NewOrderQty(value, scale))
9293
}
9394

9495
//SetSide sets Side, Tag 54

fix40/executionreport/ExecutionReport.generated.go

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package executionreport
22

33
import (
4+
"github.com/shopspring/decimal"
45
"time"
56

67
"github.com/quickfixgo/quickfix"
@@ -77,8 +78,8 @@ func (m ExecutionReport) SetAccount(v string) {
7778
}
7879

7980
//SetAvgPx sets AvgPx, Tag 6
80-
func (m ExecutionReport) SetAvgPx(v float64) {
81-
m.Set(field.NewAvgPx(v))
81+
func (m ExecutionReport) SetAvgPx(value decimal.Decimal, scale int32) {
82+
m.Set(field.NewAvgPx(value, scale))
8283
}
8384

8485
//SetClOrdID sets ClOrdID, Tag 11
@@ -87,8 +88,8 @@ func (m ExecutionReport) SetClOrdID(v string) {
8788
}
8889

8990
//SetCommission sets Commission, Tag 12
90-
func (m ExecutionReport) SetCommission(v float64) {
91-
m.Set(field.NewCommission(v))
91+
func (m ExecutionReport) SetCommission(value decimal.Decimal, scale int32) {
92+
m.Set(field.NewCommission(value, scale))
9293
}
9394

9495
//SetCommType sets CommType, Tag 13
@@ -97,8 +98,8 @@ func (m ExecutionReport) SetCommType(v string) {
9798
}
9899

99100
//SetCumQty sets CumQty, Tag 14
100-
func (m ExecutionReport) SetCumQty(v float64) {
101-
m.Set(field.NewCumQty(v))
101+
func (m ExecutionReport) SetCumQty(value decimal.Decimal, scale int32) {
102+
m.Set(field.NewCumQty(value, scale))
102103
}
103104

104105
//SetCurrency sets Currency, Tag 15
@@ -142,13 +143,13 @@ func (m ExecutionReport) SetLastMkt(v string) {
142143
}
143144

144145
//SetLastPx sets LastPx, Tag 31
145-
func (m ExecutionReport) SetLastPx(v float64) {
146-
m.Set(field.NewLastPx(v))
146+
func (m ExecutionReport) SetLastPx(value decimal.Decimal, scale int32) {
147+
m.Set(field.NewLastPx(value, scale))
147148
}
148149

149150
//SetLastShares sets LastShares, Tag 32
150-
func (m ExecutionReport) SetLastShares(v float64) {
151-
m.Set(field.NewLastShares(v))
151+
func (m ExecutionReport) SetLastShares(value decimal.Decimal, scale int32) {
152+
m.Set(field.NewLastShares(value, scale))
152153
}
153154

154155
//SetOrderID sets OrderID, Tag 37
@@ -157,8 +158,8 @@ func (m ExecutionReport) SetOrderID(v string) {
157158
}
158159

159160
//SetOrderQty sets OrderQty, Tag 38
160-
func (m ExecutionReport) SetOrderQty(v float64) {
161-
m.Set(field.NewOrderQty(v))
161+
func (m ExecutionReport) SetOrderQty(value decimal.Decimal, scale int32) {
162+
m.Set(field.NewOrderQty(value, scale))
162163
}
163164

164165
//SetOrdStatus sets OrdStatus, Tag 39
@@ -172,8 +173,8 @@ func (m ExecutionReport) SetOrdType(v string) {
172173
}
173174

174175
//SetPrice sets Price, Tag 44
175-
func (m ExecutionReport) SetPrice(v float64) {
176-
m.Set(field.NewPrice(v))
176+
func (m ExecutionReport) SetPrice(value decimal.Decimal, scale int32) {
177+
m.Set(field.NewPrice(value, scale))
177178
}
178179

179180
//SetRule80A sets Rule80A, Tag 47
@@ -242,8 +243,8 @@ func (m ExecutionReport) SetExecBroker(v string) {
242243
}
243244

244245
//SetStopPx sets StopPx, Tag 99
245-
func (m ExecutionReport) SetStopPx(v float64) {
246-
m.Set(field.NewStopPx(v))
246+
func (m ExecutionReport) SetStopPx(value decimal.Decimal, scale int32) {
247+
m.Set(field.NewStopPx(value, scale))
247248
}
248249

249250
//SetOrdRejReason sets OrdRejReason, Tag 103
@@ -272,13 +273,13 @@ func (m ExecutionReport) SetReportToExch(v bool) {
272273
}
273274

274275
//SetNetMoney sets NetMoney, Tag 118
275-
func (m ExecutionReport) SetNetMoney(v float64) {
276-
m.Set(field.NewNetMoney(v))
276+
func (m ExecutionReport) SetNetMoney(value decimal.Decimal, scale int32) {
277+
m.Set(field.NewNetMoney(value, scale))
277278
}
278279

279280
//SetSettlCurrAmt sets SettlCurrAmt, Tag 119
280-
func (m ExecutionReport) SetSettlCurrAmt(v float64) {
281-
m.Set(field.NewSettlCurrAmt(v))
281+
func (m ExecutionReport) SetSettlCurrAmt(value decimal.Decimal, scale int32) {
282+
m.Set(field.NewSettlCurrAmt(value, scale))
282283
}
283284

284285
//SetSettlCurrency sets SettlCurrency, Tag 120
@@ -798,8 +799,8 @@ type NoMiscFees struct {
798799
}
799800

800801
//SetMiscFeeAmt sets MiscFeeAmt, Tag 137
801-
func (m NoMiscFees) SetMiscFeeAmt(v float64) {
802-
m.Set(field.NewMiscFeeAmt(v))
802+
func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) {
803+
m.Set(field.NewMiscFeeAmt(value, scale))
803804
}
804805

805806
//SetMiscFeeCurr sets MiscFeeCurr, Tag 138

fix40/indicationofinterest/IndicationofInterest.generated.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package indicationofinterest
22

33
import (
4+
"github.com/shopspring/decimal"
45
"time"
56

67
"github.com/quickfixgo/quickfix"
@@ -106,8 +107,8 @@ func (m IndicationofInterest) SetIOITransType(v string) {
106107
}
107108

108109
//SetPrice sets Price, Tag 44
109-
func (m IndicationofInterest) SetPrice(v float64) {
110-
m.Set(field.NewPrice(v))
110+
func (m IndicationofInterest) SetPrice(value decimal.Decimal, scale int32) {
111+
m.Set(field.NewPrice(value, scale))
111112
}
112113

113114
//SetSecurityID sets SecurityID, Tag 48

fix40/liststatus/ListStatus.generated.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package liststatus
22

33
import (
4+
"github.com/shopspring/decimal"
45
"time"
56

67
"github.com/quickfixgo/quickfix"
@@ -155,18 +156,18 @@ func (m NoOrders) SetClOrdID(v string) {
155156
}
156157

157158
//SetCumQty sets CumQty, Tag 14
158-
func (m NoOrders) SetCumQty(v float64) {
159-
m.Set(field.NewCumQty(v))
159+
func (m NoOrders) SetCumQty(value decimal.Decimal, scale int32) {
160+
m.Set(field.NewCumQty(value, scale))
160161
}
161162

162163
//SetCxlQty sets CxlQty, Tag 84
163-
func (m NoOrders) SetCxlQty(v float64) {
164-
m.Set(field.NewCxlQty(v))
164+
func (m NoOrders) SetCxlQty(value decimal.Decimal, scale int32) {
165+
m.Set(field.NewCxlQty(value, scale))
165166
}
166167

167168
//SetAvgPx sets AvgPx, Tag 6
168-
func (m NoOrders) SetAvgPx(v float64) {
169-
m.Set(field.NewAvgPx(v))
169+
func (m NoOrders) SetAvgPx(value decimal.Decimal, scale int32) {
170+
m.Set(field.NewAvgPx(value, scale))
170171
}
171172

172173
//GetClOrdID gets ClOrdID, Tag 11

0 commit comments

Comments
 (0)