From 9ed894c9b6394b94345219c6ad86e7eb10831eaf Mon Sep 17 00:00:00 2001 From: Chris Busbey Date: Wed, 17 Aug 2016 14:19:09 -0500 Subject: [PATCH 1/3] lint cleanup --- doc.go | 2 +- pending_timeout_test.go | 16 ++++++++-------- repeating_group.go | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/doc.go b/doc.go index 787479929..5e45e1b30 100644 --- a/doc.go +++ b/doc.go @@ -29,7 +29,7 @@ ToApp notifies you of application messages that you are being sent to a counterp FromAdmin(message Message, sessionID SessionID) MessageRejectError -FromAdmin notifies you when an administrative message is sent from a counterparty to your FIX engine. This can be usefull for doing extra validation on logon messages such as for checking passwords. +FromAdmin notifies you when an administrative message is sent from a counterparty to your FIX engine. This can be useful for doing extra validation on logon messages such as for checking passwords. FromApp(msg Message, sessionID SessionID) MessageRejectError diff --git a/pending_timeout_test.go b/pending_timeout_test.go index 5fa4aa1e7..a9e4bf8f1 100644 --- a/pending_timeout_test.go +++ b/pending_timeout_test.go @@ -21,8 +21,8 @@ func (s *PendingTimeoutTestSuite) SetupTest() { func (s *PendingTimeoutTestSuite) TestIsConnectedIsLoggedOn() { tests := []pendingTimeout{ - pendingTimeout{inSession{}}, - pendingTimeout{resendState{}}, + {inSession{}}, + {resendState{}}, } for _, state := range tests { @@ -35,8 +35,8 @@ func (s *PendingTimeoutTestSuite) TestIsConnectedIsLoggedOn() { func (s *PendingTimeoutTestSuite) TestSessionTimeout() { tests := []pendingTimeout{ - pendingTimeout{inSession{}}, - pendingTimeout{resendState{}}, + {inSession{}}, + {resendState{}}, } for _, state := range tests { @@ -52,8 +52,8 @@ func (s *PendingTimeoutTestSuite) TestSessionTimeout() { func (s *PendingTimeoutTestSuite) TestTimeoutUnchangedState() { tests := []pendingTimeout{ - pendingTimeout{inSession{}}, - pendingTimeout{resendState{}}, + {inSession{}}, + {resendState{}}, } testEvents := []internal.Event{internal.NeedHeartbeat, internal.LogonTimeout, internal.LogoutTimeout} @@ -70,8 +70,8 @@ func (s *PendingTimeoutTestSuite) TestTimeoutUnchangedState() { func (s *PendingTimeoutTestSuite) TestDisconnected() { tests := []pendingTimeout{ - pendingTimeout{inSession{}}, - pendingTimeout{resendState{}}, + {inSession{}}, + {resendState{}}, } for _, state := range tests { diff --git a/repeating_group.go b/repeating_group.go index 262794cc0..e9fcbb8d4 100644 --- a/repeating_group.go +++ b/repeating_group.go @@ -56,7 +56,7 @@ func (gt GroupTemplate) Clone() GroupTemplate { return clone } -//Group is a group of fields occuring in a repeating group +//Group is a group of fields occurring in a repeating group type Group struct{ FieldMap } //RepeatingGroup is a FIX Repeating Group type From b5947a31853f3b449c8ae9a01f40197cd15fe386 Mon Sep 17 00:00:00 2001 From: Chris Busbey Date: Wed, 17 Aug 2016 14:19:35 -0500 Subject: [PATCH 2/3] generates FIXDecimal by default --- cmd/generate-fix/internal/generate.go | 2 + cmd/generate-fix/internal/template_helpers.go | 63 ++++++++++++++++--- cmd/generate-fix/internal/templates.go | 18 +++++- 3 files changed, 74 insertions(+), 9 deletions(-) diff --git a/cmd/generate-fix/internal/generate.go b/cmd/generate-fix/internal/generate.go index cbfcf1b22..9fbefea29 100644 --- a/cmd/generate-fix/internal/generate.go +++ b/cmd/generate-fix/internal/generate.go @@ -1,6 +1,7 @@ package internal import ( + "flag" "fmt" "go/ast" "go/parser" @@ -11,6 +12,7 @@ import ( ) var ( + useFloat = flag.Bool("use-float", false, "By default, FIX float fields are represented as arbitrary-precision fixed-point decimal numbers. Set to 'true' to instead generate FIX float fields as float64 values.") tabWidth = 8 printerMode = printer.UseSpaces | printer.TabIndent ) diff --git a/cmd/generate-fix/internal/template_helpers.go b/cmd/generate-fix/internal/template_helpers.go index 6c989b62a..36f6a3e29 100644 --- a/cmd/generate-fix/internal/template_helpers.go +++ b/cmd/generate-fix/internal/template_helpers.go @@ -6,6 +6,31 @@ import ( "github.com/quickfixgo/quickfix/datadictionary" ) +func checkFieldDecimalRequired(f *datadictionary.FieldDef) (required bool, err error) { + var globalType *datadictionary.FieldType + if globalType, err = getGlobalFieldType(f); err != nil { + return + } + + var t string + if t, err = quickfixType(globalType); err != nil { + return + } + + if t == "FIXDecimal" { + required = true + return + } + + for _, groupField := range f.Fields { + if required, err = checkFieldDecimalRequired(groupField); required || err != nil { + return + } + } + + return +} + func checkFieldTimeRequired(f *datadictionary.FieldDef) (required bool, err error) { var globalType *datadictionary.FieldType if globalType, err = getGlobalFieldType(f); err != nil { @@ -37,20 +62,38 @@ func checkFieldTimeRequired(f *datadictionary.FieldDef) (required bool, err erro } func collectExtraImports(m *datadictionary.MessageDef) (imports []string, err error) { - //NOTE: the time package is the only extra import considered here - var timeRequired bool + var timeRequired, decimalRequired bool for _, f := range m.Fields { - if timeRequired, err = checkFieldTimeRequired(f); timeRequired { - imports = []string{"time"} + if !timeRequired { + if timeRequired, err = checkFieldTimeRequired(f); err != nil { + return + } + } + + if !decimalRequired { + if decimalRequired, err = checkFieldDecimalRequired(f); err != nil { + return + } + } + + if decimalRequired && timeRequired { break - } else if err != nil { - return } } + if timeRequired { + imports = append(imports, "time") + } + + if decimalRequired { + imports = append(imports, "github.com/shopspring/decimal") + } + return } +func useFloatType() bool { return *useFloat } + func quickfixValueType(quickfixType string) (goType string, err error) { switch quickfixType { case "FIXString": @@ -63,6 +106,8 @@ func quickfixValueType(quickfixType string) (goType string, err error) { goType = "time.Time" case "FIXFloat": goType = "float64" + case "FIXDecimal": + goType = "decimal.Decimal" default: err = fmt.Errorf("Unknown QuickFIX Type: %v", quickfixType) } @@ -141,7 +186,11 @@ func quickfixType(field *datadictionary.FieldType) (quickfixType string, err err case "PERCENTAGE": fallthrough case "FLOAT": - quickfixType = "FIXFloat" + if *useFloat { + quickfixType = "FIXFloat" + } else { + quickfixType = "FIXDecimal" + } default: err = fmt.Errorf("Unknown type '%v' for tag '%v'\n", field.Type, field.Tag()) diff --git a/cmd/generate-fix/internal/templates.go b/cmd/generate-fix/internal/templates.go index 6003319dd..fe89f2d82 100644 --- a/cmd/generate-fix/internal/templates.go +++ b/cmd/generate-fix/internal/templates.go @@ -25,6 +25,7 @@ func init() { "quickfixValueType": quickfixValueType, "getGlobalFieldType": getGlobalFieldType, "collectExtraImports": collectExtraImports, + "useFloatType": useFloatType, } baseTemplate := template.Must(template.New("Base").Funcs(tmplFuncs).Parse(` @@ -33,10 +34,15 @@ func init() { {{ define "fieldsetter" -}} {{- $field_type := getGlobalFieldType . -}} {{- $qfix_type := quickfixType $field_type -}} +{{- if eq $qfix_type "FIXDecimal" -}} +Set{{ .Name }}(value decimal.Decimal, scale int32) { + {{ template "receiver" }}.Set(field.New{{ .Name }}(value, scale)) +} +{{- else -}} Set{{ .Name }}(v {{ quickfixValueType $qfix_type }}) { {{ template "receiver" }}.Set(field.New{{ .Name }}(v)) } -{{- end }} +{{- end }}{{ end }} {{ define "groupsetter" -}} Set{{ .Name }}(f {{ .Name }}RepeatingGroup){ @@ -191,6 +197,9 @@ package {{ .Package }} import( "time" + {{- range collectExtraImports .MessageDef }} + "{{ . }}" + {{- end }} "github.com/quickfixgo/quickfix" "{{ importRootPath }}/field" @@ -275,7 +284,7 @@ package field import( "github.com/quickfixgo/quickfix" "{{ importRootPath }}/tag" - +{{ if eq useFloatType false}} "github.com/shopspring/decimal" {{ end }} "time" ) @@ -298,6 +307,11 @@ func New{{ .Name }}NoMillis(val time.Time) {{ .Name }}Field { return {{ .Name }}Field{ quickfix.FIXUTCTimestamp{ Time: val, NoMillis: true } } } +{{ else if eq $base_type "FIXDecimal" }} +//New{{ .Name }} returns a new {{ .Name }}Field initialized with val and scale +func New{{ .Name }}(val decimal.Decimal, scale int32) {{ .Name }}Field { + return {{ .Name }}Field{ quickfix.FIXDecimal{ Decimal: val, Scale: scale} } +} {{ else }} //New{{ .Name }} returns a new {{ .Name }}Field initialized with val func New{{ .Name }}(val {{ quickfixValueType $base_type }}) {{ .Name }}Field { From 8e028a7aff97cff94dcc2084b97749d80a877158 Mon Sep 17 00:00:00 2001 From: Chris Busbey Date: Wed, 17 Aug 2016 14:21:35 -0500 Subject: [PATCH 3/3] generated code --- field/fields.generated.go | 2290 ++++++++--------- .../advertisement/Advertisement.generated.go | 9 +- fix40/allocation/Allocation.generated.go | 37 +- .../dontknowtrade/DontKnowTrade.generated.go | 13 +- .../ExecutionReport.generated.go | 45 +- .../IndicationofInterest.generated.go | 5 +- fix40/liststatus/ListStatus.generated.go | 13 +- fix40/neworderlist/NewOrderList.generated.go | 29 +- .../NewOrderSingle.generated.go | 29 +- .../OrderCancelReplaceRequest.generated.go | 25 +- .../OrderCancelRequest.generated.go | 5 +- fix40/quote/Quote.generated.go | 17 +- fix40/quoterequest/QuoteRequest.generated.go | 9 +- .../advertisement/Advertisement.generated.go | 13 +- fix41/allocation/Allocation.generated.go | 61 +- .../dontknowtrade/DontKnowTrade.generated.go | 21 +- fix41/email/Email.generated.go | 5 +- .../ExecutionReport.generated.go | 61 +- .../IndicationofInterest.generated.go | 9 +- fix41/liststatus/ListStatus.generated.go | 17 +- fix41/neworderlist/NewOrderList.generated.go | 45 +- .../NewOrderSingle.generated.go | 49 +- fix41/news/News.generated.go | 5 +- .../OrderCancelReplaceRequest.generated.go | 45 +- .../OrderCancelRequest.generated.go | 13 +- .../OrderStatusRequest.generated.go | 5 +- fix41/quote/Quote.generated.go | 41 +- fix41/quoterequest/QuoteRequest.generated.go | 17 +- .../advertisement/Advertisement.generated.go | 21 +- fix42/allocation/Allocation.generated.go | 77 +- fix42/bidrequest/BidRequest.generated.go | 49 +- fix42/bidresponse/BidResponse.generated.go | 13 +- .../dontknowtrade/DontKnowTrade.generated.go | 29 +- fix42/email/Email.generated.go | 13 +- .../ExecutionReport.generated.go | 113 +- .../IndicationofInterest.generated.go | 21 +- fix42/liststatus/ListStatus.generated.go | 17 +- .../ListStrikePrice.generated.go | 21 +- .../MarketDataIncrementalRefresh.generated.go | 29 +- .../MarketDataRequest.generated.go | 13 +- ...MarketDataSnapshotFullRefresh.generated.go | 29 +- fix42/massquote/MassQuote.generated.go | 69 +- fix42/neworderlist/NewOrderList.generated.go | 65 +- .../NewOrderSingle.generated.go | 65 +- fix42/news/News.generated.go | 13 +- .../OrderCancelReplaceRequest.generated.go | 61 +- .../OrderCancelRequest.generated.go | 21 +- .../OrderStatusRequest.generated.go | 13 +- fix42/quote/Quote.generated.go | 49 +- .../QuoteAcknowledgement.generated.go | 25 +- fix42/quotecancel/QuoteCancel.generated.go | 13 +- fix42/quoterequest/QuoteRequest.generated.go | 25 +- .../QuoteStatusRequest.generated.go | 13 +- .../SecurityDefinition.generated.go | 29 +- .../SecurityDefinitionRequest.generated.go | 29 +- .../SecurityStatus.generated.go | 33 +- .../SecurityStatusRequest.generated.go | 13 +- .../TradingSessionStatus.generated.go | 5 +- .../advertisement/Advertisement.generated.go | 29 +- fix43/allocation/Allocation.generated.go | 97 +- fix43/bidrequest/BidRequest.generated.go | 49 +- fix43/bidresponse/BidResponse.generated.go | 13 +- ...rossOrderCancelReplaceRequest.generated.go | 97 +- .../CrossOrderCancelRequest.generated.go | 37 +- .../DerivativeSecurityList.generated.go | 65 +- ...DerivativeSecurityListRequest.generated.go | 21 +- .../dontknowtrade/DontKnowTrade.generated.go | 45 +- fix43/email/Email.generated.go | 21 +- .../ExecutionReport.generated.go | 217 +- fix43/ioi/IOI.generated.go | 29 +- fix43/liststatus/ListStatus.generated.go | 17 +- .../ListStrikePrice.generated.go | 29 +- .../MarketDataIncrementalRefresh.generated.go | 41 +- .../MarketDataRequest.generated.go | 21 +- ...MarketDataSnapshotFullRefresh.generated.go | 41 +- fix43/massquote/MassQuote.generated.go | 109 +- .../MassQuoteAcknowledgement.generated.go | 101 +- ...ilegOrderCancelReplaceRequest.generated.go | 109 +- .../newordercross/NewOrderCross.generated.go | 97 +- fix43/neworderlist/NewOrderList.generated.go | 105 +- .../NewOrderMultileg.generated.go | 109 +- .../NewOrderSingle.generated.go | 105 +- fix43/news/News.generated.go | 21 +- .../OrderCancelReplaceRequest.generated.go | 101 +- .../OrderCancelRequest.generated.go | 37 +- .../OrderMassCancelReport.generated.go | 41 +- .../OrderMassCancelRequest.generated.go | 41 +- .../OrderMassStatusRequest.generated.go | 41 +- .../OrderStatusRequest.generated.go | 21 +- fix43/quote/Quote.generated.go | 109 +- fix43/quotecancel/QuoteCancel.generated.go | 21 +- fix43/quoterequest/QuoteRequest.generated.go | 53 +- .../QuoteRequestReject.generated.go | 53 +- .../QuoteStatusReport.generated.go | 109 +- .../QuoteStatusRequest.generated.go | 21 +- .../RegistrationInstructions.generated.go | 5 +- fix43/rfqrequest/RFQRequest.generated.go | 25 +- .../SecurityDefinition.generated.go | 53 +- .../SecurityDefinitionRequest.generated.go | 45 +- fix43/securitylist/SecurityList.generated.go | 53 +- .../SecurityListRequest.generated.go | 21 +- .../SecurityStatus.generated.go | 41 +- .../SecurityStatusRequest.generated.go | 21 +- .../TradeCaptureReport.generated.go | 97 +- .../TradeCaptureReportRequest.generated.go | 21 +- .../TradingSessionStatus.generated.go | 5 +- .../advertisement/Advertisement.generated.go | 105 +- .../AllocationInstruction.generated.go | 245 +- .../AllocationInstructionAck.generated.go | 5 +- .../AllocationReport.generated.go | 245 +- .../AllocationReportAck.generated.go | 5 +- .../AssignmentReport.generated.go | 129 +- fix44/bidrequest/BidRequest.generated.go | 49 +- fix44/bidresponse/BidResponse.generated.go | 13 +- .../CollateralAssignment.generated.go | 149 +- .../CollateralInquiry.generated.go | 145 +- .../CollateralInquiryAck.generated.go | 105 +- .../CollateralReport.generated.go | 149 +- .../CollateralRequest.generated.go | 149 +- .../CollateralResponse.generated.go | 149 +- fix44/confirmation/Confirmation.generated.go | 217 +- .../ConfirmationRequest.generated.go | 13 +- ...rossOrderCancelReplaceRequest.generated.go | 173 +- .../CrossOrderCancelRequest.generated.go | 113 +- .../DerivativeSecurityList.generated.go | 101 +- ...DerivativeSecurityListRequest.generated.go | 49 +- .../dontknowtrade/DontKnowTrade.generated.go | 121 +- fix44/email/Email.generated.go | 97 +- .../ExecutionReport.generated.go | 325 +-- fix44/ioi/IOI.generated.go | 137 +- fix44/liststatus/ListStatus.generated.go | 17 +- .../ListStrikePrice.generated.go | 81 +- .../MarketDataIncrementalRefresh.generated.go | 117 +- .../MarketDataRequest.generated.go | 97 +- ...MarketDataSnapshotFullRefresh.generated.go | 117 +- fix44/massquote/MassQuote.generated.go | 165 +- .../MassQuoteAcknowledgement.generated.go | 157 +- .../MultilegOrderCancelReplace.generated.go | 169 +- .../newordercross/NewOrderCross.generated.go | 173 +- fix44/neworderlist/NewOrderList.generated.go | 165 +- .../NewOrderMultileg.generated.go | 169 +- .../NewOrderSingle.generated.go | 161 +- fix44/news/News.generated.go | 97 +- .../OrderCancelReplaceRequest.generated.go | 157 +- .../OrderCancelRequest.generated.go | 93 +- .../OrderMassCancelReport.generated.go | 73 +- .../OrderMassCancelRequest.generated.go | 73 +- .../OrderMassStatusRequest.generated.go | 73 +- .../OrderStatusRequest.generated.go | 77 +- .../PositionMaintenanceReport.generated.go | 113 +- .../PositionMaintenanceRequest.generated.go | 109 +- .../PositionReport.generated.go | 121 +- fix44/quote/Quote.generated.go | 237 +- fix44/quotecancel/QuoteCancel.generated.go | 101 +- fix44/quoterequest/QuoteRequest.generated.go | 157 +- .../QuoteRequestReject.generated.go | 157 +- .../quoteresponse/QuoteResponse.generated.go | 241 +- .../QuoteStatusReport.generated.go | 229 +- .../QuoteStatusRequest.generated.go | 101 +- .../RegistrationInstructions.generated.go | 5 +- .../RequestForPositions.generated.go | 97 +- .../RequestForPositionsAck.generated.go | 97 +- fix44/rfqrequest/RFQRequest.generated.go | 101 +- .../SecurityDefinition.generated.go | 109 +- .../SecurityDefinitionRequest.generated.go | 101 +- fix44/securitylist/SecurityList.generated.go | 133 +- .../SecurityListRequest.generated.go | 105 +- .../SecurityStatus.generated.go | 121 +- .../SecurityStatusRequest.generated.go | 101 +- .../TradeCaptureReport.generated.go | 237 +- .../TradeCaptureReportAck.generated.go | 65 +- .../TradeCaptureReportRequest.generated.go | 105 +- .../TradeCaptureReportRequestAck.generated.go | 97 +- .../TradingSessionStatus.generated.go | 5 +- .../AdjustedPositionReport.generated.go | 53 +- .../advertisement/Advertisement.generated.go | 137 +- .../AllocationInstruction.generated.go | 285 +- .../AllocationInstructionAck.generated.go | 9 +- .../AllocationInstructionAlert.generated.go | 285 +- .../AllocationReport.generated.go | 285 +- .../AllocationReportAck.generated.go | 13 +- .../AssignmentReport.generated.go | 165 +- fix50/bidrequest/BidRequest.generated.go | 49 +- fix50/bidresponse/BidResponse.generated.go | 13 +- .../CollateralAssignment.generated.go | 181 +- .../CollateralInquiry.generated.go | 177 +- .../CollateralInquiryAck.generated.go | 137 +- .../CollateralReport.generated.go | 181 +- .../CollateralRequest.generated.go | 181 +- .../CollateralResponse.generated.go | 181 +- fix50/confirmation/Confirmation.generated.go | 249 +- .../ConfirmationRequest.generated.go | 13 +- .../ContraryIntentionReport.generated.go | 109 +- ...rossOrderCancelReplaceRequest.generated.go | 245 +- .../CrossOrderCancelRequest.generated.go | 145 +- .../DerivativeSecurityList.generated.go | 133 +- ...DerivativeSecurityListRequest.generated.go | 69 +- .../dontknowtrade/DontKnowTrade.generated.go | 153 +- fix50/email/Email.generated.go | 129 +- .../ExecutionAcknowledgement.generated.go | 165 +- .../ExecutionReport.generated.go | 425 +-- fix50/ioi/IOI.generated.go | 169 +- fix50/liststatus/ListStatus.generated.go | 17 +- .../ListStrikePrice.generated.go | 113 +- .../MarketDataIncrementalRefresh.generated.go | 169 +- .../MarketDataRequest.generated.go | 133 +- ...MarketDataSnapshotFullRefresh.generated.go | 169 +- fix50/massquote/MassQuote.generated.go | 197 +- .../MassQuoteAcknowledgement.generated.go | 189 +- .../MultilegOrderCancelReplace.generated.go | 253 +- .../newordercross/NewOrderCross.generated.go | 245 +- fix50/neworderlist/NewOrderList.generated.go | 237 +- .../NewOrderMultileg.generated.go | 253 +- .../NewOrderSingle.generated.go | 233 +- fix50/news/News.generated.go | 129 +- .../OrderCancelReplaceRequest.generated.go | 229 +- .../OrderCancelRequest.generated.go | 125 +- .../OrderMassCancelReport.generated.go | 105 +- .../OrderMassCancelRequest.generated.go | 105 +- .../OrderMassStatusRequest.generated.go | 105 +- .../OrderStatusRequest.generated.go | 109 +- .../PositionMaintenanceReport.generated.go | 145 +- .../PositionMaintenanceRequest.generated.go | 145 +- .../PositionReport.generated.go | 165 +- fix50/quote/Quote.generated.go | 289 +-- fix50/quotecancel/QuoteCancel.generated.go | 133 +- fix50/quoterequest/QuoteRequest.generated.go | 201 +- .../QuoteRequestReject.generated.go | 201 +- .../quoteresponse/QuoteResponse.generated.go | 285 +- .../QuoteStatusReport.generated.go | 265 +- .../QuoteStatusRequest.generated.go | 133 +- .../RegistrationInstructions.generated.go | 5 +- .../RequestForPositions.generated.go | 129 +- .../RequestForPositionsAck.generated.go | 129 +- fix50/rfqrequest/RFQRequest.generated.go | 133 +- .../SecurityDefinition.generated.go | 149 +- .../SecurityDefinitionRequest.generated.go | 141 +- ...ecurityDefinitionUpdateReport.generated.go | 137 +- fix50/securitylist/SecurityList.generated.go | 165 +- .../SecurityListRequest.generated.go | 137 +- .../SecurityListUpdateReport.generated.go | 165 +- .../SecurityStatus.generated.go | 157 +- .../SecurityStatusRequest.generated.go | 133 +- .../TradeCaptureReport.generated.go | 297 +-- .../TradeCaptureReportAck.generated.go | 261 +- .../TradeCaptureReportRequest.generated.go | 137 +- .../TradeCaptureReportRequestAck.generated.go | 129 +- .../TradingSessionList.generated.go | 5 +- .../TradingSessionStatus.generated.go | 41 +- .../AdjustedPositionReport.generated.go | 77 +- .../advertisement/Advertisement.generated.go | 185 +- .../AllocationInstruction.generated.go | 333 +-- .../AllocationInstructionAck.generated.go | 9 +- .../AllocationInstructionAlert.generated.go | 333 +-- .../AllocationReport.generated.go | 333 +-- .../AllocationReportAck.generated.go | 13 +- .../AssignmentReport.generated.go | 213 +- fix50sp1/bidrequest/BidRequest.generated.go | 49 +- fix50sp1/bidresponse/BidResponse.generated.go | 13 +- .../CollateralAssignment.generated.go | 229 +- .../CollateralInquiry.generated.go | 225 +- .../CollateralInquiryAck.generated.go | 185 +- .../CollateralReport.generated.go | 229 +- .../CollateralRequest.generated.go | 229 +- .../CollateralResponse.generated.go | 229 +- .../confirmation/Confirmation.generated.go | 297 +-- .../ConfirmationRequest.generated.go | 13 +- .../ContraryIntentionReport.generated.go | 141 +- ...rossOrderCancelReplaceRequest.generated.go | 293 +-- .../CrossOrderCancelRequest.generated.go | 193 +- .../DerivativeSecurityList.generated.go | 297 +-- ...DerivativeSecurityListRequest.generated.go | 125 +- ...ativeSecurityListUpdateReport.generated.go | 297 +-- .../dontknowtrade/DontKnowTrade.generated.go | 201 +- fix50sp1/email/Email.generated.go | 177 +- .../ExecutionAcknowledgement.generated.go | 213 +- .../ExecutionReport.generated.go | 521 ++-- fix50sp1/ioi/IOI.generated.go | 217 +- fix50sp1/liststatus/ListStatus.generated.go | 17 +- .../ListStrikePrice.generated.go | 145 +- .../MarketDataIncrementalRefresh.generated.go | 237 +- .../MarketDataRequest.generated.go | 181 +- ...MarketDataSnapshotFullRefresh.generated.go | 237 +- .../MarketDefinition.generated.go | 45 +- .../MarketDefinitionUpdateReport.generated.go | 45 +- fix50sp1/massquote/MassQuote.generated.go | 245 +- .../MassQuoteAcknowledgement.generated.go | 237 +- .../MultilegOrderCancelReplace.generated.go | 309 +-- .../newordercross/NewOrderCross.generated.go | 293 +-- .../neworderlist/NewOrderList.generated.go | 269 +- .../NewOrderMultileg.generated.go | 309 +-- .../NewOrderSingle.generated.go | 265 +- fix50sp1/news/News.generated.go | 177 +- .../OrderCancelReplaceRequest.generated.go | 261 +- .../OrderCancelRequest.generated.go | 157 +- .../OrderMassActionReport.generated.go | 137 +- .../OrderMassActionRequest.generated.go | 137 +- .../OrderMassCancelReport.generated.go | 137 +- .../OrderMassCancelRequest.generated.go | 137 +- .../OrderMassStatusRequest.generated.go | 137 +- .../OrderStatusRequest.generated.go | 141 +- .../PositionMaintenanceReport.generated.go | 193 +- .../PositionMaintenanceRequest.generated.go | 193 +- .../PositionReport.generated.go | 213 +- fix50sp1/quote/Quote.generated.go | 341 +-- fix50sp1/quotecancel/QuoteCancel.generated.go | 181 +- .../quoterequest/QuoteRequest.generated.go | 245 +- .../QuoteRequestReject.generated.go | 241 +- .../quoteresponse/QuoteResponse.generated.go | 337 +-- .../QuoteStatusReport.generated.go | 317 +-- .../QuoteStatusRequest.generated.go | 181 +- .../RegistrationInstructions.generated.go | 5 +- .../RequestForPositions.generated.go | 177 +- .../RequestForPositionsAck.generated.go | 177 +- fix50sp1/rfqrequest/RFQRequest.generated.go | 181 +- .../SecurityDefinition.generated.go | 253 +- .../SecurityDefinitionRequest.generated.go | 197 +- ...ecurityDefinitionUpdateReport.generated.go | 253 +- .../securitylist/SecurityList.generated.go | 261 +- .../SecurityListRequest.generated.go | 185 +- .../SecurityListUpdateReport.generated.go | 261 +- .../SecurityStatus.generated.go | 205 +- .../SecurityStatusRequest.generated.go | 181 +- .../SettlementObligationReport.generated.go | 73 +- .../TradeCaptureReport.generated.go | 381 +-- .../TradeCaptureReportAck.generated.go | 329 +-- .../TradeCaptureReportRequest.generated.go | 185 +- .../TradeCaptureReportRequestAck.generated.go | 177 +- .../TradingSessionList.generated.go | 5 +- ...radingSessionListUpdateReport.generated.go | 5 +- .../TradingSessionStatus.generated.go | 65 +- .../AdjustedPositionReport.generated.go | 109 +- .../advertisement/Advertisement.generated.go | 233 +- .../AllocationInstruction.generated.go | 381 +-- .../AllocationInstructionAck.generated.go | 9 +- .../AllocationInstructionAlert.generated.go | 381 +-- .../AllocationReport.generated.go | 381 +-- .../AllocationReportAck.generated.go | 13 +- .../AssignmentReport.generated.go | 261 +- fix50sp2/bidrequest/BidRequest.generated.go | 49 +- fix50sp2/bidresponse/BidResponse.generated.go | 13 +- .../CollateralAssignment.generated.go | 277 +- .../CollateralInquiry.generated.go | 273 +- .../CollateralInquiryAck.generated.go | 233 +- .../CollateralReport.generated.go | 277 +- .../CollateralRequest.generated.go | 277 +- .../CollateralResponse.generated.go | 277 +- .../confirmation/Confirmation.generated.go | 345 +-- .../ConfirmationRequest.generated.go | 13 +- .../ContraryIntentionReport.generated.go | 189 +- ...rossOrderCancelReplaceRequest.generated.go | 341 +-- .../CrossOrderCancelRequest.generated.go | 241 +- .../DerivativeSecurityList.generated.go | 345 +-- ...DerivativeSecurityListRequest.generated.go | 141 +- ...ativeSecurityListUpdateReport.generated.go | 345 +-- .../dontknowtrade/DontKnowTrade.generated.go | 249 +- fix50sp2/email/Email.generated.go | 225 +- .../ExecutionAcknowledgement.generated.go | 261 +- .../ExecutionReport.generated.go | 569 ++-- fix50sp2/ioi/IOI.generated.go | 265 +- fix50sp2/liststatus/ListStatus.generated.go | 17 +- .../ListStrikePrice.generated.go | 193 +- .../MarketDataIncrementalRefresh.generated.go | 293 +-- .../MarketDataRequest.generated.go | 229 +- ...MarketDataSnapshotFullRefresh.generated.go | 293 +-- .../MarketDefinition.generated.go | 45 +- .../MarketDefinitionUpdateReport.generated.go | 45 +- fix50sp2/massquote/MassQuote.generated.go | 293 +-- .../MassQuoteAcknowledgement.generated.go | 285 +- .../MultilegOrderCancelReplace.generated.go | 357 +-- .../newordercross/NewOrderCross.generated.go | 341 +-- .../neworderlist/NewOrderList.generated.go | 317 +-- .../NewOrderMultileg.generated.go | 357 +-- .../NewOrderSingle.generated.go | 313 +-- fix50sp2/news/News.generated.go | 225 +- .../OrderCancelReplaceRequest.generated.go | 309 +-- .../OrderCancelRequest.generated.go | 205 +- .../OrderMassActionReport.generated.go | 185 +- .../OrderMassActionRequest.generated.go | 185 +- .../OrderMassCancelReport.generated.go | 185 +- .../OrderMassCancelRequest.generated.go | 185 +- .../OrderMassStatusRequest.generated.go | 185 +- .../OrderStatusRequest.generated.go | 189 +- .../PartyDetailsListReport.generated.go | 33 +- .../PositionMaintenanceReport.generated.go | 241 +- .../PositionMaintenanceRequest.generated.go | 241 +- .../PositionReport.generated.go | 265 +- fix50sp2/quote/Quote.generated.go | 389 +-- fix50sp2/quotecancel/QuoteCancel.generated.go | 229 +- .../quoterequest/QuoteRequest.generated.go | 293 +-- .../QuoteRequestReject.generated.go | 289 +-- .../quoteresponse/QuoteResponse.generated.go | 385 +-- .../QuoteStatusReport.generated.go | 365 +-- .../QuoteStatusRequest.generated.go | 229 +- .../RegistrationInstructions.generated.go | 5 +- .../RequestForPositions.generated.go | 225 +- .../RequestForPositionsAck.generated.go | 225 +- fix50sp2/rfqrequest/RFQRequest.generated.go | 229 +- .../SecurityDefinition.generated.go | 301 +-- .../SecurityDefinitionRequest.generated.go | 245 +- ...ecurityDefinitionUpdateReport.generated.go | 301 +-- .../securitylist/SecurityList.generated.go | 309 +-- .../SecurityListRequest.generated.go | 233 +- .../SecurityListUpdateReport.generated.go | 309 +-- .../SecurityStatus.generated.go | 253 +- .../SecurityStatusRequest.generated.go | 229 +- .../SettlementObligationReport.generated.go | 105 +- .../StreamAssignmentReport.generated.go | 93 +- .../StreamAssignmentRequest.generated.go | 97 +- .../TradeCaptureReport.generated.go | 469 ++-- .../TradeCaptureReportAck.generated.go | 433 ++-- .../TradeCaptureReportRequest.generated.go | 233 +- .../TradeCaptureReportRequestAck.generated.go | 225 +- .../TradingSessionList.generated.go | 5 +- ...radingSessionListUpdateReport.generated.go | 5 +- .../TradingSessionStatus.generated.go | 97 +- 416 files changed, 31516 insertions(+), 31101 deletions(-) diff --git a/field/fields.generated.go b/field/fields.generated.go index 24cf7233f..3c9590789 100644 --- a/field/fields.generated.go +++ b/field/fields.generated.go @@ -3,7 +3,7 @@ package field import ( "github.com/quickfixgo/quickfix" "github.com/quickfixgo/quickfix/tag" - + "github.com/shopspring/decimal" "time" ) @@ -30,25 +30,25 @@ func NewAccountType(val int) AccountTypeField { } //AccruedInterestAmtField is a AMT field -type AccruedInterestAmtField struct{ quickfix.FIXFloat } +type AccruedInterestAmtField struct{ quickfix.FIXDecimal } //Tag returns tag.AccruedInterestAmt (159) func (f AccruedInterestAmtField) Tag() quickfix.Tag { return tag.AccruedInterestAmt } -//NewAccruedInterestAmt returns a new AccruedInterestAmtField initialized with val -func NewAccruedInterestAmt(val float64) AccruedInterestAmtField { - return AccruedInterestAmtField{quickfix.FIXFloat(val)} +//NewAccruedInterestAmt returns a new AccruedInterestAmtField initialized with val and scale +func NewAccruedInterestAmt(val decimal.Decimal, scale int32) AccruedInterestAmtField { + return AccruedInterestAmtField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //AccruedInterestRateField is a PERCENTAGE field -type AccruedInterestRateField struct{ quickfix.FIXFloat } +type AccruedInterestRateField struct{ quickfix.FIXDecimal } //Tag returns tag.AccruedInterestRate (158) func (f AccruedInterestRateField) Tag() quickfix.Tag { return tag.AccruedInterestRate } -//NewAccruedInterestRate returns a new AccruedInterestRateField initialized with val -func NewAccruedInterestRate(val float64) AccruedInterestRateField { - return AccruedInterestRateField{quickfix.FIXFloat(val)} +//NewAccruedInterestRate returns a new AccruedInterestRateField initialized with val and scale +func NewAccruedInterestRate(val decimal.Decimal, scale int32) AccruedInterestRateField { + return AccruedInterestRateField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //AcctIDSourceField is a INT field @@ -250,14 +250,14 @@ func NewAllocAccountType(val int) AllocAccountTypeField { } //AllocAccruedInterestAmtField is a AMT field -type AllocAccruedInterestAmtField struct{ quickfix.FIXFloat } +type AllocAccruedInterestAmtField struct{ quickfix.FIXDecimal } //Tag returns tag.AllocAccruedInterestAmt (742) func (f AllocAccruedInterestAmtField) Tag() quickfix.Tag { return tag.AllocAccruedInterestAmt } -//NewAllocAccruedInterestAmt returns a new AllocAccruedInterestAmtField initialized with val -func NewAllocAccruedInterestAmt(val float64) AllocAccruedInterestAmtField { - return AllocAccruedInterestAmtField{quickfix.FIXFloat(val)} +//NewAllocAccruedInterestAmt returns a new AllocAccruedInterestAmtField initialized with val and scale +func NewAllocAccruedInterestAmt(val decimal.Decimal, scale int32) AllocAccruedInterestAmtField { + return AllocAccruedInterestAmtField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //AllocAcctIDSourceField is a INT field @@ -272,14 +272,14 @@ func NewAllocAcctIDSource(val int) AllocAcctIDSourceField { } //AllocAvgPxField is a PRICE field -type AllocAvgPxField struct{ quickfix.FIXFloat } +type AllocAvgPxField struct{ quickfix.FIXDecimal } //Tag returns tag.AllocAvgPx (153) func (f AllocAvgPxField) Tag() quickfix.Tag { return tag.AllocAvgPx } -//NewAllocAvgPx returns a new AllocAvgPxField initialized with val -func NewAllocAvgPx(val float64) AllocAvgPxField { - return AllocAvgPxField{quickfix.FIXFloat(val)} +//NewAllocAvgPx returns a new AllocAvgPxField initialized with val and scale +func NewAllocAvgPx(val decimal.Decimal, scale int32) AllocAvgPxField { + return AllocAvgPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //AllocCancReplaceReasonField is a INT field @@ -338,14 +338,14 @@ func NewAllocID(val string) AllocIDField { } //AllocInterestAtMaturityField is a AMT field -type AllocInterestAtMaturityField struct{ quickfix.FIXFloat } +type AllocInterestAtMaturityField struct{ quickfix.FIXDecimal } //Tag returns tag.AllocInterestAtMaturity (741) func (f AllocInterestAtMaturityField) Tag() quickfix.Tag { return tag.AllocInterestAtMaturity } -//NewAllocInterestAtMaturity returns a new AllocInterestAtMaturityField initialized with val -func NewAllocInterestAtMaturity(val float64) AllocInterestAtMaturityField { - return AllocInterestAtMaturityField{quickfix.FIXFloat(val)} +//NewAllocInterestAtMaturity returns a new AllocInterestAtMaturityField initialized with val and scale +func NewAllocInterestAtMaturity(val decimal.Decimal, scale int32) AllocInterestAtMaturityField { + return AllocInterestAtMaturityField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //AllocIntermedReqTypeField is a INT field @@ -393,14 +393,14 @@ func NewAllocMethod(val int) AllocMethodField { } //AllocNetMoneyField is a AMT field -type AllocNetMoneyField struct{ quickfix.FIXFloat } +type AllocNetMoneyField struct{ quickfix.FIXDecimal } //Tag returns tag.AllocNetMoney (154) func (f AllocNetMoneyField) Tag() quickfix.Tag { return tag.AllocNetMoney } -//NewAllocNetMoney returns a new AllocNetMoneyField initialized with val -func NewAllocNetMoney(val float64) AllocNetMoneyField { - return AllocNetMoneyField{quickfix.FIXFloat(val)} +//NewAllocNetMoney returns a new AllocNetMoneyField initialized with val and scale +func NewAllocNetMoney(val decimal.Decimal, scale int32) AllocNetMoneyField { + return AllocNetMoneyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //AllocNoOrdersTypeField is a INT field @@ -426,25 +426,25 @@ func NewAllocPositionEffect(val string) AllocPositionEffectField { } //AllocPriceField is a PRICE field -type AllocPriceField struct{ quickfix.FIXFloat } +type AllocPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.AllocPrice (366) func (f AllocPriceField) Tag() quickfix.Tag { return tag.AllocPrice } -//NewAllocPrice returns a new AllocPriceField initialized with val -func NewAllocPrice(val float64) AllocPriceField { - return AllocPriceField{quickfix.FIXFloat(val)} +//NewAllocPrice returns a new AllocPriceField initialized with val and scale +func NewAllocPrice(val decimal.Decimal, scale int32) AllocPriceField { + return AllocPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //AllocQtyField is a QTY field -type AllocQtyField struct{ quickfix.FIXFloat } +type AllocQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.AllocQty (80) func (f AllocQtyField) Tag() quickfix.Tag { return tag.AllocQty } -//NewAllocQty returns a new AllocQtyField initialized with val -func NewAllocQty(val float64) AllocQtyField { - return AllocQtyField{quickfix.FIXFloat(val)} +//NewAllocQty returns a new AllocQtyField initialized with val and scale +func NewAllocQty(val decimal.Decimal, scale int32) AllocQtyField { + return AllocQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //AllocRejCodeField is a INT field @@ -492,14 +492,14 @@ func NewAllocReportType(val int) AllocReportTypeField { } //AllocSettlCurrAmtField is a AMT field -type AllocSettlCurrAmtField struct{ quickfix.FIXFloat } +type AllocSettlCurrAmtField struct{ quickfix.FIXDecimal } //Tag returns tag.AllocSettlCurrAmt (737) func (f AllocSettlCurrAmtField) Tag() quickfix.Tag { return tag.AllocSettlCurrAmt } -//NewAllocSettlCurrAmt returns a new AllocSettlCurrAmtField initialized with val -func NewAllocSettlCurrAmt(val float64) AllocSettlCurrAmtField { - return AllocSettlCurrAmtField{quickfix.FIXFloat(val)} +//NewAllocSettlCurrAmt returns a new AllocSettlCurrAmtField initialized with val and scale +func NewAllocSettlCurrAmt(val decimal.Decimal, scale int32) AllocSettlCurrAmtField { + return AllocSettlCurrAmtField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //AllocSettlCurrencyField is a CURRENCY field @@ -525,14 +525,14 @@ func NewAllocSettlInstType(val int) AllocSettlInstTypeField { } //AllocSharesField is a QTY field -type AllocSharesField struct{ quickfix.FIXFloat } +type AllocSharesField struct{ quickfix.FIXDecimal } //Tag returns tag.AllocShares (80) func (f AllocSharesField) Tag() quickfix.Tag { return tag.AllocShares } -//NewAllocShares returns a new AllocSharesField initialized with val -func NewAllocShares(val float64) AllocSharesField { - return AllocSharesField{quickfix.FIXFloat(val)} +//NewAllocShares returns a new AllocSharesField initialized with val and scale +func NewAllocShares(val decimal.Decimal, scale int32) AllocSharesField { + return AllocSharesField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //AllocStatusField is a INT field @@ -591,25 +591,25 @@ func NewAllowableOneSidednessCurr(val string) AllowableOneSidednessCurrField { } //AllowableOneSidednessPctField is a PERCENTAGE field -type AllowableOneSidednessPctField struct{ quickfix.FIXFloat } +type AllowableOneSidednessPctField struct{ quickfix.FIXDecimal } //Tag returns tag.AllowableOneSidednessPct (765) func (f AllowableOneSidednessPctField) Tag() quickfix.Tag { return tag.AllowableOneSidednessPct } -//NewAllowableOneSidednessPct returns a new AllowableOneSidednessPctField initialized with val -func NewAllowableOneSidednessPct(val float64) AllowableOneSidednessPctField { - return AllowableOneSidednessPctField{quickfix.FIXFloat(val)} +//NewAllowableOneSidednessPct returns a new AllowableOneSidednessPctField initialized with val and scale +func NewAllowableOneSidednessPct(val decimal.Decimal, scale int32) AllowableOneSidednessPctField { + return AllowableOneSidednessPctField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //AllowableOneSidednessValueField is a AMT field -type AllowableOneSidednessValueField struct{ quickfix.FIXFloat } +type AllowableOneSidednessValueField struct{ quickfix.FIXDecimal } //Tag returns tag.AllowableOneSidednessValue (766) func (f AllowableOneSidednessValueField) Tag() quickfix.Tag { return tag.AllowableOneSidednessValue } -//NewAllowableOneSidednessValue returns a new AllowableOneSidednessValueField initialized with val -func NewAllowableOneSidednessValue(val float64) AllowableOneSidednessValueField { - return AllowableOneSidednessValueField{quickfix.FIXFloat(val)} +//NewAllowableOneSidednessValue returns a new AllowableOneSidednessValueField initialized with val and scale +func NewAllowableOneSidednessValue(val decimal.Decimal, scale int32) AllowableOneSidednessValueField { + return AllowableOneSidednessValueField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //AltMDSourceIDField is a STRING field @@ -899,25 +899,25 @@ func NewAssignmentMethod(val string) AssignmentMethodField { } //AssignmentUnitField is a QTY field -type AssignmentUnitField struct{ quickfix.FIXFloat } +type AssignmentUnitField struct{ quickfix.FIXDecimal } //Tag returns tag.AssignmentUnit (745) func (f AssignmentUnitField) Tag() quickfix.Tag { return tag.AssignmentUnit } -//NewAssignmentUnit returns a new AssignmentUnitField initialized with val -func NewAssignmentUnit(val float64) AssignmentUnitField { - return AssignmentUnitField{quickfix.FIXFloat(val)} +//NewAssignmentUnit returns a new AssignmentUnitField initialized with val and scale +func NewAssignmentUnit(val decimal.Decimal, scale int32) AssignmentUnitField { + return AssignmentUnitField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //AttachmentPointField is a PERCENTAGE field -type AttachmentPointField struct{ quickfix.FIXFloat } +type AttachmentPointField struct{ quickfix.FIXDecimal } //Tag returns tag.AttachmentPoint (1457) func (f AttachmentPointField) Tag() quickfix.Tag { return tag.AttachmentPoint } -//NewAttachmentPoint returns a new AttachmentPointField initialized with val -func NewAttachmentPoint(val float64) AttachmentPointField { - return AttachmentPointField{quickfix.FIXFloat(val)} +//NewAttachmentPoint returns a new AttachmentPointField initialized with val and scale +func NewAttachmentPoint(val decimal.Decimal, scale int32) AttachmentPointField { + return AttachmentPointField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //AutoAcceptIndicatorField is a BOOLEAN field @@ -932,14 +932,14 @@ func NewAutoAcceptIndicator(val bool) AutoAcceptIndicatorField { } //AvgParPxField is a PRICE field -type AvgParPxField struct{ quickfix.FIXFloat } +type AvgParPxField struct{ quickfix.FIXDecimal } //Tag returns tag.AvgParPx (860) func (f AvgParPxField) Tag() quickfix.Tag { return tag.AvgParPx } -//NewAvgParPx returns a new AvgParPxField initialized with val -func NewAvgParPx(val float64) AvgParPxField { - return AvgParPxField{quickfix.FIXFloat(val)} +//NewAvgParPx returns a new AvgParPxField initialized with val and scale +func NewAvgParPx(val decimal.Decimal, scale int32) AvgParPxField { + return AvgParPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //AvgPrxPrecisionField is a INT field @@ -954,14 +954,14 @@ func NewAvgPrxPrecision(val int) AvgPrxPrecisionField { } //AvgPxField is a PRICE field -type AvgPxField struct{ quickfix.FIXFloat } +type AvgPxField struct{ quickfix.FIXDecimal } //Tag returns tag.AvgPx (6) func (f AvgPxField) Tag() quickfix.Tag { return tag.AvgPx } -//NewAvgPx returns a new AvgPxField initialized with val -func NewAvgPx(val float64) AvgPxField { - return AvgPxField{quickfix.FIXFloat(val)} +//NewAvgPx returns a new AvgPxField initialized with val and scale +func NewAvgPx(val decimal.Decimal, scale int32) AvgPxField { + return AvgPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //AvgPxIndicatorField is a INT field @@ -998,14 +998,14 @@ func NewBasisFeatureDate(val string) BasisFeatureDateField { } //BasisFeaturePriceField is a PRICE field -type BasisFeaturePriceField struct{ quickfix.FIXFloat } +type BasisFeaturePriceField struct{ quickfix.FIXDecimal } //Tag returns tag.BasisFeaturePrice (260) func (f BasisFeaturePriceField) Tag() quickfix.Tag { return tag.BasisFeaturePrice } -//NewBasisFeaturePrice returns a new BasisFeaturePriceField initialized with val -func NewBasisFeaturePrice(val float64) BasisFeaturePriceField { - return BasisFeaturePriceField{quickfix.FIXFloat(val)} +//NewBasisFeaturePrice returns a new BasisFeaturePriceField initialized with val and scale +func NewBasisFeaturePrice(val decimal.Decimal, scale int32) BasisFeaturePriceField { + return BasisFeaturePriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //BasisPxTypeField is a CHAR field @@ -1086,14 +1086,14 @@ func NewBenchmarkCurvePoint(val string) BenchmarkCurvePointField { } //BenchmarkPriceField is a PRICE field -type BenchmarkPriceField struct{ quickfix.FIXFloat } +type BenchmarkPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.BenchmarkPrice (662) func (f BenchmarkPriceField) Tag() quickfix.Tag { return tag.BenchmarkPrice } -//NewBenchmarkPrice returns a new BenchmarkPriceField initialized with val -func NewBenchmarkPrice(val float64) BenchmarkPriceField { - return BenchmarkPriceField{quickfix.FIXFloat(val)} +//NewBenchmarkPrice returns a new BenchmarkPriceField initialized with val and scale +func NewBenchmarkPrice(val decimal.Decimal, scale int32) BenchmarkPriceField { + return BenchmarkPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //BenchmarkPriceTypeField is a INT field @@ -1152,25 +1152,25 @@ func NewBidDescriptorType(val int) BidDescriptorTypeField { } //BidForwardPointsField is a PRICEOFFSET field -type BidForwardPointsField struct{ quickfix.FIXFloat } +type BidForwardPointsField struct{ quickfix.FIXDecimal } //Tag returns tag.BidForwardPoints (189) func (f BidForwardPointsField) Tag() quickfix.Tag { return tag.BidForwardPoints } -//NewBidForwardPoints returns a new BidForwardPointsField initialized with val -func NewBidForwardPoints(val float64) BidForwardPointsField { - return BidForwardPointsField{quickfix.FIXFloat(val)} +//NewBidForwardPoints returns a new BidForwardPointsField initialized with val and scale +func NewBidForwardPoints(val decimal.Decimal, scale int32) BidForwardPointsField { + return BidForwardPointsField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //BidForwardPoints2Field is a PRICEOFFSET field -type BidForwardPoints2Field struct{ quickfix.FIXFloat } +type BidForwardPoints2Field struct{ quickfix.FIXDecimal } //Tag returns tag.BidForwardPoints2 (642) func (f BidForwardPoints2Field) Tag() quickfix.Tag { return tag.BidForwardPoints2 } -//NewBidForwardPoints2 returns a new BidForwardPoints2Field initialized with val -func NewBidForwardPoints2(val float64) BidForwardPoints2Field { - return BidForwardPoints2Field{quickfix.FIXFloat(val)} +//NewBidForwardPoints2 returns a new BidForwardPoints2Field initialized with val and scale +func NewBidForwardPoints2(val decimal.Decimal, scale int32) BidForwardPoints2Field { + return BidForwardPoints2Field{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //BidIDField is a STRING field @@ -1185,14 +1185,14 @@ func NewBidID(val string) BidIDField { } //BidPxField is a PRICE field -type BidPxField struct{ quickfix.FIXFloat } +type BidPxField struct{ quickfix.FIXDecimal } //Tag returns tag.BidPx (132) func (f BidPxField) Tag() quickfix.Tag { return tag.BidPx } -//NewBidPx returns a new BidPxField initialized with val -func NewBidPx(val float64) BidPxField { - return BidPxField{quickfix.FIXFloat(val)} +//NewBidPx returns a new BidPxField initialized with val and scale +func NewBidPx(val decimal.Decimal, scale int32) BidPxField { + return BidPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //BidRequestTransTypeField is a CHAR field @@ -1207,36 +1207,36 @@ func NewBidRequestTransType(val string) BidRequestTransTypeField { } //BidSizeField is a QTY field -type BidSizeField struct{ quickfix.FIXFloat } +type BidSizeField struct{ quickfix.FIXDecimal } //Tag returns tag.BidSize (134) func (f BidSizeField) Tag() quickfix.Tag { return tag.BidSize } -//NewBidSize returns a new BidSizeField initialized with val -func NewBidSize(val float64) BidSizeField { - return BidSizeField{quickfix.FIXFloat(val)} +//NewBidSize returns a new BidSizeField initialized with val and scale +func NewBidSize(val decimal.Decimal, scale int32) BidSizeField { + return BidSizeField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //BidSpotRateField is a PRICE field -type BidSpotRateField struct{ quickfix.FIXFloat } +type BidSpotRateField struct{ quickfix.FIXDecimal } //Tag returns tag.BidSpotRate (188) func (f BidSpotRateField) Tag() quickfix.Tag { return tag.BidSpotRate } -//NewBidSpotRate returns a new BidSpotRateField initialized with val -func NewBidSpotRate(val float64) BidSpotRateField { - return BidSpotRateField{quickfix.FIXFloat(val)} +//NewBidSpotRate returns a new BidSpotRateField initialized with val and scale +func NewBidSpotRate(val decimal.Decimal, scale int32) BidSpotRateField { + return BidSpotRateField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //BidSwapPointsField is a PRICEOFFSET field -type BidSwapPointsField struct{ quickfix.FIXFloat } +type BidSwapPointsField struct{ quickfix.FIXDecimal } //Tag returns tag.BidSwapPoints (1065) func (f BidSwapPointsField) Tag() quickfix.Tag { return tag.BidSwapPoints } -//NewBidSwapPoints returns a new BidSwapPointsField initialized with val -func NewBidSwapPoints(val float64) BidSwapPointsField { - return BidSwapPointsField{quickfix.FIXFloat(val)} +//NewBidSwapPoints returns a new BidSwapPointsField initialized with val and scale +func NewBidSwapPoints(val decimal.Decimal, scale int32) BidSwapPointsField { + return BidSwapPointsField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //BidTradeTypeField is a CHAR field @@ -1262,14 +1262,14 @@ func NewBidType(val int) BidTypeField { } //BidYieldField is a PERCENTAGE field -type BidYieldField struct{ quickfix.FIXFloat } +type BidYieldField struct{ quickfix.FIXDecimal } //Tag returns tag.BidYield (632) func (f BidYieldField) Tag() quickfix.Tag { return tag.BidYield } -//NewBidYield returns a new BidYieldField initialized with val -func NewBidYield(val float64) BidYieldField { - return BidYieldField{quickfix.FIXFloat(val)} +//NewBidYield returns a new BidYieldField initialized with val and scale +func NewBidYield(val decimal.Decimal, scale int32) BidYieldField { + return BidYieldField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //BodyLengthField is a LENGTH field @@ -1350,14 +1350,14 @@ func NewBusinessRejectRefID(val string) BusinessRejectRefIDField { } //BuyVolumeField is a QTY field -type BuyVolumeField struct{ quickfix.FIXFloat } +type BuyVolumeField struct{ quickfix.FIXDecimal } //Tag returns tag.BuyVolume (330) func (f BuyVolumeField) Tag() quickfix.Tag { return tag.BuyVolume } -//NewBuyVolume returns a new BuyVolumeField initialized with val -func NewBuyVolume(val float64) BuyVolumeField { - return BuyVolumeField{quickfix.FIXFloat(val)} +//NewBuyVolume returns a new BuyVolumeField initialized with val and scale +func NewBuyVolume(val decimal.Decimal, scale int32) BuyVolumeField { + return BuyVolumeField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //CFICodeField is a STRING field @@ -1394,14 +1394,14 @@ func NewCPRegType(val string) CPRegTypeField { } //CalculatedCcyLastQtyField is a QTY field -type CalculatedCcyLastQtyField struct{ quickfix.FIXFloat } +type CalculatedCcyLastQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.CalculatedCcyLastQty (1056) func (f CalculatedCcyLastQtyField) Tag() quickfix.Tag { return tag.CalculatedCcyLastQty } -//NewCalculatedCcyLastQty returns a new CalculatedCcyLastQtyField initialized with val -func NewCalculatedCcyLastQty(val float64) CalculatedCcyLastQtyField { - return CalculatedCcyLastQtyField{quickfix.FIXFloat(val)} +//NewCalculatedCcyLastQty returns a new CalculatedCcyLastQtyField initialized with val and scale +func NewCalculatedCcyLastQty(val decimal.Decimal, scale int32) CalculatedCcyLastQtyField { + return CalculatedCcyLastQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //CancellationRightsField is a CHAR field @@ -1416,14 +1416,14 @@ func NewCancellationRights(val string) CancellationRightsField { } //CapPriceField is a PRICE field -type CapPriceField struct{ quickfix.FIXFloat } +type CapPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.CapPrice (1199) func (f CapPriceField) Tag() quickfix.Tag { return tag.CapPrice } -//NewCapPrice returns a new CapPriceField initialized with val -func NewCapPrice(val float64) CapPriceField { - return CapPriceField{quickfix.FIXFloat(val)} +//NewCapPrice returns a new CapPriceField initialized with val and scale +func NewCapPrice(val decimal.Decimal, scale int32) CapPriceField { + return CapPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //CardExpDateField is a LOCALMKTDATE field @@ -1570,25 +1570,25 @@ func NewCashMargin(val string) CashMarginField { } //CashOrderQtyField is a QTY field -type CashOrderQtyField struct{ quickfix.FIXFloat } +type CashOrderQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.CashOrderQty (152) func (f CashOrderQtyField) Tag() quickfix.Tag { return tag.CashOrderQty } -//NewCashOrderQty returns a new CashOrderQtyField initialized with val -func NewCashOrderQty(val float64) CashOrderQtyField { - return CashOrderQtyField{quickfix.FIXFloat(val)} +//NewCashOrderQty returns a new CashOrderQtyField initialized with val and scale +func NewCashOrderQty(val decimal.Decimal, scale int32) CashOrderQtyField { + return CashOrderQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //CashOutstandingField is a AMT field -type CashOutstandingField struct{ quickfix.FIXFloat } +type CashOutstandingField struct{ quickfix.FIXDecimal } //Tag returns tag.CashOutstanding (901) func (f CashOutstandingField) Tag() quickfix.Tag { return tag.CashOutstanding } -//NewCashOutstanding returns a new CashOutstandingField initialized with val -func NewCashOutstanding(val float64) CashOutstandingField { - return CashOutstandingField{quickfix.FIXFloat(val)} +//NewCashOutstanding returns a new CashOutstandingField initialized with val and scale +func NewCashOutstanding(val decimal.Decimal, scale int32) CashOutstandingField { + return CashOutstandingField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //CashSettlAgentAcctNameField is a STRING field @@ -1658,14 +1658,14 @@ func NewCashSettlAgentName(val string) CashSettlAgentNameField { } //CcyAmtField is a AMT field -type CcyAmtField struct{ quickfix.FIXFloat } +type CcyAmtField struct{ quickfix.FIXDecimal } //Tag returns tag.CcyAmt (1157) func (f CcyAmtField) Tag() quickfix.Tag { return tag.CcyAmt } -//NewCcyAmt returns a new CcyAmtField initialized with val -func NewCcyAmt(val float64) CcyAmtField { - return CcyAmtField{quickfix.FIXFloat(val)} +//NewCcyAmt returns a new CcyAmtField initialized with val and scale +func NewCcyAmt(val decimal.Decimal, scale int32) CcyAmtField { + return CcyAmtField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //CheckSumField is a STRING field @@ -1977,14 +1977,14 @@ func NewCommType(val string) CommTypeField { } //CommissionField is a AMT field -type CommissionField struct{ quickfix.FIXFloat } +type CommissionField struct{ quickfix.FIXDecimal } //Tag returns tag.Commission (12) func (f CommissionField) Tag() quickfix.Tag { return tag.Commission } -//NewCommission returns a new CommissionField initialized with val -func NewCommission(val float64) CommissionField { - return CommissionField{quickfix.FIXFloat(val)} +//NewCommission returns a new CommissionField initialized with val and scale +func NewCommission(val decimal.Decimal, scale int32) CommissionField { + return CommissionField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //ComplexEventConditionField is a INT field @@ -2026,14 +2026,14 @@ func NewComplexEventEndTime(val string) ComplexEventEndTimeField { } //ComplexEventPriceField is a PRICE field -type ComplexEventPriceField struct{ quickfix.FIXFloat } +type ComplexEventPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.ComplexEventPrice (1486) func (f ComplexEventPriceField) Tag() quickfix.Tag { return tag.ComplexEventPrice } -//NewComplexEventPrice returns a new ComplexEventPriceField initialized with val -func NewComplexEventPrice(val float64) ComplexEventPriceField { - return ComplexEventPriceField{quickfix.FIXFloat(val)} +//NewComplexEventPrice returns a new ComplexEventPriceField initialized with val and scale +func NewComplexEventPrice(val decimal.Decimal, scale int32) ComplexEventPriceField { + return ComplexEventPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //ComplexEventPriceBoundaryMethodField is a INT field @@ -2050,16 +2050,16 @@ func NewComplexEventPriceBoundaryMethod(val int) ComplexEventPriceBoundaryMethod } //ComplexEventPriceBoundaryPrecisionField is a PERCENTAGE field -type ComplexEventPriceBoundaryPrecisionField struct{ quickfix.FIXFloat } +type ComplexEventPriceBoundaryPrecisionField struct{ quickfix.FIXDecimal } //Tag returns tag.ComplexEventPriceBoundaryPrecision (1488) func (f ComplexEventPriceBoundaryPrecisionField) Tag() quickfix.Tag { return tag.ComplexEventPriceBoundaryPrecision } -//NewComplexEventPriceBoundaryPrecision returns a new ComplexEventPriceBoundaryPrecisionField initialized with val -func NewComplexEventPriceBoundaryPrecision(val float64) ComplexEventPriceBoundaryPrecisionField { - return ComplexEventPriceBoundaryPrecisionField{quickfix.FIXFloat(val)} +//NewComplexEventPriceBoundaryPrecision returns a new ComplexEventPriceBoundaryPrecisionField initialized with val and scale +func NewComplexEventPriceBoundaryPrecision(val decimal.Decimal, scale int32) ComplexEventPriceBoundaryPrecisionField { + return ComplexEventPriceBoundaryPrecisionField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //ComplexEventPriceTimeTypeField is a INT field @@ -2112,14 +2112,14 @@ func NewComplexEventType(val int) ComplexEventTypeField { } //ComplexOptPayoutAmountField is a AMT field -type ComplexOptPayoutAmountField struct{ quickfix.FIXFloat } +type ComplexOptPayoutAmountField struct{ quickfix.FIXDecimal } //Tag returns tag.ComplexOptPayoutAmount (1485) func (f ComplexOptPayoutAmountField) Tag() quickfix.Tag { return tag.ComplexOptPayoutAmount } -//NewComplexOptPayoutAmount returns a new ComplexOptPayoutAmountField initialized with val -func NewComplexOptPayoutAmount(val float64) ComplexOptPayoutAmountField { - return ComplexOptPayoutAmountField{quickfix.FIXFloat(val)} +//NewComplexOptPayoutAmount returns a new ComplexOptPayoutAmountField initialized with val and scale +func NewComplexOptPayoutAmount(val decimal.Decimal, scale int32) ComplexOptPayoutAmountField { + return ComplexOptPayoutAmountField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //ComplianceIDField is a STRING field @@ -2134,14 +2134,14 @@ func NewComplianceID(val string) ComplianceIDField { } //ConcessionField is a AMT field -type ConcessionField struct{ quickfix.FIXFloat } +type ConcessionField struct{ quickfix.FIXDecimal } //Tag returns tag.Concession (238) func (f ConcessionField) Tag() quickfix.Tag { return tag.Concession } -//NewConcession returns a new ConcessionField initialized with val -func NewConcession(val float64) ConcessionField { - return ConcessionField{quickfix.FIXFloat(val)} +//NewConcession returns a new ConcessionField initialized with val and scale +func NewConcession(val decimal.Decimal, scale int32) ConcessionField { + return ConcessionField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //ConfirmIDField is a STRING field @@ -2244,14 +2244,14 @@ func NewContAmtType(val int) ContAmtTypeField { } //ContAmtValueField is a FLOAT field -type ContAmtValueField struct{ quickfix.FIXFloat } +type ContAmtValueField struct{ quickfix.FIXDecimal } //Tag returns tag.ContAmtValue (520) func (f ContAmtValueField) Tag() quickfix.Tag { return tag.ContAmtValue } -//NewContAmtValue returns a new ContAmtValueField initialized with val -func NewContAmtValue(val float64) ContAmtValueField { - return ContAmtValueField{quickfix.FIXFloat(val)} +//NewContAmtValue returns a new ContAmtValueField initialized with val and scale +func NewContAmtValue(val decimal.Decimal, scale int32) ContAmtValueField { + return ContAmtValueField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //ContIntRptIDField is a STRING field @@ -2354,14 +2354,14 @@ func NewContraLegRefID(val string) ContraLegRefIDField { } //ContraTradeQtyField is a QTY field -type ContraTradeQtyField struct{ quickfix.FIXFloat } +type ContraTradeQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.ContraTradeQty (437) func (f ContraTradeQtyField) Tag() quickfix.Tag { return tag.ContraTradeQty } -//NewContraTradeQty returns a new ContraTradeQtyField initialized with val -func NewContraTradeQty(val float64) ContraTradeQtyField { - return ContraTradeQtyField{quickfix.FIXFloat(val)} +//NewContraTradeQty returns a new ContraTradeQtyField initialized with val and scale +func NewContraTradeQty(val decimal.Decimal, scale int32) ContraTradeQtyField { + return ContraTradeQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //ContraTradeTimeField is a UTCTIMESTAMP field @@ -2392,14 +2392,14 @@ func NewContraTrader(val string) ContraTraderField { } //ContractMultiplierField is a FLOAT field -type ContractMultiplierField struct{ quickfix.FIXFloat } +type ContractMultiplierField struct{ quickfix.FIXDecimal } //Tag returns tag.ContractMultiplier (231) func (f ContractMultiplierField) Tag() quickfix.Tag { return tag.ContractMultiplier } -//NewContractMultiplier returns a new ContractMultiplierField initialized with val -func NewContractMultiplier(val float64) ContractMultiplierField { - return ContractMultiplierField{quickfix.FIXFloat(val)} +//NewContractMultiplier returns a new ContractMultiplierField initialized with val and scale +func NewContractMultiplier(val decimal.Decimal, scale int32) ContractMultiplierField { + return ContractMultiplierField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //ContractMultiplierUnitField is a INT field @@ -2491,14 +2491,14 @@ func NewCouponPaymentDate(val string) CouponPaymentDateField { } //CouponRateField is a PERCENTAGE field -type CouponRateField struct{ quickfix.FIXFloat } +type CouponRateField struct{ quickfix.FIXDecimal } //Tag returns tag.CouponRate (223) func (f CouponRateField) Tag() quickfix.Tag { return tag.CouponRate } -//NewCouponRate returns a new CouponRateField initialized with val -func NewCouponRate(val float64) CouponRateField { - return CouponRateField{quickfix.FIXFloat(val)} +//NewCouponRate returns a new CouponRateField initialized with val and scale +func NewCouponRate(val decimal.Decimal, scale int32) CouponRateField { + return CouponRateField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //CoveredOrUncoveredField is a INT field @@ -2535,14 +2535,14 @@ func NewCrossID(val string) CrossIDField { } //CrossPercentField is a PERCENTAGE field -type CrossPercentField struct{ quickfix.FIXFloat } +type CrossPercentField struct{ quickfix.FIXDecimal } //Tag returns tag.CrossPercent (413) func (f CrossPercentField) Tag() quickfix.Tag { return tag.CrossPercent } -//NewCrossPercent returns a new CrossPercentField initialized with val -func NewCrossPercent(val float64) CrossPercentField { - return CrossPercentField{quickfix.FIXFloat(val)} +//NewCrossPercent returns a new CrossPercentField initialized with val and scale +func NewCrossPercent(val decimal.Decimal, scale int32) CrossPercentField { + return CrossPercentField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //CrossPrioritizationField is a INT field @@ -2579,14 +2579,14 @@ func NewCstmApplVerID(val string) CstmApplVerIDField { } //CumQtyField is a QTY field -type CumQtyField struct{ quickfix.FIXFloat } +type CumQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.CumQty (14) func (f CumQtyField) Tag() quickfix.Tag { return tag.CumQty } -//NewCumQty returns a new CumQtyField initialized with val -func NewCumQty(val float64) CumQtyField { - return CumQtyField{quickfix.FIXFloat(val)} +//NewCumQty returns a new CumQtyField initialized with val and scale +func NewCumQty(val decimal.Decimal, scale int32) CumQtyField { + return CumQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //CurrencyField is a CURRENCY field @@ -2601,14 +2601,14 @@ func NewCurrency(val string) CurrencyField { } //CurrencyRatioField is a FLOAT field -type CurrencyRatioField struct{ quickfix.FIXFloat } +type CurrencyRatioField struct{ quickfix.FIXDecimal } //Tag returns tag.CurrencyRatio (1382) func (f CurrencyRatioField) Tag() quickfix.Tag { return tag.CurrencyRatio } -//NewCurrencyRatio returns a new CurrencyRatioField initialized with val -func NewCurrencyRatio(val float64) CurrencyRatioField { - return CurrencyRatioField{quickfix.FIXFloat(val)} +//NewCurrencyRatio returns a new CurrencyRatioField initialized with val and scale +func NewCurrencyRatio(val decimal.Decimal, scale int32) CurrencyRatioField { + return CurrencyRatioField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //CustDirectedOrderField is a BOOLEAN field @@ -2656,14 +2656,14 @@ func NewCustomerOrFirm(val int) CustomerOrFirmField { } //CxlQtyField is a QTY field -type CxlQtyField struct{ quickfix.FIXFloat } +type CxlQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.CxlQty (84) func (f CxlQtyField) Tag() quickfix.Tag { return tag.CxlQty } -//NewCxlQty returns a new CxlQtyField initialized with val -func NewCxlQty(val float64) CxlQtyField { - return CxlQtyField{quickfix.FIXFloat(val)} +//NewCxlQty returns a new CxlQtyField initialized with val and scale +func NewCxlQty(val decimal.Decimal, scale int32) CxlQtyField { + return CxlQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //CxlRejReasonField is a INT field @@ -2733,14 +2733,14 @@ func NewDatedDate(val string) DatedDateField { } //DayAvgPxField is a PRICE field -type DayAvgPxField struct{ quickfix.FIXFloat } +type DayAvgPxField struct{ quickfix.FIXDecimal } //Tag returns tag.DayAvgPx (426) func (f DayAvgPxField) Tag() quickfix.Tag { return tag.DayAvgPx } -//NewDayAvgPx returns a new DayAvgPxField initialized with val -func NewDayAvgPx(val float64) DayAvgPxField { - return DayAvgPxField{quickfix.FIXFloat(val)} +//NewDayAvgPx returns a new DayAvgPxField initialized with val and scale +func NewDayAvgPx(val decimal.Decimal, scale int32) DayAvgPxField { + return DayAvgPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DayBookingInstField is a CHAR field @@ -2755,25 +2755,25 @@ func NewDayBookingInst(val string) DayBookingInstField { } //DayCumQtyField is a QTY field -type DayCumQtyField struct{ quickfix.FIXFloat } +type DayCumQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.DayCumQty (425) func (f DayCumQtyField) Tag() quickfix.Tag { return tag.DayCumQty } -//NewDayCumQty returns a new DayCumQtyField initialized with val -func NewDayCumQty(val float64) DayCumQtyField { - return DayCumQtyField{quickfix.FIXFloat(val)} +//NewDayCumQty returns a new DayCumQtyField initialized with val and scale +func NewDayCumQty(val decimal.Decimal, scale int32) DayCumQtyField { + return DayCumQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DayOrderQtyField is a QTY field -type DayOrderQtyField struct{ quickfix.FIXFloat } +type DayOrderQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.DayOrderQty (424) func (f DayOrderQtyField) Tag() quickfix.Tag { return tag.DayOrderQty } -//NewDayOrderQty returns a new DayOrderQtyField initialized with val -func NewDayOrderQty(val float64) DayOrderQtyField { - return DayOrderQtyField{quickfix.FIXFloat(val)} +//NewDayOrderQty returns a new DayOrderQtyField initialized with val and scale +func NewDayOrderQty(val decimal.Decimal, scale int32) DayOrderQtyField { + return DayOrderQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DealingCapacityField is a CHAR field @@ -2788,25 +2788,25 @@ func NewDealingCapacity(val string) DealingCapacityField { } //DefBidSizeField is a QTY field -type DefBidSizeField struct{ quickfix.FIXFloat } +type DefBidSizeField struct{ quickfix.FIXDecimal } //Tag returns tag.DefBidSize (293) func (f DefBidSizeField) Tag() quickfix.Tag { return tag.DefBidSize } -//NewDefBidSize returns a new DefBidSizeField initialized with val -func NewDefBidSize(val float64) DefBidSizeField { - return DefBidSizeField{quickfix.FIXFloat(val)} +//NewDefBidSize returns a new DefBidSizeField initialized with val and scale +func NewDefBidSize(val decimal.Decimal, scale int32) DefBidSizeField { + return DefBidSizeField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DefOfferSizeField is a QTY field -type DefOfferSizeField struct{ quickfix.FIXFloat } +type DefOfferSizeField struct{ quickfix.FIXDecimal } //Tag returns tag.DefOfferSize (294) func (f DefOfferSizeField) Tag() quickfix.Tag { return tag.DefOfferSize } -//NewDefOfferSize returns a new DefOfferSizeField initialized with val -func NewDefOfferSize(val float64) DefOfferSizeField { - return DefOfferSizeField{quickfix.FIXFloat(val)} +//NewDefOfferSize returns a new DefOfferSizeField initialized with val and scale +func NewDefOfferSize(val decimal.Decimal, scale int32) DefOfferSizeField { + return DefOfferSizeField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DefaultApplExtIDField is a INT field @@ -2955,25 +2955,25 @@ func NewDerivativeCFICode(val string) DerivativeCFICodeField { } //DerivativeCapPriceField is a PRICE field -type DerivativeCapPriceField struct{ quickfix.FIXFloat } +type DerivativeCapPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.DerivativeCapPrice (1321) func (f DerivativeCapPriceField) Tag() quickfix.Tag { return tag.DerivativeCapPrice } -//NewDerivativeCapPrice returns a new DerivativeCapPriceField initialized with val -func NewDerivativeCapPrice(val float64) DerivativeCapPriceField { - return DerivativeCapPriceField{quickfix.FIXFloat(val)} +//NewDerivativeCapPrice returns a new DerivativeCapPriceField initialized with val and scale +func NewDerivativeCapPrice(val decimal.Decimal, scale int32) DerivativeCapPriceField { + return DerivativeCapPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DerivativeContractMultiplierField is a FLOAT field -type DerivativeContractMultiplierField struct{ quickfix.FIXFloat } +type DerivativeContractMultiplierField struct{ quickfix.FIXDecimal } //Tag returns tag.DerivativeContractMultiplier (1266) func (f DerivativeContractMultiplierField) Tag() quickfix.Tag { return tag.DerivativeContractMultiplier } -//NewDerivativeContractMultiplier returns a new DerivativeContractMultiplierField initialized with val -func NewDerivativeContractMultiplier(val float64) DerivativeContractMultiplierField { - return DerivativeContractMultiplierField{quickfix.FIXFloat(val)} +//NewDerivativeContractMultiplier returns a new DerivativeContractMultiplierField initialized with val and scale +func NewDerivativeContractMultiplier(val decimal.Decimal, scale int32) DerivativeContractMultiplierField { + return DerivativeContractMultiplierField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DerivativeContractMultiplierUnitField is a INT field @@ -3071,14 +3071,14 @@ func NewDerivativeEventDate(val string) DerivativeEventDateField { } //DerivativeEventPxField is a PRICE field -type DerivativeEventPxField struct{ quickfix.FIXFloat } +type DerivativeEventPxField struct{ quickfix.FIXDecimal } //Tag returns tag.DerivativeEventPx (1290) func (f DerivativeEventPxField) Tag() quickfix.Tag { return tag.DerivativeEventPx } -//NewDerivativeEventPx returns a new DerivativeEventPxField initialized with val -func NewDerivativeEventPx(val float64) DerivativeEventPxField { - return DerivativeEventPxField{quickfix.FIXFloat(val)} +//NewDerivativeEventPx returns a new DerivativeEventPxField initialized with val and scale +func NewDerivativeEventPx(val decimal.Decimal, scale int32) DerivativeEventPxField { + return DerivativeEventPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DerivativeEventTextField is a STRING field @@ -3131,14 +3131,14 @@ func NewDerivativeExerciseStyle(val string) DerivativeExerciseStyleField { } //DerivativeFloorPriceField is a PRICE field -type DerivativeFloorPriceField struct{ quickfix.FIXFloat } +type DerivativeFloorPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.DerivativeFloorPrice (1322) func (f DerivativeFloorPriceField) Tag() quickfix.Tag { return tag.DerivativeFloorPrice } -//NewDerivativeFloorPrice returns a new DerivativeFloorPriceField initialized with val -func NewDerivativeFloorPrice(val float64) DerivativeFloorPriceField { - return DerivativeFloorPriceField{quickfix.FIXFloat(val)} +//NewDerivativeFloorPrice returns a new DerivativeFloorPriceField initialized with val and scale +func NewDerivativeFloorPrice(val decimal.Decimal, scale int32) DerivativeFloorPriceField { + return DerivativeFloorPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DerivativeFlowScheduleTypeField is a INT field @@ -3352,27 +3352,27 @@ func NewDerivativeMaturityTime(val string) DerivativeMaturityTimeField { } //DerivativeMinPriceIncrementField is a FLOAT field -type DerivativeMinPriceIncrementField struct{ quickfix.FIXFloat } +type DerivativeMinPriceIncrementField struct{ quickfix.FIXDecimal } //Tag returns tag.DerivativeMinPriceIncrement (1267) func (f DerivativeMinPriceIncrementField) Tag() quickfix.Tag { return tag.DerivativeMinPriceIncrement } -//NewDerivativeMinPriceIncrement returns a new DerivativeMinPriceIncrementField initialized with val -func NewDerivativeMinPriceIncrement(val float64) DerivativeMinPriceIncrementField { - return DerivativeMinPriceIncrementField{quickfix.FIXFloat(val)} +//NewDerivativeMinPriceIncrement returns a new DerivativeMinPriceIncrementField initialized with val and scale +func NewDerivativeMinPriceIncrement(val decimal.Decimal, scale int32) DerivativeMinPriceIncrementField { + return DerivativeMinPriceIncrementField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DerivativeMinPriceIncrementAmountField is a AMT field -type DerivativeMinPriceIncrementAmountField struct{ quickfix.FIXFloat } +type DerivativeMinPriceIncrementAmountField struct{ quickfix.FIXDecimal } //Tag returns tag.DerivativeMinPriceIncrementAmount (1268) func (f DerivativeMinPriceIncrementAmountField) Tag() quickfix.Tag { return tag.DerivativeMinPriceIncrementAmount } -//NewDerivativeMinPriceIncrementAmount returns a new DerivativeMinPriceIncrementAmountField initialized with val -func NewDerivativeMinPriceIncrementAmount(val float64) DerivativeMinPriceIncrementAmountField { - return DerivativeMinPriceIncrementAmountField{quickfix.FIXFloat(val)} +//NewDerivativeMinPriceIncrementAmount returns a new DerivativeMinPriceIncrementAmountField initialized with val and scale +func NewDerivativeMinPriceIncrementAmount(val decimal.Decimal, scale int32) DerivativeMinPriceIncrementAmountField { + return DerivativeMinPriceIncrementAmountField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DerivativeNTPositionLimitField is a INT field @@ -3398,14 +3398,14 @@ func NewDerivativeOptAttribute(val string) DerivativeOptAttributeField { } //DerivativeOptPayAmountField is a AMT field -type DerivativeOptPayAmountField struct{ quickfix.FIXFloat } +type DerivativeOptPayAmountField struct{ quickfix.FIXDecimal } //Tag returns tag.DerivativeOptPayAmount (1225) func (f DerivativeOptPayAmountField) Tag() quickfix.Tag { return tag.DerivativeOptPayAmount } -//NewDerivativeOptPayAmount returns a new DerivativeOptPayAmountField initialized with val -func NewDerivativeOptPayAmount(val float64) DerivativeOptPayAmountField { - return DerivativeOptPayAmountField{quickfix.FIXFloat(val)} +//NewDerivativeOptPayAmount returns a new DerivativeOptPayAmountField initialized with val and scale +func NewDerivativeOptPayAmount(val decimal.Decimal, scale int32) DerivativeOptPayAmountField { + return DerivativeOptPayAmountField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DerivativePositionLimitField is a INT field @@ -3442,16 +3442,16 @@ func NewDerivativePriceUnitOfMeasure(val string) DerivativePriceUnitOfMeasureFie } //DerivativePriceUnitOfMeasureQtyField is a QTY field -type DerivativePriceUnitOfMeasureQtyField struct{ quickfix.FIXFloat } +type DerivativePriceUnitOfMeasureQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.DerivativePriceUnitOfMeasureQty (1316) func (f DerivativePriceUnitOfMeasureQtyField) Tag() quickfix.Tag { return tag.DerivativePriceUnitOfMeasureQty } -//NewDerivativePriceUnitOfMeasureQty returns a new DerivativePriceUnitOfMeasureQtyField initialized with val -func NewDerivativePriceUnitOfMeasureQty(val float64) DerivativePriceUnitOfMeasureQtyField { - return DerivativePriceUnitOfMeasureQtyField{quickfix.FIXFloat(val)} +//NewDerivativePriceUnitOfMeasureQty returns a new DerivativePriceUnitOfMeasureQtyField initialized with val and scale +func NewDerivativePriceUnitOfMeasureQty(val decimal.Decimal, scale int32) DerivativePriceUnitOfMeasureQtyField { + return DerivativePriceUnitOfMeasureQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DerivativeProductField is a INT field @@ -3692,36 +3692,36 @@ func NewDerivativeStrikeCurrency(val string) DerivativeStrikeCurrencyField { } //DerivativeStrikeMultiplierField is a FLOAT field -type DerivativeStrikeMultiplierField struct{ quickfix.FIXFloat } +type DerivativeStrikeMultiplierField struct{ quickfix.FIXDecimal } //Tag returns tag.DerivativeStrikeMultiplier (1263) func (f DerivativeStrikeMultiplierField) Tag() quickfix.Tag { return tag.DerivativeStrikeMultiplier } -//NewDerivativeStrikeMultiplier returns a new DerivativeStrikeMultiplierField initialized with val -func NewDerivativeStrikeMultiplier(val float64) DerivativeStrikeMultiplierField { - return DerivativeStrikeMultiplierField{quickfix.FIXFloat(val)} +//NewDerivativeStrikeMultiplier returns a new DerivativeStrikeMultiplierField initialized with val and scale +func NewDerivativeStrikeMultiplier(val decimal.Decimal, scale int32) DerivativeStrikeMultiplierField { + return DerivativeStrikeMultiplierField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DerivativeStrikePriceField is a PRICE field -type DerivativeStrikePriceField struct{ quickfix.FIXFloat } +type DerivativeStrikePriceField struct{ quickfix.FIXDecimal } //Tag returns tag.DerivativeStrikePrice (1261) func (f DerivativeStrikePriceField) Tag() quickfix.Tag { return tag.DerivativeStrikePrice } -//NewDerivativeStrikePrice returns a new DerivativeStrikePriceField initialized with val -func NewDerivativeStrikePrice(val float64) DerivativeStrikePriceField { - return DerivativeStrikePriceField{quickfix.FIXFloat(val)} +//NewDerivativeStrikePrice returns a new DerivativeStrikePriceField initialized with val and scale +func NewDerivativeStrikePrice(val decimal.Decimal, scale int32) DerivativeStrikePriceField { + return DerivativeStrikePriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DerivativeStrikeValueField is a FLOAT field -type DerivativeStrikeValueField struct{ quickfix.FIXFloat } +type DerivativeStrikeValueField struct{ quickfix.FIXDecimal } //Tag returns tag.DerivativeStrikeValue (1264) func (f DerivativeStrikeValueField) Tag() quickfix.Tag { return tag.DerivativeStrikeValue } -//NewDerivativeStrikeValue returns a new DerivativeStrikeValueField initialized with val -func NewDerivativeStrikeValue(val float64) DerivativeStrikeValueField { - return DerivativeStrikeValueField{quickfix.FIXFloat(val)} +//NewDerivativeStrikeValue returns a new DerivativeStrikeValueField initialized with val and scale +func NewDerivativeStrikeValue(val decimal.Decimal, scale int32) DerivativeStrikeValueField { + return DerivativeStrikeValueField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DerivativeSymbolField is a STRING field @@ -3769,14 +3769,14 @@ func NewDerivativeUnitOfMeasure(val string) DerivativeUnitOfMeasureField { } //DerivativeUnitOfMeasureQtyField is a QTY field -type DerivativeUnitOfMeasureQtyField struct{ quickfix.FIXFloat } +type DerivativeUnitOfMeasureQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.DerivativeUnitOfMeasureQty (1270) func (f DerivativeUnitOfMeasureQtyField) Tag() quickfix.Tag { return tag.DerivativeUnitOfMeasureQty } -//NewDerivativeUnitOfMeasureQty returns a new DerivativeUnitOfMeasureQtyField initialized with val -func NewDerivativeUnitOfMeasureQty(val float64) DerivativeUnitOfMeasureQtyField { - return DerivativeUnitOfMeasureQtyField{quickfix.FIXFloat(val)} +//NewDerivativeUnitOfMeasureQty returns a new DerivativeUnitOfMeasureQtyField initialized with val and scale +func NewDerivativeUnitOfMeasureQty(val decimal.Decimal, scale int32) DerivativeUnitOfMeasureQtyField { + return DerivativeUnitOfMeasureQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DerivativeValuationMethodField is a STRING field @@ -3846,14 +3846,14 @@ func NewDeskTypeSource(val int) DeskTypeSourceField { } //DetachmentPointField is a PERCENTAGE field -type DetachmentPointField struct{ quickfix.FIXFloat } +type DetachmentPointField struct{ quickfix.FIXDecimal } //Tag returns tag.DetachmentPoint (1458) func (f DetachmentPointField) Tag() quickfix.Tag { return tag.DetachmentPoint } -//NewDetachmentPoint returns a new DetachmentPointField initialized with val -func NewDetachmentPoint(val float64) DetachmentPointField { - return DetachmentPointField{quickfix.FIXFloat(val)} +//NewDetachmentPoint returns a new DetachmentPointField initialized with val and scale +func NewDetachmentPoint(val decimal.Decimal, scale int32) DetachmentPointField { + return DetachmentPointField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DiscretionInstField is a CHAR field @@ -3890,14 +3890,14 @@ func NewDiscretionMoveType(val int) DiscretionMoveTypeField { } //DiscretionOffsetField is a PRICEOFFSET field -type DiscretionOffsetField struct{ quickfix.FIXFloat } +type DiscretionOffsetField struct{ quickfix.FIXDecimal } //Tag returns tag.DiscretionOffset (389) func (f DiscretionOffsetField) Tag() quickfix.Tag { return tag.DiscretionOffset } -//NewDiscretionOffset returns a new DiscretionOffsetField initialized with val -func NewDiscretionOffset(val float64) DiscretionOffsetField { - return DiscretionOffsetField{quickfix.FIXFloat(val)} +//NewDiscretionOffset returns a new DiscretionOffsetField initialized with val and scale +func NewDiscretionOffset(val decimal.Decimal, scale int32) DiscretionOffsetField { + return DiscretionOffsetField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DiscretionOffsetTypeField is a INT field @@ -3912,25 +3912,25 @@ func NewDiscretionOffsetType(val int) DiscretionOffsetTypeField { } //DiscretionOffsetValueField is a FLOAT field -type DiscretionOffsetValueField struct{ quickfix.FIXFloat } +type DiscretionOffsetValueField struct{ quickfix.FIXDecimal } //Tag returns tag.DiscretionOffsetValue (389) func (f DiscretionOffsetValueField) Tag() quickfix.Tag { return tag.DiscretionOffsetValue } -//NewDiscretionOffsetValue returns a new DiscretionOffsetValueField initialized with val -func NewDiscretionOffsetValue(val float64) DiscretionOffsetValueField { - return DiscretionOffsetValueField{quickfix.FIXFloat(val)} +//NewDiscretionOffsetValue returns a new DiscretionOffsetValueField initialized with val and scale +func NewDiscretionOffsetValue(val decimal.Decimal, scale int32) DiscretionOffsetValueField { + return DiscretionOffsetValueField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DiscretionPriceField is a PRICE field -type DiscretionPriceField struct{ quickfix.FIXFloat } +type DiscretionPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.DiscretionPrice (845) func (f DiscretionPriceField) Tag() quickfix.Tag { return tag.DiscretionPrice } -//NewDiscretionPrice returns a new DiscretionPriceField initialized with val -func NewDiscretionPrice(val float64) DiscretionPriceField { - return DiscretionPriceField{quickfix.FIXFloat(val)} +//NewDiscretionPrice returns a new DiscretionPriceField initialized with val and scale +func NewDiscretionPrice(val decimal.Decimal, scale int32) DiscretionPriceField { + return DiscretionPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DiscretionRoundDirectionField is a INT field @@ -3956,25 +3956,25 @@ func NewDiscretionScope(val int) DiscretionScopeField { } //DisplayHighQtyField is a QTY field -type DisplayHighQtyField struct{ quickfix.FIXFloat } +type DisplayHighQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.DisplayHighQty (1086) func (f DisplayHighQtyField) Tag() quickfix.Tag { return tag.DisplayHighQty } -//NewDisplayHighQty returns a new DisplayHighQtyField initialized with val -func NewDisplayHighQty(val float64) DisplayHighQtyField { - return DisplayHighQtyField{quickfix.FIXFloat(val)} +//NewDisplayHighQty returns a new DisplayHighQtyField initialized with val and scale +func NewDisplayHighQty(val decimal.Decimal, scale int32) DisplayHighQtyField { + return DisplayHighQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DisplayLowQtyField is a QTY field -type DisplayLowQtyField struct{ quickfix.FIXFloat } +type DisplayLowQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.DisplayLowQty (1085) func (f DisplayLowQtyField) Tag() quickfix.Tag { return tag.DisplayLowQty } -//NewDisplayLowQty returns a new DisplayLowQtyField initialized with val -func NewDisplayLowQty(val float64) DisplayLowQtyField { - return DisplayLowQtyField{quickfix.FIXFloat(val)} +//NewDisplayLowQty returns a new DisplayLowQtyField initialized with val and scale +func NewDisplayLowQty(val decimal.Decimal, scale int32) DisplayLowQtyField { + return DisplayLowQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DisplayMethodField is a CHAR field @@ -3989,25 +3989,25 @@ func NewDisplayMethod(val string) DisplayMethodField { } //DisplayMinIncrField is a QTY field -type DisplayMinIncrField struct{ quickfix.FIXFloat } +type DisplayMinIncrField struct{ quickfix.FIXDecimal } //Tag returns tag.DisplayMinIncr (1087) func (f DisplayMinIncrField) Tag() quickfix.Tag { return tag.DisplayMinIncr } -//NewDisplayMinIncr returns a new DisplayMinIncrField initialized with val -func NewDisplayMinIncr(val float64) DisplayMinIncrField { - return DisplayMinIncrField{quickfix.FIXFloat(val)} +//NewDisplayMinIncr returns a new DisplayMinIncrField initialized with val and scale +func NewDisplayMinIncr(val decimal.Decimal, scale int32) DisplayMinIncrField { + return DisplayMinIncrField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DisplayQtyField is a QTY field -type DisplayQtyField struct{ quickfix.FIXFloat } +type DisplayQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.DisplayQty (1138) func (f DisplayQtyField) Tag() quickfix.Tag { return tag.DisplayQty } -//NewDisplayQty returns a new DisplayQtyField initialized with val -func NewDisplayQty(val float64) DisplayQtyField { - return DisplayQtyField{quickfix.FIXFloat(val)} +//NewDisplayQty returns a new DisplayQtyField initialized with val and scale +func NewDisplayQty(val decimal.Decimal, scale int32) DisplayQtyField { + return DisplayQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DisplayWhenField is a CHAR field @@ -4033,25 +4033,25 @@ func NewDistribPaymentMethod(val int) DistribPaymentMethodField { } //DistribPercentageField is a PERCENTAGE field -type DistribPercentageField struct{ quickfix.FIXFloat } +type DistribPercentageField struct{ quickfix.FIXDecimal } //Tag returns tag.DistribPercentage (512) func (f DistribPercentageField) Tag() quickfix.Tag { return tag.DistribPercentage } -//NewDistribPercentage returns a new DistribPercentageField initialized with val -func NewDistribPercentage(val float64) DistribPercentageField { - return DistribPercentageField{quickfix.FIXFloat(val)} +//NewDistribPercentage returns a new DistribPercentageField initialized with val and scale +func NewDistribPercentage(val decimal.Decimal, scale int32) DistribPercentageField { + return DistribPercentageField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DividendYieldField is a PERCENTAGE field -type DividendYieldField struct{ quickfix.FIXFloat } +type DividendYieldField struct{ quickfix.FIXDecimal } //Tag returns tag.DividendYield (1380) func (f DividendYieldField) Tag() quickfix.Tag { return tag.DividendYield } -//NewDividendYield returns a new DividendYieldField initialized with val -func NewDividendYield(val float64) DividendYieldField { - return DividendYieldField{quickfix.FIXFloat(val)} +//NewDividendYield returns a new DividendYieldField initialized with val and scale +func NewDividendYield(val decimal.Decimal, scale int32) DividendYieldField { + return DividendYieldField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //DlvyInstField is a STRING field @@ -4088,14 +4088,14 @@ func NewDueToRelated(val bool) DueToRelatedField { } //EFPTrackingErrorField is a PERCENTAGE field -type EFPTrackingErrorField struct{ quickfix.FIXFloat } +type EFPTrackingErrorField struct{ quickfix.FIXDecimal } //Tag returns tag.EFPTrackingError (405) func (f EFPTrackingErrorField) Tag() quickfix.Tag { return tag.EFPTrackingError } -//NewEFPTrackingError returns a new EFPTrackingErrorField initialized with val -func NewEFPTrackingError(val float64) EFPTrackingErrorField { - return EFPTrackingErrorField{quickfix.FIXFloat(val)} +//NewEFPTrackingError returns a new EFPTrackingErrorField initialized with val and scale +func NewEFPTrackingError(val decimal.Decimal, scale int32) EFPTrackingErrorField { + return EFPTrackingErrorField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //EffectiveTimeField is a UTCTIMESTAMP field @@ -4537,25 +4537,25 @@ func NewEncryptedPasswordMethod(val int) EncryptedPasswordMethodField { } //EndAccruedInterestAmtField is a AMT field -type EndAccruedInterestAmtField struct{ quickfix.FIXFloat } +type EndAccruedInterestAmtField struct{ quickfix.FIXDecimal } //Tag returns tag.EndAccruedInterestAmt (920) func (f EndAccruedInterestAmtField) Tag() quickfix.Tag { return tag.EndAccruedInterestAmt } -//NewEndAccruedInterestAmt returns a new EndAccruedInterestAmtField initialized with val -func NewEndAccruedInterestAmt(val float64) EndAccruedInterestAmtField { - return EndAccruedInterestAmtField{quickfix.FIXFloat(val)} +//NewEndAccruedInterestAmt returns a new EndAccruedInterestAmtField initialized with val and scale +func NewEndAccruedInterestAmt(val decimal.Decimal, scale int32) EndAccruedInterestAmtField { + return EndAccruedInterestAmtField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //EndCashField is a AMT field -type EndCashField struct{ quickfix.FIXFloat } +type EndCashField struct{ quickfix.FIXDecimal } //Tag returns tag.EndCash (922) func (f EndCashField) Tag() quickfix.Tag { return tag.EndCash } -//NewEndCash returns a new EndCashField initialized with val -func NewEndCash(val float64) EndCashField { - return EndCashField{quickfix.FIXFloat(val)} +//NewEndCash returns a new EndCashField initialized with val and scale +func NewEndCash(val decimal.Decimal, scale int32) EndCashField { + return EndCashField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //EndDateField is a LOCALMKTDATE field @@ -4592,25 +4592,25 @@ func NewEndSeqNo(val int) EndSeqNoField { } //EndStrikePxRangeField is a PRICE field -type EndStrikePxRangeField struct{ quickfix.FIXFloat } +type EndStrikePxRangeField struct{ quickfix.FIXDecimal } //Tag returns tag.EndStrikePxRange (1203) func (f EndStrikePxRangeField) Tag() quickfix.Tag { return tag.EndStrikePxRange } -//NewEndStrikePxRange returns a new EndStrikePxRangeField initialized with val -func NewEndStrikePxRange(val float64) EndStrikePxRangeField { - return EndStrikePxRangeField{quickfix.FIXFloat(val)} +//NewEndStrikePxRange returns a new EndStrikePxRangeField initialized with val and scale +func NewEndStrikePxRange(val decimal.Decimal, scale int32) EndStrikePxRangeField { + return EndStrikePxRangeField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //EndTickPriceRangeField is a PRICE field -type EndTickPriceRangeField struct{ quickfix.FIXFloat } +type EndTickPriceRangeField struct{ quickfix.FIXDecimal } //Tag returns tag.EndTickPriceRange (1207) func (f EndTickPriceRangeField) Tag() quickfix.Tag { return tag.EndTickPriceRange } -//NewEndTickPriceRange returns a new EndTickPriceRangeField initialized with val -func NewEndTickPriceRange(val float64) EndTickPriceRangeField { - return EndTickPriceRangeField{quickfix.FIXFloat(val)} +//NewEndTickPriceRange returns a new EndTickPriceRangeField initialized with val and scale +func NewEndTickPriceRange(val decimal.Decimal, scale int32) EndTickPriceRangeField { + return EndTickPriceRangeField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //EventDateField is a LOCALMKTDATE field @@ -4625,14 +4625,14 @@ func NewEventDate(val string) EventDateField { } //EventPxField is a PRICE field -type EventPxField struct{ quickfix.FIXFloat } +type EventPxField struct{ quickfix.FIXDecimal } //Tag returns tag.EventPx (867) func (f EventPxField) Tag() quickfix.Tag { return tag.EventPx } -//NewEventPx returns a new EventPxField initialized with val -func NewEventPx(val float64) EventPxField { - return EventPxField{quickfix.FIXFloat(val)} +//NewEventPx returns a new EventPxField initialized with val and scale +func NewEventPx(val decimal.Decimal, scale int32) EventPxField { + return EventPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //EventTextField is a STRING field @@ -4795,14 +4795,14 @@ func NewExecInstValue(val string) ExecInstValueField { } //ExecPriceAdjustmentField is a FLOAT field -type ExecPriceAdjustmentField struct{ quickfix.FIXFloat } +type ExecPriceAdjustmentField struct{ quickfix.FIXDecimal } //Tag returns tag.ExecPriceAdjustment (485) func (f ExecPriceAdjustmentField) Tag() quickfix.Tag { return tag.ExecPriceAdjustment } -//NewExecPriceAdjustment returns a new ExecPriceAdjustmentField initialized with val -func NewExecPriceAdjustment(val float64) ExecPriceAdjustmentField { - return ExecPriceAdjustmentField{quickfix.FIXFloat(val)} +//NewExecPriceAdjustment returns a new ExecPriceAdjustmentField initialized with val and scale +func NewExecPriceAdjustment(val decimal.Decimal, scale int32) ExecPriceAdjustmentField { + return ExecPriceAdjustmentField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //ExecPriceTypeField is a CHAR field @@ -4899,14 +4899,14 @@ func NewExerciseStyle(val int) ExerciseStyleField { } //ExpQtyField is a QTY field -type ExpQtyField struct{ quickfix.FIXFloat } +type ExpQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.ExpQty (983) func (f ExpQtyField) Tag() quickfix.Tag { return tag.ExpQty } -//NewExpQty returns a new ExpQtyField initialized with val -func NewExpQty(val float64) ExpQtyField { - return ExpQtyField{quickfix.FIXFloat(val)} +//NewExpQty returns a new ExpQtyField initialized with val and scale +func NewExpQty(val decimal.Decimal, scale int32) ExpQtyField { + return ExpQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //ExpTypeField is a INT field @@ -4970,36 +4970,36 @@ func NewExpireTimeNoMillis(val time.Time) ExpireTimeField { } //FactorField is a FLOAT field -type FactorField struct{ quickfix.FIXFloat } +type FactorField struct{ quickfix.FIXDecimal } //Tag returns tag.Factor (228) func (f FactorField) Tag() quickfix.Tag { return tag.Factor } -//NewFactor returns a new FactorField initialized with val -func NewFactor(val float64) FactorField { - return FactorField{quickfix.FIXFloat(val)} +//NewFactor returns a new FactorField initialized with val and scale +func NewFactor(val decimal.Decimal, scale int32) FactorField { + return FactorField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //FairValueField is a AMT field -type FairValueField struct{ quickfix.FIXFloat } +type FairValueField struct{ quickfix.FIXDecimal } //Tag returns tag.FairValue (406) func (f FairValueField) Tag() quickfix.Tag { return tag.FairValue } -//NewFairValue returns a new FairValueField initialized with val -func NewFairValue(val float64) FairValueField { - return FairValueField{quickfix.FIXFloat(val)} +//NewFairValue returns a new FairValueField initialized with val and scale +func NewFairValue(val decimal.Decimal, scale int32) FairValueField { + return FairValueField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //FeeMultiplierField is a FLOAT field -type FeeMultiplierField struct{ quickfix.FIXFloat } +type FeeMultiplierField struct{ quickfix.FIXDecimal } //Tag returns tag.FeeMultiplier (1329) func (f FeeMultiplierField) Tag() quickfix.Tag { return tag.FeeMultiplier } -//NewFeeMultiplier returns a new FeeMultiplierField initialized with val -func NewFeeMultiplier(val float64) FeeMultiplierField { - return FeeMultiplierField{quickfix.FIXFloat(val)} +//NewFeeMultiplier returns a new FeeMultiplierField initialized with val and scale +func NewFeeMultiplier(val decimal.Decimal, scale int32) FeeMultiplierField { + return FeeMultiplierField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //FillExecIDField is a STRING field @@ -5025,25 +5025,25 @@ func NewFillLiquidityInd(val int) FillLiquidityIndField { } //FillPxField is a PRICE field -type FillPxField struct{ quickfix.FIXFloat } +type FillPxField struct{ quickfix.FIXDecimal } //Tag returns tag.FillPx (1364) func (f FillPxField) Tag() quickfix.Tag { return tag.FillPx } -//NewFillPx returns a new FillPxField initialized with val -func NewFillPx(val float64) FillPxField { - return FillPxField{quickfix.FIXFloat(val)} +//NewFillPx returns a new FillPxField initialized with val and scale +func NewFillPx(val decimal.Decimal, scale int32) FillPxField { + return FillPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //FillQtyField is a QTY field -type FillQtyField struct{ quickfix.FIXFloat } +type FillQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.FillQty (1365) func (f FillQtyField) Tag() quickfix.Tag { return tag.FillQty } -//NewFillQty returns a new FillQtyField initialized with val -func NewFillQty(val float64) FillQtyField { - return FillQtyField{quickfix.FIXFloat(val)} +//NewFillQty returns a new FillQtyField initialized with val and scale +func NewFillQty(val decimal.Decimal, scale int32) FillQtyField { + return FillQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //FinancialStatusField is a MULTIPLECHARVALUE field @@ -5069,14 +5069,14 @@ func NewFirmTradeID(val string) FirmTradeIDField { } //FirstPxField is a PRICE field -type FirstPxField struct{ quickfix.FIXFloat } +type FirstPxField struct{ quickfix.FIXDecimal } //Tag returns tag.FirstPx (1025) func (f FirstPxField) Tag() quickfix.Tag { return tag.FirstPx } -//NewFirstPx returns a new FirstPxField initialized with val -func NewFirstPx(val float64) FirstPxField { - return FirstPxField{quickfix.FIXFloat(val)} +//NewFirstPx returns a new FirstPxField initialized with val and scale +func NewFirstPx(val decimal.Decimal, scale int32) FirstPxField { + return FirstPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //FlexProductEligibilityIndicatorField is a BOOLEAN field @@ -5104,14 +5104,14 @@ func NewFlexibleIndicator(val bool) FlexibleIndicatorField { } //FloorPriceField is a PRICE field -type FloorPriceField struct{ quickfix.FIXFloat } +type FloorPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.FloorPrice (1200) func (f FloorPriceField) Tag() quickfix.Tag { return tag.FloorPrice } -//NewFloorPrice returns a new FloorPriceField initialized with val -func NewFloorPrice(val float64) FloorPriceField { - return FloorPriceField{quickfix.FIXFloat(val)} +//NewFloorPrice returns a new FloorPriceField initialized with val and scale +func NewFloorPrice(val decimal.Decimal, scale int32) FloorPriceField { + return FloorPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //FlowScheduleTypeField is a INT field @@ -5203,14 +5203,14 @@ func NewGapFillFlag(val bool) GapFillFlagField { } //GrossTradeAmtField is a AMT field -type GrossTradeAmtField struct{ quickfix.FIXFloat } +type GrossTradeAmtField struct{ quickfix.FIXDecimal } //Tag returns tag.GrossTradeAmt (381) func (f GrossTradeAmtField) Tag() quickfix.Tag { return tag.GrossTradeAmt } -//NewGrossTradeAmt returns a new GrossTradeAmtField initialized with val -func NewGrossTradeAmt(val float64) GrossTradeAmtField { - return GrossTradeAmtField{quickfix.FIXFloat(val)} +//NewGrossTradeAmt returns a new GrossTradeAmtField initialized with val and scale +func NewGrossTradeAmt(val decimal.Decimal, scale int32) GrossTradeAmtField { + return GrossTradeAmtField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //HaltReasonCharField is a CHAR field @@ -5269,25 +5269,25 @@ func NewHeartBtInt(val int) HeartBtIntField { } //HighLimitPriceField is a PRICE field -type HighLimitPriceField struct{ quickfix.FIXFloat } +type HighLimitPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.HighLimitPrice (1149) func (f HighLimitPriceField) Tag() quickfix.Tag { return tag.HighLimitPrice } -//NewHighLimitPrice returns a new HighLimitPriceField initialized with val -func NewHighLimitPrice(val float64) HighLimitPriceField { - return HighLimitPriceField{quickfix.FIXFloat(val)} +//NewHighLimitPrice returns a new HighLimitPriceField initialized with val and scale +func NewHighLimitPrice(val decimal.Decimal, scale int32) HighLimitPriceField { + return HighLimitPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //HighPxField is a PRICE field -type HighPxField struct{ quickfix.FIXFloat } +type HighPxField struct{ quickfix.FIXDecimal } //Tag returns tag.HighPx (332) func (f HighPxField) Tag() quickfix.Tag { return tag.HighPx } -//NewHighPx returns a new HighPxField initialized with val -func NewHighPx(val float64) HighPxField { - return HighPxField{quickfix.FIXFloat(val)} +//NewHighPx returns a new HighPxField initialized with val and scale +func NewHighPx(val decimal.Decimal, scale int32) HighPxField { + return HighPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //HopCompIDField is a STRING field @@ -5648,14 +5648,14 @@ func NewInterestAccrualDate(val string) InterestAccrualDateField { } //InterestAtMaturityField is a AMT field -type InterestAtMaturityField struct{ quickfix.FIXFloat } +type InterestAtMaturityField struct{ quickfix.FIXDecimal } //Tag returns tag.InterestAtMaturity (738) func (f InterestAtMaturityField) Tag() quickfix.Tag { return tag.InterestAtMaturity } -//NewInterestAtMaturity returns a new InterestAtMaturityField initialized with val -func NewInterestAtMaturity(val float64) InterestAtMaturityField { - return InterestAtMaturityField{quickfix.FIXFloat(val)} +//NewInterestAtMaturity returns a new InterestAtMaturityField initialized with val and scale +func NewInterestAtMaturity(val decimal.Decimal, scale int32) InterestAtMaturityField { + return InterestAtMaturityField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //InvestorCountryOfResidenceField is a COUNTRY field @@ -5714,25 +5714,25 @@ func NewLastCapacity(val string) LastCapacityField { } //LastForwardPointsField is a PRICEOFFSET field -type LastForwardPointsField struct{ quickfix.FIXFloat } +type LastForwardPointsField struct{ quickfix.FIXDecimal } //Tag returns tag.LastForwardPoints (195) func (f LastForwardPointsField) Tag() quickfix.Tag { return tag.LastForwardPoints } -//NewLastForwardPoints returns a new LastForwardPointsField initialized with val -func NewLastForwardPoints(val float64) LastForwardPointsField { - return LastForwardPointsField{quickfix.FIXFloat(val)} +//NewLastForwardPoints returns a new LastForwardPointsField initialized with val and scale +func NewLastForwardPoints(val decimal.Decimal, scale int32) LastForwardPointsField { + return LastForwardPointsField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LastForwardPoints2Field is a PRICEOFFSET field -type LastForwardPoints2Field struct{ quickfix.FIXFloat } +type LastForwardPoints2Field struct{ quickfix.FIXDecimal } //Tag returns tag.LastForwardPoints2 (641) func (f LastForwardPoints2Field) Tag() quickfix.Tag { return tag.LastForwardPoints2 } -//NewLastForwardPoints2 returns a new LastForwardPoints2Field initialized with val -func NewLastForwardPoints2(val float64) LastForwardPoints2Field { - return LastForwardPoints2Field{quickfix.FIXFloat(val)} +//NewLastForwardPoints2 returns a new LastForwardPoints2Field initialized with val and scale +func NewLastForwardPoints2(val decimal.Decimal, scale int32) LastForwardPoints2Field { + return LastForwardPoints2Field{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LastFragmentField is a BOOLEAN field @@ -5791,36 +5791,36 @@ func NewLastNetworkResponseID(val string) LastNetworkResponseIDField { } //LastParPxField is a PRICE field -type LastParPxField struct{ quickfix.FIXFloat } +type LastParPxField struct{ quickfix.FIXDecimal } //Tag returns tag.LastParPx (669) func (f LastParPxField) Tag() quickfix.Tag { return tag.LastParPx } -//NewLastParPx returns a new LastParPxField initialized with val -func NewLastParPx(val float64) LastParPxField { - return LastParPxField{quickfix.FIXFloat(val)} +//NewLastParPx returns a new LastParPxField initialized with val and scale +func NewLastParPx(val decimal.Decimal, scale int32) LastParPxField { + return LastParPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LastPxField is a PRICE field -type LastPxField struct{ quickfix.FIXFloat } +type LastPxField struct{ quickfix.FIXDecimal } //Tag returns tag.LastPx (31) func (f LastPxField) Tag() quickfix.Tag { return tag.LastPx } -//NewLastPx returns a new LastPxField initialized with val -func NewLastPx(val float64) LastPxField { - return LastPxField{quickfix.FIXFloat(val)} +//NewLastPx returns a new LastPxField initialized with val and scale +func NewLastPx(val decimal.Decimal, scale int32) LastPxField { + return LastPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LastQtyField is a QTY field -type LastQtyField struct{ quickfix.FIXFloat } +type LastQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.LastQty (32) func (f LastQtyField) Tag() quickfix.Tag { return tag.LastQty } -//NewLastQty returns a new LastQtyField initialized with val -func NewLastQty(val float64) LastQtyField { - return LastQtyField{quickfix.FIXFloat(val)} +//NewLastQty returns a new LastQtyField initialized with val and scale +func NewLastQty(val decimal.Decimal, scale int32) LastQtyField { + return LastQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LastRptRequestedField is a BOOLEAN field @@ -5835,36 +5835,36 @@ func NewLastRptRequested(val bool) LastRptRequestedField { } //LastSharesField is a QTY field -type LastSharesField struct{ quickfix.FIXFloat } +type LastSharesField struct{ quickfix.FIXDecimal } //Tag returns tag.LastShares (32) func (f LastSharesField) Tag() quickfix.Tag { return tag.LastShares } -//NewLastShares returns a new LastSharesField initialized with val -func NewLastShares(val float64) LastSharesField { - return LastSharesField{quickfix.FIXFloat(val)} +//NewLastShares returns a new LastSharesField initialized with val and scale +func NewLastShares(val decimal.Decimal, scale int32) LastSharesField { + return LastSharesField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LastSpotRateField is a PRICE field -type LastSpotRateField struct{ quickfix.FIXFloat } +type LastSpotRateField struct{ quickfix.FIXDecimal } //Tag returns tag.LastSpotRate (194) func (f LastSpotRateField) Tag() quickfix.Tag { return tag.LastSpotRate } -//NewLastSpotRate returns a new LastSpotRateField initialized with val -func NewLastSpotRate(val float64) LastSpotRateField { - return LastSpotRateField{quickfix.FIXFloat(val)} +//NewLastSpotRate returns a new LastSpotRateField initialized with val and scale +func NewLastSpotRate(val decimal.Decimal, scale int32) LastSpotRateField { + return LastSpotRateField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LastSwapPointsField is a PRICEOFFSET field -type LastSwapPointsField struct{ quickfix.FIXFloat } +type LastSwapPointsField struct{ quickfix.FIXDecimal } //Tag returns tag.LastSwapPoints (1071) func (f LastSwapPointsField) Tag() quickfix.Tag { return tag.LastSwapPoints } -//NewLastSwapPoints returns a new LastSwapPointsField initialized with val -func NewLastSwapPoints(val float64) LastSwapPointsField { - return LastSwapPointsField{quickfix.FIXFloat(val)} +//NewLastSwapPoints returns a new LastSwapPointsField initialized with val and scale +func NewLastSwapPoints(val decimal.Decimal, scale int32) LastSwapPointsField { + return LastSwapPointsField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LastUpdateTimeField is a UTCTIMESTAMP field @@ -5895,14 +5895,14 @@ func NewLateIndicator(val bool) LateIndicatorField { } //LeavesQtyField is a QTY field -type LeavesQtyField struct{ quickfix.FIXFloat } +type LeavesQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.LeavesQty (151) func (f LeavesQtyField) Tag() quickfix.Tag { return tag.LeavesQty } -//NewLeavesQty returns a new LeavesQtyField initialized with val -func NewLeavesQty(val float64) LeavesQtyField { - return LeavesQtyField{quickfix.FIXFloat(val)} +//NewLeavesQty returns a new LeavesQtyField initialized with val and scale +func NewLeavesQty(val decimal.Decimal, scale int32) LeavesQtyField { + return LeavesQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegAllocAccountField is a STRING field @@ -5939,14 +5939,14 @@ func NewLegAllocID(val string) LegAllocIDField { } //LegAllocQtyField is a QTY field -type LegAllocQtyField struct{ quickfix.FIXFloat } +type LegAllocQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.LegAllocQty (673) func (f LegAllocQtyField) Tag() quickfix.Tag { return tag.LegAllocQty } -//NewLegAllocQty returns a new LegAllocQtyField initialized with val -func NewLegAllocQty(val float64) LegAllocQtyField { - return LegAllocQtyField{quickfix.FIXFloat(val)} +//NewLegAllocQty returns a new LegAllocQtyField initialized with val and scale +func NewLegAllocQty(val decimal.Decimal, scale int32) LegAllocQtyField { + return LegAllocQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegAllocSettlCurrencyField is a CURRENCY field @@ -5994,14 +5994,14 @@ func NewLegBenchmarkCurvePoint(val string) LegBenchmarkCurvePointField { } //LegBenchmarkPriceField is a PRICE field -type LegBenchmarkPriceField struct{ quickfix.FIXFloat } +type LegBenchmarkPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.LegBenchmarkPrice (679) func (f LegBenchmarkPriceField) Tag() quickfix.Tag { return tag.LegBenchmarkPrice } -//NewLegBenchmarkPrice returns a new LegBenchmarkPriceField initialized with val -func NewLegBenchmarkPrice(val float64) LegBenchmarkPriceField { - return LegBenchmarkPriceField{quickfix.FIXFloat(val)} +//NewLegBenchmarkPrice returns a new LegBenchmarkPriceField initialized with val and scale +func NewLegBenchmarkPrice(val decimal.Decimal, scale int32) LegBenchmarkPriceField { + return LegBenchmarkPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegBenchmarkPriceTypeField is a INT field @@ -6016,25 +6016,25 @@ func NewLegBenchmarkPriceType(val int) LegBenchmarkPriceTypeField { } //LegBidForwardPointsField is a PRICEOFFSET field -type LegBidForwardPointsField struct{ quickfix.FIXFloat } +type LegBidForwardPointsField struct{ quickfix.FIXDecimal } //Tag returns tag.LegBidForwardPoints (1067) func (f LegBidForwardPointsField) Tag() quickfix.Tag { return tag.LegBidForwardPoints } -//NewLegBidForwardPoints returns a new LegBidForwardPointsField initialized with val -func NewLegBidForwardPoints(val float64) LegBidForwardPointsField { - return LegBidForwardPointsField{quickfix.FIXFloat(val)} +//NewLegBidForwardPoints returns a new LegBidForwardPointsField initialized with val and scale +func NewLegBidForwardPoints(val decimal.Decimal, scale int32) LegBidForwardPointsField { + return LegBidForwardPointsField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegBidPxField is a PRICE field -type LegBidPxField struct{ quickfix.FIXFloat } +type LegBidPxField struct{ quickfix.FIXDecimal } //Tag returns tag.LegBidPx (681) func (f LegBidPxField) Tag() quickfix.Tag { return tag.LegBidPx } -//NewLegBidPx returns a new LegBidPxField initialized with val -func NewLegBidPx(val float64) LegBidPxField { - return LegBidPxField{quickfix.FIXFloat(val)} +//NewLegBidPx returns a new LegBidPxField initialized with val and scale +func NewLegBidPx(val decimal.Decimal, scale int32) LegBidPxField { + return LegBidPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegCFICodeField is a STRING field @@ -6049,25 +6049,25 @@ func NewLegCFICode(val string) LegCFICodeField { } //LegCalculatedCcyLastQtyField is a QTY field -type LegCalculatedCcyLastQtyField struct{ quickfix.FIXFloat } +type LegCalculatedCcyLastQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.LegCalculatedCcyLastQty (1074) func (f LegCalculatedCcyLastQtyField) Tag() quickfix.Tag { return tag.LegCalculatedCcyLastQty } -//NewLegCalculatedCcyLastQty returns a new LegCalculatedCcyLastQtyField initialized with val -func NewLegCalculatedCcyLastQty(val float64) LegCalculatedCcyLastQtyField { - return LegCalculatedCcyLastQtyField{quickfix.FIXFloat(val)} +//NewLegCalculatedCcyLastQty returns a new LegCalculatedCcyLastQtyField initialized with val and scale +func NewLegCalculatedCcyLastQty(val decimal.Decimal, scale int32) LegCalculatedCcyLastQtyField { + return LegCalculatedCcyLastQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegContractMultiplierField is a FLOAT field -type LegContractMultiplierField struct{ quickfix.FIXFloat } +type LegContractMultiplierField struct{ quickfix.FIXDecimal } //Tag returns tag.LegContractMultiplier (614) func (f LegContractMultiplierField) Tag() quickfix.Tag { return tag.LegContractMultiplier } -//NewLegContractMultiplier returns a new LegContractMultiplierField initialized with val -func NewLegContractMultiplier(val float64) LegContractMultiplierField { - return LegContractMultiplierField{quickfix.FIXFloat(val)} +//NewLegContractMultiplier returns a new LegContractMultiplierField initialized with val and scale +func NewLegContractMultiplier(val decimal.Decimal, scale int32) LegContractMultiplierField { + return LegContractMultiplierField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegContractMultiplierUnitField is a INT field @@ -6115,14 +6115,14 @@ func NewLegCouponPaymentDate(val string) LegCouponPaymentDateField { } //LegCouponRateField is a PERCENTAGE field -type LegCouponRateField struct{ quickfix.FIXFloat } +type LegCouponRateField struct{ quickfix.FIXDecimal } //Tag returns tag.LegCouponRate (615) func (f LegCouponRateField) Tag() quickfix.Tag { return tag.LegCouponRate } -//NewLegCouponRate returns a new LegCouponRateField initialized with val -func NewLegCouponRate(val float64) LegCouponRateField { - return LegCouponRateField{quickfix.FIXFloat(val)} +//NewLegCouponRate returns a new LegCouponRateField initialized with val and scale +func NewLegCouponRate(val decimal.Decimal, scale int32) LegCouponRateField { + return LegCouponRateField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegCoveredOrUncoveredField is a INT field @@ -6159,14 +6159,14 @@ func NewLegCurrency(val string) LegCurrencyField { } //LegCurrencyRatioField is a FLOAT field -type LegCurrencyRatioField struct{ quickfix.FIXFloat } +type LegCurrencyRatioField struct{ quickfix.FIXDecimal } //Tag returns tag.LegCurrencyRatio (1383) func (f LegCurrencyRatioField) Tag() quickfix.Tag { return tag.LegCurrencyRatio } -//NewLegCurrencyRatio returns a new LegCurrencyRatioField initialized with val -func NewLegCurrencyRatio(val float64) LegCurrencyRatioField { - return LegCurrencyRatioField{quickfix.FIXFloat(val)} +//NewLegCurrencyRatio returns a new LegCurrencyRatioField initialized with val and scale +func NewLegCurrencyRatio(val decimal.Decimal, scale int32) LegCurrencyRatioField { + return LegCurrencyRatioField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegDatedDateField is a LOCALMKTDATE field @@ -6181,14 +6181,14 @@ func NewLegDatedDate(val string) LegDatedDateField { } //LegDividendYieldField is a PERCENTAGE field -type LegDividendYieldField struct{ quickfix.FIXFloat } +type LegDividendYieldField struct{ quickfix.FIXDecimal } //Tag returns tag.LegDividendYield (1381) func (f LegDividendYieldField) Tag() quickfix.Tag { return tag.LegDividendYield } -//NewLegDividendYield returns a new LegDividendYieldField initialized with val -func NewLegDividendYield(val float64) LegDividendYieldField { - return LegDividendYieldField{quickfix.FIXFloat(val)} +//NewLegDividendYield returns a new LegDividendYieldField initialized with val and scale +func NewLegDividendYield(val decimal.Decimal, scale int32) LegDividendYieldField { + return LegDividendYieldField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegExecInstField is a MULTIPLECHARVALUE field @@ -6214,14 +6214,14 @@ func NewLegExerciseStyle(val int) LegExerciseStyleField { } //LegFactorField is a FLOAT field -type LegFactorField struct{ quickfix.FIXFloat } +type LegFactorField struct{ quickfix.FIXDecimal } //Tag returns tag.LegFactor (253) func (f LegFactorField) Tag() quickfix.Tag { return tag.LegFactor } -//NewLegFactor returns a new LegFactorField initialized with val -func NewLegFactor(val float64) LegFactorField { - return LegFactorField{quickfix.FIXFloat(val)} +//NewLegFactor returns a new LegFactorField initialized with val and scale +func NewLegFactor(val decimal.Decimal, scale int32) LegFactorField { + return LegFactorField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegFlowScheduleTypeField is a INT field @@ -6247,14 +6247,14 @@ func NewLegFutSettDate(val string) LegFutSettDateField { } //LegGrossTradeAmtField is a AMT field -type LegGrossTradeAmtField struct{ quickfix.FIXFloat } +type LegGrossTradeAmtField struct{ quickfix.FIXDecimal } //Tag returns tag.LegGrossTradeAmt (1075) func (f LegGrossTradeAmtField) Tag() quickfix.Tag { return tag.LegGrossTradeAmt } -//NewLegGrossTradeAmt returns a new LegGrossTradeAmtField initialized with val -func NewLegGrossTradeAmt(val float64) LegGrossTradeAmtField { - return LegGrossTradeAmtField{quickfix.FIXFloat(val)} +//NewLegGrossTradeAmt returns a new LegGrossTradeAmtField initialized with val and scale +func NewLegGrossTradeAmt(val decimal.Decimal, scale int32) LegGrossTradeAmtField { + return LegGrossTradeAmtField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegIOIQtyField is a STRING field @@ -6324,36 +6324,36 @@ func NewLegIssuer(val string) LegIssuerField { } //LegLastForwardPointsField is a PRICEOFFSET field -type LegLastForwardPointsField struct{ quickfix.FIXFloat } +type LegLastForwardPointsField struct{ quickfix.FIXDecimal } //Tag returns tag.LegLastForwardPoints (1073) func (f LegLastForwardPointsField) Tag() quickfix.Tag { return tag.LegLastForwardPoints } -//NewLegLastForwardPoints returns a new LegLastForwardPointsField initialized with val -func NewLegLastForwardPoints(val float64) LegLastForwardPointsField { - return LegLastForwardPointsField{quickfix.FIXFloat(val)} +//NewLegLastForwardPoints returns a new LegLastForwardPointsField initialized with val and scale +func NewLegLastForwardPoints(val decimal.Decimal, scale int32) LegLastForwardPointsField { + return LegLastForwardPointsField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegLastPxField is a PRICE field -type LegLastPxField struct{ quickfix.FIXFloat } +type LegLastPxField struct{ quickfix.FIXDecimal } //Tag returns tag.LegLastPx (637) func (f LegLastPxField) Tag() quickfix.Tag { return tag.LegLastPx } -//NewLegLastPx returns a new LegLastPxField initialized with val -func NewLegLastPx(val float64) LegLastPxField { - return LegLastPxField{quickfix.FIXFloat(val)} +//NewLegLastPx returns a new LegLastPxField initialized with val and scale +func NewLegLastPx(val decimal.Decimal, scale int32) LegLastPxField { + return LegLastPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegLastQtyField is a QTY field -type LegLastQtyField struct{ quickfix.FIXFloat } +type LegLastQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.LegLastQty (1418) func (f LegLastQtyField) Tag() quickfix.Tag { return tag.LegLastQty } -//NewLegLastQty returns a new LegLastQtyField initialized with val -func NewLegLastQty(val float64) LegLastQtyField { - return LegLastQtyField{quickfix.FIXFloat(val)} +//NewLegLastQty returns a new LegLastQtyField initialized with val and scale +func NewLegLastQty(val decimal.Decimal, scale int32) LegLastQtyField { + return LegLastQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegLocaleOfIssueField is a STRING field @@ -6412,25 +6412,25 @@ func NewLegNumber(val int) LegNumberField { } //LegOfferForwardPointsField is a PRICEOFFSET field -type LegOfferForwardPointsField struct{ quickfix.FIXFloat } +type LegOfferForwardPointsField struct{ quickfix.FIXDecimal } //Tag returns tag.LegOfferForwardPoints (1068) func (f LegOfferForwardPointsField) Tag() quickfix.Tag { return tag.LegOfferForwardPoints } -//NewLegOfferForwardPoints returns a new LegOfferForwardPointsField initialized with val -func NewLegOfferForwardPoints(val float64) LegOfferForwardPointsField { - return LegOfferForwardPointsField{quickfix.FIXFloat(val)} +//NewLegOfferForwardPoints returns a new LegOfferForwardPointsField initialized with val and scale +func NewLegOfferForwardPoints(val decimal.Decimal, scale int32) LegOfferForwardPointsField { + return LegOfferForwardPointsField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegOfferPxField is a PRICE field -type LegOfferPxField struct{ quickfix.FIXFloat } +type LegOfferPxField struct{ quickfix.FIXDecimal } //Tag returns tag.LegOfferPx (684) func (f LegOfferPxField) Tag() quickfix.Tag { return tag.LegOfferPx } -//NewLegOfferPx returns a new LegOfferPxField initialized with val -func NewLegOfferPx(val float64) LegOfferPxField { - return LegOfferPxField{quickfix.FIXFloat(val)} +//NewLegOfferPx returns a new LegOfferPxField initialized with val and scale +func NewLegOfferPx(val decimal.Decimal, scale int32) LegOfferPxField { + return LegOfferPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegOptAttributeField is a CHAR field @@ -6445,25 +6445,25 @@ func NewLegOptAttribute(val string) LegOptAttributeField { } //LegOptionRatioField is a FLOAT field -type LegOptionRatioField struct{ quickfix.FIXFloat } +type LegOptionRatioField struct{ quickfix.FIXDecimal } //Tag returns tag.LegOptionRatio (1017) func (f LegOptionRatioField) Tag() quickfix.Tag { return tag.LegOptionRatio } -//NewLegOptionRatio returns a new LegOptionRatioField initialized with val -func NewLegOptionRatio(val float64) LegOptionRatioField { - return LegOptionRatioField{quickfix.FIXFloat(val)} +//NewLegOptionRatio returns a new LegOptionRatioField initialized with val and scale +func NewLegOptionRatio(val decimal.Decimal, scale int32) LegOptionRatioField { + return LegOptionRatioField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegOrderQtyField is a QTY field -type LegOrderQtyField struct{ quickfix.FIXFloat } +type LegOrderQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.LegOrderQty (685) func (f LegOrderQtyField) Tag() quickfix.Tag { return tag.LegOrderQty } -//NewLegOrderQty returns a new LegOrderQtyField initialized with val -func NewLegOrderQty(val float64) LegOrderQtyField { - return LegOrderQtyField{quickfix.FIXFloat(val)} +//NewLegOrderQty returns a new LegOrderQtyField initialized with val and scale +func NewLegOrderQty(val decimal.Decimal, scale int32) LegOrderQtyField { + return LegOrderQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegPoolField is a STRING field @@ -6489,14 +6489,14 @@ func NewLegPositionEffect(val string) LegPositionEffectField { } //LegPriceField is a PRICE field -type LegPriceField struct{ quickfix.FIXFloat } +type LegPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.LegPrice (566) func (f LegPriceField) Tag() quickfix.Tag { return tag.LegPrice } -//NewLegPrice returns a new LegPriceField initialized with val -func NewLegPrice(val float64) LegPriceField { - return LegPriceField{quickfix.FIXFloat(val)} +//NewLegPrice returns a new LegPriceField initialized with val and scale +func NewLegPrice(val decimal.Decimal, scale int32) LegPriceField { + return LegPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegPriceTypeField is a INT field @@ -6522,14 +6522,14 @@ func NewLegPriceUnitOfMeasure(val string) LegPriceUnitOfMeasureField { } //LegPriceUnitOfMeasureQtyField is a QTY field -type LegPriceUnitOfMeasureQtyField struct{ quickfix.FIXFloat } +type LegPriceUnitOfMeasureQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.LegPriceUnitOfMeasureQty (1422) func (f LegPriceUnitOfMeasureQtyField) Tag() quickfix.Tag { return tag.LegPriceUnitOfMeasureQty } -//NewLegPriceUnitOfMeasureQty returns a new LegPriceUnitOfMeasureQtyField initialized with val -func NewLegPriceUnitOfMeasureQty(val float64) LegPriceUnitOfMeasureQtyField { - return LegPriceUnitOfMeasureQtyField{quickfix.FIXFloat(val)} +//NewLegPriceUnitOfMeasureQty returns a new LegPriceUnitOfMeasureQtyField initialized with val and scale +func NewLegPriceUnitOfMeasureQty(val decimal.Decimal, scale int32) LegPriceUnitOfMeasureQtyField { + return LegPriceUnitOfMeasureQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegProductField is a INT field @@ -6555,25 +6555,25 @@ func NewLegPutOrCall(val int) LegPutOrCallField { } //LegQtyField is a QTY field -type LegQtyField struct{ quickfix.FIXFloat } +type LegQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.LegQty (687) func (f LegQtyField) Tag() quickfix.Tag { return tag.LegQty } -//NewLegQty returns a new LegQtyField initialized with val -func NewLegQty(val float64) LegQtyField { - return LegQtyField{quickfix.FIXFloat(val)} +//NewLegQty returns a new LegQtyField initialized with val and scale +func NewLegQty(val decimal.Decimal, scale int32) LegQtyField { + return LegQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegRatioQtyField is a FLOAT field -type LegRatioQtyField struct{ quickfix.FIXFloat } +type LegRatioQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.LegRatioQty (623) func (f LegRatioQtyField) Tag() quickfix.Tag { return tag.LegRatioQty } -//NewLegRatioQty returns a new LegRatioQtyField initialized with val -func NewLegRatioQty(val float64) LegRatioQtyField { - return LegRatioQtyField{quickfix.FIXFloat(val)} +//NewLegRatioQty returns a new LegRatioQtyField initialized with val and scale +func NewLegRatioQty(val decimal.Decimal, scale int32) LegRatioQtyField { + return LegRatioQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegRedemptionDateField is a LOCALMKTDATE field @@ -6623,14 +6623,14 @@ func NewLegReportID(val string) LegReportIDField { } //LegRepurchaseRateField is a PERCENTAGE field -type LegRepurchaseRateField struct{ quickfix.FIXFloat } +type LegRepurchaseRateField struct{ quickfix.FIXDecimal } //Tag returns tag.LegRepurchaseRate (252) func (f LegRepurchaseRateField) Tag() quickfix.Tag { return tag.LegRepurchaseRate } -//NewLegRepurchaseRate returns a new LegRepurchaseRateField initialized with val -func NewLegRepurchaseRate(val float64) LegRepurchaseRateField { - return LegRepurchaseRateField{quickfix.FIXFloat(val)} +//NewLegRepurchaseRate returns a new LegRepurchaseRateField initialized with val and scale +func NewLegRepurchaseRate(val decimal.Decimal, scale int32) LegRepurchaseRateField { + return LegRepurchaseRateField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegRepurchaseTermField is a INT field @@ -6832,14 +6832,14 @@ func NewLegStrikeCurrency(val string) LegStrikeCurrencyField { } //LegStrikePriceField is a PRICE field -type LegStrikePriceField struct{ quickfix.FIXFloat } +type LegStrikePriceField struct{ quickfix.FIXDecimal } //Tag returns tag.LegStrikePrice (612) func (f LegStrikePriceField) Tag() quickfix.Tag { return tag.LegStrikePrice } -//NewLegStrikePrice returns a new LegStrikePriceField initialized with val -func NewLegStrikePrice(val float64) LegStrikePriceField { - return LegStrikePriceField{quickfix.FIXFloat(val)} +//NewLegStrikePrice returns a new LegStrikePriceField initialized with val and scale +func NewLegStrikePrice(val decimal.Decimal, scale int32) LegStrikePriceField { + return LegStrikePriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegSwapTypeField is a INT field @@ -6898,25 +6898,25 @@ func NewLegUnitOfMeasure(val string) LegUnitOfMeasureField { } //LegUnitOfMeasureQtyField is a QTY field -type LegUnitOfMeasureQtyField struct{ quickfix.FIXFloat } +type LegUnitOfMeasureQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.LegUnitOfMeasureQty (1224) func (f LegUnitOfMeasureQtyField) Tag() quickfix.Tag { return tag.LegUnitOfMeasureQty } -//NewLegUnitOfMeasureQty returns a new LegUnitOfMeasureQtyField initialized with val -func NewLegUnitOfMeasureQty(val float64) LegUnitOfMeasureQtyField { - return LegUnitOfMeasureQtyField{quickfix.FIXFloat(val)} +//NewLegUnitOfMeasureQty returns a new LegUnitOfMeasureQtyField initialized with val and scale +func NewLegUnitOfMeasureQty(val decimal.Decimal, scale int32) LegUnitOfMeasureQtyField { + return LegUnitOfMeasureQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegVolatilityField is a FLOAT field -type LegVolatilityField struct{ quickfix.FIXFloat } +type LegVolatilityField struct{ quickfix.FIXDecimal } //Tag returns tag.LegVolatility (1379) func (f LegVolatilityField) Tag() quickfix.Tag { return tag.LegVolatility } -//NewLegVolatility returns a new LegVolatilityField initialized with val -func NewLegVolatility(val float64) LegVolatilityField { - return LegVolatilityField{quickfix.FIXFloat(val)} +//NewLegVolatility returns a new LegVolatilityField initialized with val and scale +func NewLegVolatility(val decimal.Decimal, scale int32) LegVolatilityField { + return LegVolatilityField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LegalConfirmField is a BOOLEAN field @@ -6964,36 +6964,36 @@ func NewLiquidityNumSecurities(val int) LiquidityNumSecuritiesField { } //LiquidityPctHighField is a PERCENTAGE field -type LiquidityPctHighField struct{ quickfix.FIXFloat } +type LiquidityPctHighField struct{ quickfix.FIXDecimal } //Tag returns tag.LiquidityPctHigh (403) func (f LiquidityPctHighField) Tag() quickfix.Tag { return tag.LiquidityPctHigh } -//NewLiquidityPctHigh returns a new LiquidityPctHighField initialized with val -func NewLiquidityPctHigh(val float64) LiquidityPctHighField { - return LiquidityPctHighField{quickfix.FIXFloat(val)} +//NewLiquidityPctHigh returns a new LiquidityPctHighField initialized with val and scale +func NewLiquidityPctHigh(val decimal.Decimal, scale int32) LiquidityPctHighField { + return LiquidityPctHighField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LiquidityPctLowField is a PERCENTAGE field -type LiquidityPctLowField struct{ quickfix.FIXFloat } +type LiquidityPctLowField struct{ quickfix.FIXDecimal } //Tag returns tag.LiquidityPctLow (402) func (f LiquidityPctLowField) Tag() quickfix.Tag { return tag.LiquidityPctLow } -//NewLiquidityPctLow returns a new LiquidityPctLowField initialized with val -func NewLiquidityPctLow(val float64) LiquidityPctLowField { - return LiquidityPctLowField{quickfix.FIXFloat(val)} +//NewLiquidityPctLow returns a new LiquidityPctLowField initialized with val and scale +func NewLiquidityPctLow(val decimal.Decimal, scale int32) LiquidityPctLowField { + return LiquidityPctLowField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LiquidityValueField is a AMT field -type LiquidityValueField struct{ quickfix.FIXFloat } +type LiquidityValueField struct{ quickfix.FIXDecimal } //Tag returns tag.LiquidityValue (404) func (f LiquidityValueField) Tag() quickfix.Tag { return tag.LiquidityValue } -//NewLiquidityValue returns a new LiquidityValueField initialized with val -func NewLiquidityValue(val float64) LiquidityValueField { - return LiquidityValueField{quickfix.FIXFloat(val)} +//NewLiquidityValue returns a new LiquidityValueField initialized with val and scale +func NewLiquidityValue(val decimal.Decimal, scale int32) LiquidityValueField { + return LiquidityValueField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //ListExecInstField is a STRING field @@ -7162,14 +7162,14 @@ func NewLocationID(val string) LocationIDField { } //LongQtyField is a QTY field -type LongQtyField struct{ quickfix.FIXFloat } +type LongQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.LongQty (704) func (f LongQtyField) Tag() quickfix.Tag { return tag.LongQty } -//NewLongQty returns a new LongQtyField initialized with val -func NewLongQty(val float64) LongQtyField { - return LongQtyField{quickfix.FIXFloat(val)} +//NewLongQty returns a new LongQtyField initialized with val and scale +func NewLongQty(val decimal.Decimal, scale int32) LongQtyField { + return LongQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LotTypeField is a CHAR field @@ -7184,25 +7184,25 @@ func NewLotType(val string) LotTypeField { } //LowLimitPriceField is a PRICE field -type LowLimitPriceField struct{ quickfix.FIXFloat } +type LowLimitPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.LowLimitPrice (1148) func (f LowLimitPriceField) Tag() quickfix.Tag { return tag.LowLimitPrice } -//NewLowLimitPrice returns a new LowLimitPriceField initialized with val -func NewLowLimitPrice(val float64) LowLimitPriceField { - return LowLimitPriceField{quickfix.FIXFloat(val)} +//NewLowLimitPrice returns a new LowLimitPriceField initialized with val and scale +func NewLowLimitPrice(val decimal.Decimal, scale int32) LowLimitPriceField { + return LowLimitPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //LowPxField is a PRICE field -type LowPxField struct{ quickfix.FIXFloat } +type LowPxField struct{ quickfix.FIXDecimal } //Tag returns tag.LowPx (333) func (f LowPxField) Tag() quickfix.Tag { return tag.LowPx } -//NewLowPx returns a new LowPxField initialized with val -func NewLowPx(val float64) LowPxField { - return LowPxField{quickfix.FIXFloat(val)} +//NewLowPx returns a new LowPxField initialized with val and scale +func NewLowPx(val decimal.Decimal, scale int32) LowPxField { + return LowPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MDBookTypeField is a INT field @@ -7239,14 +7239,14 @@ func NewMDEntryDate(val string) MDEntryDateField { } //MDEntryForwardPointsField is a PRICEOFFSET field -type MDEntryForwardPointsField struct{ quickfix.FIXFloat } +type MDEntryForwardPointsField struct{ quickfix.FIXDecimal } //Tag returns tag.MDEntryForwardPoints (1027) func (f MDEntryForwardPointsField) Tag() quickfix.Tag { return tag.MDEntryForwardPoints } -//NewMDEntryForwardPoints returns a new MDEntryForwardPointsField initialized with val -func NewMDEntryForwardPoints(val float64) MDEntryForwardPointsField { - return MDEntryForwardPointsField{quickfix.FIXFloat(val)} +//NewMDEntryForwardPoints returns a new MDEntryForwardPointsField initialized with val and scale +func NewMDEntryForwardPoints(val decimal.Decimal, scale int32) MDEntryForwardPointsField { + return MDEntryForwardPointsField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MDEntryIDField is a STRING field @@ -7283,14 +7283,14 @@ func NewMDEntryPositionNo(val int) MDEntryPositionNoField { } //MDEntryPxField is a PRICE field -type MDEntryPxField struct{ quickfix.FIXFloat } +type MDEntryPxField struct{ quickfix.FIXDecimal } //Tag returns tag.MDEntryPx (270) func (f MDEntryPxField) Tag() quickfix.Tag { return tag.MDEntryPx } -//NewMDEntryPx returns a new MDEntryPxField initialized with val -func NewMDEntryPx(val float64) MDEntryPxField { - return MDEntryPxField{quickfix.FIXFloat(val)} +//NewMDEntryPx returns a new MDEntryPxField initialized with val and scale +func NewMDEntryPx(val decimal.Decimal, scale int32) MDEntryPxField { + return MDEntryPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MDEntryRefIDField is a STRING field @@ -7316,25 +7316,25 @@ func NewMDEntrySeller(val string) MDEntrySellerField { } //MDEntrySizeField is a QTY field -type MDEntrySizeField struct{ quickfix.FIXFloat } +type MDEntrySizeField struct{ quickfix.FIXDecimal } //Tag returns tag.MDEntrySize (271) func (f MDEntrySizeField) Tag() quickfix.Tag { return tag.MDEntrySize } -//NewMDEntrySize returns a new MDEntrySizeField initialized with val -func NewMDEntrySize(val float64) MDEntrySizeField { - return MDEntrySizeField{quickfix.FIXFloat(val)} +//NewMDEntrySize returns a new MDEntrySizeField initialized with val and scale +func NewMDEntrySize(val decimal.Decimal, scale int32) MDEntrySizeField { + return MDEntrySizeField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MDEntrySpotRateField is a FLOAT field -type MDEntrySpotRateField struct{ quickfix.FIXFloat } +type MDEntrySpotRateField struct{ quickfix.FIXDecimal } //Tag returns tag.MDEntrySpotRate (1026) func (f MDEntrySpotRateField) Tag() quickfix.Tag { return tag.MDEntrySpotRate } -//NewMDEntrySpotRate returns a new MDEntrySpotRateField initialized with val -func NewMDEntrySpotRate(val float64) MDEntrySpotRateField { - return MDEntrySpotRateField{quickfix.FIXFloat(val)} +//NewMDEntrySpotRate returns a new MDEntrySpotRateField initialized with val and scale +func NewMDEntrySpotRate(val decimal.Decimal, scale int32) MDEntrySpotRateField { + return MDEntrySpotRateField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MDEntryTimeField is a UTCTIMEONLY field @@ -7459,14 +7459,14 @@ func NewMDReqRejReason(val string) MDReqRejReasonField { } //MDSecSizeField is a QTY field -type MDSecSizeField struct{ quickfix.FIXFloat } +type MDSecSizeField struct{ quickfix.FIXDecimal } //Tag returns tag.MDSecSize (1179) func (f MDSecSizeField) Tag() quickfix.Tag { return tag.MDSecSize } -//NewMDSecSize returns a new MDSecSizeField initialized with val -func NewMDSecSize(val float64) MDSecSizeField { - return MDSecSizeField{quickfix.FIXFloat(val)} +//NewMDSecSize returns a new MDSecSizeField initialized with val and scale +func NewMDSecSize(val decimal.Decimal, scale int32) MDSecSizeField { + return MDSecSizeField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MDSecSizeTypeField is a INT field @@ -7558,25 +7558,25 @@ func NewManualOrderIndicator(val bool) ManualOrderIndicatorField { } //MarginExcessField is a AMT field -type MarginExcessField struct{ quickfix.FIXFloat } +type MarginExcessField struct{ quickfix.FIXDecimal } //Tag returns tag.MarginExcess (899) func (f MarginExcessField) Tag() quickfix.Tag { return tag.MarginExcess } -//NewMarginExcess returns a new MarginExcessField initialized with val -func NewMarginExcess(val float64) MarginExcessField { - return MarginExcessField{quickfix.FIXFloat(val)} +//NewMarginExcess returns a new MarginExcessField initialized with val and scale +func NewMarginExcess(val decimal.Decimal, scale int32) MarginExcessField { + return MarginExcessField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MarginRatioField is a PERCENTAGE field -type MarginRatioField struct{ quickfix.FIXFloat } +type MarginRatioField struct{ quickfix.FIXDecimal } //Tag returns tag.MarginRatio (898) func (f MarginRatioField) Tag() quickfix.Tag { return tag.MarginRatio } -//NewMarginRatio returns a new MarginRatioField initialized with val -func NewMarginRatio(val float64) MarginRatioField { - return MarginRatioField{quickfix.FIXFloat(val)} +//NewMarginRatio returns a new MarginRatioField initialized with val and scale +func NewMarginRatio(val decimal.Decimal, scale int32) MarginRatioField { + return MarginRatioField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MarketDepthField is a INT field @@ -7778,14 +7778,14 @@ func NewMatchAlgorithm(val string) MatchAlgorithmField { } //MatchIncrementField is a QTY field -type MatchIncrementField struct{ quickfix.FIXFloat } +type MatchIncrementField struct{ quickfix.FIXDecimal } //Tag returns tag.MatchIncrement (1089) func (f MatchIncrementField) Tag() quickfix.Tag { return tag.MatchIncrement } -//NewMatchIncrement returns a new MatchIncrementField initialized with val -func NewMatchIncrement(val float64) MatchIncrementField { - return MatchIncrementField{quickfix.FIXFloat(val)} +//NewMatchIncrement returns a new MatchIncrementField initialized with val and scale +func NewMatchIncrement(val decimal.Decimal, scale int32) MatchIncrementField { + return MatchIncrementField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MatchStatusField is a CHAR field @@ -7879,14 +7879,14 @@ func NewMaturityMonthYearIncrementUnits(val int) MaturityMonthYearIncrementUnits } //MaturityNetMoneyField is a AMT field -type MaturityNetMoneyField struct{ quickfix.FIXFloat } +type MaturityNetMoneyField struct{ quickfix.FIXDecimal } //Tag returns tag.MaturityNetMoney (890) func (f MaturityNetMoneyField) Tag() quickfix.Tag { return tag.MaturityNetMoney } -//NewMaturityNetMoney returns a new MaturityNetMoneyField initialized with val -func NewMaturityNetMoney(val float64) MaturityNetMoneyField { - return MaturityNetMoneyField{quickfix.FIXFloat(val)} +//NewMaturityNetMoney returns a new MaturityNetMoneyField initialized with val and scale +func NewMaturityNetMoney(val decimal.Decimal, scale int32) MaturityNetMoneyField { + return MaturityNetMoneyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MaturityRuleIDField is a STRING field @@ -7912,14 +7912,14 @@ func NewMaturityTime(val string) MaturityTimeField { } //MaxFloorField is a QTY field -type MaxFloorField struct{ quickfix.FIXFloat } +type MaxFloorField struct{ quickfix.FIXDecimal } //Tag returns tag.MaxFloor (111) func (f MaxFloorField) Tag() quickfix.Tag { return tag.MaxFloor } -//NewMaxFloor returns a new MaxFloorField initialized with val -func NewMaxFloor(val float64) MaxFloorField { - return MaxFloorField{quickfix.FIXFloat(val)} +//NewMaxFloor returns a new MaxFloorField initialized with val and scale +func NewMaxFloor(val decimal.Decimal, scale int32) MaxFloorField { + return MaxFloorField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MaxMessageSizeField is a LENGTH field @@ -7945,36 +7945,36 @@ func NewMaxPriceLevels(val int) MaxPriceLevelsField { } //MaxPriceVariationField is a FLOAT field -type MaxPriceVariationField struct{ quickfix.FIXFloat } +type MaxPriceVariationField struct{ quickfix.FIXDecimal } //Tag returns tag.MaxPriceVariation (1143) func (f MaxPriceVariationField) Tag() quickfix.Tag { return tag.MaxPriceVariation } -//NewMaxPriceVariation returns a new MaxPriceVariationField initialized with val -func NewMaxPriceVariation(val float64) MaxPriceVariationField { - return MaxPriceVariationField{quickfix.FIXFloat(val)} +//NewMaxPriceVariation returns a new MaxPriceVariationField initialized with val and scale +func NewMaxPriceVariation(val decimal.Decimal, scale int32) MaxPriceVariationField { + return MaxPriceVariationField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MaxShowField is a QTY field -type MaxShowField struct{ quickfix.FIXFloat } +type MaxShowField struct{ quickfix.FIXDecimal } //Tag returns tag.MaxShow (210) func (f MaxShowField) Tag() quickfix.Tag { return tag.MaxShow } -//NewMaxShow returns a new MaxShowField initialized with val -func NewMaxShow(val float64) MaxShowField { - return MaxShowField{quickfix.FIXFloat(val)} +//NewMaxShow returns a new MaxShowField initialized with val and scale +func NewMaxShow(val decimal.Decimal, scale int32) MaxShowField { + return MaxShowField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MaxTradeVolField is a QTY field -type MaxTradeVolField struct{ quickfix.FIXFloat } +type MaxTradeVolField struct{ quickfix.FIXDecimal } //Tag returns tag.MaxTradeVol (1140) func (f MaxTradeVolField) Tag() quickfix.Tag { return tag.MaxTradeVol } -//NewMaxTradeVol returns a new MaxTradeVolField initialized with val -func NewMaxTradeVol(val float64) MaxTradeVolField { - return MaxTradeVolField{quickfix.FIXFloat(val)} +//NewMaxTradeVol returns a new MaxTradeVolField initialized with val and scale +func NewMaxTradeVol(val decimal.Decimal, scale int32) MaxTradeVolField { + return MaxTradeVolField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MessageEncodingField is a STRING field @@ -8000,113 +8000,113 @@ func NewMessageEventSource(val string) MessageEventSourceField { } //MidPxField is a PRICE field -type MidPxField struct{ quickfix.FIXFloat } +type MidPxField struct{ quickfix.FIXDecimal } //Tag returns tag.MidPx (631) func (f MidPxField) Tag() quickfix.Tag { return tag.MidPx } -//NewMidPx returns a new MidPxField initialized with val -func NewMidPx(val float64) MidPxField { - return MidPxField{quickfix.FIXFloat(val)} +//NewMidPx returns a new MidPxField initialized with val and scale +func NewMidPx(val decimal.Decimal, scale int32) MidPxField { + return MidPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MidYieldField is a PERCENTAGE field -type MidYieldField struct{ quickfix.FIXFloat } +type MidYieldField struct{ quickfix.FIXDecimal } //Tag returns tag.MidYield (633) func (f MidYieldField) Tag() quickfix.Tag { return tag.MidYield } -//NewMidYield returns a new MidYieldField initialized with val -func NewMidYield(val float64) MidYieldField { - return MidYieldField{quickfix.FIXFloat(val)} +//NewMidYield returns a new MidYieldField initialized with val and scale +func NewMidYield(val decimal.Decimal, scale int32) MidYieldField { + return MidYieldField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MinBidSizeField is a QTY field -type MinBidSizeField struct{ quickfix.FIXFloat } +type MinBidSizeField struct{ quickfix.FIXDecimal } //Tag returns tag.MinBidSize (647) func (f MinBidSizeField) Tag() quickfix.Tag { return tag.MinBidSize } -//NewMinBidSize returns a new MinBidSizeField initialized with val -func NewMinBidSize(val float64) MinBidSizeField { - return MinBidSizeField{quickfix.FIXFloat(val)} +//NewMinBidSize returns a new MinBidSizeField initialized with val and scale +func NewMinBidSize(val decimal.Decimal, scale int32) MinBidSizeField { + return MinBidSizeField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MinLotSizeField is a QTY field -type MinLotSizeField struct{ quickfix.FIXFloat } +type MinLotSizeField struct{ quickfix.FIXDecimal } //Tag returns tag.MinLotSize (1231) func (f MinLotSizeField) Tag() quickfix.Tag { return tag.MinLotSize } -//NewMinLotSize returns a new MinLotSizeField initialized with val -func NewMinLotSize(val float64) MinLotSizeField { - return MinLotSizeField{quickfix.FIXFloat(val)} +//NewMinLotSize returns a new MinLotSizeField initialized with val and scale +func NewMinLotSize(val decimal.Decimal, scale int32) MinLotSizeField { + return MinLotSizeField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MinOfferSizeField is a QTY field -type MinOfferSizeField struct{ quickfix.FIXFloat } +type MinOfferSizeField struct{ quickfix.FIXDecimal } //Tag returns tag.MinOfferSize (648) func (f MinOfferSizeField) Tag() quickfix.Tag { return tag.MinOfferSize } -//NewMinOfferSize returns a new MinOfferSizeField initialized with val -func NewMinOfferSize(val float64) MinOfferSizeField { - return MinOfferSizeField{quickfix.FIXFloat(val)} +//NewMinOfferSize returns a new MinOfferSizeField initialized with val and scale +func NewMinOfferSize(val decimal.Decimal, scale int32) MinOfferSizeField { + return MinOfferSizeField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MinPriceIncrementField is a FLOAT field -type MinPriceIncrementField struct{ quickfix.FIXFloat } +type MinPriceIncrementField struct{ quickfix.FIXDecimal } //Tag returns tag.MinPriceIncrement (969) func (f MinPriceIncrementField) Tag() quickfix.Tag { return tag.MinPriceIncrement } -//NewMinPriceIncrement returns a new MinPriceIncrementField initialized with val -func NewMinPriceIncrement(val float64) MinPriceIncrementField { - return MinPriceIncrementField{quickfix.FIXFloat(val)} +//NewMinPriceIncrement returns a new MinPriceIncrementField initialized with val and scale +func NewMinPriceIncrement(val decimal.Decimal, scale int32) MinPriceIncrementField { + return MinPriceIncrementField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MinPriceIncrementAmountField is a AMT field -type MinPriceIncrementAmountField struct{ quickfix.FIXFloat } +type MinPriceIncrementAmountField struct{ quickfix.FIXDecimal } //Tag returns tag.MinPriceIncrementAmount (1146) func (f MinPriceIncrementAmountField) Tag() quickfix.Tag { return tag.MinPriceIncrementAmount } -//NewMinPriceIncrementAmount returns a new MinPriceIncrementAmountField initialized with val -func NewMinPriceIncrementAmount(val float64) MinPriceIncrementAmountField { - return MinPriceIncrementAmountField{quickfix.FIXFloat(val)} +//NewMinPriceIncrementAmount returns a new MinPriceIncrementAmountField initialized with val and scale +func NewMinPriceIncrementAmount(val decimal.Decimal, scale int32) MinPriceIncrementAmountField { + return MinPriceIncrementAmountField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MinQtyField is a QTY field -type MinQtyField struct{ quickfix.FIXFloat } +type MinQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.MinQty (110) func (f MinQtyField) Tag() quickfix.Tag { return tag.MinQty } -//NewMinQty returns a new MinQtyField initialized with val -func NewMinQty(val float64) MinQtyField { - return MinQtyField{quickfix.FIXFloat(val)} +//NewMinQty returns a new MinQtyField initialized with val and scale +func NewMinQty(val decimal.Decimal, scale int32) MinQtyField { + return MinQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MinTradeVolField is a QTY field -type MinTradeVolField struct{ quickfix.FIXFloat } +type MinTradeVolField struct{ quickfix.FIXDecimal } //Tag returns tag.MinTradeVol (562) func (f MinTradeVolField) Tag() quickfix.Tag { return tag.MinTradeVol } -//NewMinTradeVol returns a new MinTradeVolField initialized with val -func NewMinTradeVol(val float64) MinTradeVolField { - return MinTradeVolField{quickfix.FIXFloat(val)} +//NewMinTradeVol returns a new MinTradeVolField initialized with val and scale +func NewMinTradeVol(val decimal.Decimal, scale int32) MinTradeVolField { + return MinTradeVolField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MiscFeeAmtField is a AMT field -type MiscFeeAmtField struct{ quickfix.FIXFloat } +type MiscFeeAmtField struct{ quickfix.FIXDecimal } //Tag returns tag.MiscFeeAmt (137) func (f MiscFeeAmtField) Tag() quickfix.Tag { return tag.MiscFeeAmt } -//NewMiscFeeAmt returns a new MiscFeeAmtField initialized with val -func NewMiscFeeAmt(val float64) MiscFeeAmtField { - return MiscFeeAmtField{quickfix.FIXFloat(val)} +//NewMiscFeeAmt returns a new MiscFeeAmtField initialized with val and scale +func NewMiscFeeAmt(val decimal.Decimal, scale int32) MiscFeeAmtField { + return MiscFeeAmtField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MiscFeeBasisField is a INT field @@ -8143,25 +8143,25 @@ func NewMiscFeeType(val string) MiscFeeTypeField { } //MktBidPxField is a PRICE field -type MktBidPxField struct{ quickfix.FIXFloat } +type MktBidPxField struct{ quickfix.FIXDecimal } //Tag returns tag.MktBidPx (645) func (f MktBidPxField) Tag() quickfix.Tag { return tag.MktBidPx } -//NewMktBidPx returns a new MktBidPxField initialized with val -func NewMktBidPx(val float64) MktBidPxField { - return MktBidPxField{quickfix.FIXFloat(val)} +//NewMktBidPx returns a new MktBidPxField initialized with val and scale +func NewMktBidPx(val decimal.Decimal, scale int32) MktBidPxField { + return MktBidPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //MktOfferPxField is a PRICE field -type MktOfferPxField struct{ quickfix.FIXFloat } +type MktOfferPxField struct{ quickfix.FIXDecimal } //Tag returns tag.MktOfferPx (646) func (f MktOfferPxField) Tag() quickfix.Tag { return tag.MktOfferPx } -//NewMktOfferPx returns a new MktOfferPxField initialized with val -func NewMktOfferPx(val float64) MktOfferPxField { - return MktOfferPxField{quickfix.FIXFloat(val)} +//NewMktOfferPx returns a new MktOfferPxField initialized with val and scale +func NewMktOfferPx(val decimal.Decimal, scale int32) MktOfferPxField { + return MktOfferPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //ModelTypeField is a INT field @@ -8517,14 +8517,14 @@ func NewNestedPartySubIDType(val int) NestedPartySubIDTypeField { } //NetChgPrevDayField is a PRICEOFFSET field -type NetChgPrevDayField struct{ quickfix.FIXFloat } +type NetChgPrevDayField struct{ quickfix.FIXDecimal } //Tag returns tag.NetChgPrevDay (451) func (f NetChgPrevDayField) Tag() quickfix.Tag { return tag.NetChgPrevDay } -//NewNetChgPrevDay returns a new NetChgPrevDayField initialized with val -func NewNetChgPrevDay(val float64) NetChgPrevDayField { - return NetChgPrevDayField{quickfix.FIXFloat(val)} +//NewNetChgPrevDay returns a new NetChgPrevDayField initialized with val and scale +func NewNetChgPrevDay(val decimal.Decimal, scale int32) NetChgPrevDayField { + return NetChgPrevDayField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //NetGrossIndField is a INT field @@ -8539,14 +8539,14 @@ func NewNetGrossInd(val int) NetGrossIndField { } //NetMoneyField is a AMT field -type NetMoneyField struct{ quickfix.FIXFloat } +type NetMoneyField struct{ quickfix.FIXDecimal } //Tag returns tag.NetMoney (118) func (f NetMoneyField) Tag() quickfix.Tag { return tag.NetMoney } -//NewNetMoney returns a new NetMoneyField initialized with val -func NewNetMoney(val float64) NetMoneyField { - return NetMoneyField{quickfix.FIXFloat(val)} +//NewNetMoney returns a new NetMoneyField initialized with val and scale +func NewNetMoney(val decimal.Decimal, scale int32) NetMoneyField { + return NetMoneyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //NetworkRequestIDField is a STRING field @@ -10122,16 +10122,16 @@ func NewNotifyBrokerOfCredit(val bool) NotifyBrokerOfCreditField { } //NotionalPercentageOutstandingField is a PERCENTAGE field -type NotionalPercentageOutstandingField struct{ quickfix.FIXFloat } +type NotionalPercentageOutstandingField struct{ quickfix.FIXDecimal } //Tag returns tag.NotionalPercentageOutstanding (1451) func (f NotionalPercentageOutstandingField) Tag() quickfix.Tag { return tag.NotionalPercentageOutstanding } -//NewNotionalPercentageOutstanding returns a new NotionalPercentageOutstandingField initialized with val -func NewNotionalPercentageOutstanding(val float64) NotionalPercentageOutstandingField { - return NotionalPercentageOutstandingField{quickfix.FIXFloat(val)} +//NewNotionalPercentageOutstanding returns a new NotionalPercentageOutstandingField initialized with val and scale +func NewNotionalPercentageOutstanding(val decimal.Decimal, scale int32) NotionalPercentageOutstandingField { + return NotionalPercentageOutstandingField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //NumBiddersField is a INT field @@ -10190,80 +10190,80 @@ func NewOddLot(val bool) OddLotField { } //OfferForwardPointsField is a PRICEOFFSET field -type OfferForwardPointsField struct{ quickfix.FIXFloat } +type OfferForwardPointsField struct{ quickfix.FIXDecimal } //Tag returns tag.OfferForwardPoints (191) func (f OfferForwardPointsField) Tag() quickfix.Tag { return tag.OfferForwardPoints } -//NewOfferForwardPoints returns a new OfferForwardPointsField initialized with val -func NewOfferForwardPoints(val float64) OfferForwardPointsField { - return OfferForwardPointsField{quickfix.FIXFloat(val)} +//NewOfferForwardPoints returns a new OfferForwardPointsField initialized with val and scale +func NewOfferForwardPoints(val decimal.Decimal, scale int32) OfferForwardPointsField { + return OfferForwardPointsField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //OfferForwardPoints2Field is a PRICEOFFSET field -type OfferForwardPoints2Field struct{ quickfix.FIXFloat } +type OfferForwardPoints2Field struct{ quickfix.FIXDecimal } //Tag returns tag.OfferForwardPoints2 (643) func (f OfferForwardPoints2Field) Tag() quickfix.Tag { return tag.OfferForwardPoints2 } -//NewOfferForwardPoints2 returns a new OfferForwardPoints2Field initialized with val -func NewOfferForwardPoints2(val float64) OfferForwardPoints2Field { - return OfferForwardPoints2Field{quickfix.FIXFloat(val)} +//NewOfferForwardPoints2 returns a new OfferForwardPoints2Field initialized with val and scale +func NewOfferForwardPoints2(val decimal.Decimal, scale int32) OfferForwardPoints2Field { + return OfferForwardPoints2Field{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //OfferPxField is a PRICE field -type OfferPxField struct{ quickfix.FIXFloat } +type OfferPxField struct{ quickfix.FIXDecimal } //Tag returns tag.OfferPx (133) func (f OfferPxField) Tag() quickfix.Tag { return tag.OfferPx } -//NewOfferPx returns a new OfferPxField initialized with val -func NewOfferPx(val float64) OfferPxField { - return OfferPxField{quickfix.FIXFloat(val)} +//NewOfferPx returns a new OfferPxField initialized with val and scale +func NewOfferPx(val decimal.Decimal, scale int32) OfferPxField { + return OfferPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //OfferSizeField is a QTY field -type OfferSizeField struct{ quickfix.FIXFloat } +type OfferSizeField struct{ quickfix.FIXDecimal } //Tag returns tag.OfferSize (135) func (f OfferSizeField) Tag() quickfix.Tag { return tag.OfferSize } -//NewOfferSize returns a new OfferSizeField initialized with val -func NewOfferSize(val float64) OfferSizeField { - return OfferSizeField{quickfix.FIXFloat(val)} +//NewOfferSize returns a new OfferSizeField initialized with val and scale +func NewOfferSize(val decimal.Decimal, scale int32) OfferSizeField { + return OfferSizeField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //OfferSpotRateField is a PRICE field -type OfferSpotRateField struct{ quickfix.FIXFloat } +type OfferSpotRateField struct{ quickfix.FIXDecimal } //Tag returns tag.OfferSpotRate (190) func (f OfferSpotRateField) Tag() quickfix.Tag { return tag.OfferSpotRate } -//NewOfferSpotRate returns a new OfferSpotRateField initialized with val -func NewOfferSpotRate(val float64) OfferSpotRateField { - return OfferSpotRateField{quickfix.FIXFloat(val)} +//NewOfferSpotRate returns a new OfferSpotRateField initialized with val and scale +func NewOfferSpotRate(val decimal.Decimal, scale int32) OfferSpotRateField { + return OfferSpotRateField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //OfferSwapPointsField is a PRICEOFFSET field -type OfferSwapPointsField struct{ quickfix.FIXFloat } +type OfferSwapPointsField struct{ quickfix.FIXDecimal } //Tag returns tag.OfferSwapPoints (1066) func (f OfferSwapPointsField) Tag() quickfix.Tag { return tag.OfferSwapPoints } -//NewOfferSwapPoints returns a new OfferSwapPointsField initialized with val -func NewOfferSwapPoints(val float64) OfferSwapPointsField { - return OfferSwapPointsField{quickfix.FIXFloat(val)} +//NewOfferSwapPoints returns a new OfferSwapPointsField initialized with val and scale +func NewOfferSwapPoints(val decimal.Decimal, scale int32) OfferSwapPointsField { + return OfferSwapPointsField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //OfferYieldField is a PERCENTAGE field -type OfferYieldField struct{ quickfix.FIXFloat } +type OfferYieldField struct{ quickfix.FIXDecimal } //Tag returns tag.OfferYield (634) func (f OfferYieldField) Tag() quickfix.Tag { return tag.OfferYield } -//NewOfferYield returns a new OfferYieldField initialized with val -func NewOfferYield(val float64) OfferYieldField { - return OfferYieldField{quickfix.FIXFloat(val)} +//NewOfferYield returns a new OfferYieldField initialized with val and scale +func NewOfferYield(val decimal.Decimal, scale int32) OfferYieldField { + return OfferYieldField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //OnBehalfOfCompIDField is a STRING field @@ -10349,14 +10349,14 @@ func NewOpenCloseSettleFlag(val string) OpenCloseSettleFlagField { } //OpenInterestField is a AMT field -type OpenInterestField struct{ quickfix.FIXFloat } +type OpenInterestField struct{ quickfix.FIXDecimal } //Tag returns tag.OpenInterest (746) func (f OpenInterestField) Tag() quickfix.Tag { return tag.OpenInterest } -//NewOpenInterest returns a new OpenInterestField initialized with val -func NewOpenInterest(val float64) OpenInterestField { - return OpenInterestField{quickfix.FIXFloat(val)} +//NewOpenInterest returns a new OpenInterestField initialized with val and scale +func NewOpenInterest(val decimal.Decimal, scale int32) OpenInterestField { + return OpenInterestField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //OptAttributeField is a CHAR field @@ -10371,25 +10371,25 @@ func NewOptAttribute(val string) OptAttributeField { } //OptPayAmountField is a AMT field -type OptPayAmountField struct{ quickfix.FIXFloat } +type OptPayAmountField struct{ quickfix.FIXDecimal } //Tag returns tag.OptPayAmount (1195) func (f OptPayAmountField) Tag() quickfix.Tag { return tag.OptPayAmount } -//NewOptPayAmount returns a new OptPayAmountField initialized with val -func NewOptPayAmount(val float64) OptPayAmountField { - return OptPayAmountField{quickfix.FIXFloat(val)} +//NewOptPayAmount returns a new OptPayAmountField initialized with val and scale +func NewOptPayAmount(val decimal.Decimal, scale int32) OptPayAmountField { + return OptPayAmountField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //OptPayoutAmountField is a AMT field -type OptPayoutAmountField struct{ quickfix.FIXFloat } +type OptPayoutAmountField struct{ quickfix.FIXDecimal } //Tag returns tag.OptPayoutAmount (1195) func (f OptPayoutAmountField) Tag() quickfix.Tag { return tag.OptPayoutAmount } -//NewOptPayoutAmount returns a new OptPayoutAmountField initialized with val -func NewOptPayoutAmount(val float64) OptPayoutAmountField { - return OptPayoutAmountField{quickfix.FIXFloat(val)} +//NewOptPayoutAmount returns a new OptPayoutAmountField initialized with val and scale +func NewOptPayoutAmount(val decimal.Decimal, scale int32) OptPayoutAmountField { + return OptPayoutAmountField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //OptPayoutTypeField is a INT field @@ -10448,25 +10448,25 @@ func NewOrdType(val string) OrdTypeField { } //OrderAvgPxField is a PRICE field -type OrderAvgPxField struct{ quickfix.FIXFloat } +type OrderAvgPxField struct{ quickfix.FIXDecimal } //Tag returns tag.OrderAvgPx (799) func (f OrderAvgPxField) Tag() quickfix.Tag { return tag.OrderAvgPx } -//NewOrderAvgPx returns a new OrderAvgPxField initialized with val -func NewOrderAvgPx(val float64) OrderAvgPxField { - return OrderAvgPxField{quickfix.FIXFloat(val)} +//NewOrderAvgPx returns a new OrderAvgPxField initialized with val and scale +func NewOrderAvgPx(val decimal.Decimal, scale int32) OrderAvgPxField { + return OrderAvgPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //OrderBookingQtyField is a QTY field -type OrderBookingQtyField struct{ quickfix.FIXFloat } +type OrderBookingQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.OrderBookingQty (800) func (f OrderBookingQtyField) Tag() quickfix.Tag { return tag.OrderBookingQty } -//NewOrderBookingQty returns a new OrderBookingQtyField initialized with val -func NewOrderBookingQty(val float64) OrderBookingQtyField { - return OrderBookingQtyField{quickfix.FIXFloat(val)} +//NewOrderBookingQty returns a new OrderBookingQtyField initialized with val and scale +func NewOrderBookingQty(val decimal.Decimal, scale int32) OrderBookingQtyField { + return OrderBookingQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //OrderCapacityField is a CHAR field @@ -10481,14 +10481,14 @@ func NewOrderCapacity(val string) OrderCapacityField { } //OrderCapacityQtyField is a QTY field -type OrderCapacityQtyField struct{ quickfix.FIXFloat } +type OrderCapacityQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.OrderCapacityQty (863) func (f OrderCapacityQtyField) Tag() quickfix.Tag { return tag.OrderCapacityQty } -//NewOrderCapacityQty returns a new OrderCapacityQtyField initialized with val -func NewOrderCapacityQty(val float64) OrderCapacityQtyField { - return OrderCapacityQtyField{quickfix.FIXFloat(val)} +//NewOrderCapacityQty returns a new OrderCapacityQtyField initialized with val and scale +func NewOrderCapacityQty(val decimal.Decimal, scale int32) OrderCapacityQtyField { + return OrderCapacityQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //OrderCategoryField is a CHAR field @@ -10558,36 +10558,36 @@ func NewOrderInputDevice(val string) OrderInputDeviceField { } //OrderPercentField is a PERCENTAGE field -type OrderPercentField struct{ quickfix.FIXFloat } +type OrderPercentField struct{ quickfix.FIXDecimal } //Tag returns tag.OrderPercent (516) func (f OrderPercentField) Tag() quickfix.Tag { return tag.OrderPercent } -//NewOrderPercent returns a new OrderPercentField initialized with val -func NewOrderPercent(val float64) OrderPercentField { - return OrderPercentField{quickfix.FIXFloat(val)} +//NewOrderPercent returns a new OrderPercentField initialized with val and scale +func NewOrderPercent(val decimal.Decimal, scale int32) OrderPercentField { + return OrderPercentField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //OrderQtyField is a QTY field -type OrderQtyField struct{ quickfix.FIXFloat } +type OrderQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.OrderQty (38) func (f OrderQtyField) Tag() quickfix.Tag { return tag.OrderQty } -//NewOrderQty returns a new OrderQtyField initialized with val -func NewOrderQty(val float64) OrderQtyField { - return OrderQtyField{quickfix.FIXFloat(val)} +//NewOrderQty returns a new OrderQtyField initialized with val and scale +func NewOrderQty(val decimal.Decimal, scale int32) OrderQtyField { + return OrderQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //OrderQty2Field is a QTY field -type OrderQty2Field struct{ quickfix.FIXFloat } +type OrderQty2Field struct{ quickfix.FIXDecimal } //Tag returns tag.OrderQty2 (192) func (f OrderQty2Field) Tag() quickfix.Tag { return tag.OrderQty2 } -//NewOrderQty2 returns a new OrderQty2Field initialized with val -func NewOrderQty2(val float64) OrderQty2Field { - return OrderQty2Field{quickfix.FIXFloat(val)} +//NewOrderQty2 returns a new OrderQty2Field initialized with val and scale +func NewOrderQty2(val decimal.Decimal, scale int32) OrderQty2Field { + return OrderQty2Field{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //OrderRestrictionsField is a MULTIPLECHARVALUE field @@ -10738,38 +10738,38 @@ func NewOrigTradeID(val string) OrigTradeIDField { } //OriginalNotionalPercentageOutstandingField is a PERCENTAGE field -type OriginalNotionalPercentageOutstandingField struct{ quickfix.FIXFloat } +type OriginalNotionalPercentageOutstandingField struct{ quickfix.FIXDecimal } //Tag returns tag.OriginalNotionalPercentageOutstanding (1452) func (f OriginalNotionalPercentageOutstandingField) Tag() quickfix.Tag { return tag.OriginalNotionalPercentageOutstanding } -//NewOriginalNotionalPercentageOutstanding returns a new OriginalNotionalPercentageOutstandingField initialized with val -func NewOriginalNotionalPercentageOutstanding(val float64) OriginalNotionalPercentageOutstandingField { - return OriginalNotionalPercentageOutstandingField{quickfix.FIXFloat(val)} +//NewOriginalNotionalPercentageOutstanding returns a new OriginalNotionalPercentageOutstandingField initialized with val and scale +func NewOriginalNotionalPercentageOutstanding(val decimal.Decimal, scale int32) OriginalNotionalPercentageOutstandingField { + return OriginalNotionalPercentageOutstandingField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //OutMainCntryUIndexField is a AMT field -type OutMainCntryUIndexField struct{ quickfix.FIXFloat } +type OutMainCntryUIndexField struct{ quickfix.FIXDecimal } //Tag returns tag.OutMainCntryUIndex (412) func (f OutMainCntryUIndexField) Tag() quickfix.Tag { return tag.OutMainCntryUIndex } -//NewOutMainCntryUIndex returns a new OutMainCntryUIndexField initialized with val -func NewOutMainCntryUIndex(val float64) OutMainCntryUIndexField { - return OutMainCntryUIndexField{quickfix.FIXFloat(val)} +//NewOutMainCntryUIndex returns a new OutMainCntryUIndexField initialized with val and scale +func NewOutMainCntryUIndex(val decimal.Decimal, scale int32) OutMainCntryUIndexField { + return OutMainCntryUIndexField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //OutsideIndexPctField is a PERCENTAGE field -type OutsideIndexPctField struct{ quickfix.FIXFloat } +type OutsideIndexPctField struct{ quickfix.FIXDecimal } //Tag returns tag.OutsideIndexPct (407) func (f OutsideIndexPctField) Tag() quickfix.Tag { return tag.OutsideIndexPct } -//NewOutsideIndexPct returns a new OutsideIndexPctField initialized with val -func NewOutsideIndexPct(val float64) OutsideIndexPctField { - return OutsideIndexPctField{quickfix.FIXFloat(val)} +//NewOutsideIndexPct returns a new OutsideIndexPctField initialized with val and scale +func NewOutsideIndexPct(val decimal.Decimal, scale int32) OutsideIndexPctField { + return OutsideIndexPctField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //OwnerTypeField is a INT field @@ -10806,14 +10806,14 @@ func NewParentMktSegmID(val string) ParentMktSegmIDField { } //ParticipationRateField is a PERCENTAGE field -type ParticipationRateField struct{ quickfix.FIXFloat } +type ParticipationRateField struct{ quickfix.FIXDecimal } //Tag returns tag.ParticipationRate (849) func (f ParticipationRateField) Tag() quickfix.Tag { return tag.ParticipationRate } -//NewParticipationRate returns a new ParticipationRateField initialized with val -func NewParticipationRate(val float64) ParticipationRateField { - return ParticipationRateField{quickfix.FIXFloat(val)} +//NewParticipationRate returns a new ParticipationRateField initialized with val and scale +func NewParticipationRate(val decimal.Decimal, scale int32) ParticipationRateField { + return ParticipationRateField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //PartyAltIDField is a STRING field @@ -11026,25 +11026,25 @@ func NewPaymentRemitterID(val string) PaymentRemitterIDField { } //PctAtRiskField is a PERCENTAGE field -type PctAtRiskField struct{ quickfix.FIXFloat } +type PctAtRiskField struct{ quickfix.FIXDecimal } //Tag returns tag.PctAtRisk (869) func (f PctAtRiskField) Tag() quickfix.Tag { return tag.PctAtRisk } -//NewPctAtRisk returns a new PctAtRiskField initialized with val -func NewPctAtRisk(val float64) PctAtRiskField { - return PctAtRiskField{quickfix.FIXFloat(val)} +//NewPctAtRisk returns a new PctAtRiskField initialized with val and scale +func NewPctAtRisk(val decimal.Decimal, scale int32) PctAtRiskField { + return PctAtRiskField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //PegDifferenceField is a PRICEOFFSET field -type PegDifferenceField struct{ quickfix.FIXFloat } +type PegDifferenceField struct{ quickfix.FIXDecimal } //Tag returns tag.PegDifference (211) func (f PegDifferenceField) Tag() quickfix.Tag { return tag.PegDifference } -//NewPegDifference returns a new PegDifferenceField initialized with val -func NewPegDifference(val float64) PegDifferenceField { - return PegDifferenceField{quickfix.FIXFloat(val)} +//NewPegDifference returns a new PegDifferenceField initialized with val and scale +func NewPegDifference(val decimal.Decimal, scale int32) PegDifferenceField { + return PegDifferenceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //PegLimitTypeField is a INT field @@ -11081,14 +11081,14 @@ func NewPegOffsetType(val int) PegOffsetTypeField { } //PegOffsetValueField is a FLOAT field -type PegOffsetValueField struct{ quickfix.FIXFloat } +type PegOffsetValueField struct{ quickfix.FIXDecimal } //Tag returns tag.PegOffsetValue (211) func (f PegOffsetValueField) Tag() quickfix.Tag { return tag.PegOffsetValue } -//NewPegOffsetValue returns a new PegOffsetValueField initialized with val -func NewPegOffsetValue(val float64) PegOffsetValueField { - return PegOffsetValueField{quickfix.FIXFloat(val)} +//NewPegOffsetValue returns a new PegOffsetValueField initialized with val and scale +func NewPegOffsetValue(val decimal.Decimal, scale int32) PegOffsetValueField { + return PegOffsetValueField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //PegPriceTypeField is a INT field @@ -11169,25 +11169,25 @@ func NewPegSymbol(val string) PegSymbolField { } //PeggedPriceField is a PRICE field -type PeggedPriceField struct{ quickfix.FIXFloat } +type PeggedPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.PeggedPrice (839) func (f PeggedPriceField) Tag() quickfix.Tag { return tag.PeggedPrice } -//NewPeggedPrice returns a new PeggedPriceField initialized with val -func NewPeggedPrice(val float64) PeggedPriceField { - return PeggedPriceField{quickfix.FIXFloat(val)} +//NewPeggedPrice returns a new PeggedPriceField initialized with val and scale +func NewPeggedPrice(val decimal.Decimal, scale int32) PeggedPriceField { + return PeggedPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //PeggedRefPriceField is a PRICE field -type PeggedRefPriceField struct{ quickfix.FIXFloat } +type PeggedRefPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.PeggedRefPrice (1095) func (f PeggedRefPriceField) Tag() quickfix.Tag { return tag.PeggedRefPrice } -//NewPeggedRefPrice returns a new PeggedRefPriceField initialized with val -func NewPeggedRefPrice(val float64) PeggedRefPriceField { - return PeggedRefPriceField{quickfix.FIXFloat(val)} +//NewPeggedRefPrice returns a new PeggedRefPriceField initialized with val and scale +func NewPeggedRefPrice(val decimal.Decimal, scale int32) PeggedRefPriceField { + return PeggedRefPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //PoolField is a STRING field @@ -11202,14 +11202,14 @@ func NewPool(val string) PoolField { } //PosAmtField is a AMT field -type PosAmtField struct{ quickfix.FIXFloat } +type PosAmtField struct{ quickfix.FIXDecimal } //Tag returns tag.PosAmt (708) func (f PosAmtField) Tag() quickfix.Tag { return tag.PosAmt } -//NewPosAmt returns a new PosAmtField initialized with val -func NewPosAmt(val float64) PosAmtField { - return PosAmtField{quickfix.FIXFloat(val)} +//NewPosAmt returns a new PosAmtField initialized with val and scale +func NewPosAmt(val decimal.Decimal, scale int32) PosAmtField { + return PosAmtField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //PosAmtTypeField is a STRING field @@ -11433,14 +11433,14 @@ func NewPreallocMethod(val string) PreallocMethodField { } //PrevClosePxField is a PRICE field -type PrevClosePxField struct{ quickfix.FIXFloat } +type PrevClosePxField struct{ quickfix.FIXDecimal } //Tag returns tag.PrevClosePx (140) func (f PrevClosePxField) Tag() quickfix.Tag { return tag.PrevClosePx } -//NewPrevClosePx returns a new PrevClosePxField initialized with val -func NewPrevClosePx(val float64) PrevClosePxField { - return PrevClosePxField{quickfix.FIXFloat(val)} +//NewPrevClosePx returns a new PrevClosePxField initialized with val and scale +func NewPrevClosePx(val decimal.Decimal, scale int32) PrevClosePxField { + return PrevClosePxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //PreviouslyReportedField is a BOOLEAN field @@ -11455,47 +11455,47 @@ func NewPreviouslyReported(val bool) PreviouslyReportedField { } //PriceField is a PRICE field -type PriceField struct{ quickfix.FIXFloat } +type PriceField struct{ quickfix.FIXDecimal } //Tag returns tag.Price (44) func (f PriceField) Tag() quickfix.Tag { return tag.Price } -//NewPrice returns a new PriceField initialized with val -func NewPrice(val float64) PriceField { - return PriceField{quickfix.FIXFloat(val)} +//NewPrice returns a new PriceField initialized with val and scale +func NewPrice(val decimal.Decimal, scale int32) PriceField { + return PriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //Price2Field is a PRICE field -type Price2Field struct{ quickfix.FIXFloat } +type Price2Field struct{ quickfix.FIXDecimal } //Tag returns tag.Price2 (640) func (f Price2Field) Tag() quickfix.Tag { return tag.Price2 } -//NewPrice2 returns a new Price2Field initialized with val -func NewPrice2(val float64) Price2Field { - return Price2Field{quickfix.FIXFloat(val)} +//NewPrice2 returns a new Price2Field initialized with val and scale +func NewPrice2(val decimal.Decimal, scale int32) Price2Field { + return Price2Field{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //PriceDeltaField is a FLOAT field -type PriceDeltaField struct{ quickfix.FIXFloat } +type PriceDeltaField struct{ quickfix.FIXDecimal } //Tag returns tag.PriceDelta (811) func (f PriceDeltaField) Tag() quickfix.Tag { return tag.PriceDelta } -//NewPriceDelta returns a new PriceDeltaField initialized with val -func NewPriceDelta(val float64) PriceDeltaField { - return PriceDeltaField{quickfix.FIXFloat(val)} +//NewPriceDelta returns a new PriceDeltaField initialized with val and scale +func NewPriceDelta(val decimal.Decimal, scale int32) PriceDeltaField { + return PriceDeltaField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //PriceImprovementField is a PRICEOFFSET field -type PriceImprovementField struct{ quickfix.FIXFloat } +type PriceImprovementField struct{ quickfix.FIXDecimal } //Tag returns tag.PriceImprovement (639) func (f PriceImprovementField) Tag() quickfix.Tag { return tag.PriceImprovement } -//NewPriceImprovement returns a new PriceImprovementField initialized with val -func NewPriceImprovement(val float64) PriceImprovementField { - return PriceImprovementField{quickfix.FIXFloat(val)} +//NewPriceImprovement returns a new PriceImprovementField initialized with val and scale +func NewPriceImprovement(val decimal.Decimal, scale int32) PriceImprovementField { + return PriceImprovementField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //PriceLimitTypeField is a INT field @@ -11554,25 +11554,25 @@ func NewPriceUnitOfMeasure(val string) PriceUnitOfMeasureField { } //PriceUnitOfMeasureQtyField is a QTY field -type PriceUnitOfMeasureQtyField struct{ quickfix.FIXFloat } +type PriceUnitOfMeasureQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.PriceUnitOfMeasureQty (1192) func (f PriceUnitOfMeasureQtyField) Tag() quickfix.Tag { return tag.PriceUnitOfMeasureQty } -//NewPriceUnitOfMeasureQty returns a new PriceUnitOfMeasureQtyField initialized with val -func NewPriceUnitOfMeasureQty(val float64) PriceUnitOfMeasureQtyField { - return PriceUnitOfMeasureQtyField{quickfix.FIXFloat(val)} +//NewPriceUnitOfMeasureQty returns a new PriceUnitOfMeasureQtyField initialized with val and scale +func NewPriceUnitOfMeasureQty(val decimal.Decimal, scale int32) PriceUnitOfMeasureQtyField { + return PriceUnitOfMeasureQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //PriorSettlPriceField is a PRICE field -type PriorSettlPriceField struct{ quickfix.FIXFloat } +type PriorSettlPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.PriorSettlPrice (734) func (f PriorSettlPriceField) Tag() quickfix.Tag { return tag.PriorSettlPrice } -//NewPriorSettlPrice returns a new PriorSettlPriceField initialized with val -func NewPriorSettlPrice(val float64) PriorSettlPriceField { - return PriorSettlPriceField{quickfix.FIXFloat(val)} +//NewPriorSettlPrice returns a new PriorSettlPriceField initialized with val and scale +func NewPriorSettlPrice(val decimal.Decimal, scale int32) PriorSettlPriceField { + return PriorSettlPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //PriorSpreadIndicatorField is a BOOLEAN field @@ -11697,14 +11697,14 @@ func NewQtyType(val int) QtyTypeField { } //QuantityField is a QTY field -type QuantityField struct{ quickfix.FIXFloat } +type QuantityField struct{ quickfix.FIXDecimal } //Tag returns tag.Quantity (53) func (f QuantityField) Tag() quickfix.Tag { return tag.Quantity } -//NewQuantity returns a new QuantityField initialized with val -func NewQuantity(val float64) QuantityField { - return QuantityField{quickfix.FIXFloat(val)} +//NewQuantity returns a new QuantityField initialized with val and scale +func NewQuantity(val decimal.Decimal, scale int32) QuantityField { + return QuantityField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //QuantityDateField is a LOCALMKTDATE field @@ -12010,14 +12010,14 @@ func NewRateSourceType(val int) RateSourceTypeField { } //RatioQtyField is a QTY field -type RatioQtyField struct{ quickfix.FIXFloat } +type RatioQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.RatioQty (319) func (f RatioQtyField) Tag() quickfix.Tag { return tag.RatioQty } -//NewRatioQty returns a new RatioQtyField initialized with val -func NewRatioQty(val float64) RatioQtyField { - return RatioQtyField{quickfix.FIXFloat(val)} +//NewRatioQty returns a new RatioQtyField initialized with val and scale +func NewRatioQty(val decimal.Decimal, scale int32) RatioQtyField { + return RatioQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //RawDataField is a DATA field @@ -12252,14 +12252,14 @@ func NewRefreshIndicator(val bool) RefreshIndicatorField { } //RefreshQtyField is a QTY field -type RefreshQtyField struct{ quickfix.FIXFloat } +type RefreshQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.RefreshQty (1088) func (f RefreshQtyField) Tag() quickfix.Tag { return tag.RefreshQty } -//NewRefreshQty returns a new RefreshQtyField initialized with val -func NewRefreshQty(val float64) RefreshQtyField { - return RefreshQtyField{quickfix.FIXFloat(val)} +//NewRefreshQty returns a new RefreshQtyField initialized with val and scale +func NewRefreshQty(val decimal.Decimal, scale int32) RefreshQtyField { + return RefreshQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //RegistAcctTypeField is a STRING field @@ -12576,14 +12576,14 @@ func NewRelationshipRiskCFICode(val string) RelationshipRiskCFICodeField { } //RelationshipRiskCouponRateField is a PERCENTAGE field -type RelationshipRiskCouponRateField struct{ quickfix.FIXFloat } +type RelationshipRiskCouponRateField struct{ quickfix.FIXDecimal } //Tag returns tag.RelationshipRiskCouponRate (1608) func (f RelationshipRiskCouponRateField) Tag() quickfix.Tag { return tag.RelationshipRiskCouponRate } -//NewRelationshipRiskCouponRate returns a new RelationshipRiskCouponRateField initialized with val -func NewRelationshipRiskCouponRate(val float64) RelationshipRiskCouponRateField { - return RelationshipRiskCouponRateField{quickfix.FIXFloat(val)} +//NewRelationshipRiskCouponRate returns a new RelationshipRiskCouponRateField initialized with val and scale +func NewRelationshipRiskCouponRate(val decimal.Decimal, scale int32) RelationshipRiskCouponRateField { + return RelationshipRiskCouponRateField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //RelationshipRiskEncodedSecurityDescField is a DATA field @@ -12626,16 +12626,16 @@ func NewRelationshipRiskFlexibleIndicator(val bool) RelationshipRiskFlexibleIndi } //RelationshipRiskInstrumentMultiplierField is a FLOAT field -type RelationshipRiskInstrumentMultiplierField struct{ quickfix.FIXFloat } +type RelationshipRiskInstrumentMultiplierField struct{ quickfix.FIXDecimal } //Tag returns tag.RelationshipRiskInstrumentMultiplier (1612) func (f RelationshipRiskInstrumentMultiplierField) Tag() quickfix.Tag { return tag.RelationshipRiskInstrumentMultiplier } -//NewRelationshipRiskInstrumentMultiplier returns a new RelationshipRiskInstrumentMultiplierField initialized with val -func NewRelationshipRiskInstrumentMultiplier(val float64) RelationshipRiskInstrumentMultiplierField { - return RelationshipRiskInstrumentMultiplierField{quickfix.FIXFloat(val)} +//NewRelationshipRiskInstrumentMultiplier returns a new RelationshipRiskInstrumentMultiplierField initialized with val and scale +func NewRelationshipRiskInstrumentMultiplier(val decimal.Decimal, scale int32) RelationshipRiskInstrumentMultiplierField { + return RelationshipRiskInstrumentMultiplierField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //RelationshipRiskInstrumentOperatorField is a INT field @@ -12665,14 +12665,14 @@ func NewRelationshipRiskInstrumentSettlType(val string) RelationshipRiskInstrume } //RelationshipRiskLimitAmountField is a AMT field -type RelationshipRiskLimitAmountField struct{ quickfix.FIXFloat } +type RelationshipRiskLimitAmountField struct{ quickfix.FIXDecimal } //Tag returns tag.RelationshipRiskLimitAmount (1584) func (f RelationshipRiskLimitAmountField) Tag() quickfix.Tag { return tag.RelationshipRiskLimitAmount } -//NewRelationshipRiskLimitAmount returns a new RelationshipRiskLimitAmountField initialized with val -func NewRelationshipRiskLimitAmount(val float64) RelationshipRiskLimitAmountField { - return RelationshipRiskLimitAmountField{quickfix.FIXFloat(val)} +//NewRelationshipRiskLimitAmount returns a new RelationshipRiskLimitAmountField initialized with val and scale +func NewRelationshipRiskLimitAmount(val decimal.Decimal, scale int32) RelationshipRiskLimitAmountField { + return RelationshipRiskLimitAmountField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //RelationshipRiskLimitCurrencyField is a CURRENCY field @@ -12942,16 +12942,16 @@ func NewRelationshipRiskWarningLevelName(val string) RelationshipRiskWarningLeve } //RelationshipRiskWarningLevelPercentField is a PERCENTAGE field -type RelationshipRiskWarningLevelPercentField struct{ quickfix.FIXFloat } +type RelationshipRiskWarningLevelPercentField struct{ quickfix.FIXDecimal } //Tag returns tag.RelationshipRiskWarningLevelPercent (1614) func (f RelationshipRiskWarningLevelPercentField) Tag() quickfix.Tag { return tag.RelationshipRiskWarningLevelPercent } -//NewRelationshipRiskWarningLevelPercent returns a new RelationshipRiskWarningLevelPercentField initialized with val -func NewRelationshipRiskWarningLevelPercent(val float64) RelationshipRiskWarningLevelPercentField { - return RelationshipRiskWarningLevelPercentField{quickfix.FIXFloat(val)} +//NewRelationshipRiskWarningLevelPercent returns a new RelationshipRiskWarningLevelPercentField initialized with val and scale +func NewRelationshipRiskWarningLevelPercent(val decimal.Decimal, scale int32) RelationshipRiskWarningLevelPercentField { + return RelationshipRiskWarningLevelPercentField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //RepoCollateralSecurityTypeField is a INT field @@ -12977,14 +12977,14 @@ func NewReportToExch(val bool) ReportToExchField { } //ReportedPxField is a PRICE field -type ReportedPxField struct{ quickfix.FIXFloat } +type ReportedPxField struct{ quickfix.FIXDecimal } //Tag returns tag.ReportedPx (861) func (f ReportedPxField) Tag() quickfix.Tag { return tag.ReportedPx } -//NewReportedPx returns a new ReportedPxField initialized with val -func NewReportedPx(val float64) ReportedPxField { - return ReportedPxField{quickfix.FIXFloat(val)} +//NewReportedPx returns a new ReportedPxField initialized with val and scale +func NewReportedPx(val decimal.Decimal, scale int32) ReportedPxField { + return ReportedPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //ReportedPxDiffField is a BOOLEAN field @@ -12999,14 +12999,14 @@ func NewReportedPxDiff(val bool) ReportedPxDiffField { } //RepurchaseRateField is a PERCENTAGE field -type RepurchaseRateField struct{ quickfix.FIXFloat } +type RepurchaseRateField struct{ quickfix.FIXDecimal } //Tag returns tag.RepurchaseRate (227) func (f RepurchaseRateField) Tag() quickfix.Tag { return tag.RepurchaseRate } -//NewRepurchaseRate returns a new RepurchaseRateField initialized with val -func NewRepurchaseRate(val float64) RepurchaseRateField { - return RepurchaseRateField{quickfix.FIXFloat(val)} +//NewRepurchaseRate returns a new RepurchaseRateField initialized with val and scale +func NewRepurchaseRate(val decimal.Decimal, scale int32) RepurchaseRateField { + return RepurchaseRateField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //RepurchaseTermField is a INT field @@ -13109,14 +13109,14 @@ func NewRiskCFICode(val string) RiskCFICodeField { } //RiskCouponRateField is a PERCENTAGE field -type RiskCouponRateField struct{ quickfix.FIXFloat } +type RiskCouponRateField struct{ quickfix.FIXDecimal } //Tag returns tag.RiskCouponRate (1555) func (f RiskCouponRateField) Tag() quickfix.Tag { return tag.RiskCouponRate } -//NewRiskCouponRate returns a new RiskCouponRateField initialized with val -func NewRiskCouponRate(val float64) RiskCouponRateField { - return RiskCouponRateField{quickfix.FIXFloat(val)} +//NewRiskCouponRate returns a new RiskCouponRateField initialized with val and scale +func NewRiskCouponRate(val decimal.Decimal, scale int32) RiskCouponRateField { + return RiskCouponRateField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //RiskEncodedSecurityDescField is a DATA field @@ -13153,25 +13153,25 @@ func NewRiskFlexibleIndicator(val bool) RiskFlexibleIndicatorField { } //RiskFreeRateField is a FLOAT field -type RiskFreeRateField struct{ quickfix.FIXFloat } +type RiskFreeRateField struct{ quickfix.FIXDecimal } //Tag returns tag.RiskFreeRate (1190) func (f RiskFreeRateField) Tag() quickfix.Tag { return tag.RiskFreeRate } -//NewRiskFreeRate returns a new RiskFreeRateField initialized with val -func NewRiskFreeRate(val float64) RiskFreeRateField { - return RiskFreeRateField{quickfix.FIXFloat(val)} +//NewRiskFreeRate returns a new RiskFreeRateField initialized with val and scale +func NewRiskFreeRate(val decimal.Decimal, scale int32) RiskFreeRateField { + return RiskFreeRateField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //RiskInstrumentMultiplierField is a FLOAT field -type RiskInstrumentMultiplierField struct{ quickfix.FIXFloat } +type RiskInstrumentMultiplierField struct{ quickfix.FIXDecimal } //Tag returns tag.RiskInstrumentMultiplier (1558) func (f RiskInstrumentMultiplierField) Tag() quickfix.Tag { return tag.RiskInstrumentMultiplier } -//NewRiskInstrumentMultiplier returns a new RiskInstrumentMultiplierField initialized with val -func NewRiskInstrumentMultiplier(val float64) RiskInstrumentMultiplierField { - return RiskInstrumentMultiplierField{quickfix.FIXFloat(val)} +//NewRiskInstrumentMultiplier returns a new RiskInstrumentMultiplierField initialized with val and scale +func NewRiskInstrumentMultiplier(val decimal.Decimal, scale int32) RiskInstrumentMultiplierField { + return RiskInstrumentMultiplierField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //RiskInstrumentOperatorField is a INT field @@ -13197,14 +13197,14 @@ func NewRiskInstrumentSettlType(val string) RiskInstrumentSettlTypeField { } //RiskLimitAmountField is a AMT field -type RiskLimitAmountField struct{ quickfix.FIXFloat } +type RiskLimitAmountField struct{ quickfix.FIXDecimal } //Tag returns tag.RiskLimitAmount (1531) func (f RiskLimitAmountField) Tag() quickfix.Tag { return tag.RiskLimitAmount } -//NewRiskLimitAmount returns a new RiskLimitAmountField initialized with val -func NewRiskLimitAmount(val float64) RiskLimitAmountField { - return RiskLimitAmountField{quickfix.FIXFloat(val)} +//NewRiskLimitAmount returns a new RiskLimitAmountField initialized with val and scale +func NewRiskLimitAmount(val decimal.Decimal, scale int32) RiskLimitAmountField { + return RiskLimitAmountField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //RiskLimitCurrencyField is a CURRENCY field @@ -13450,25 +13450,25 @@ func NewRiskWarningLevelName(val string) RiskWarningLevelNameField { } //RiskWarningLevelPercentField is a PERCENTAGE field -type RiskWarningLevelPercentField struct{ quickfix.FIXFloat } +type RiskWarningLevelPercentField struct{ quickfix.FIXDecimal } //Tag returns tag.RiskWarningLevelPercent (1560) func (f RiskWarningLevelPercentField) Tag() quickfix.Tag { return tag.RiskWarningLevelPercent } -//NewRiskWarningLevelPercent returns a new RiskWarningLevelPercentField initialized with val -func NewRiskWarningLevelPercent(val float64) RiskWarningLevelPercentField { - return RiskWarningLevelPercentField{quickfix.FIXFloat(val)} +//NewRiskWarningLevelPercent returns a new RiskWarningLevelPercentField initialized with val and scale +func NewRiskWarningLevelPercent(val decimal.Decimal, scale int32) RiskWarningLevelPercentField { + return RiskWarningLevelPercentField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //RndPxField is a PRICE field -type RndPxField struct{ quickfix.FIXFloat } +type RndPxField struct{ quickfix.FIXDecimal } //Tag returns tag.RndPx (991) func (f RndPxField) Tag() quickfix.Tag { return tag.RndPx } -//NewRndPx returns a new RndPxField initialized with val -func NewRndPx(val float64) RndPxField { - return RndPxField{quickfix.FIXFloat(val)} +//NewRndPx returns a new RndPxField initialized with val and scale +func NewRndPx(val decimal.Decimal, scale int32) RndPxField { + return RndPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //RootPartyIDField is a STRING field @@ -13527,14 +13527,14 @@ func NewRootPartySubIDType(val int) RootPartySubIDTypeField { } //RoundLotField is a QTY field -type RoundLotField struct{ quickfix.FIXFloat } +type RoundLotField struct{ quickfix.FIXDecimal } //Tag returns tag.RoundLot (561) func (f RoundLotField) Tag() quickfix.Tag { return tag.RoundLot } -//NewRoundLot returns a new RoundLotField initialized with val -func NewRoundLot(val float64) RoundLotField { - return RoundLotField{quickfix.FIXFloat(val)} +//NewRoundLot returns a new RoundLotField initialized with val and scale +func NewRoundLot(val decimal.Decimal, scale int32) RoundLotField { + return RoundLotField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //RoundingDirectionField is a CHAR field @@ -13549,14 +13549,14 @@ func NewRoundingDirection(val string) RoundingDirectionField { } //RoundingModulusField is a FLOAT field -type RoundingModulusField struct{ quickfix.FIXFloat } +type RoundingModulusField struct{ quickfix.FIXDecimal } //Tag returns tag.RoundingModulus (469) func (f RoundingModulusField) Tag() quickfix.Tag { return tag.RoundingModulus } -//NewRoundingModulus returns a new RoundingModulusField initialized with val -func NewRoundingModulus(val float64) RoundingModulusField { - return RoundingModulusField{quickfix.FIXFloat(val)} +//NewRoundingModulus returns a new RoundingModulusField initialized with val and scale +func NewRoundingModulus(val decimal.Decimal, scale int32) RoundingModulusField { + return RoundingModulusField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //RoutingIDField is a STRING field @@ -13659,14 +13659,14 @@ func NewSecondaryClOrdID(val string) SecondaryClOrdIDField { } //SecondaryDisplayQtyField is a QTY field -type SecondaryDisplayQtyField struct{ quickfix.FIXFloat } +type SecondaryDisplayQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.SecondaryDisplayQty (1082) func (f SecondaryDisplayQtyField) Tag() quickfix.Tag { return tag.SecondaryDisplayQty } -//NewSecondaryDisplayQty returns a new SecondaryDisplayQtyField initialized with val -func NewSecondaryDisplayQty(val float64) SecondaryDisplayQtyField { - return SecondaryDisplayQtyField{quickfix.FIXFloat(val)} +//NewSecondaryDisplayQty returns a new SecondaryDisplayQtyField initialized with val and scale +func NewSecondaryDisplayQty(val decimal.Decimal, scale int32) SecondaryDisplayQtyField { + return SecondaryDisplayQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //SecondaryExecIDField is a STRING field @@ -13692,14 +13692,14 @@ func NewSecondaryFirmTradeID(val string) SecondaryFirmTradeIDField { } //SecondaryHighLimitPriceField is a PRICE field -type SecondaryHighLimitPriceField struct{ quickfix.FIXFloat } +type SecondaryHighLimitPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.SecondaryHighLimitPrice (1230) func (f SecondaryHighLimitPriceField) Tag() quickfix.Tag { return tag.SecondaryHighLimitPrice } -//NewSecondaryHighLimitPrice returns a new SecondaryHighLimitPriceField initialized with val -func NewSecondaryHighLimitPrice(val float64) SecondaryHighLimitPriceField { - return SecondaryHighLimitPriceField{quickfix.FIXFloat(val)} +//NewSecondaryHighLimitPrice returns a new SecondaryHighLimitPriceField initialized with val and scale +func NewSecondaryHighLimitPrice(val decimal.Decimal, scale int32) SecondaryHighLimitPriceField { + return SecondaryHighLimitPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //SecondaryIndividualAllocIDField is a STRING field @@ -13714,14 +13714,14 @@ func NewSecondaryIndividualAllocID(val string) SecondaryIndividualAllocIDField { } //SecondaryLowLimitPriceField is a PRICE field -type SecondaryLowLimitPriceField struct{ quickfix.FIXFloat } +type SecondaryLowLimitPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.SecondaryLowLimitPrice (1221) func (f SecondaryLowLimitPriceField) Tag() quickfix.Tag { return tag.SecondaryLowLimitPrice } -//NewSecondaryLowLimitPrice returns a new SecondaryLowLimitPriceField initialized with val -func NewSecondaryLowLimitPrice(val float64) SecondaryLowLimitPriceField { - return SecondaryLowLimitPriceField{quickfix.FIXFloat(val)} +//NewSecondaryLowLimitPrice returns a new SecondaryLowLimitPriceField initialized with val and scale +func NewSecondaryLowLimitPrice(val decimal.Decimal, scale int32) SecondaryLowLimitPriceField { + return SecondaryLowLimitPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //SecondaryOrderIDField is a STRING field @@ -13780,16 +13780,16 @@ func NewSecondaryTradeReportRefID(val string) SecondaryTradeReportRefIDField { } //SecondaryTradingReferencePriceField is a PRICE field -type SecondaryTradingReferencePriceField struct{ quickfix.FIXFloat } +type SecondaryTradingReferencePriceField struct{ quickfix.FIXDecimal } //Tag returns tag.SecondaryTradingReferencePrice (1240) func (f SecondaryTradingReferencePriceField) Tag() quickfix.Tag { return tag.SecondaryTradingReferencePrice } -//NewSecondaryTradingReferencePrice returns a new SecondaryTradingReferencePriceField initialized with val -func NewSecondaryTradingReferencePrice(val float64) SecondaryTradingReferencePriceField { - return SecondaryTradingReferencePriceField{quickfix.FIXFloat(val)} +//NewSecondaryTradingReferencePrice returns a new SecondaryTradingReferencePriceField initialized with val and scale +func NewSecondaryTradingReferencePrice(val decimal.Decimal, scale int32) SecondaryTradingReferencePriceField { + return SecondaryTradingReferencePriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //SecondaryTrdTypeField is a INT field @@ -14215,14 +14215,14 @@ func NewSecurityXMLSchema(val string) SecurityXMLSchemaField { } //SellVolumeField is a QTY field -type SellVolumeField struct{ quickfix.FIXFloat } +type SellVolumeField struct{ quickfix.FIXDecimal } //Tag returns tag.SellVolume (331) func (f SellVolumeField) Tag() quickfix.Tag { return tag.SellVolume } -//NewSellVolume returns a new SellVolumeField initialized with val -func NewSellVolume(val float64) SellVolumeField { - return SellVolumeField{quickfix.FIXFloat(val)} +//NewSellVolume returns a new SellVolumeField initialized with val and scale +func NewSellVolume(val decimal.Decimal, scale int32) SellVolumeField { + return SellVolumeField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //SellerDaysField is a INT field @@ -14341,36 +14341,36 @@ func NewSettlBrkrCode(val string) SettlBrkrCodeField { } //SettlCurrAmtField is a AMT field -type SettlCurrAmtField struct{ quickfix.FIXFloat } +type SettlCurrAmtField struct{ quickfix.FIXDecimal } //Tag returns tag.SettlCurrAmt (119) func (f SettlCurrAmtField) Tag() quickfix.Tag { return tag.SettlCurrAmt } -//NewSettlCurrAmt returns a new SettlCurrAmtField initialized with val -func NewSettlCurrAmt(val float64) SettlCurrAmtField { - return SettlCurrAmtField{quickfix.FIXFloat(val)} +//NewSettlCurrAmt returns a new SettlCurrAmtField initialized with val and scale +func NewSettlCurrAmt(val decimal.Decimal, scale int32) SettlCurrAmtField { + return SettlCurrAmtField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //SettlCurrBidFxRateField is a FLOAT field -type SettlCurrBidFxRateField struct{ quickfix.FIXFloat } +type SettlCurrBidFxRateField struct{ quickfix.FIXDecimal } //Tag returns tag.SettlCurrBidFxRate (656) func (f SettlCurrBidFxRateField) Tag() quickfix.Tag { return tag.SettlCurrBidFxRate } -//NewSettlCurrBidFxRate returns a new SettlCurrBidFxRateField initialized with val -func NewSettlCurrBidFxRate(val float64) SettlCurrBidFxRateField { - return SettlCurrBidFxRateField{quickfix.FIXFloat(val)} +//NewSettlCurrBidFxRate returns a new SettlCurrBidFxRateField initialized with val and scale +func NewSettlCurrBidFxRate(val decimal.Decimal, scale int32) SettlCurrBidFxRateField { + return SettlCurrBidFxRateField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //SettlCurrFxRateField is a FLOAT field -type SettlCurrFxRateField struct{ quickfix.FIXFloat } +type SettlCurrFxRateField struct{ quickfix.FIXDecimal } //Tag returns tag.SettlCurrFxRate (155) func (f SettlCurrFxRateField) Tag() quickfix.Tag { return tag.SettlCurrFxRate } -//NewSettlCurrFxRate returns a new SettlCurrFxRateField initialized with val -func NewSettlCurrFxRate(val float64) SettlCurrFxRateField { - return SettlCurrFxRateField{quickfix.FIXFloat(val)} +//NewSettlCurrFxRate returns a new SettlCurrFxRateField initialized with val and scale +func NewSettlCurrFxRate(val decimal.Decimal, scale int32) SettlCurrFxRateField { + return SettlCurrFxRateField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //SettlCurrFxRateCalcField is a CHAR field @@ -14385,14 +14385,14 @@ func NewSettlCurrFxRateCalc(val string) SettlCurrFxRateCalcField { } //SettlCurrOfferFxRateField is a FLOAT field -type SettlCurrOfferFxRateField struct{ quickfix.FIXFloat } +type SettlCurrOfferFxRateField struct{ quickfix.FIXDecimal } //Tag returns tag.SettlCurrOfferFxRate (657) func (f SettlCurrOfferFxRateField) Tag() quickfix.Tag { return tag.SettlCurrOfferFxRate } -//NewSettlCurrOfferFxRate returns a new SettlCurrOfferFxRateField initialized with val -func NewSettlCurrOfferFxRate(val float64) SettlCurrOfferFxRateField { - return SettlCurrOfferFxRateField{quickfix.FIXFloat(val)} +//NewSettlCurrOfferFxRate returns a new SettlCurrOfferFxRateField initialized with val and scale +func NewSettlCurrOfferFxRate(val decimal.Decimal, scale int32) SettlCurrOfferFxRateField { + return SettlCurrOfferFxRateField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //SettlCurrencyField is a CURRENCY field @@ -14693,14 +14693,14 @@ func NewSettlPartySubIDType(val int) SettlPartySubIDTypeField { } //SettlPriceField is a PRICE field -type SettlPriceField struct{ quickfix.FIXFloat } +type SettlPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.SettlPrice (730) func (f SettlPriceField) Tag() quickfix.Tag { return tag.SettlPrice } -//NewSettlPrice returns a new SettlPriceField initialized with val -func NewSettlPrice(val float64) SettlPriceField { - return SettlPriceField{quickfix.FIXFloat(val)} +//NewSettlPrice returns a new SettlPriceField initialized with val and scale +func NewSettlPrice(val decimal.Decimal, scale int32) SettlPriceField { + return SettlPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //SettlPriceTypeField is a INT field @@ -14781,36 +14781,36 @@ func NewSettlmntTyp(val string) SettlmntTypField { } //SharedCommissionField is a AMT field -type SharedCommissionField struct{ quickfix.FIXFloat } +type SharedCommissionField struct{ quickfix.FIXDecimal } //Tag returns tag.SharedCommission (858) func (f SharedCommissionField) Tag() quickfix.Tag { return tag.SharedCommission } -//NewSharedCommission returns a new SharedCommissionField initialized with val -func NewSharedCommission(val float64) SharedCommissionField { - return SharedCommissionField{quickfix.FIXFloat(val)} +//NewSharedCommission returns a new SharedCommissionField initialized with val and scale +func NewSharedCommission(val decimal.Decimal, scale int32) SharedCommissionField { + return SharedCommissionField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //SharesField is a QTY field -type SharesField struct{ quickfix.FIXFloat } +type SharesField struct{ quickfix.FIXDecimal } //Tag returns tag.Shares (53) func (f SharesField) Tag() quickfix.Tag { return tag.Shares } -//NewShares returns a new SharesField initialized with val -func NewShares(val float64) SharesField { - return SharesField{quickfix.FIXFloat(val)} +//NewShares returns a new SharesField initialized with val and scale +func NewShares(val decimal.Decimal, scale int32) SharesField { + return SharesField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //ShortQtyField is a QTY field -type ShortQtyField struct{ quickfix.FIXFloat } +type ShortQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.ShortQty (705) func (f ShortQtyField) Tag() quickfix.Tag { return tag.ShortQty } -//NewShortQty returns a new ShortQtyField initialized with val -func NewShortQty(val float64) ShortQtyField { - return ShortQtyField{quickfix.FIXFloat(val)} +//NewShortQty returns a new ShortQtyField initialized with val and scale +func NewShortQty(val decimal.Decimal, scale int32) ShortQtyField { + return ShortQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //ShortSaleReasonField is a INT field @@ -14880,14 +14880,14 @@ func NewSideFillStationCd(val string) SideFillStationCdField { } //SideGrossTradeAmtField is a AMT field -type SideGrossTradeAmtField struct{ quickfix.FIXFloat } +type SideGrossTradeAmtField struct{ quickfix.FIXDecimal } //Tag returns tag.SideGrossTradeAmt (1072) func (f SideGrossTradeAmtField) Tag() quickfix.Tag { return tag.SideGrossTradeAmt } -//NewSideGrossTradeAmt returns a new SideGrossTradeAmtField initialized with val -func NewSideGrossTradeAmt(val float64) SideGrossTradeAmtField { - return SideGrossTradeAmtField{quickfix.FIXFloat(val)} +//NewSideGrossTradeAmt returns a new SideGrossTradeAmtField initialized with val and scale +func NewSideGrossTradeAmt(val decimal.Decimal, scale int32) SideGrossTradeAmtField { + return SideGrossTradeAmtField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //SideLastQtyField is a INT field @@ -15033,25 +15033,25 @@ func NewSideTrdSubTyp(val int) SideTrdSubTypField { } //SideValue1Field is a AMT field -type SideValue1Field struct{ quickfix.FIXFloat } +type SideValue1Field struct{ quickfix.FIXDecimal } //Tag returns tag.SideValue1 (396) func (f SideValue1Field) Tag() quickfix.Tag { return tag.SideValue1 } -//NewSideValue1 returns a new SideValue1Field initialized with val -func NewSideValue1(val float64) SideValue1Field { - return SideValue1Field{quickfix.FIXFloat(val)} +//NewSideValue1 returns a new SideValue1Field initialized with val and scale +func NewSideValue1(val decimal.Decimal, scale int32) SideValue1Field { + return SideValue1Field{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //SideValue2Field is a AMT field -type SideValue2Field struct{ quickfix.FIXFloat } +type SideValue2Field struct{ quickfix.FIXDecimal } //Tag returns tag.SideValue2 (397) func (f SideValue2Field) Tag() quickfix.Tag { return tag.SideValue2 } -//NewSideValue2 returns a new SideValue2Field initialized with val -func NewSideValue2(val float64) SideValue2Field { - return SideValue2Field{quickfix.FIXFloat(val)} +//NewSideValue2 returns a new SideValue2Field initialized with val and scale +func NewSideValue2(val decimal.Decimal, scale int32) SideValue2Field { + return SideValue2Field{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //SideValueIndField is a INT field @@ -15099,25 +15099,25 @@ func NewSolicitedFlag(val bool) SolicitedFlagField { } //SpreadField is a PRICEOFFSET field -type SpreadField struct{ quickfix.FIXFloat } +type SpreadField struct{ quickfix.FIXDecimal } //Tag returns tag.Spread (218) func (f SpreadField) Tag() quickfix.Tag { return tag.Spread } -//NewSpread returns a new SpreadField initialized with val -func NewSpread(val float64) SpreadField { - return SpreadField{quickfix.FIXFloat(val)} +//NewSpread returns a new SpreadField initialized with val and scale +func NewSpread(val decimal.Decimal, scale int32) SpreadField { + return SpreadField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //SpreadToBenchmarkField is a PRICEOFFSET field -type SpreadToBenchmarkField struct{ quickfix.FIXFloat } +type SpreadToBenchmarkField struct{ quickfix.FIXDecimal } //Tag returns tag.SpreadToBenchmark (218) func (f SpreadToBenchmarkField) Tag() quickfix.Tag { return tag.SpreadToBenchmark } -//NewSpreadToBenchmark returns a new SpreadToBenchmarkField initialized with val -func NewSpreadToBenchmark(val float64) SpreadToBenchmarkField { - return SpreadToBenchmarkField{quickfix.FIXFloat(val)} +//NewSpreadToBenchmark returns a new SpreadToBenchmarkField initialized with val and scale +func NewSpreadToBenchmark(val decimal.Decimal, scale int32) SpreadToBenchmarkField { + return SpreadToBenchmarkField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //StandInstDbIDField is a STRING field @@ -15154,14 +15154,14 @@ func NewStandInstDbType(val int) StandInstDbTypeField { } //StartCashField is a AMT field -type StartCashField struct{ quickfix.FIXFloat } +type StartCashField struct{ quickfix.FIXDecimal } //Tag returns tag.StartCash (921) func (f StartCashField) Tag() quickfix.Tag { return tag.StartCash } -//NewStartCash returns a new StartCashField initialized with val -func NewStartCash(val float64) StartCashField { - return StartCashField{quickfix.FIXFloat(val)} +//NewStartCash returns a new StartCashField initialized with val and scale +func NewStartCash(val decimal.Decimal, scale int32) StartCashField { + return StartCashField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //StartDateField is a LOCALMKTDATE field @@ -15187,25 +15187,25 @@ func NewStartMaturityMonthYear(val string) StartMaturityMonthYearField { } //StartStrikePxRangeField is a PRICE field -type StartStrikePxRangeField struct{ quickfix.FIXFloat } +type StartStrikePxRangeField struct{ quickfix.FIXDecimal } //Tag returns tag.StartStrikePxRange (1202) func (f StartStrikePxRangeField) Tag() quickfix.Tag { return tag.StartStrikePxRange } -//NewStartStrikePxRange returns a new StartStrikePxRangeField initialized with val -func NewStartStrikePxRange(val float64) StartStrikePxRangeField { - return StartStrikePxRangeField{quickfix.FIXFloat(val)} +//NewStartStrikePxRange returns a new StartStrikePxRangeField initialized with val and scale +func NewStartStrikePxRange(val decimal.Decimal, scale int32) StartStrikePxRangeField { + return StartStrikePxRangeField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //StartTickPriceRangeField is a PRICE field -type StartTickPriceRangeField struct{ quickfix.FIXFloat } +type StartTickPriceRangeField struct{ quickfix.FIXDecimal } //Tag returns tag.StartTickPriceRange (1206) func (f StartTickPriceRangeField) Tag() quickfix.Tag { return tag.StartTickPriceRange } -//NewStartTickPriceRange returns a new StartTickPriceRangeField initialized with val -func NewStartTickPriceRange(val float64) StartTickPriceRangeField { - return StartTickPriceRangeField{quickfix.FIXFloat(val)} +//NewStartTickPriceRange returns a new StartTickPriceRangeField initialized with val and scale +func NewStartTickPriceRange(val decimal.Decimal, scale int32) StartTickPriceRangeField { + return StartTickPriceRangeField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //StateOrProvinceOfIssueField is a STRING field @@ -15275,14 +15275,14 @@ func NewStipulationValue(val string) StipulationValueField { } //StopPxField is a PRICE field -type StopPxField struct{ quickfix.FIXFloat } +type StopPxField struct{ quickfix.FIXDecimal } //Tag returns tag.StopPx (99) func (f StopPxField) Tag() quickfix.Tag { return tag.StopPx } -//NewStopPx returns a new StopPxField initialized with val -func NewStopPx(val float64) StopPxField { - return StopPxField{quickfix.FIXFloat(val)} +//NewStopPx returns a new StopPxField initialized with val and scale +func NewStopPx(val decimal.Decimal, scale int32) StopPxField { + return StopPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //StrategyParameterNameField is a STRING field @@ -15407,36 +15407,36 @@ func NewStrikeExerciseStyle(val int) StrikeExerciseStyleField { } //StrikeIncrementField is a FLOAT field -type StrikeIncrementField struct{ quickfix.FIXFloat } +type StrikeIncrementField struct{ quickfix.FIXDecimal } //Tag returns tag.StrikeIncrement (1204) func (f StrikeIncrementField) Tag() quickfix.Tag { return tag.StrikeIncrement } -//NewStrikeIncrement returns a new StrikeIncrementField initialized with val -func NewStrikeIncrement(val float64) StrikeIncrementField { - return StrikeIncrementField{quickfix.FIXFloat(val)} +//NewStrikeIncrement returns a new StrikeIncrementField initialized with val and scale +func NewStrikeIncrement(val decimal.Decimal, scale int32) StrikeIncrementField { + return StrikeIncrementField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //StrikeMultiplierField is a FLOAT field -type StrikeMultiplierField struct{ quickfix.FIXFloat } +type StrikeMultiplierField struct{ quickfix.FIXDecimal } //Tag returns tag.StrikeMultiplier (967) func (f StrikeMultiplierField) Tag() quickfix.Tag { return tag.StrikeMultiplier } -//NewStrikeMultiplier returns a new StrikeMultiplierField initialized with val -func NewStrikeMultiplier(val float64) StrikeMultiplierField { - return StrikeMultiplierField{quickfix.FIXFloat(val)} +//NewStrikeMultiplier returns a new StrikeMultiplierField initialized with val and scale +func NewStrikeMultiplier(val decimal.Decimal, scale int32) StrikeMultiplierField { + return StrikeMultiplierField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //StrikePriceField is a PRICE field -type StrikePriceField struct{ quickfix.FIXFloat } +type StrikePriceField struct{ quickfix.FIXDecimal } //Tag returns tag.StrikePrice (202) func (f StrikePriceField) Tag() quickfix.Tag { return tag.StrikePrice } -//NewStrikePrice returns a new StrikePriceField initialized with val -func NewStrikePrice(val float64) StrikePriceField { - return StrikePriceField{quickfix.FIXFloat(val)} +//NewStrikePrice returns a new StrikePriceField initialized with val and scale +func NewStrikePrice(val decimal.Decimal, scale int32) StrikePriceField { + return StrikePriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //StrikePriceBoundaryMethodField is a INT field @@ -15451,14 +15451,14 @@ func NewStrikePriceBoundaryMethod(val int) StrikePriceBoundaryMethodField { } //StrikePriceBoundaryPrecisionField is a PERCENTAGE field -type StrikePriceBoundaryPrecisionField struct{ quickfix.FIXFloat } +type StrikePriceBoundaryPrecisionField struct{ quickfix.FIXDecimal } //Tag returns tag.StrikePriceBoundaryPrecision (1480) func (f StrikePriceBoundaryPrecisionField) Tag() quickfix.Tag { return tag.StrikePriceBoundaryPrecision } -//NewStrikePriceBoundaryPrecision returns a new StrikePriceBoundaryPrecisionField initialized with val -func NewStrikePriceBoundaryPrecision(val float64) StrikePriceBoundaryPrecisionField { - return StrikePriceBoundaryPrecisionField{quickfix.FIXFloat(val)} +//NewStrikePriceBoundaryPrecision returns a new StrikePriceBoundaryPrecisionField initialized with val and scale +func NewStrikePriceBoundaryPrecision(val decimal.Decimal, scale int32) StrikePriceBoundaryPrecisionField { + return StrikePriceBoundaryPrecisionField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //StrikePriceDeterminationMethodField is a INT field @@ -15502,14 +15502,14 @@ func NewStrikeTimeNoMillis(val time.Time) StrikeTimeField { } //StrikeValueField is a FLOAT field -type StrikeValueField struct{ quickfix.FIXFloat } +type StrikeValueField struct{ quickfix.FIXDecimal } //Tag returns tag.StrikeValue (968) func (f StrikeValueField) Tag() quickfix.Tag { return tag.StrikeValue } -//NewStrikeValue returns a new StrikeValueField initialized with val -func NewStrikeValue(val float64) StrikeValueField { - return StrikeValueField{quickfix.FIXFloat(val)} +//NewStrikeValue returns a new StrikeValueField initialized with val and scale +func NewStrikeValue(val decimal.Decimal, scale int32) StrikeValueField { + return StrikeValueField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //SubjectField is a STRING field @@ -15535,14 +15535,14 @@ func NewSubscriptionRequestType(val string) SubscriptionRequestTypeField { } //SwapPointsField is a PRICEOFFSET field -type SwapPointsField struct{ quickfix.FIXFloat } +type SwapPointsField struct{ quickfix.FIXDecimal } //Tag returns tag.SwapPoints (1069) func (f SwapPointsField) Tag() quickfix.Tag { return tag.SwapPoints } -//NewSwapPoints returns a new SwapPointsField initialized with val -func NewSwapPoints(val float64) SwapPointsField { - return SwapPointsField{quickfix.FIXFloat(val)} +//NewSwapPoints returns a new SwapPointsField initialized with val and scale +func NewSwapPoints(val decimal.Decimal, scale int32) SwapPointsField { + return SwapPointsField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //SymbolField is a STRING field @@ -15656,14 +15656,14 @@ func NewTargetStrategyParameters(val string) TargetStrategyParametersField { } //TargetStrategyPerformanceField is a FLOAT field -type TargetStrategyPerformanceField struct{ quickfix.FIXFloat } +type TargetStrategyPerformanceField struct{ quickfix.FIXDecimal } //Tag returns tag.TargetStrategyPerformance (850) func (f TargetStrategyPerformanceField) Tag() quickfix.Tag { return tag.TargetStrategyPerformance } -//NewTargetStrategyPerformance returns a new TargetStrategyPerformanceField initialized with val -func NewTargetStrategyPerformance(val float64) TargetStrategyPerformanceField { - return TargetStrategyPerformanceField{quickfix.FIXFloat(val)} +//NewTargetStrategyPerformance returns a new TargetStrategyPerformanceField initialized with val and scale +func NewTargetStrategyPerformance(val decimal.Decimal, scale int32) TargetStrategyPerformanceField { + return TargetStrategyPerformanceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //TargetSubIDField is a STRING field @@ -15733,14 +15733,14 @@ func NewText(val string) TextField { } //ThresholdAmountField is a PRICEOFFSET field -type ThresholdAmountField struct{ quickfix.FIXFloat } +type ThresholdAmountField struct{ quickfix.FIXDecimal } //Tag returns tag.ThresholdAmount (834) func (f ThresholdAmountField) Tag() quickfix.Tag { return tag.ThresholdAmount } -//NewThresholdAmount returns a new ThresholdAmountField initialized with val -func NewThresholdAmount(val float64) ThresholdAmountField { - return ThresholdAmountField{quickfix.FIXFloat(val)} +//NewThresholdAmount returns a new ThresholdAmountField initialized with val and scale +func NewThresholdAmount(val decimal.Decimal, scale int32) ThresholdAmountField { + return ThresholdAmountField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //TickDirectionField is a CHAR field @@ -15755,14 +15755,14 @@ func NewTickDirection(val string) TickDirectionField { } //TickIncrementField is a PRICE field -type TickIncrementField struct{ quickfix.FIXFloat } +type TickIncrementField struct{ quickfix.FIXDecimal } //Tag returns tag.TickIncrement (1208) func (f TickIncrementField) Tag() quickfix.Tag { return tag.TickIncrement } -//NewTickIncrement returns a new TickIncrementField initialized with val -func NewTickIncrement(val float64) TickIncrementField { - return TickIncrementField{quickfix.FIXFloat(val)} +//NewTickIncrement returns a new TickIncrementField initialized with val and scale +func NewTickIncrement(val decimal.Decimal, scale int32) TickIncrementField { + return TickIncrementField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //TickRuleTypeField is a INT field @@ -15810,14 +15810,14 @@ func NewTimeInForce(val string) TimeInForceField { } //TimeToExpirationField is a FLOAT field -type TimeToExpirationField struct{ quickfix.FIXFloat } +type TimeToExpirationField struct{ quickfix.FIXDecimal } //Tag returns tag.TimeToExpiration (1189) func (f TimeToExpirationField) Tag() quickfix.Tag { return tag.TimeToExpiration } -//NewTimeToExpiration returns a new TimeToExpirationField initialized with val -func NewTimeToExpiration(val float64) TimeToExpirationField { - return TimeToExpirationField{quickfix.FIXFloat(val)} +//NewTimeToExpiration returns a new TimeToExpirationField initialized with val and scale +func NewTimeToExpiration(val decimal.Decimal, scale int32) TimeToExpirationField { + return TimeToExpirationField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //TimeUnitField is a STRING field @@ -15997,14 +15997,14 @@ func NewTotQuoteEntries(val int) TotQuoteEntriesField { } //TotalAccruedInterestAmtField is a AMT field -type TotalAccruedInterestAmtField struct{ quickfix.FIXFloat } +type TotalAccruedInterestAmtField struct{ quickfix.FIXDecimal } //Tag returns tag.TotalAccruedInterestAmt (540) func (f TotalAccruedInterestAmtField) Tag() quickfix.Tag { return tag.TotalAccruedInterestAmt } -//NewTotalAccruedInterestAmt returns a new TotalAccruedInterestAmtField initialized with val -func NewTotalAccruedInterestAmt(val float64) TotalAccruedInterestAmtField { - return TotalAccruedInterestAmtField{quickfix.FIXFloat(val)} +//NewTotalAccruedInterestAmt returns a new TotalAccruedInterestAmtField initialized with val and scale +func NewTotalAccruedInterestAmt(val decimal.Decimal, scale int32) TotalAccruedInterestAmtField { + return TotalAccruedInterestAmtField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //TotalAffectedOrdersField is a INT field @@ -16019,14 +16019,14 @@ func NewTotalAffectedOrders(val int) TotalAffectedOrdersField { } //TotalNetValueField is a AMT field -type TotalNetValueField struct{ quickfix.FIXFloat } +type TotalNetValueField struct{ quickfix.FIXDecimal } //Tag returns tag.TotalNetValue (900) func (f TotalNetValueField) Tag() quickfix.Tag { return tag.TotalNetValue } -//NewTotalNetValue returns a new TotalNetValueField initialized with val -func NewTotalNetValue(val float64) TotalNetValueField { - return TotalNetValueField{quickfix.FIXFloat(val)} +//NewTotalNetValue returns a new TotalNetValueField initialized with val and scale +func NewTotalNetValue(val decimal.Decimal, scale int32) TotalNetValueField { + return TotalNetValueField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //TotalNumPosReportsField is a INT field @@ -16063,25 +16063,25 @@ func NewTotalNumSecurityTypes(val int) TotalNumSecurityTypesField { } //TotalTakedownField is a AMT field -type TotalTakedownField struct{ quickfix.FIXFloat } +type TotalTakedownField struct{ quickfix.FIXDecimal } //Tag returns tag.TotalTakedown (237) func (f TotalTakedownField) Tag() quickfix.Tag { return tag.TotalTakedown } -//NewTotalTakedown returns a new TotalTakedownField initialized with val -func NewTotalTakedown(val float64) TotalTakedownField { - return TotalTakedownField{quickfix.FIXFloat(val)} +//NewTotalTakedown returns a new TotalTakedownField initialized with val and scale +func NewTotalTakedown(val decimal.Decimal, scale int32) TotalTakedownField { + return TotalTakedownField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //TotalVolumeTradedField is a QTY field -type TotalVolumeTradedField struct{ quickfix.FIXFloat } +type TotalVolumeTradedField struct{ quickfix.FIXDecimal } //Tag returns tag.TotalVolumeTraded (387) func (f TotalVolumeTradedField) Tag() quickfix.Tag { return tag.TotalVolumeTraded } -//NewTotalVolumeTraded returns a new TotalVolumeTradedField initialized with val -func NewTotalVolumeTraded(val float64) TotalVolumeTradedField { - return TotalVolumeTradedField{quickfix.FIXFloat(val)} +//NewTotalVolumeTraded returns a new TotalVolumeTradedField initialized with val and scale +func NewTotalVolumeTraded(val decimal.Decimal, scale int32) TotalVolumeTradedField { + return TotalVolumeTradedField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //TotalVolumeTradedDateField is a UTCDATEONLY field @@ -16495,14 +16495,14 @@ func NewTradeType(val string) TradeTypeField { } //TradeVolumeField is a QTY field -type TradeVolumeField struct{ quickfix.FIXFloat } +type TradeVolumeField struct{ quickfix.FIXDecimal } //Tag returns tag.TradeVolume (1020) func (f TradeVolumeField) Tag() quickfix.Tag { return tag.TradeVolume } -//NewTradeVolume returns a new TradeVolumeField initialized with val -func NewTradeVolume(val float64) TradeVolumeField { - return TradeVolumeField{quickfix.FIXFloat(val)} +//NewTradeVolume returns a new TradeVolumeField initialized with val and scale +func NewTradeVolume(val decimal.Decimal, scale int32) TradeVolumeField { + return TradeVolumeField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //TradedFlatSwitchField is a BOOLEAN field @@ -16528,14 +16528,14 @@ func NewTradingCurrency(val string) TradingCurrencyField { } //TradingReferencePriceField is a PRICE field -type TradingReferencePriceField struct{ quickfix.FIXFloat } +type TradingReferencePriceField struct{ quickfix.FIXDecimal } //Tag returns tag.TradingReferencePrice (1150) func (f TradingReferencePriceField) Tag() quickfix.Tag { return tag.TradingReferencePrice } -//NewTradingReferencePrice returns a new TradingReferencePriceField initialized with val -func NewTradingReferencePrice(val float64) TradingReferencePriceField { - return TradingReferencePriceField{quickfix.FIXFloat(val)} +//NewTradingReferencePrice returns a new TradingReferencePriceField initialized with val and scale +func NewTradingReferencePrice(val decimal.Decimal, scale int32) TradingReferencePriceField { + return TradingReferencePriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //TradingSessionDescField is a STRING field @@ -16730,25 +16730,25 @@ func NewTriggerAction(val string) TriggerActionField { } //TriggerNewPriceField is a PRICE field -type TriggerNewPriceField struct{ quickfix.FIXFloat } +type TriggerNewPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.TriggerNewPrice (1110) func (f TriggerNewPriceField) Tag() quickfix.Tag { return tag.TriggerNewPrice } -//NewTriggerNewPrice returns a new TriggerNewPriceField initialized with val -func NewTriggerNewPrice(val float64) TriggerNewPriceField { - return TriggerNewPriceField{quickfix.FIXFloat(val)} +//NewTriggerNewPrice returns a new TriggerNewPriceField initialized with val and scale +func NewTriggerNewPrice(val decimal.Decimal, scale int32) TriggerNewPriceField { + return TriggerNewPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //TriggerNewQtyField is a QTY field -type TriggerNewQtyField struct{ quickfix.FIXFloat } +type TriggerNewQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.TriggerNewQty (1112) func (f TriggerNewQtyField) Tag() quickfix.Tag { return tag.TriggerNewQty } -//NewTriggerNewQty returns a new TriggerNewQtyField initialized with val -func NewTriggerNewQty(val float64) TriggerNewQtyField { - return TriggerNewQtyField{quickfix.FIXFloat(val)} +//NewTriggerNewQty returns a new TriggerNewQtyField initialized with val and scale +func NewTriggerNewQty(val decimal.Decimal, scale int32) TriggerNewQtyField { + return TriggerNewQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //TriggerOrderTypeField is a CHAR field @@ -16763,14 +16763,14 @@ func NewTriggerOrderType(val string) TriggerOrderTypeField { } //TriggerPriceField is a PRICE field -type TriggerPriceField struct{ quickfix.FIXFloat } +type TriggerPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.TriggerPrice (1102) func (f TriggerPriceField) Tag() quickfix.Tag { return tag.TriggerPrice } -//NewTriggerPrice returns a new TriggerPriceField initialized with val -func NewTriggerPrice(val float64) TriggerPriceField { - return TriggerPriceField{quickfix.FIXFloat(val)} +//NewTriggerPrice returns a new TriggerPriceField initialized with val and scale +func NewTriggerPrice(val decimal.Decimal, scale int32) TriggerPriceField { + return TriggerPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //TriggerPriceDirectionField is a CHAR field @@ -16895,36 +16895,36 @@ func NewURLLink(val string) URLLinkField { } //UnderlyingAdjustedQuantityField is a QTY field -type UnderlyingAdjustedQuantityField struct{ quickfix.FIXFloat } +type UnderlyingAdjustedQuantityField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingAdjustedQuantity (1044) func (f UnderlyingAdjustedQuantityField) Tag() quickfix.Tag { return tag.UnderlyingAdjustedQuantity } -//NewUnderlyingAdjustedQuantity returns a new UnderlyingAdjustedQuantityField initialized with val -func NewUnderlyingAdjustedQuantity(val float64) UnderlyingAdjustedQuantityField { - return UnderlyingAdjustedQuantityField{quickfix.FIXFloat(val)} +//NewUnderlyingAdjustedQuantity returns a new UnderlyingAdjustedQuantityField initialized with val and scale +func NewUnderlyingAdjustedQuantity(val decimal.Decimal, scale int32) UnderlyingAdjustedQuantityField { + return UnderlyingAdjustedQuantityField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingAllocationPercentField is a PERCENTAGE field -type UnderlyingAllocationPercentField struct{ quickfix.FIXFloat } +type UnderlyingAllocationPercentField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingAllocationPercent (972) func (f UnderlyingAllocationPercentField) Tag() quickfix.Tag { return tag.UnderlyingAllocationPercent } -//NewUnderlyingAllocationPercent returns a new UnderlyingAllocationPercentField initialized with val -func NewUnderlyingAllocationPercent(val float64) UnderlyingAllocationPercentField { - return UnderlyingAllocationPercentField{quickfix.FIXFloat(val)} +//NewUnderlyingAllocationPercent returns a new UnderlyingAllocationPercentField initialized with val and scale +func NewUnderlyingAllocationPercent(val decimal.Decimal, scale int32) UnderlyingAllocationPercentField { + return UnderlyingAllocationPercentField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingAttachmentPointField is a PERCENTAGE field -type UnderlyingAttachmentPointField struct{ quickfix.FIXFloat } +type UnderlyingAttachmentPointField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingAttachmentPoint (1459) func (f UnderlyingAttachmentPointField) Tag() quickfix.Tag { return tag.UnderlyingAttachmentPoint } -//NewUnderlyingAttachmentPoint returns a new UnderlyingAttachmentPointField initialized with val -func NewUnderlyingAttachmentPoint(val float64) UnderlyingAttachmentPointField { - return UnderlyingAttachmentPointField{quickfix.FIXFloat(val)} +//NewUnderlyingAttachmentPoint returns a new UnderlyingAttachmentPointField initialized with val and scale +func NewUnderlyingAttachmentPoint(val decimal.Decimal, scale int32) UnderlyingAttachmentPointField { + return UnderlyingAttachmentPointField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingCFICodeField is a STRING field @@ -16961,25 +16961,25 @@ func NewUnderlyingCPRegType(val string) UnderlyingCPRegTypeField { } //UnderlyingCapValueField is a AMT field -type UnderlyingCapValueField struct{ quickfix.FIXFloat } +type UnderlyingCapValueField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingCapValue (1038) func (f UnderlyingCapValueField) Tag() quickfix.Tag { return tag.UnderlyingCapValue } -//NewUnderlyingCapValue returns a new UnderlyingCapValueField initialized with val -func NewUnderlyingCapValue(val float64) UnderlyingCapValueField { - return UnderlyingCapValueField{quickfix.FIXFloat(val)} +//NewUnderlyingCapValue returns a new UnderlyingCapValueField initialized with val and scale +func NewUnderlyingCapValue(val decimal.Decimal, scale int32) UnderlyingCapValueField { + return UnderlyingCapValueField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingCashAmountField is a AMT field -type UnderlyingCashAmountField struct{ quickfix.FIXFloat } +type UnderlyingCashAmountField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingCashAmount (973) func (f UnderlyingCashAmountField) Tag() quickfix.Tag { return tag.UnderlyingCashAmount } -//NewUnderlyingCashAmount returns a new UnderlyingCashAmountField initialized with val -func NewUnderlyingCashAmount(val float64) UnderlyingCashAmountField { - return UnderlyingCashAmountField{quickfix.FIXFloat(val)} +//NewUnderlyingCashAmount returns a new UnderlyingCashAmountField initialized with val and scale +func NewUnderlyingCashAmount(val decimal.Decimal, scale int32) UnderlyingCashAmountField { + return UnderlyingCashAmountField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingCashTypeField is a STRING field @@ -16994,25 +16994,25 @@ func NewUnderlyingCashType(val string) UnderlyingCashTypeField { } //UnderlyingCollectAmountField is a AMT field -type UnderlyingCollectAmountField struct{ quickfix.FIXFloat } +type UnderlyingCollectAmountField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingCollectAmount (986) func (f UnderlyingCollectAmountField) Tag() quickfix.Tag { return tag.UnderlyingCollectAmount } -//NewUnderlyingCollectAmount returns a new UnderlyingCollectAmountField initialized with val -func NewUnderlyingCollectAmount(val float64) UnderlyingCollectAmountField { - return UnderlyingCollectAmountField{quickfix.FIXFloat(val)} +//NewUnderlyingCollectAmount returns a new UnderlyingCollectAmountField initialized with val and scale +func NewUnderlyingCollectAmount(val decimal.Decimal, scale int32) UnderlyingCollectAmountField { + return UnderlyingCollectAmountField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingContractMultiplierField is a FLOAT field -type UnderlyingContractMultiplierField struct{ quickfix.FIXFloat } +type UnderlyingContractMultiplierField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingContractMultiplier (436) func (f UnderlyingContractMultiplierField) Tag() quickfix.Tag { return tag.UnderlyingContractMultiplier } -//NewUnderlyingContractMultiplier returns a new UnderlyingContractMultiplierField initialized with val -func NewUnderlyingContractMultiplier(val float64) UnderlyingContractMultiplierField { - return UnderlyingContractMultiplierField{quickfix.FIXFloat(val)} +//NewUnderlyingContractMultiplier returns a new UnderlyingContractMultiplierField initialized with val and scale +func NewUnderlyingContractMultiplier(val decimal.Decimal, scale int32) UnderlyingContractMultiplierField { + return UnderlyingContractMultiplierField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingContractMultiplierUnitField is a INT field @@ -17051,14 +17051,14 @@ func NewUnderlyingCouponPaymentDate(val string) UnderlyingCouponPaymentDateField } //UnderlyingCouponRateField is a PERCENTAGE field -type UnderlyingCouponRateField struct{ quickfix.FIXFloat } +type UnderlyingCouponRateField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingCouponRate (435) func (f UnderlyingCouponRateField) Tag() quickfix.Tag { return tag.UnderlyingCouponRate } -//NewUnderlyingCouponRate returns a new UnderlyingCouponRateField initialized with val -func NewUnderlyingCouponRate(val float64) UnderlyingCouponRateField { - return UnderlyingCouponRateField{quickfix.FIXFloat(val)} +//NewUnderlyingCouponRate returns a new UnderlyingCouponRateField initialized with val and scale +func NewUnderlyingCouponRate(val decimal.Decimal, scale int32) UnderlyingCouponRateField { + return UnderlyingCouponRateField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingCreditRatingField is a STRING field @@ -17084,69 +17084,69 @@ func NewUnderlyingCurrency(val string) UnderlyingCurrencyField { } //UnderlyingCurrentValueField is a AMT field -type UnderlyingCurrentValueField struct{ quickfix.FIXFloat } +type UnderlyingCurrentValueField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingCurrentValue (885) func (f UnderlyingCurrentValueField) Tag() quickfix.Tag { return tag.UnderlyingCurrentValue } -//NewUnderlyingCurrentValue returns a new UnderlyingCurrentValueField initialized with val -func NewUnderlyingCurrentValue(val float64) UnderlyingCurrentValueField { - return UnderlyingCurrentValueField{quickfix.FIXFloat(val)} +//NewUnderlyingCurrentValue returns a new UnderlyingCurrentValueField initialized with val and scale +func NewUnderlyingCurrentValue(val decimal.Decimal, scale int32) UnderlyingCurrentValueField { + return UnderlyingCurrentValueField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingDeliveryAmountField is a AMT field -type UnderlyingDeliveryAmountField struct{ quickfix.FIXFloat } +type UnderlyingDeliveryAmountField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingDeliveryAmount (1037) func (f UnderlyingDeliveryAmountField) Tag() quickfix.Tag { return tag.UnderlyingDeliveryAmount } -//NewUnderlyingDeliveryAmount returns a new UnderlyingDeliveryAmountField initialized with val -func NewUnderlyingDeliveryAmount(val float64) UnderlyingDeliveryAmountField { - return UnderlyingDeliveryAmountField{quickfix.FIXFloat(val)} +//NewUnderlyingDeliveryAmount returns a new UnderlyingDeliveryAmountField initialized with val and scale +func NewUnderlyingDeliveryAmount(val decimal.Decimal, scale int32) UnderlyingDeliveryAmountField { + return UnderlyingDeliveryAmountField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingDetachmentPointField is a PERCENTAGE field -type UnderlyingDetachmentPointField struct{ quickfix.FIXFloat } +type UnderlyingDetachmentPointField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingDetachmentPoint (1460) func (f UnderlyingDetachmentPointField) Tag() quickfix.Tag { return tag.UnderlyingDetachmentPoint } -//NewUnderlyingDetachmentPoint returns a new UnderlyingDetachmentPointField initialized with val -func NewUnderlyingDetachmentPoint(val float64) UnderlyingDetachmentPointField { - return UnderlyingDetachmentPointField{quickfix.FIXFloat(val)} +//NewUnderlyingDetachmentPoint returns a new UnderlyingDetachmentPointField initialized with val and scale +func NewUnderlyingDetachmentPoint(val decimal.Decimal, scale int32) UnderlyingDetachmentPointField { + return UnderlyingDetachmentPointField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingDirtyPriceField is a PRICE field -type UnderlyingDirtyPriceField struct{ quickfix.FIXFloat } +type UnderlyingDirtyPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingDirtyPrice (882) func (f UnderlyingDirtyPriceField) Tag() quickfix.Tag { return tag.UnderlyingDirtyPrice } -//NewUnderlyingDirtyPrice returns a new UnderlyingDirtyPriceField initialized with val -func NewUnderlyingDirtyPrice(val float64) UnderlyingDirtyPriceField { - return UnderlyingDirtyPriceField{quickfix.FIXFloat(val)} +//NewUnderlyingDirtyPrice returns a new UnderlyingDirtyPriceField initialized with val and scale +func NewUnderlyingDirtyPrice(val decimal.Decimal, scale int32) UnderlyingDirtyPriceField { + return UnderlyingDirtyPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingEndPriceField is a PRICE field -type UnderlyingEndPriceField struct{ quickfix.FIXFloat } +type UnderlyingEndPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingEndPrice (883) func (f UnderlyingEndPriceField) Tag() quickfix.Tag { return tag.UnderlyingEndPrice } -//NewUnderlyingEndPrice returns a new UnderlyingEndPriceField initialized with val -func NewUnderlyingEndPrice(val float64) UnderlyingEndPriceField { - return UnderlyingEndPriceField{quickfix.FIXFloat(val)} +//NewUnderlyingEndPrice returns a new UnderlyingEndPriceField initialized with val and scale +func NewUnderlyingEndPrice(val decimal.Decimal, scale int32) UnderlyingEndPriceField { + return UnderlyingEndPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingEndValueField is a AMT field -type UnderlyingEndValueField struct{ quickfix.FIXFloat } +type UnderlyingEndValueField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingEndValue (886) func (f UnderlyingEndValueField) Tag() quickfix.Tag { return tag.UnderlyingEndValue } -//NewUnderlyingEndValue returns a new UnderlyingEndValueField initialized with val -func NewUnderlyingEndValue(val float64) UnderlyingEndValueField { - return UnderlyingEndValueField{quickfix.FIXFloat(val)} +//NewUnderlyingEndValue returns a new UnderlyingEndValueField initialized with val and scale +func NewUnderlyingEndValue(val decimal.Decimal, scale int32) UnderlyingEndValueField { + return UnderlyingEndValueField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingExerciseStyleField is a INT field @@ -17161,14 +17161,14 @@ func NewUnderlyingExerciseStyle(val int) UnderlyingExerciseStyleField { } //UnderlyingFXRateField is a FLOAT field -type UnderlyingFXRateField struct{ quickfix.FIXFloat } +type UnderlyingFXRateField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingFXRate (1045) func (f UnderlyingFXRateField) Tag() quickfix.Tag { return tag.UnderlyingFXRate } -//NewUnderlyingFXRate returns a new UnderlyingFXRateField initialized with val -func NewUnderlyingFXRate(val float64) UnderlyingFXRateField { - return UnderlyingFXRateField{quickfix.FIXFloat(val)} +//NewUnderlyingFXRate returns a new UnderlyingFXRateField initialized with val and scale +func NewUnderlyingFXRate(val decimal.Decimal, scale int32) UnderlyingFXRateField { + return UnderlyingFXRateField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingFXRateCalcField is a CHAR field @@ -17183,14 +17183,14 @@ func NewUnderlyingFXRateCalc(val string) UnderlyingFXRateCalcField { } //UnderlyingFactorField is a FLOAT field -type UnderlyingFactorField struct{ quickfix.FIXFloat } +type UnderlyingFactorField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingFactor (246) func (f UnderlyingFactorField) Tag() quickfix.Tag { return tag.UnderlyingFactor } -//NewUnderlyingFactor returns a new UnderlyingFactorField initialized with val -func NewUnderlyingFactor(val float64) UnderlyingFactorField { - return UnderlyingFactorField{quickfix.FIXFloat(val)} +//NewUnderlyingFactor returns a new UnderlyingFactorField initialized with val and scale +func NewUnderlyingFactor(val decimal.Decimal, scale int32) UnderlyingFactorField { + return UnderlyingFactorField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingFlowScheduleTypeField is a INT field @@ -17312,25 +17312,25 @@ func NewUnderlyingIssuer(val string) UnderlyingIssuerField { } //UnderlyingLastPxField is a PRICE field -type UnderlyingLastPxField struct{ quickfix.FIXFloat } +type UnderlyingLastPxField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingLastPx (651) func (f UnderlyingLastPxField) Tag() quickfix.Tag { return tag.UnderlyingLastPx } -//NewUnderlyingLastPx returns a new UnderlyingLastPxField initialized with val -func NewUnderlyingLastPx(val float64) UnderlyingLastPxField { - return UnderlyingLastPxField{quickfix.FIXFloat(val)} +//NewUnderlyingLastPx returns a new UnderlyingLastPxField initialized with val and scale +func NewUnderlyingLastPx(val decimal.Decimal, scale int32) UnderlyingLastPxField { + return UnderlyingLastPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingLastQtyField is a QTY field -type UnderlyingLastQtyField struct{ quickfix.FIXFloat } +type UnderlyingLastQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingLastQty (652) func (f UnderlyingLastQtyField) Tag() quickfix.Tag { return tag.UnderlyingLastQty } -//NewUnderlyingLastQty returns a new UnderlyingLastQtyField initialized with val -func NewUnderlyingLastQty(val float64) UnderlyingLastQtyField { - return UnderlyingLastQtyField{quickfix.FIXFloat(val)} +//NewUnderlyingLastQty returns a new UnderlyingLastQtyField initialized with val and scale +func NewUnderlyingLastQty(val decimal.Decimal, scale int32) UnderlyingLastQtyField { + return UnderlyingLastQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingLegCFICodeField is a STRING field @@ -17496,14 +17496,14 @@ func NewUnderlyingLegSecurityType(val string) UnderlyingLegSecurityTypeField { } //UnderlyingLegStrikePriceField is a PRICE field -type UnderlyingLegStrikePriceField struct{ quickfix.FIXFloat } +type UnderlyingLegStrikePriceField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingLegStrikePrice (1340) func (f UnderlyingLegStrikePriceField) Tag() quickfix.Tag { return tag.UnderlyingLegStrikePrice } -//NewUnderlyingLegStrikePrice returns a new UnderlyingLegStrikePriceField initialized with val -func NewUnderlyingLegStrikePrice(val float64) UnderlyingLegStrikePriceField { - return UnderlyingLegStrikePriceField{quickfix.FIXFloat(val)} +//NewUnderlyingLegStrikePrice returns a new UnderlyingLegStrikePriceField initialized with val and scale +func NewUnderlyingLegStrikePrice(val decimal.Decimal, scale int32) UnderlyingLegStrikePriceField { + return UnderlyingLegStrikePriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingLegSymbolField is a STRING field @@ -17584,16 +17584,16 @@ func NewUnderlyingMaturityTime(val string) UnderlyingMaturityTimeField { } //UnderlyingNotionalPercentageOutstandingField is a PERCENTAGE field -type UnderlyingNotionalPercentageOutstandingField struct{ quickfix.FIXFloat } +type UnderlyingNotionalPercentageOutstandingField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingNotionalPercentageOutstanding (1455) func (f UnderlyingNotionalPercentageOutstandingField) Tag() quickfix.Tag { return tag.UnderlyingNotionalPercentageOutstanding } -//NewUnderlyingNotionalPercentageOutstanding returns a new UnderlyingNotionalPercentageOutstandingField initialized with val -func NewUnderlyingNotionalPercentageOutstanding(val float64) UnderlyingNotionalPercentageOutstandingField { - return UnderlyingNotionalPercentageOutstandingField{quickfix.FIXFloat(val)} +//NewUnderlyingNotionalPercentageOutstanding returns a new UnderlyingNotionalPercentageOutstandingField initialized with val and scale +func NewUnderlyingNotionalPercentageOutstanding(val decimal.Decimal, scale int32) UnderlyingNotionalPercentageOutstandingField { + return UnderlyingNotionalPercentageOutstandingField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingOptAttributeField is a CHAR field @@ -17608,27 +17608,27 @@ func NewUnderlyingOptAttribute(val string) UnderlyingOptAttributeField { } //UnderlyingOriginalNotionalPercentageOutstandingField is a PERCENTAGE field -type UnderlyingOriginalNotionalPercentageOutstandingField struct{ quickfix.FIXFloat } +type UnderlyingOriginalNotionalPercentageOutstandingField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingOriginalNotionalPercentageOutstanding (1456) func (f UnderlyingOriginalNotionalPercentageOutstandingField) Tag() quickfix.Tag { return tag.UnderlyingOriginalNotionalPercentageOutstanding } -//NewUnderlyingOriginalNotionalPercentageOutstanding returns a new UnderlyingOriginalNotionalPercentageOutstandingField initialized with val -func NewUnderlyingOriginalNotionalPercentageOutstanding(val float64) UnderlyingOriginalNotionalPercentageOutstandingField { - return UnderlyingOriginalNotionalPercentageOutstandingField{quickfix.FIXFloat(val)} +//NewUnderlyingOriginalNotionalPercentageOutstanding returns a new UnderlyingOriginalNotionalPercentageOutstandingField initialized with val and scale +func NewUnderlyingOriginalNotionalPercentageOutstanding(val decimal.Decimal, scale int32) UnderlyingOriginalNotionalPercentageOutstandingField { + return UnderlyingOriginalNotionalPercentageOutstandingField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingPayAmountField is a AMT field -type UnderlyingPayAmountField struct{ quickfix.FIXFloat } +type UnderlyingPayAmountField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingPayAmount (985) func (f UnderlyingPayAmountField) Tag() quickfix.Tag { return tag.UnderlyingPayAmount } -//NewUnderlyingPayAmount returns a new UnderlyingPayAmountField initialized with val -func NewUnderlyingPayAmount(val float64) UnderlyingPayAmountField { - return UnderlyingPayAmountField{quickfix.FIXFloat(val)} +//NewUnderlyingPayAmount returns a new UnderlyingPayAmountField initialized with val and scale +func NewUnderlyingPayAmount(val decimal.Decimal, scale int32) UnderlyingPayAmountField { + return UnderlyingPayAmountField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingPriceDeterminationMethodField is a INT field @@ -17656,16 +17656,16 @@ func NewUnderlyingPriceUnitOfMeasure(val string) UnderlyingPriceUnitOfMeasureFie } //UnderlyingPriceUnitOfMeasureQtyField is a QTY field -type UnderlyingPriceUnitOfMeasureQtyField struct{ quickfix.FIXFloat } +type UnderlyingPriceUnitOfMeasureQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingPriceUnitOfMeasureQty (1425) func (f UnderlyingPriceUnitOfMeasureQtyField) Tag() quickfix.Tag { return tag.UnderlyingPriceUnitOfMeasureQty } -//NewUnderlyingPriceUnitOfMeasureQty returns a new UnderlyingPriceUnitOfMeasureQtyField initialized with val -func NewUnderlyingPriceUnitOfMeasureQty(val float64) UnderlyingPriceUnitOfMeasureQtyField { - return UnderlyingPriceUnitOfMeasureQtyField{quickfix.FIXFloat(val)} +//NewUnderlyingPriceUnitOfMeasureQty returns a new UnderlyingPriceUnitOfMeasureQtyField initialized with val and scale +func NewUnderlyingPriceUnitOfMeasureQty(val decimal.Decimal, scale int32) UnderlyingPriceUnitOfMeasureQtyField { + return UnderlyingPriceUnitOfMeasureQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingProductField is a INT field @@ -17691,25 +17691,25 @@ func NewUnderlyingPutOrCall(val int) UnderlyingPutOrCallField { } //UnderlyingPxField is a PRICE field -type UnderlyingPxField struct{ quickfix.FIXFloat } +type UnderlyingPxField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingPx (810) func (f UnderlyingPxField) Tag() quickfix.Tag { return tag.UnderlyingPx } -//NewUnderlyingPx returns a new UnderlyingPxField initialized with val -func NewUnderlyingPx(val float64) UnderlyingPxField { - return UnderlyingPxField{quickfix.FIXFloat(val)} +//NewUnderlyingPx returns a new UnderlyingPxField initialized with val and scale +func NewUnderlyingPx(val decimal.Decimal, scale int32) UnderlyingPxField { + return UnderlyingPxField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingQtyField is a QTY field -type UnderlyingQtyField struct{ quickfix.FIXFloat } +type UnderlyingQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingQty (879) func (f UnderlyingQtyField) Tag() quickfix.Tag { return tag.UnderlyingQty } -//NewUnderlyingQty returns a new UnderlyingQtyField initialized with val -func NewUnderlyingQty(val float64) UnderlyingQtyField { - return UnderlyingQtyField{quickfix.FIXFloat(val)} +//NewUnderlyingQty returns a new UnderlyingQtyField initialized with val and scale +func NewUnderlyingQty(val decimal.Decimal, scale int32) UnderlyingQtyField { + return UnderlyingQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingRedemptionDateField is a LOCALMKTDATE field @@ -17737,14 +17737,14 @@ func NewUnderlyingRepoCollateralSecurityType(val int) UnderlyingRepoCollateralSe } //UnderlyingRepurchaseRateField is a PERCENTAGE field -type UnderlyingRepurchaseRateField struct{ quickfix.FIXFloat } +type UnderlyingRepurchaseRateField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingRepurchaseRate (245) func (f UnderlyingRepurchaseRateField) Tag() quickfix.Tag { return tag.UnderlyingRepurchaseRate } -//NewUnderlyingRepurchaseRate returns a new UnderlyingRepurchaseRateField initialized with val -func NewUnderlyingRepurchaseRate(val float64) UnderlyingRepurchaseRateField { - return UnderlyingRepurchaseRateField{quickfix.FIXFloat(val)} +//NewUnderlyingRepurchaseRate returns a new UnderlyingRepurchaseRateField initialized with val and scale +func NewUnderlyingRepurchaseRate(val decimal.Decimal, scale int32) UnderlyingRepurchaseRateField { + return UnderlyingRepurchaseRateField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingRepurchaseTermField is a INT field @@ -17882,14 +17882,14 @@ func NewUnderlyingSettlMethod(val string) UnderlyingSettlMethodField { } //UnderlyingSettlPriceField is a PRICE field -type UnderlyingSettlPriceField struct{ quickfix.FIXFloat } +type UnderlyingSettlPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingSettlPrice (732) func (f UnderlyingSettlPriceField) Tag() quickfix.Tag { return tag.UnderlyingSettlPrice } -//NewUnderlyingSettlPrice returns a new UnderlyingSettlPriceField initialized with val -func NewUnderlyingSettlPrice(val float64) UnderlyingSettlPriceField { - return UnderlyingSettlPriceField{quickfix.FIXFloat(val)} +//NewUnderlyingSettlPrice returns a new UnderlyingSettlPriceField initialized with val and scale +func NewUnderlyingSettlPrice(val decimal.Decimal, scale int32) UnderlyingSettlPriceField { + return UnderlyingSettlPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingSettlPriceTypeField is a INT field @@ -17937,14 +17937,14 @@ func NewUnderlyingSettlementType(val int) UnderlyingSettlementTypeField { } //UnderlyingStartValueField is a AMT field -type UnderlyingStartValueField struct{ quickfix.FIXFloat } +type UnderlyingStartValueField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingStartValue (884) func (f UnderlyingStartValueField) Tag() quickfix.Tag { return tag.UnderlyingStartValue } -//NewUnderlyingStartValue returns a new UnderlyingStartValueField initialized with val -func NewUnderlyingStartValue(val float64) UnderlyingStartValueField { - return UnderlyingStartValueField{quickfix.FIXFloat(val)} +//NewUnderlyingStartValue returns a new UnderlyingStartValueField initialized with val and scale +func NewUnderlyingStartValue(val decimal.Decimal, scale int32) UnderlyingStartValueField { + return UnderlyingStartValueField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingStateOrProvinceOfIssueField is a STRING field @@ -17994,14 +17994,14 @@ func NewUnderlyingStrikeCurrency(val string) UnderlyingStrikeCurrencyField { } //UnderlyingStrikePriceField is a PRICE field -type UnderlyingStrikePriceField struct{ quickfix.FIXFloat } +type UnderlyingStrikePriceField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingStrikePrice (316) func (f UnderlyingStrikePriceField) Tag() quickfix.Tag { return tag.UnderlyingStrikePrice } -//NewUnderlyingStrikePrice returns a new UnderlyingStrikePriceField initialized with val -func NewUnderlyingStrikePrice(val float64) UnderlyingStrikePriceField { - return UnderlyingStrikePriceField{quickfix.FIXFloat(val)} +//NewUnderlyingStrikePrice returns a new UnderlyingStrikePriceField initialized with val and scale +func NewUnderlyingStrikePrice(val decimal.Decimal, scale int32) UnderlyingStrikePriceField { + return UnderlyingStrikePriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnderlyingSymbolField is a STRING field @@ -18073,14 +18073,14 @@ func NewUnderlyingUnitOfMeasure(val string) UnderlyingUnitOfMeasureField { } //UnderlyingUnitOfMeasureQtyField is a QTY field -type UnderlyingUnitOfMeasureQtyField struct{ quickfix.FIXFloat } +type UnderlyingUnitOfMeasureQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.UnderlyingUnitOfMeasureQty (1423) func (f UnderlyingUnitOfMeasureQtyField) Tag() quickfix.Tag { return tag.UnderlyingUnitOfMeasureQty } -//NewUnderlyingUnitOfMeasureQty returns a new UnderlyingUnitOfMeasureQtyField initialized with val -func NewUnderlyingUnitOfMeasureQty(val float64) UnderlyingUnitOfMeasureQtyField { - return UnderlyingUnitOfMeasureQtyField{quickfix.FIXFloat(val)} +//NewUnderlyingUnitOfMeasureQty returns a new UnderlyingUnitOfMeasureQtyField initialized with val and scale +func NewUnderlyingUnitOfMeasureQty(val decimal.Decimal, scale int32) UnderlyingUnitOfMeasureQtyField { + return UnderlyingUnitOfMeasureQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UndlyInstrumentPartyIDField is a STRING field @@ -18152,14 +18152,14 @@ func NewUnitOfMeasure(val string) UnitOfMeasureField { } //UnitOfMeasureQtyField is a QTY field -type UnitOfMeasureQtyField struct{ quickfix.FIXFloat } +type UnitOfMeasureQtyField struct{ quickfix.FIXDecimal } //Tag returns tag.UnitOfMeasureQty (1147) func (f UnitOfMeasureQtyField) Tag() quickfix.Tag { return tag.UnitOfMeasureQty } -//NewUnitOfMeasureQty returns a new UnitOfMeasureQtyField initialized with val -func NewUnitOfMeasureQty(val float64) UnitOfMeasureQtyField { - return UnitOfMeasureQtyField{quickfix.FIXFloat(val)} +//NewUnitOfMeasureQty returns a new UnitOfMeasureQtyField initialized with val and scale +func NewUnitOfMeasureQty(val decimal.Decimal, scale int32) UnitOfMeasureQtyField { + return UnitOfMeasureQtyField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //UnsolicitedIndicatorField is a BOOLEAN field @@ -18267,14 +18267,14 @@ func NewValuationMethod(val string) ValuationMethodField { } //ValueOfFuturesField is a AMT field -type ValueOfFuturesField struct{ quickfix.FIXFloat } +type ValueOfFuturesField struct{ quickfix.FIXDecimal } //Tag returns tag.ValueOfFutures (408) func (f ValueOfFuturesField) Tag() quickfix.Tag { return tag.ValueOfFutures } -//NewValueOfFutures returns a new ValueOfFuturesField initialized with val -func NewValueOfFutures(val float64) ValueOfFuturesField { - return ValueOfFuturesField{quickfix.FIXFloat(val)} +//NewValueOfFutures returns a new ValueOfFuturesField initialized with val and scale +func NewValueOfFutures(val decimal.Decimal, scale int32) ValueOfFuturesField { + return ValueOfFuturesField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //VenueTypeField is a CHAR field @@ -18289,14 +18289,14 @@ func NewVenueType(val string) VenueTypeField { } //VolatilityField is a FLOAT field -type VolatilityField struct{ quickfix.FIXFloat } +type VolatilityField struct{ quickfix.FIXDecimal } //Tag returns tag.Volatility (1188) func (f VolatilityField) Tag() quickfix.Tag { return tag.Volatility } -//NewVolatility returns a new VolatilityField initialized with val -func NewVolatility(val float64) VolatilityField { - return VolatilityField{quickfix.FIXFloat(val)} +//NewVolatility returns a new VolatilityField initialized with val and scale +func NewVolatility(val decimal.Decimal, scale int32) VolatilityField { + return VolatilityField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //WaveNoField is a STRING field @@ -18322,14 +18322,14 @@ func NewWorkingIndicator(val bool) WorkingIndicatorField { } //WtAverageLiquidityField is a PERCENTAGE field -type WtAverageLiquidityField struct{ quickfix.FIXFloat } +type WtAverageLiquidityField struct{ quickfix.FIXDecimal } //Tag returns tag.WtAverageLiquidity (410) func (f WtAverageLiquidityField) Tag() quickfix.Tag { return tag.WtAverageLiquidity } -//NewWtAverageLiquidity returns a new WtAverageLiquidityField initialized with val -func NewWtAverageLiquidity(val float64) WtAverageLiquidityField { - return WtAverageLiquidityField{quickfix.FIXFloat(val)} +//NewWtAverageLiquidity returns a new WtAverageLiquidityField initialized with val and scale +func NewWtAverageLiquidity(val decimal.Decimal, scale int32) WtAverageLiquidityField { + return WtAverageLiquidityField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //XmlDataField is a DATA field @@ -18355,14 +18355,14 @@ func NewXmlDataLen(val int) XmlDataLenField { } //YieldField is a PERCENTAGE field -type YieldField struct{ quickfix.FIXFloat } +type YieldField struct{ quickfix.FIXDecimal } //Tag returns tag.Yield (236) func (f YieldField) Tag() quickfix.Tag { return tag.Yield } -//NewYield returns a new YieldField initialized with val -func NewYield(val float64) YieldField { - return YieldField{quickfix.FIXFloat(val)} +//NewYield returns a new YieldField initialized with val and scale +func NewYield(val decimal.Decimal, scale int32) YieldField { + return YieldField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //YieldCalcDateField is a LOCALMKTDATE field @@ -18388,14 +18388,14 @@ func NewYieldRedemptionDate(val string) YieldRedemptionDateField { } //YieldRedemptionPriceField is a PRICE field -type YieldRedemptionPriceField struct{ quickfix.FIXFloat } +type YieldRedemptionPriceField struct{ quickfix.FIXDecimal } //Tag returns tag.YieldRedemptionPrice (697) func (f YieldRedemptionPriceField) Tag() quickfix.Tag { return tag.YieldRedemptionPrice } -//NewYieldRedemptionPrice returns a new YieldRedemptionPriceField initialized with val -func NewYieldRedemptionPrice(val float64) YieldRedemptionPriceField { - return YieldRedemptionPriceField{quickfix.FIXFloat(val)} +//NewYieldRedemptionPrice returns a new YieldRedemptionPriceField initialized with val and scale +func NewYieldRedemptionPrice(val decimal.Decimal, scale int32) YieldRedemptionPriceField { + return YieldRedemptionPriceField{quickfix.FIXDecimal{Decimal: val, Scale: scale}} } //YieldRedemptionPriceTypeField is a INT field diff --git a/fix40/advertisement/Advertisement.generated.go b/fix40/advertisement/Advertisement.generated.go index c779d198e..71946599f 100644 --- a/fix40/advertisement/Advertisement.generated.go +++ b/fix40/advertisement/Advertisement.generated.go @@ -1,6 +1,7 @@ package advertisement import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -96,8 +97,8 @@ func (m Advertisement) SetIDSource(v string) { } //SetPrice sets Price, Tag 44 -func (m Advertisement) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m Advertisement) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -106,8 +107,8 @@ func (m Advertisement) SetSecurityID(v string) { } //SetShares sets Shares, Tag 53 -func (m Advertisement) SetShares(v float64) { - m.Set(field.NewShares(v)) +func (m Advertisement) SetShares(value decimal.Decimal, scale int32) { + m.Set(field.NewShares(value, scale)) } //SetSymbol sets Symbol, Tag 55 diff --git a/fix40/allocation/Allocation.generated.go b/fix40/allocation/Allocation.generated.go index 202f4c87a..5f035d224 100644 --- a/fix40/allocation/Allocation.generated.go +++ b/fix40/allocation/Allocation.generated.go @@ -1,6 +1,7 @@ package allocation import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -68,8 +69,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m Allocation) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m Allocation) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -88,8 +89,8 @@ func (m Allocation) SetSecurityID(v string) { } //SetShares sets Shares, Tag 53 -func (m Allocation) SetShares(v float64) { - m.Set(field.NewShares(v)) +func (m Allocation) SetShares(value decimal.Decimal, scale int32) { + m.Set(field.NewShares(value, scale)) } //SetSide sets Side, Tag 54 @@ -178,13 +179,13 @@ func (m Allocation) SetSecurityDesc(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m Allocation) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m Allocation) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m Allocation) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m Allocation) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -606,8 +607,8 @@ func (m NoAllocs) SetAllocAccount(v string) { } //SetAllocShares sets AllocShares, Tag 80 -func (m NoAllocs) SetAllocShares(v float64) { - m.Set(field.NewAllocShares(v)) +func (m NoAllocs) SetAllocShares(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocShares(value, scale)) } //SetProcessCode sets ProcessCode, Tag 81 @@ -626,8 +627,8 @@ func (m NoAllocs) SetClientID(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoAllocs) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoAllocs) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -794,13 +795,13 @@ func (m NoExecs) SetExecID(v string) { } //SetLastShares sets LastShares, Tag 32 -func (m NoExecs) SetLastShares(v float64) { - m.Set(field.NewLastShares(v)) +func (m NoExecs) SetLastShares(value decimal.Decimal, scale int32) { + m.Set(field.NewLastShares(value, scale)) } //SetLastPx sets LastPx, Tag 31 -func (m NoExecs) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m NoExecs) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastMkt sets LastMkt, Tag 30 @@ -881,8 +882,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 diff --git a/fix40/dontknowtrade/DontKnowTrade.generated.go b/fix40/dontknowtrade/DontKnowTrade.generated.go index 607163212..31214e62f 100644 --- a/fix40/dontknowtrade/DontKnowTrade.generated.go +++ b/fix40/dontknowtrade/DontKnowTrade.generated.go @@ -1,6 +1,7 @@ package dontknowtrade import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -72,13 +73,13 @@ func (m DontKnowTrade) SetExecID(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m DontKnowTrade) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m DontKnowTrade) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastShares sets LastShares, Tag 32 -func (m DontKnowTrade) SetLastShares(v float64) { - m.Set(field.NewLastShares(v)) +func (m DontKnowTrade) SetLastShares(value decimal.Decimal, scale int32) { + m.Set(field.NewLastShares(value, scale)) } //SetOrderID sets OrderID, Tag 37 @@ -87,8 +88,8 @@ func (m DontKnowTrade) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m DontKnowTrade) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m DontKnowTrade) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetSide sets Side, Tag 54 diff --git a/fix40/executionreport/ExecutionReport.generated.go b/fix40/executionreport/ExecutionReport.generated.go index 7f0e54d1f..3c172f29f 100644 --- a/fix40/executionreport/ExecutionReport.generated.go +++ b/fix40/executionreport/ExecutionReport.generated.go @@ -1,6 +1,7 @@ package executionreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -77,8 +78,8 @@ func (m ExecutionReport) SetAccount(v string) { } //SetAvgPx sets AvgPx, Tag 6 -func (m ExecutionReport) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m ExecutionReport) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetClOrdID sets ClOrdID, Tag 11 @@ -87,8 +88,8 @@ func (m ExecutionReport) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m ExecutionReport) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m ExecutionReport) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -97,8 +98,8 @@ func (m ExecutionReport) SetCommType(v string) { } //SetCumQty sets CumQty, Tag 14 -func (m ExecutionReport) SetCumQty(v float64) { - m.Set(field.NewCumQty(v)) +func (m ExecutionReport) SetCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCumQty(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -142,13 +143,13 @@ func (m ExecutionReport) SetLastMkt(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m ExecutionReport) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m ExecutionReport) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastShares sets LastShares, Tag 32 -func (m ExecutionReport) SetLastShares(v float64) { - m.Set(field.NewLastShares(v)) +func (m ExecutionReport) SetLastShares(value decimal.Decimal, scale int32) { + m.Set(field.NewLastShares(value, scale)) } //SetOrderID sets OrderID, Tag 37 @@ -157,8 +158,8 @@ func (m ExecutionReport) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m ExecutionReport) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m ExecutionReport) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdStatus sets OrdStatus, Tag 39 @@ -172,8 +173,8 @@ func (m ExecutionReport) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m ExecutionReport) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m ExecutionReport) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetRule80A sets Rule80A, Tag 47 @@ -242,8 +243,8 @@ func (m ExecutionReport) SetExecBroker(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m ExecutionReport) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m ExecutionReport) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetOrdRejReason sets OrdRejReason, Tag 103 @@ -272,13 +273,13 @@ func (m ExecutionReport) SetReportToExch(v bool) { } //SetNetMoney sets NetMoney, Tag 118 -func (m ExecutionReport) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m ExecutionReport) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m ExecutionReport) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m ExecutionReport) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -798,8 +799,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 diff --git a/fix40/indicationofinterest/IndicationofInterest.generated.go b/fix40/indicationofinterest/IndicationofInterest.generated.go index 8e1dd3fdc..f5b1e7e9a 100644 --- a/fix40/indicationofinterest/IndicationofInterest.generated.go +++ b/fix40/indicationofinterest/IndicationofInterest.generated.go @@ -1,6 +1,7 @@ package indicationofinterest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -106,8 +107,8 @@ func (m IndicationofInterest) SetIOITransType(v string) { } //SetPrice sets Price, Tag 44 -func (m IndicationofInterest) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m IndicationofInterest) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 diff --git a/fix40/liststatus/ListStatus.generated.go b/fix40/liststatus/ListStatus.generated.go index d3c677826..c79a9161a 100644 --- a/fix40/liststatus/ListStatus.generated.go +++ b/fix40/liststatus/ListStatus.generated.go @@ -1,6 +1,7 @@ package liststatus import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -155,18 +156,18 @@ func (m NoOrders) SetClOrdID(v string) { } //SetCumQty sets CumQty, Tag 14 -func (m NoOrders) SetCumQty(v float64) { - m.Set(field.NewCumQty(v)) +func (m NoOrders) SetCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCumQty(value, scale)) } //SetCxlQty sets CxlQty, Tag 84 -func (m NoOrders) SetCxlQty(v float64) { - m.Set(field.NewCxlQty(v)) +func (m NoOrders) SetCxlQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCxlQty(value, scale)) } //SetAvgPx sets AvgPx, Tag 6 -func (m NoOrders) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m NoOrders) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 diff --git a/fix40/neworderlist/NewOrderList.generated.go b/fix40/neworderlist/NewOrderList.generated.go index c26d55d31..cf2d6e351 100644 --- a/fix40/neworderlist/NewOrderList.generated.go +++ b/fix40/neworderlist/NewOrderList.generated.go @@ -1,6 +1,7 @@ package neworderlist import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -80,8 +81,8 @@ func (m NewOrderList) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m NewOrderList) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NewOrderList) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -110,8 +111,8 @@ func (m NewOrderList) SetIDSource(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NewOrderList) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NewOrderList) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -120,8 +121,8 @@ func (m NewOrderList) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NewOrderList) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NewOrderList) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetRule80A sets Rule80A, Tag 47 @@ -200,8 +201,8 @@ func (m NewOrderList) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m NewOrderList) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NewOrderList) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -230,13 +231,13 @@ func (m NewOrderList) SetClientID(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NewOrderList) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NewOrderList) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NewOrderList) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NewOrderList) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -260,8 +261,8 @@ func (m NewOrderList) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NewOrderList) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NewOrderList) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //GetAccount gets Account, Tag 1 diff --git a/fix40/newordersingle/NewOrderSingle.generated.go b/fix40/newordersingle/NewOrderSingle.generated.go index cdc56a080..705fe749b 100644 --- a/fix40/newordersingle/NewOrderSingle.generated.go +++ b/fix40/newordersingle/NewOrderSingle.generated.go @@ -1,6 +1,7 @@ package newordersingle import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -77,8 +78,8 @@ func (m NewOrderSingle) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m NewOrderSingle) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NewOrderSingle) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -112,8 +113,8 @@ func (m NewOrderSingle) SetIOIid(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NewOrderSingle) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NewOrderSingle) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -122,8 +123,8 @@ func (m NewOrderSingle) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NewOrderSingle) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NewOrderSingle) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetRule80A sets Rule80A, Tag 47 @@ -182,8 +183,8 @@ func (m NewOrderSingle) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m NewOrderSingle) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NewOrderSingle) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -207,13 +208,13 @@ func (m NewOrderSingle) SetClientID(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NewOrderSingle) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NewOrderSingle) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NewOrderSingle) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NewOrderSingle) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -242,8 +243,8 @@ func (m NewOrderSingle) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NewOrderSingle) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NewOrderSingle) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //GetAccount gets Account, Tag 1 diff --git a/fix40/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go b/fix40/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go index 71bd39e0b..80b547eb0 100644 --- a/fix40/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go +++ b/fix40/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go @@ -1,6 +1,7 @@ package ordercancelreplacerequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -78,8 +79,8 @@ func (m OrderCancelReplaceRequest) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m OrderCancelReplaceRequest) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m OrderCancelReplaceRequest) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -113,8 +114,8 @@ func (m OrderCancelReplaceRequest) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m OrderCancelReplaceRequest) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m OrderCancelReplaceRequest) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -128,8 +129,8 @@ func (m OrderCancelReplaceRequest) SetOrigClOrdID(v string) { } //SetPrice sets Price, Tag 44 -func (m OrderCancelReplaceRequest) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m OrderCancelReplaceRequest) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetRule80A sets Rule80A, Tag 47 @@ -188,8 +189,8 @@ func (m OrderCancelReplaceRequest) SetExecBroker(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m OrderCancelReplaceRequest) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m OrderCancelReplaceRequest) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -213,13 +214,13 @@ func (m OrderCancelReplaceRequest) SetClientID(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m OrderCancelReplaceRequest) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m OrderCancelReplaceRequest) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m OrderCancelReplaceRequest) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m OrderCancelReplaceRequest) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 diff --git a/fix40/ordercancelrequest/OrderCancelRequest.generated.go b/fix40/ordercancelrequest/OrderCancelRequest.generated.go index 6112b4f9d..abb931c65 100644 --- a/fix40/ordercancelrequest/OrderCancelRequest.generated.go +++ b/fix40/ordercancelrequest/OrderCancelRequest.generated.go @@ -1,6 +1,7 @@ package ordercancelrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -82,8 +83,8 @@ func (m OrderCancelRequest) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m OrderCancelRequest) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m OrderCancelRequest) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrigClOrdID sets OrigClOrdID, Tag 41 diff --git a/fix40/quote/Quote.generated.go b/fix40/quote/Quote.generated.go index 1af0f3cfa..9b6ca51ff 100644 --- a/fix40/quote/Quote.generated.go +++ b/fix40/quote/Quote.generated.go @@ -1,6 +1,7 @@ package quote import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -109,23 +110,23 @@ func (m Quote) SetQuoteReqID(v string) { } //SetBidPx sets BidPx, Tag 132 -func (m Quote) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m Quote) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m Quote) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m Quote) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m Quote) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m Quote) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m Quote) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m Quote) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //GetIDSource gets IDSource, Tag 22 diff --git a/fix40/quoterequest/QuoteRequest.generated.go b/fix40/quoterequest/QuoteRequest.generated.go index 9855098d4..b5352b9b7 100644 --- a/fix40/quoterequest/QuoteRequest.generated.go +++ b/fix40/quoterequest/QuoteRequest.generated.go @@ -1,6 +1,7 @@ package quoterequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -68,8 +69,8 @@ func (m QuoteRequest) SetIDSource(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m QuoteRequest) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m QuoteRequest) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -108,8 +109,8 @@ func (m QuoteRequest) SetQuoteReqID(v string) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m QuoteRequest) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m QuoteRequest) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //GetIDSource gets IDSource, Tag 22 diff --git a/fix41/advertisement/Advertisement.generated.go b/fix41/advertisement/Advertisement.generated.go index 4746772d0..cf30c9d5d 100644 --- a/fix41/advertisement/Advertisement.generated.go +++ b/fix41/advertisement/Advertisement.generated.go @@ -1,6 +1,7 @@ package advertisement import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -101,8 +102,8 @@ func (m Advertisement) SetLastMkt(v string) { } //SetPrice sets Price, Tag 44 -func (m Advertisement) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m Advertisement) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -111,8 +112,8 @@ func (m Advertisement) SetSecurityID(v string) { } //SetShares sets Shares, Tag 53 -func (m Advertisement) SetShares(v float64) { - m.Set(field.NewShares(v)) +func (m Advertisement) SetShares(value decimal.Decimal, scale int32) { + m.Set(field.NewShares(value, scale)) } //SetSymbol sets Symbol, Tag 55 @@ -171,8 +172,8 @@ func (m Advertisement) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m Advertisement) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m Advertisement) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 diff --git a/fix41/allocation/Allocation.generated.go b/fix41/allocation/Allocation.generated.go index bf42c8506..06864ea0c 100644 --- a/fix41/allocation/Allocation.generated.go +++ b/fix41/allocation/Allocation.generated.go @@ -1,6 +1,7 @@ package allocation import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -68,8 +69,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m Allocation) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m Allocation) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -93,8 +94,8 @@ func (m Allocation) SetSecurityID(v string) { } //SetShares sets Shares, Tag 53 -func (m Allocation) SetShares(v float64) { - m.Set(field.NewShares(v)) +func (m Allocation) SetShares(value decimal.Decimal, scale int32) { + m.Set(field.NewShares(value, scale)) } //SetSide sets Side, Tag 54 @@ -183,8 +184,8 @@ func (m Allocation) SetSecurityDesc(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m Allocation) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m Allocation) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetNoExecs sets NoExecs, Tag 124 @@ -198,8 +199,8 @@ func (m Allocation) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m Allocation) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m Allocation) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -228,8 +229,8 @@ func (m Allocation) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m Allocation) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m Allocation) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 @@ -765,8 +766,8 @@ func (m NoAllocs) SetAllocAccount(v string) { } //SetAllocShares sets AllocShares, Tag 80 -func (m NoAllocs) SetAllocShares(v float64) { - m.Set(field.NewAllocShares(v)) +func (m NoAllocs) SetAllocShares(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocShares(value, scale)) } //SetProcessCode sets ProcessCode, Tag 81 @@ -805,8 +806,8 @@ func (m NoAllocs) SetClientID(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoAllocs) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoAllocs) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -815,18 +816,18 @@ func (m NoAllocs) SetCommType(v string) { } //SetAllocAvgPx sets AllocAvgPx, Tag 153 -func (m NoAllocs) SetAllocAvgPx(v float64) { - m.Set(field.NewAllocAvgPx(v)) +func (m NoAllocs) SetAllocAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAvgPx(value, scale)) } //SetAllocNetMoney sets AllocNetMoney, Tag 154 -func (m NoAllocs) SetAllocNetMoney(v float64) { - m.Set(field.NewAllocNetMoney(v)) +func (m NoAllocs) SetAllocNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoAllocs) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoAllocs) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -835,8 +836,8 @@ func (m NoAllocs) SetSettlCurrency(v string) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoAllocs) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoAllocs) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -845,8 +846,8 @@ func (m NoAllocs) SetSettlCurrFxRateCalc(v string) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m NoAllocs) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m NoAllocs) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSettlInstMode sets SettlInstMode, Tag 160 @@ -1086,8 +1087,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -1185,8 +1186,8 @@ type NoExecs struct { } //SetLastShares sets LastShares, Tag 32 -func (m NoExecs) SetLastShares(v float64) { - m.Set(field.NewLastShares(v)) +func (m NoExecs) SetLastShares(value decimal.Decimal, scale int32) { + m.Set(field.NewLastShares(value, scale)) } //SetExecID sets ExecID, Tag 17 @@ -1195,8 +1196,8 @@ func (m NoExecs) SetExecID(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m NoExecs) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m NoExecs) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastCapacity sets LastCapacity, Tag 29 diff --git a/fix41/dontknowtrade/DontKnowTrade.generated.go b/fix41/dontknowtrade/DontKnowTrade.generated.go index dd2cf61d0..09a3c3c97 100644 --- a/fix41/dontknowtrade/DontKnowTrade.generated.go +++ b/fix41/dontknowtrade/DontKnowTrade.generated.go @@ -1,6 +1,7 @@ package dontknowtrade import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -74,13 +75,13 @@ func (m DontKnowTrade) SetIDSource(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m DontKnowTrade) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m DontKnowTrade) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastShares sets LastShares, Tag 32 -func (m DontKnowTrade) SetLastShares(v float64) { - m.Set(field.NewLastShares(v)) +func (m DontKnowTrade) SetLastShares(value decimal.Decimal, scale int32) { + m.Set(field.NewLastShares(value, scale)) } //SetOrderID sets OrderID, Tag 37 @@ -89,8 +90,8 @@ func (m DontKnowTrade) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m DontKnowTrade) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m DontKnowTrade) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -134,8 +135,8 @@ func (m DontKnowTrade) SetDKReason(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m DontKnowTrade) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m DontKnowTrade) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -154,8 +155,8 @@ func (m DontKnowTrade) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m DontKnowTrade) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m DontKnowTrade) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 diff --git a/fix41/email/Email.generated.go b/fix41/email/Email.generated.go index 9e23cbbfc..5fb7c970c 100644 --- a/fix41/email/Email.generated.go +++ b/fix41/email/Email.generated.go @@ -1,6 +1,7 @@ package email import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -315,8 +316,8 @@ func (m NoRelatedSym) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 diff --git a/fix41/executionreport/ExecutionReport.generated.go b/fix41/executionreport/ExecutionReport.generated.go index 31ece1d5f..bf2526804 100644 --- a/fix41/executionreport/ExecutionReport.generated.go +++ b/fix41/executionreport/ExecutionReport.generated.go @@ -1,6 +1,7 @@ package executionreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -79,8 +80,8 @@ func (m ExecutionReport) SetAccount(v string) { } //SetAvgPx sets AvgPx, Tag 6 -func (m ExecutionReport) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m ExecutionReport) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetClOrdID sets ClOrdID, Tag 11 @@ -89,8 +90,8 @@ func (m ExecutionReport) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m ExecutionReport) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m ExecutionReport) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -99,8 +100,8 @@ func (m ExecutionReport) SetCommType(v string) { } //SetCumQty sets CumQty, Tag 14 -func (m ExecutionReport) SetCumQty(v float64) { - m.Set(field.NewCumQty(v)) +func (m ExecutionReport) SetCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCumQty(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -144,13 +145,13 @@ func (m ExecutionReport) SetLastMkt(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m ExecutionReport) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m ExecutionReport) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastShares sets LastShares, Tag 32 -func (m ExecutionReport) SetLastShares(v float64) { - m.Set(field.NewLastShares(v)) +func (m ExecutionReport) SetLastShares(value decimal.Decimal, scale int32) { + m.Set(field.NewLastShares(value, scale)) } //SetOrderID sets OrderID, Tag 37 @@ -159,8 +160,8 @@ func (m ExecutionReport) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m ExecutionReport) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m ExecutionReport) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdStatus sets OrdStatus, Tag 39 @@ -179,8 +180,8 @@ func (m ExecutionReport) SetOrigClOrdID(v string) { } //SetPrice sets Price, Tag 44 -func (m ExecutionReport) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m ExecutionReport) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetRule80A sets Rule80A, Tag 47 @@ -249,8 +250,8 @@ func (m ExecutionReport) SetExecBroker(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m ExecutionReport) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m ExecutionReport) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetOrdRejReason sets OrdRejReason, Tag 103 @@ -279,8 +280,8 @@ func (m ExecutionReport) SetReportToExch(v bool) { } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m ExecutionReport) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m ExecutionReport) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -299,13 +300,13 @@ func (m ExecutionReport) SetExecType(v string) { } //SetLeavesQty sets LeavesQty, Tag 151 -func (m ExecutionReport) SetLeavesQty(v float64) { - m.Set(field.NewLeavesQty(v)) +func (m ExecutionReport) SetLeavesQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLeavesQty(value, scale)) } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m ExecutionReport) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m ExecutionReport) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -319,13 +320,13 @@ func (m ExecutionReport) SetSecurityType(v string) { } //SetLastSpotRate sets LastSpotRate, Tag 194 -func (m ExecutionReport) SetLastSpotRate(v float64) { - m.Set(field.NewLastSpotRate(v)) +func (m ExecutionReport) SetLastSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSpotRate(value, scale)) } //SetLastForwardPoints sets LastForwardPoints, Tag 195 -func (m ExecutionReport) SetLastForwardPoints(v float64) { - m.Set(field.NewLastForwardPoints(v)) +func (m ExecutionReport) SetLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastForwardPoints(value, scale)) } //SetSecondaryOrderID sets SecondaryOrderID, Tag 198 @@ -344,8 +345,8 @@ func (m ExecutionReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m ExecutionReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m ExecutionReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 @@ -364,8 +365,8 @@ func (m ExecutionReport) SetSecurityExchange(v string) { } //SetPegDifference sets PegDifference, Tag 211 -func (m ExecutionReport) SetPegDifference(v float64) { - m.Set(field.NewPegDifference(v)) +func (m ExecutionReport) SetPegDifference(value decimal.Decimal, scale int32) { + m.Set(field.NewPegDifference(value, scale)) } //GetAccount gets Account, Tag 1 diff --git a/fix41/indicationofinterest/IndicationofInterest.generated.go b/fix41/indicationofinterest/IndicationofInterest.generated.go index 280b8a2da..bbbcb8ab1 100644 --- a/fix41/indicationofinterest/IndicationofInterest.generated.go +++ b/fix41/indicationofinterest/IndicationofInterest.generated.go @@ -1,6 +1,7 @@ package indicationofinterest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -106,8 +107,8 @@ func (m IndicationofInterest) SetIOITransType(v string) { } //SetPrice sets Price, Tag 44 -func (m IndicationofInterest) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m IndicationofInterest) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -186,8 +187,8 @@ func (m IndicationofInterest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m IndicationofInterest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m IndicationofInterest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 diff --git a/fix41/liststatus/ListStatus.generated.go b/fix41/liststatus/ListStatus.generated.go index 91439a4c7..ed2448d0e 100644 --- a/fix41/liststatus/ListStatus.generated.go +++ b/fix41/liststatus/ListStatus.generated.go @@ -1,6 +1,7 @@ package liststatus import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -155,23 +156,23 @@ func (m NoOrders) SetClOrdID(v string) { } //SetCumQty sets CumQty, Tag 14 -func (m NoOrders) SetCumQty(v float64) { - m.Set(field.NewCumQty(v)) +func (m NoOrders) SetCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCumQty(value, scale)) } //SetLeavesQty sets LeavesQty, Tag 151 -func (m NoOrders) SetLeavesQty(v float64) { - m.Set(field.NewLeavesQty(v)) +func (m NoOrders) SetLeavesQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLeavesQty(value, scale)) } //SetCxlQty sets CxlQty, Tag 84 -func (m NoOrders) SetCxlQty(v float64) { - m.Set(field.NewCxlQty(v)) +func (m NoOrders) SetCxlQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCxlQty(value, scale)) } //SetAvgPx sets AvgPx, Tag 6 -func (m NoOrders) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m NoOrders) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 diff --git a/fix41/neworderlist/NewOrderList.generated.go b/fix41/neworderlist/NewOrderList.generated.go index d7672439e..af45f9f13 100644 --- a/fix41/neworderlist/NewOrderList.generated.go +++ b/fix41/neworderlist/NewOrderList.generated.go @@ -1,6 +1,7 @@ package neworderlist import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -80,8 +81,8 @@ func (m NewOrderList) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m NewOrderList) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NewOrderList) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -110,8 +111,8 @@ func (m NewOrderList) SetIDSource(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NewOrderList) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NewOrderList) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -120,8 +121,8 @@ func (m NewOrderList) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NewOrderList) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NewOrderList) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetRule80A sets Rule80A, Tag 47 @@ -205,8 +206,8 @@ func (m NewOrderList) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m NewOrderList) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NewOrderList) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -235,13 +236,13 @@ func (m NewOrderList) SetClientID(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NewOrderList) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NewOrderList) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NewOrderList) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NewOrderList) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -265,8 +266,8 @@ func (m NewOrderList) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NewOrderList) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NewOrderList) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -275,8 +276,8 @@ func (m NewOrderList) SetSecurityType(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NewOrderList) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NewOrderList) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetFutSettDate2 sets FutSettDate2, Tag 193 @@ -295,8 +296,8 @@ func (m NewOrderList) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NewOrderList) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NewOrderList) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -325,13 +326,13 @@ func (m NewOrderList) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NewOrderList) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NewOrderList) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegDifference sets PegDifference, Tag 211 -func (m NewOrderList) SetPegDifference(v float64) { - m.Set(field.NewPegDifference(v)) +func (m NewOrderList) SetPegDifference(value decimal.Decimal, scale int32) { + m.Set(field.NewPegDifference(value, scale)) } //GetAccount gets Account, Tag 1 diff --git a/fix41/newordersingle/NewOrderSingle.generated.go b/fix41/newordersingle/NewOrderSingle.generated.go index 3b339e2e9..a39354842 100644 --- a/fix41/newordersingle/NewOrderSingle.generated.go +++ b/fix41/newordersingle/NewOrderSingle.generated.go @@ -1,6 +1,7 @@ package newordersingle import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -76,8 +77,8 @@ func (m NewOrderSingle) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m NewOrderSingle) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NewOrderSingle) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -111,8 +112,8 @@ func (m NewOrderSingle) SetIOIid(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NewOrderSingle) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NewOrderSingle) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -121,8 +122,8 @@ func (m NewOrderSingle) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NewOrderSingle) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NewOrderSingle) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetRule80A sets Rule80A, Tag 47 @@ -186,8 +187,8 @@ func (m NewOrderSingle) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m NewOrderSingle) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NewOrderSingle) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -211,13 +212,13 @@ func (m NewOrderSingle) SetClientID(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NewOrderSingle) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NewOrderSingle) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NewOrderSingle) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NewOrderSingle) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -246,13 +247,13 @@ func (m NewOrderSingle) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NewOrderSingle) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NewOrderSingle) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NewOrderSingle) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NewOrderSingle) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -261,8 +262,8 @@ func (m NewOrderSingle) SetSecurityType(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NewOrderSingle) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NewOrderSingle) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetFutSettDate2 sets FutSettDate2, Tag 193 @@ -281,8 +282,8 @@ func (m NewOrderSingle) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NewOrderSingle) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NewOrderSingle) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -311,13 +312,13 @@ func (m NewOrderSingle) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NewOrderSingle) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NewOrderSingle) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegDifference sets PegDifference, Tag 211 -func (m NewOrderSingle) SetPegDifference(v float64) { - m.Set(field.NewPegDifference(v)) +func (m NewOrderSingle) SetPegDifference(value decimal.Decimal, scale int32) { + m.Set(field.NewPegDifference(value, scale)) } //GetAccount gets Account, Tag 1 diff --git a/fix41/news/News.generated.go b/fix41/news/News.generated.go index 9510fd32a..8f779ff3f 100644 --- a/fix41/news/News.generated.go +++ b/fix41/news/News.generated.go @@ -1,6 +1,7 @@ package news import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -281,8 +282,8 @@ func (m NoRelatedSym) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 diff --git a/fix41/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go b/fix41/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go index 397834a7c..21f4abce8 100644 --- a/fix41/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go +++ b/fix41/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go @@ -1,6 +1,7 @@ package ordercancelreplacerequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -77,8 +78,8 @@ func (m OrderCancelReplaceRequest) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m OrderCancelReplaceRequest) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m OrderCancelReplaceRequest) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -112,8 +113,8 @@ func (m OrderCancelReplaceRequest) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m OrderCancelReplaceRequest) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m OrderCancelReplaceRequest) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -127,8 +128,8 @@ func (m OrderCancelReplaceRequest) SetOrigClOrdID(v string) { } //SetPrice sets Price, Tag 44 -func (m OrderCancelReplaceRequest) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m OrderCancelReplaceRequest) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetRule80A sets Rule80A, Tag 47 @@ -192,8 +193,8 @@ func (m OrderCancelReplaceRequest) SetOpenClose(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m OrderCancelReplaceRequest) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m OrderCancelReplaceRequest) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -217,13 +218,13 @@ func (m OrderCancelReplaceRequest) SetClientID(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m OrderCancelReplaceRequest) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m OrderCancelReplaceRequest) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m OrderCancelReplaceRequest) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m OrderCancelReplaceRequest) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -247,8 +248,8 @@ func (m OrderCancelReplaceRequest) SetExpireTime(v time.Time) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m OrderCancelReplaceRequest) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m OrderCancelReplaceRequest) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -257,8 +258,8 @@ func (m OrderCancelReplaceRequest) SetSecurityType(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m OrderCancelReplaceRequest) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m OrderCancelReplaceRequest) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetFutSettDate2 sets FutSettDate2, Tag 193 @@ -277,8 +278,8 @@ func (m OrderCancelReplaceRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderCancelReplaceRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderCancelReplaceRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -307,13 +308,13 @@ func (m OrderCancelReplaceRequest) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m OrderCancelReplaceRequest) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m OrderCancelReplaceRequest) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegDifference sets PegDifference, Tag 211 -func (m OrderCancelReplaceRequest) SetPegDifference(v float64) { - m.Set(field.NewPegDifference(v)) +func (m OrderCancelReplaceRequest) SetPegDifference(value decimal.Decimal, scale int32) { + m.Set(field.NewPegDifference(value, scale)) } //GetAccount gets Account, Tag 1 diff --git a/fix41/ordercancelrequest/OrderCancelRequest.generated.go b/fix41/ordercancelrequest/OrderCancelRequest.generated.go index b8eb37092..2cb506424 100644 --- a/fix41/ordercancelrequest/OrderCancelRequest.generated.go +++ b/fix41/ordercancelrequest/OrderCancelRequest.generated.go @@ -1,6 +1,7 @@ package ordercancelrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -80,8 +81,8 @@ func (m OrderCancelRequest) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m OrderCancelRequest) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m OrderCancelRequest) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrigClOrdID sets OrigClOrdID, Tag 41 @@ -140,8 +141,8 @@ func (m OrderCancelRequest) SetClientID(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m OrderCancelRequest) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m OrderCancelRequest) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -160,8 +161,8 @@ func (m OrderCancelRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderCancelRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderCancelRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 diff --git a/fix41/orderstatusrequest/OrderStatusRequest.generated.go b/fix41/orderstatusrequest/OrderStatusRequest.generated.go index 8b69a1350..87838ee7e 100644 --- a/fix41/orderstatusrequest/OrderStatusRequest.generated.go +++ b/fix41/orderstatusrequest/OrderStatusRequest.generated.go @@ -1,6 +1,7 @@ package orderstatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -134,8 +135,8 @@ func (m OrderStatusRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 diff --git a/fix41/quote/Quote.generated.go b/fix41/quote/Quote.generated.go index 43caaaff1..5bbeacca4 100644 --- a/fix41/quote/Quote.generated.go +++ b/fix41/quote/Quote.generated.go @@ -1,6 +1,7 @@ package quote import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -123,23 +124,23 @@ func (m Quote) SetQuoteReqID(v string) { } //SetBidPx sets BidPx, Tag 132 -func (m Quote) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m Quote) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m Quote) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m Quote) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m Quote) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m Quote) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m Quote) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m Quote) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -148,28 +149,28 @@ func (m Quote) SetSecurityType(v string) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m Quote) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m Quote) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m Quote) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m Quote) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m Quote) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m Quote) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m Quote) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m Quote) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m Quote) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m Quote) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetFutSettDate2 sets FutSettDate2, Tag 193 @@ -188,8 +189,8 @@ func (m Quote) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m Quote) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m Quote) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 diff --git a/fix41/quoterequest/QuoteRequest.generated.go b/fix41/quoterequest/QuoteRequest.generated.go index e882d9399..fd4fe18d1 100644 --- a/fix41/quoterequest/QuoteRequest.generated.go +++ b/fix41/quoterequest/QuoteRequest.generated.go @@ -1,6 +1,7 @@ package quoterequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -68,8 +69,8 @@ func (m QuoteRequest) SetIDSource(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m QuoteRequest) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m QuoteRequest) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -118,8 +119,8 @@ func (m QuoteRequest) SetQuoteReqID(v string) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m QuoteRequest) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m QuoteRequest) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -128,8 +129,8 @@ func (m QuoteRequest) SetSecurityType(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m QuoteRequest) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m QuoteRequest) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetFutSettDate2 sets FutSettDate2, Tag 193 @@ -148,8 +149,8 @@ func (m QuoteRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m QuoteRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m QuoteRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 diff --git a/fix42/advertisement/Advertisement.generated.go b/fix42/advertisement/Advertisement.generated.go index 4f9742c42..79719fe03 100644 --- a/fix42/advertisement/Advertisement.generated.go +++ b/fix42/advertisement/Advertisement.generated.go @@ -1,6 +1,7 @@ package advertisement import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -101,8 +102,8 @@ func (m Advertisement) SetLastMkt(v string) { } //SetPrice sets Price, Tag 44 -func (m Advertisement) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m Advertisement) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -111,8 +112,8 @@ func (m Advertisement) SetSecurityID(v string) { } //SetShares sets Shares, Tag 53 -func (m Advertisement) SetShares(v float64) { - m.Set(field.NewShares(v)) +func (m Advertisement) SetShares(value decimal.Decimal, scale int32) { + m.Set(field.NewShares(value, scale)) } //SetSymbol sets Symbol, Tag 55 @@ -171,8 +172,8 @@ func (m Advertisement) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m Advertisement) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m Advertisement) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 @@ -191,13 +192,13 @@ func (m Advertisement) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m Advertisement) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m Advertisement) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m Advertisement) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m Advertisement) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetTradingSessionID sets TradingSessionID, Tag 336 diff --git a/fix42/allocation/Allocation.generated.go b/fix42/allocation/Allocation.generated.go index 56d43e5cb..4be11ebe9 100644 --- a/fix42/allocation/Allocation.generated.go +++ b/fix42/allocation/Allocation.generated.go @@ -1,6 +1,7 @@ package allocation import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -68,8 +69,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m Allocation) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m Allocation) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -93,8 +94,8 @@ func (m Allocation) SetSecurityID(v string) { } //SetShares sets Shares, Tag 53 -func (m Allocation) SetShares(v float64) { - m.Set(field.NewShares(v)) +func (m Allocation) SetShares(value decimal.Decimal, scale int32) { + m.Set(field.NewShares(value, scale)) } //SetSide sets Side, Tag 54 @@ -183,8 +184,8 @@ func (m Allocation) SetSecurityDesc(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m Allocation) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m Allocation) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetNoExecs sets NoExecs, Tag 124 @@ -198,8 +199,8 @@ func (m Allocation) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m Allocation) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m Allocation) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -228,8 +229,8 @@ func (m Allocation) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m Allocation) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m Allocation) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 @@ -248,13 +249,13 @@ func (m Allocation) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m Allocation) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m Allocation) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m Allocation) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m Allocation) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetTradingSessionID sets TradingSessionID, Tag 336 @@ -293,8 +294,8 @@ func (m Allocation) SetEncodedText(v string) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m Allocation) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m Allocation) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //GetAvgPx gets AvgPx, Tag 6 @@ -925,13 +926,13 @@ func (m NoAllocs) SetAllocAccount(v string) { } //SetAllocPrice sets AllocPrice, Tag 366 -func (m NoAllocs) SetAllocPrice(v float64) { - m.Set(field.NewAllocPrice(v)) +func (m NoAllocs) SetAllocPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocPrice(value, scale)) } //SetAllocShares sets AllocShares, Tag 80 -func (m NoAllocs) SetAllocShares(v float64) { - m.Set(field.NewAllocShares(v)) +func (m NoAllocs) SetAllocShares(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocShares(value, scale)) } //SetProcessCode sets ProcessCode, Tag 81 @@ -980,8 +981,8 @@ func (m NoAllocs) SetClientID(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoAllocs) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoAllocs) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -990,18 +991,18 @@ func (m NoAllocs) SetCommType(v string) { } //SetAllocAvgPx sets AllocAvgPx, Tag 153 -func (m NoAllocs) SetAllocAvgPx(v float64) { - m.Set(field.NewAllocAvgPx(v)) +func (m NoAllocs) SetAllocAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAvgPx(value, scale)) } //SetAllocNetMoney sets AllocNetMoney, Tag 154 -func (m NoAllocs) SetAllocNetMoney(v float64) { - m.Set(field.NewAllocNetMoney(v)) +func (m NoAllocs) SetAllocNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoAllocs) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoAllocs) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -1010,8 +1011,8 @@ func (m NoAllocs) SetSettlCurrency(v string) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoAllocs) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoAllocs) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -1020,8 +1021,8 @@ func (m NoAllocs) SetSettlCurrFxRateCalc(v string) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m NoAllocs) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m NoAllocs) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSettlInstMode sets SettlInstMode, Tag 160 @@ -1294,8 +1295,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -1393,8 +1394,8 @@ type NoExecs struct { } //SetLastShares sets LastShares, Tag 32 -func (m NoExecs) SetLastShares(v float64) { - m.Set(field.NewLastShares(v)) +func (m NoExecs) SetLastShares(value decimal.Decimal, scale int32) { + m.Set(field.NewLastShares(value, scale)) } //SetExecID sets ExecID, Tag 17 @@ -1403,8 +1404,8 @@ func (m NoExecs) SetExecID(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m NoExecs) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m NoExecs) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastCapacity sets LastCapacity, Tag 29 diff --git a/fix42/bidrequest/BidRequest.generated.go b/fix42/bidrequest/BidRequest.generated.go index 4723e3c69..e7db44d9f 100644 --- a/fix42/bidrequest/BidRequest.generated.go +++ b/fix42/bidrequest/BidRequest.generated.go @@ -1,6 +1,7 @@ package bidrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -132,13 +133,13 @@ func (m BidRequest) SetNumTickets(v int) { } //SetSideValue1 sets SideValue1, Tag 396 -func (m BidRequest) SetSideValue1(v float64) { - m.Set(field.NewSideValue1(v)) +func (m BidRequest) SetSideValue1(value decimal.Decimal, scale int32) { + m.Set(field.NewSideValue1(value, scale)) } //SetSideValue2 sets SideValue2, Tag 397 -func (m BidRequest) SetSideValue2(v float64) { - m.Set(field.NewSideValue2(v)) +func (m BidRequest) SetSideValue2(value decimal.Decimal, scale int32) { + m.Set(field.NewSideValue2(value, scale)) } //SetNoBidDescriptors sets NoBidDescriptors, Tag 398 @@ -152,8 +153,8 @@ func (m BidRequest) SetLiquidityIndType(v int) { } //SetWtAverageLiquidity sets WtAverageLiquidity, Tag 410 -func (m BidRequest) SetWtAverageLiquidity(v float64) { - m.Set(field.NewWtAverageLiquidity(v)) +func (m BidRequest) SetWtAverageLiquidity(value decimal.Decimal, scale int32) { + m.Set(field.NewWtAverageLiquidity(value, scale)) } //SetExchangeForPhysical sets ExchangeForPhysical, Tag 411 @@ -162,13 +163,13 @@ func (m BidRequest) SetExchangeForPhysical(v bool) { } //SetOutMainCntryUIndex sets OutMainCntryUIndex, Tag 412 -func (m BidRequest) SetOutMainCntryUIndex(v float64) { - m.Set(field.NewOutMainCntryUIndex(v)) +func (m BidRequest) SetOutMainCntryUIndex(value decimal.Decimal, scale int32) { + m.Set(field.NewOutMainCntryUIndex(value, scale)) } //SetCrossPercent sets CrossPercent, Tag 413 -func (m BidRequest) SetCrossPercent(v float64) { - m.Set(field.NewCrossPercent(v)) +func (m BidRequest) SetCrossPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewCrossPercent(value, scale)) } //SetProgRptReqs sets ProgRptReqs, Tag 414 @@ -553,8 +554,8 @@ func (m NoBidDescriptors) SetSideValueInd(v int) { } //SetLiquidityValue sets LiquidityValue, Tag 404 -func (m NoBidDescriptors) SetLiquidityValue(v float64) { - m.Set(field.NewLiquidityValue(v)) +func (m NoBidDescriptors) SetLiquidityValue(value decimal.Decimal, scale int32) { + m.Set(field.NewLiquidityValue(value, scale)) } //SetLiquidityNumSecurities sets LiquidityNumSecurities, Tag 441 @@ -563,33 +564,33 @@ func (m NoBidDescriptors) SetLiquidityNumSecurities(v int) { } //SetLiquidityPctLow sets LiquidityPctLow, Tag 402 -func (m NoBidDescriptors) SetLiquidityPctLow(v float64) { - m.Set(field.NewLiquidityPctLow(v)) +func (m NoBidDescriptors) SetLiquidityPctLow(value decimal.Decimal, scale int32) { + m.Set(field.NewLiquidityPctLow(value, scale)) } //SetLiquidityPctHigh sets LiquidityPctHigh, Tag 403 -func (m NoBidDescriptors) SetLiquidityPctHigh(v float64) { - m.Set(field.NewLiquidityPctHigh(v)) +func (m NoBidDescriptors) SetLiquidityPctHigh(value decimal.Decimal, scale int32) { + m.Set(field.NewLiquidityPctHigh(value, scale)) } //SetEFPTrackingError sets EFPTrackingError, Tag 405 -func (m NoBidDescriptors) SetEFPTrackingError(v float64) { - m.Set(field.NewEFPTrackingError(v)) +func (m NoBidDescriptors) SetEFPTrackingError(value decimal.Decimal, scale int32) { + m.Set(field.NewEFPTrackingError(value, scale)) } //SetFairValue sets FairValue, Tag 406 -func (m NoBidDescriptors) SetFairValue(v float64) { - m.Set(field.NewFairValue(v)) +func (m NoBidDescriptors) SetFairValue(value decimal.Decimal, scale int32) { + m.Set(field.NewFairValue(value, scale)) } //SetOutsideIndexPct sets OutsideIndexPct, Tag 407 -func (m NoBidDescriptors) SetOutsideIndexPct(v float64) { - m.Set(field.NewOutsideIndexPct(v)) +func (m NoBidDescriptors) SetOutsideIndexPct(value decimal.Decimal, scale int32) { + m.Set(field.NewOutsideIndexPct(value, scale)) } //SetValueOfFutures sets ValueOfFutures, Tag 408 -func (m NoBidDescriptors) SetValueOfFutures(v float64) { - m.Set(field.NewValueOfFutures(v)) +func (m NoBidDescriptors) SetValueOfFutures(value decimal.Decimal, scale int32) { + m.Set(field.NewValueOfFutures(value, scale)) } //GetBidDescriptorType gets BidDescriptorType, Tag 399 diff --git a/fix42/bidresponse/BidResponse.generated.go b/fix42/bidresponse/BidResponse.generated.go index 0011fadfc..18079538b 100644 --- a/fix42/bidresponse/BidResponse.generated.go +++ b/fix42/bidresponse/BidResponse.generated.go @@ -1,6 +1,7 @@ package bidresponse import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -115,8 +116,8 @@ type NoBidComponents struct { } //SetCommission sets Commission, Tag 12 -func (m NoBidComponents) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoBidComponents) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -140,8 +141,8 @@ func (m NoBidComponents) SetSide(v string) { } //SetPrice sets Price, Tag 44 -func (m NoBidComponents) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoBidComponents) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -150,8 +151,8 @@ func (m NoBidComponents) SetPriceType(v int) { } //SetFairValue sets FairValue, Tag 406 -func (m NoBidComponents) SetFairValue(v float64) { - m.Set(field.NewFairValue(v)) +func (m NoBidComponents) SetFairValue(value decimal.Decimal, scale int32) { + m.Set(field.NewFairValue(value, scale)) } //SetNetGrossInd sets NetGrossInd, Tag 430 diff --git a/fix42/dontknowtrade/DontKnowTrade.generated.go b/fix42/dontknowtrade/DontKnowTrade.generated.go index c11f05f1f..b3ada957a 100644 --- a/fix42/dontknowtrade/DontKnowTrade.generated.go +++ b/fix42/dontknowtrade/DontKnowTrade.generated.go @@ -1,6 +1,7 @@ package dontknowtrade import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -76,13 +77,13 @@ func (m DontKnowTrade) SetIDSource(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m DontKnowTrade) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m DontKnowTrade) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastShares sets LastShares, Tag 32 -func (m DontKnowTrade) SetLastShares(v float64) { - m.Set(field.NewLastShares(v)) +func (m DontKnowTrade) SetLastShares(value decimal.Decimal, scale int32) { + m.Set(field.NewLastShares(value, scale)) } //SetOrderID sets OrderID, Tag 37 @@ -91,8 +92,8 @@ func (m DontKnowTrade) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m DontKnowTrade) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m DontKnowTrade) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -136,8 +137,8 @@ func (m DontKnowTrade) SetDKReason(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m DontKnowTrade) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m DontKnowTrade) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -156,8 +157,8 @@ func (m DontKnowTrade) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m DontKnowTrade) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m DontKnowTrade) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 @@ -176,13 +177,13 @@ func (m DontKnowTrade) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m DontKnowTrade) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m DontKnowTrade) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m DontKnowTrade) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m DontKnowTrade) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetEncodedIssuerLen sets EncodedIssuerLen, Tag 348 diff --git a/fix42/email/Email.generated.go b/fix42/email/Email.generated.go index 69121f0af..1921f3e2e 100644 --- a/fix42/email/Email.generated.go +++ b/fix42/email/Email.generated.go @@ -1,6 +1,7 @@ package email import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -396,8 +397,8 @@ func (m NoRelatedSym) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -406,13 +407,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 diff --git a/fix42/executionreport/ExecutionReport.generated.go b/fix42/executionreport/ExecutionReport.generated.go index 142b590cc..abb0ffc44 100644 --- a/fix42/executionreport/ExecutionReport.generated.go +++ b/fix42/executionreport/ExecutionReport.generated.go @@ -1,6 +1,7 @@ package executionreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -76,8 +77,8 @@ func (m ExecutionReport) SetAccount(v string) { } //SetAvgPx sets AvgPx, Tag 6 -func (m ExecutionReport) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m ExecutionReport) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetClOrdID sets ClOrdID, Tag 11 @@ -86,8 +87,8 @@ func (m ExecutionReport) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m ExecutionReport) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m ExecutionReport) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -96,8 +97,8 @@ func (m ExecutionReport) SetCommType(v string) { } //SetCumQty sets CumQty, Tag 14 -func (m ExecutionReport) SetCumQty(v float64) { - m.Set(field.NewCumQty(v)) +func (m ExecutionReport) SetCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCumQty(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -146,13 +147,13 @@ func (m ExecutionReport) SetLastMkt(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m ExecutionReport) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m ExecutionReport) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastShares sets LastShares, Tag 32 -func (m ExecutionReport) SetLastShares(v float64) { - m.Set(field.NewLastShares(v)) +func (m ExecutionReport) SetLastShares(value decimal.Decimal, scale int32) { + m.Set(field.NewLastShares(value, scale)) } //SetOrderID sets OrderID, Tag 37 @@ -161,8 +162,8 @@ func (m ExecutionReport) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m ExecutionReport) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m ExecutionReport) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdStatus sets OrdStatus, Tag 39 @@ -181,8 +182,8 @@ func (m ExecutionReport) SetOrigClOrdID(v string) { } //SetPrice sets Price, Tag 44 -func (m ExecutionReport) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m ExecutionReport) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetRule80A sets Rule80A, Tag 47 @@ -256,8 +257,8 @@ func (m ExecutionReport) SetOpenClose(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m ExecutionReport) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m ExecutionReport) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetOrdRejReason sets OrdRejReason, Tag 103 @@ -281,13 +282,13 @@ func (m ExecutionReport) SetClientID(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m ExecutionReport) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m ExecutionReport) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m ExecutionReport) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m ExecutionReport) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetReportToExch sets ReportToExch, Tag 113 @@ -296,8 +297,8 @@ func (m ExecutionReport) SetReportToExch(v bool) { } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m ExecutionReport) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m ExecutionReport) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -316,18 +317,18 @@ func (m ExecutionReport) SetExecType(v string) { } //SetLeavesQty sets LeavesQty, Tag 151 -func (m ExecutionReport) SetLeavesQty(v float64) { - m.Set(field.NewLeavesQty(v)) +func (m ExecutionReport) SetLeavesQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLeavesQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m ExecutionReport) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m ExecutionReport) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m ExecutionReport) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m ExecutionReport) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -346,8 +347,8 @@ func (m ExecutionReport) SetEffectiveTime(v time.Time) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m ExecutionReport) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m ExecutionReport) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetFutSettDate2 sets FutSettDate2, Tag 193 @@ -356,13 +357,13 @@ func (m ExecutionReport) SetFutSettDate2(v string) { } //SetLastSpotRate sets LastSpotRate, Tag 194 -func (m ExecutionReport) SetLastSpotRate(v float64) { - m.Set(field.NewLastSpotRate(v)) +func (m ExecutionReport) SetLastSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSpotRate(value, scale)) } //SetLastForwardPoints sets LastForwardPoints, Tag 195 -func (m ExecutionReport) SetLastForwardPoints(v float64) { - m.Set(field.NewLastForwardPoints(v)) +func (m ExecutionReport) SetLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastForwardPoints(value, scale)) } //SetSecondaryOrderID sets SecondaryOrderID, Tag 198 @@ -381,8 +382,8 @@ func (m ExecutionReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m ExecutionReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m ExecutionReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 @@ -401,23 +402,23 @@ func (m ExecutionReport) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m ExecutionReport) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m ExecutionReport) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegDifference sets PegDifference, Tag 211 -func (m ExecutionReport) SetPegDifference(v float64) { - m.Set(field.NewPegDifference(v)) +func (m ExecutionReport) SetPegDifference(value decimal.Decimal, scale int32) { + m.Set(field.NewPegDifference(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m ExecutionReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m ExecutionReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m ExecutionReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m ExecutionReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetTradingSessionID sets TradingSessionID, Tag 336 @@ -471,8 +472,8 @@ func (m ExecutionReport) SetExecRestatementReason(v int) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m ExecutionReport) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m ExecutionReport) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetNoContraBrokers sets NoContraBrokers, Tag 382 @@ -486,23 +487,23 @@ func (m ExecutionReport) SetDiscretionInst(v string) { } //SetDiscretionOffset sets DiscretionOffset, Tag 389 -func (m ExecutionReport) SetDiscretionOffset(v float64) { - m.Set(field.NewDiscretionOffset(v)) +func (m ExecutionReport) SetDiscretionOffset(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffset(value, scale)) } //SetDayOrderQty sets DayOrderQty, Tag 424 -func (m ExecutionReport) SetDayOrderQty(v float64) { - m.Set(field.NewDayOrderQty(v)) +func (m ExecutionReport) SetDayOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDayOrderQty(value, scale)) } //SetDayCumQty sets DayCumQty, Tag 425 -func (m ExecutionReport) SetDayCumQty(v float64) { - m.Set(field.NewDayCumQty(v)) +func (m ExecutionReport) SetDayCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDayCumQty(value, scale)) } //SetDayAvgPx sets DayAvgPx, Tag 426 -func (m ExecutionReport) SetDayAvgPx(v float64) { - m.Set(field.NewDayAvgPx(v)) +func (m ExecutionReport) SetDayAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewDayAvgPx(value, scale)) } //SetGTBookingInst sets GTBookingInst, Tag 427 @@ -1559,8 +1560,8 @@ func (m NoContraBrokers) SetContraTrader(v string) { } //SetContraTradeQty sets ContraTradeQty, Tag 437 -func (m NoContraBrokers) SetContraTradeQty(v float64) { - m.Set(field.NewContraTradeQty(v)) +func (m NoContraBrokers) SetContraTradeQty(value decimal.Decimal, scale int32) { + m.Set(field.NewContraTradeQty(value, scale)) } //SetContraTradeTime sets ContraTradeTime, Tag 438 diff --git a/fix42/indicationofinterest/IndicationofInterest.generated.go b/fix42/indicationofinterest/IndicationofInterest.generated.go index cd9033292..e51eef1a1 100644 --- a/fix42/indicationofinterest/IndicationofInterest.generated.go +++ b/fix42/indicationofinterest/IndicationofInterest.generated.go @@ -1,6 +1,7 @@ package indicationofinterest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -101,8 +102,8 @@ func (m IndicationofInterest) SetIOITransType(v string) { } //SetPrice sets Price, Tag 44 -func (m IndicationofInterest) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m IndicationofInterest) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -181,8 +182,8 @@ func (m IndicationofInterest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m IndicationofInterest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m IndicationofInterest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 @@ -206,8 +207,8 @@ func (m IndicationofInterest) SetNoRoutingIDs(f NoRoutingIDsRepeatingGroup) { } //SetSpreadToBenchmark sets SpreadToBenchmark, Tag 218 -func (m IndicationofInterest) SetSpreadToBenchmark(v float64) { - m.Set(field.NewSpreadToBenchmark(v)) +func (m IndicationofInterest) SetSpreadToBenchmark(value decimal.Decimal, scale int32) { + m.Set(field.NewSpreadToBenchmark(value, scale)) } //SetBenchmark sets Benchmark, Tag 219 @@ -216,13 +217,13 @@ func (m IndicationofInterest) SetBenchmark(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m IndicationofInterest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m IndicationofInterest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m IndicationofInterest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m IndicationofInterest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetEncodedIssuerLen sets EncodedIssuerLen, Tag 348 diff --git a/fix42/liststatus/ListStatus.generated.go b/fix42/liststatus/ListStatus.generated.go index acad73082..e0f0e138c 100644 --- a/fix42/liststatus/ListStatus.generated.go +++ b/fix42/liststatus/ListStatus.generated.go @@ -1,6 +1,7 @@ package liststatus import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -254,8 +255,8 @@ func (m NoOrders) SetClOrdID(v string) { } //SetCumQty sets CumQty, Tag 14 -func (m NoOrders) SetCumQty(v float64) { - m.Set(field.NewCumQty(v)) +func (m NoOrders) SetCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCumQty(value, scale)) } //SetOrdStatus sets OrdStatus, Tag 39 @@ -264,18 +265,18 @@ func (m NoOrders) SetOrdStatus(v string) { } //SetLeavesQty sets LeavesQty, Tag 151 -func (m NoOrders) SetLeavesQty(v float64) { - m.Set(field.NewLeavesQty(v)) +func (m NoOrders) SetLeavesQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLeavesQty(value, scale)) } //SetCxlQty sets CxlQty, Tag 84 -func (m NoOrders) SetCxlQty(v float64) { - m.Set(field.NewCxlQty(v)) +func (m NoOrders) SetCxlQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCxlQty(value, scale)) } //SetAvgPx sets AvgPx, Tag 6 -func (m NoOrders) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m NoOrders) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetOrdRejReason sets OrdRejReason, Tag 103 diff --git a/fix42/liststrikeprice/ListStrikePrice.generated.go b/fix42/liststrikeprice/ListStrikePrice.generated.go index 055bca450..d637260a5 100644 --- a/fix42/liststrikeprice/ListStrikePrice.generated.go +++ b/fix42/liststrikeprice/ListStrikePrice.generated.go @@ -1,6 +1,7 @@ package liststrikeprice import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -157,8 +158,8 @@ func (m NoStrikes) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoStrikes) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoStrikes) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -167,13 +168,13 @@ func (m NoStrikes) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoStrikes) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoStrikes) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoStrikes) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoStrikes) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -212,8 +213,8 @@ func (m NoStrikes) SetEncodedSecurityDesc(v string) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoStrikes) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoStrikes) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetClOrdID sets ClOrdID, Tag 11 @@ -227,8 +228,8 @@ func (m NoStrikes) SetSide(v string) { } //SetPrice sets Price, Tag 44 -func (m NoStrikes) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoStrikes) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetCurrency sets Currency, Tag 15 diff --git a/fix42/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go b/fix42/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go index de8c32070..209e8824f 100644 --- a/fix42/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go +++ b/fix42/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go @@ -1,6 +1,7 @@ package marketdataincrementalrefresh import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -164,8 +165,8 @@ func (m NoMDEntries) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoMDEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoMDEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -174,13 +175,13 @@ func (m NoMDEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoMDEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoMDEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoMDEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoMDEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -229,8 +230,8 @@ func (m NoMDEntries) SetCorporateAction(v string) { } //SetMDEntryPx sets MDEntryPx, Tag 270 -func (m NoMDEntries) SetMDEntryPx(v float64) { - m.Set(field.NewMDEntryPx(v)) +func (m NoMDEntries) SetMDEntryPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntryPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -239,8 +240,8 @@ func (m NoMDEntries) SetCurrency(v string) { } //SetMDEntrySize sets MDEntrySize, Tag 271 -func (m NoMDEntries) SetMDEntrySize(v float64) { - m.Set(field.NewMDEntrySize(v)) +func (m NoMDEntries) SetMDEntrySize(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntrySize(value, scale)) } //SetMDEntryDate sets MDEntryDate, Tag 272 @@ -314,8 +315,8 @@ func (m NoMDEntries) SetExpireTime(v time.Time) { } //SetMinQty sets MinQty, Tag 110 -func (m NoMDEntries) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NoMDEntries) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetExecInst sets ExecInst, Tag 18 @@ -359,8 +360,8 @@ func (m NoMDEntries) SetMDEntryPositionNo(v int) { } //SetTotalVolumeTraded sets TotalVolumeTraded, Tag 387 -func (m NoMDEntries) SetTotalVolumeTraded(v float64) { - m.Set(field.NewTotalVolumeTraded(v)) +func (m NoMDEntries) SetTotalVolumeTraded(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalVolumeTraded(value, scale)) } //SetText sets Text, Tag 58 diff --git a/fix42/marketdatarequest/MarketDataRequest.generated.go b/fix42/marketdatarequest/MarketDataRequest.generated.go index acc3ee1a2..506fe4458 100644 --- a/fix42/marketdatarequest/MarketDataRequest.generated.go +++ b/fix42/marketdatarequest/MarketDataRequest.generated.go @@ -1,6 +1,7 @@ package marketdatarequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -223,8 +224,8 @@ func (m NoRelatedSym) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -233,13 +234,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 diff --git a/fix42/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go b/fix42/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go index 285685989..5ea2e456d 100644 --- a/fix42/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go +++ b/fix42/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go @@ -1,6 +1,7 @@ package marketdatasnapshotfullrefresh import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -107,8 +108,8 @@ func (m MarketDataSnapshotFullRefresh) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m MarketDataSnapshotFullRefresh) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m MarketDataSnapshotFullRefresh) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 @@ -127,13 +128,13 @@ func (m MarketDataSnapshotFullRefresh) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m MarketDataSnapshotFullRefresh) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m MarketDataSnapshotFullRefresh) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m MarketDataSnapshotFullRefresh) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m MarketDataSnapshotFullRefresh) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetMDReqID sets MDReqID, Tag 262 @@ -177,8 +178,8 @@ func (m MarketDataSnapshotFullRefresh) SetEncodedSecurityDesc(v string) { } //SetTotalVolumeTraded sets TotalVolumeTraded, Tag 387 -func (m MarketDataSnapshotFullRefresh) SetTotalVolumeTraded(v float64) { - m.Set(field.NewTotalVolumeTraded(v)) +func (m MarketDataSnapshotFullRefresh) SetTotalVolumeTraded(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalVolumeTraded(value, scale)) } //GetIDSource gets IDSource, Tag 22 @@ -457,8 +458,8 @@ func (m NoMDEntries) SetMDEntryType(v string) { } //SetMDEntryPx sets MDEntryPx, Tag 270 -func (m NoMDEntries) SetMDEntryPx(v float64) { - m.Set(field.NewMDEntryPx(v)) +func (m NoMDEntries) SetMDEntryPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntryPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -467,8 +468,8 @@ func (m NoMDEntries) SetCurrency(v string) { } //SetMDEntrySize sets MDEntrySize, Tag 271 -func (m NoMDEntries) SetMDEntrySize(v float64) { - m.Set(field.NewMDEntrySize(v)) +func (m NoMDEntries) SetMDEntrySize(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntrySize(value, scale)) } //SetMDEntryDate sets MDEntryDate, Tag 272 @@ -542,8 +543,8 @@ func (m NoMDEntries) SetExpireTime(v time.Time) { } //SetMinQty sets MinQty, Tag 110 -func (m NoMDEntries) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NoMDEntries) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetExecInst sets ExecInst, Tag 18 diff --git a/fix42/massquote/MassQuote.generated.go b/fix42/massquote/MassQuote.generated.go index e5bd7bcc0..b877de2fa 100644 --- a/fix42/massquote/MassQuote.generated.go +++ b/fix42/massquote/MassQuote.generated.go @@ -1,6 +1,7 @@ package massquote import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -72,13 +73,13 @@ func (m MassQuote) SetQuoteReqID(v string) { } //SetDefBidSize sets DefBidSize, Tag 293 -func (m MassQuote) SetDefBidSize(v float64) { - m.Set(field.NewDefBidSize(v)) +func (m MassQuote) SetDefBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewDefBidSize(value, scale)) } //SetDefOfferSize sets DefOfferSize, Tag 294 -func (m MassQuote) SetDefOfferSize(v float64) { - m.Set(field.NewDefOfferSize(v)) +func (m MassQuote) SetDefOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewDefOfferSize(value, scale)) } //SetNoQuoteSets sets NoQuoteSets, Tag 296 @@ -209,8 +210,8 @@ func (m NoQuoteSets) SetUnderlyingPutOrCall(v int) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoQuoteSets) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoQuoteSets) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -219,13 +220,13 @@ func (m NoQuoteSets) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoQuoteSets) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoQuoteSets) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoQuoteSets) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoQuoteSets) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -583,8 +584,8 @@ func (m NoQuoteEntries) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoQuoteEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoQuoteEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -593,13 +594,13 @@ func (m NoQuoteEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoQuoteEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoQuoteEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoQuoteEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoQuoteEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -638,23 +639,23 @@ func (m NoQuoteEntries) SetEncodedSecurityDesc(v string) { } //SetBidPx sets BidPx, Tag 132 -func (m NoQuoteEntries) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m NoQuoteEntries) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m NoQuoteEntries) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m NoQuoteEntries) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m NoQuoteEntries) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m NoQuoteEntries) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m NoQuoteEntries) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m NoQuoteEntries) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetValidUntilTime sets ValidUntilTime, Tag 62 @@ -663,23 +664,23 @@ func (m NoQuoteEntries) SetValidUntilTime(v time.Time) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m NoQuoteEntries) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m NoQuoteEntries) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m NoQuoteEntries) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m NoQuoteEntries) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m NoQuoteEntries) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m NoQuoteEntries) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m NoQuoteEntries) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m NoQuoteEntries) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetTransactTime sets TransactTime, Tag 60 @@ -708,8 +709,8 @@ func (m NoQuoteEntries) SetFutSettDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoQuoteEntries) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoQuoteEntries) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetCurrency sets Currency, Tag 15 diff --git a/fix42/neworderlist/NewOrderList.generated.go b/fix42/neworderlist/NewOrderList.generated.go index dfc503880..2a95dcb36 100644 --- a/fix42/neworderlist/NewOrderList.generated.go +++ b/fix42/neworderlist/NewOrderList.generated.go @@ -1,6 +1,7 @@ package neworderlist import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -317,13 +318,13 @@ func (m NoOrders) SetExecInst(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NoOrders) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NoOrders) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NoOrders) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NoOrders) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -382,8 +383,8 @@ func (m NoOrders) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoOrders) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoOrders) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -392,13 +393,13 @@ func (m NoOrders) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoOrders) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoOrders) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoOrders) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoOrders) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -437,8 +438,8 @@ func (m NoOrders) SetEncodedSecurityDesc(v string) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoOrders) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoOrders) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetSide sets Side, Tag 54 @@ -462,13 +463,13 @@ func (m NoOrders) SetTransactTime(v time.Time) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoOrders) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoOrders) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -477,13 +478,13 @@ func (m NoOrders) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NoOrders) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoOrders) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetStopPx sets StopPx, Tag 99 -func (m NoOrders) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NoOrders) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -537,8 +538,8 @@ func (m NoOrders) SetGTBookingInst(v int) { } //SetCommission sets Commission, Tag 12 -func (m NoOrders) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoOrders) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -582,8 +583,8 @@ func (m NoOrders) SetFutSettDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoOrders) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoOrders) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetOpenClose sets OpenClose, Tag 77 @@ -602,13 +603,13 @@ func (m NoOrders) SetCustomerOrFirm(v int) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NoOrders) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NoOrders) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegDifference sets PegDifference, Tag 211 -func (m NoOrders) SetPegDifference(v float64) { - m.Set(field.NewPegDifference(v)) +func (m NoOrders) SetPegDifference(value decimal.Decimal, scale int32) { + m.Set(field.NewPegDifference(value, scale)) } //SetDiscretionInst sets DiscretionInst, Tag 388 @@ -617,8 +618,8 @@ func (m NoOrders) SetDiscretionInst(v string) { } //SetDiscretionOffset sets DiscretionOffset, Tag 389 -func (m NoOrders) SetDiscretionOffset(v float64) { - m.Set(field.NewDiscretionOffset(v)) +func (m NoOrders) SetDiscretionOffset(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffset(value, scale)) } //SetClearingFirm sets ClearingFirm, Tag 439 @@ -1458,8 +1459,8 @@ func (m NoAllocs) SetAllocAccount(v string) { } //SetAllocShares sets AllocShares, Tag 80 -func (m NoAllocs) SetAllocShares(v float64) { - m.Set(field.NewAllocShares(v)) +func (m NoAllocs) SetAllocShares(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocShares(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 diff --git a/fix42/newordersingle/NewOrderSingle.generated.go b/fix42/newordersingle/NewOrderSingle.generated.go index 8011cfd2a..62107756a 100644 --- a/fix42/newordersingle/NewOrderSingle.generated.go +++ b/fix42/newordersingle/NewOrderSingle.generated.go @@ -1,6 +1,7 @@ package newordersingle import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -77,8 +78,8 @@ func (m NewOrderSingle) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m NewOrderSingle) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NewOrderSingle) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -112,8 +113,8 @@ func (m NewOrderSingle) SetIOIid(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NewOrderSingle) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NewOrderSingle) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -122,8 +123,8 @@ func (m NewOrderSingle) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NewOrderSingle) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NewOrderSingle) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetRule80A sets Rule80A, Tag 47 @@ -197,8 +198,8 @@ func (m NewOrderSingle) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m NewOrderSingle) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NewOrderSingle) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -222,13 +223,13 @@ func (m NewOrderSingle) SetClientID(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NewOrderSingle) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NewOrderSingle) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NewOrderSingle) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NewOrderSingle) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -257,13 +258,13 @@ func (m NewOrderSingle) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NewOrderSingle) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NewOrderSingle) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NewOrderSingle) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NewOrderSingle) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -277,8 +278,8 @@ func (m NewOrderSingle) SetEffectiveTime(v time.Time) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NewOrderSingle) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NewOrderSingle) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetFutSettDate2 sets FutSettDate2, Tag 193 @@ -297,8 +298,8 @@ func (m NewOrderSingle) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NewOrderSingle) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NewOrderSingle) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -327,23 +328,23 @@ func (m NewOrderSingle) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NewOrderSingle) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NewOrderSingle) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegDifference sets PegDifference, Tag 211 -func (m NewOrderSingle) SetPegDifference(v float64) { - m.Set(field.NewPegDifference(v)) +func (m NewOrderSingle) SetPegDifference(value decimal.Decimal, scale int32) { + m.Set(field.NewPegDifference(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NewOrderSingle) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NewOrderSingle) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NewOrderSingle) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NewOrderSingle) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetEncodedIssuerLen sets EncodedIssuerLen, Tag 348 @@ -397,8 +398,8 @@ func (m NewOrderSingle) SetDiscretionInst(v string) { } //SetDiscretionOffset sets DiscretionOffset, Tag 389 -func (m NewOrderSingle) SetDiscretionOffset(v float64) { - m.Set(field.NewDiscretionOffset(v)) +func (m NewOrderSingle) SetDiscretionOffset(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffset(value, scale)) } //SetGTBookingInst sets GTBookingInst, Tag 427 @@ -1215,8 +1216,8 @@ func (m NoAllocs) SetAllocAccount(v string) { } //SetAllocShares sets AllocShares, Tag 80 -func (m NoAllocs) SetAllocShares(v float64) { - m.Set(field.NewAllocShares(v)) +func (m NoAllocs) SetAllocShares(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocShares(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 diff --git a/fix42/news/News.generated.go b/fix42/news/News.generated.go index 394f94218..907530f9e 100644 --- a/fix42/news/News.generated.go +++ b/fix42/news/News.generated.go @@ -1,6 +1,7 @@ package news import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -362,8 +363,8 @@ func (m NoRelatedSym) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -372,13 +373,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 diff --git a/fix42/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go b/fix42/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go index 57f477f3f..5e239a78b 100644 --- a/fix42/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go +++ b/fix42/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go @@ -1,6 +1,7 @@ package ordercancelreplacerequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -78,8 +79,8 @@ func (m OrderCancelReplaceRequest) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m OrderCancelReplaceRequest) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m OrderCancelReplaceRequest) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -113,8 +114,8 @@ func (m OrderCancelReplaceRequest) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m OrderCancelReplaceRequest) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m OrderCancelReplaceRequest) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -128,8 +129,8 @@ func (m OrderCancelReplaceRequest) SetOrigClOrdID(v string) { } //SetPrice sets Price, Tag 44 -func (m OrderCancelReplaceRequest) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m OrderCancelReplaceRequest) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetRule80A sets Rule80A, Tag 47 @@ -203,8 +204,8 @@ func (m OrderCancelReplaceRequest) SetNoAllocs(f NoAllocsRepeatingGroup) { } //SetStopPx sets StopPx, Tag 99 -func (m OrderCancelReplaceRequest) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m OrderCancelReplaceRequest) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -228,13 +229,13 @@ func (m OrderCancelReplaceRequest) SetClientID(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m OrderCancelReplaceRequest) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m OrderCancelReplaceRequest) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m OrderCancelReplaceRequest) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m OrderCancelReplaceRequest) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -258,8 +259,8 @@ func (m OrderCancelReplaceRequest) SetExpireTime(v time.Time) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m OrderCancelReplaceRequest) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m OrderCancelReplaceRequest) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -273,8 +274,8 @@ func (m OrderCancelReplaceRequest) SetEffectiveTime(v time.Time) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m OrderCancelReplaceRequest) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m OrderCancelReplaceRequest) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetFutSettDate2 sets FutSettDate2, Tag 193 @@ -293,8 +294,8 @@ func (m OrderCancelReplaceRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderCancelReplaceRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderCancelReplaceRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -323,23 +324,23 @@ func (m OrderCancelReplaceRequest) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m OrderCancelReplaceRequest) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m OrderCancelReplaceRequest) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegDifference sets PegDifference, Tag 211 -func (m OrderCancelReplaceRequest) SetPegDifference(v float64) { - m.Set(field.NewPegDifference(v)) +func (m OrderCancelReplaceRequest) SetPegDifference(value decimal.Decimal, scale int32) { + m.Set(field.NewPegDifference(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderCancelReplaceRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderCancelReplaceRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderCancelReplaceRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderCancelReplaceRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetEncodedIssuerLen sets EncodedIssuerLen, Tag 348 @@ -393,8 +394,8 @@ func (m OrderCancelReplaceRequest) SetDiscretionInst(v string) { } //SetDiscretionOffset sets DiscretionOffset, Tag 389 -func (m OrderCancelReplaceRequest) SetDiscretionOffset(v float64) { - m.Set(field.NewDiscretionOffset(v)) +func (m OrderCancelReplaceRequest) SetDiscretionOffset(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffset(value, scale)) } //SetGTBookingInst sets GTBookingInst, Tag 427 @@ -1200,8 +1201,8 @@ func (m NoAllocs) SetAllocAccount(v string) { } //SetAllocShares sets AllocShares, Tag 80 -func (m NoAllocs) SetAllocShares(v float64) { - m.Set(field.NewAllocShares(v)) +func (m NoAllocs) SetAllocShares(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocShares(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 diff --git a/fix42/ordercancelrequest/OrderCancelRequest.generated.go b/fix42/ordercancelrequest/OrderCancelRequest.generated.go index 7f0bc387e..fd93180ba 100644 --- a/fix42/ordercancelrequest/OrderCancelRequest.generated.go +++ b/fix42/ordercancelrequest/OrderCancelRequest.generated.go @@ -1,6 +1,7 @@ package ordercancelrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -86,8 +87,8 @@ func (m OrderCancelRequest) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m OrderCancelRequest) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m OrderCancelRequest) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrigClOrdID sets OrigClOrdID, Tag 41 @@ -151,8 +152,8 @@ func (m OrderCancelRequest) SetClientID(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m OrderCancelRequest) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m OrderCancelRequest) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -171,8 +172,8 @@ func (m OrderCancelRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderCancelRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderCancelRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 @@ -191,13 +192,13 @@ func (m OrderCancelRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderCancelRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderCancelRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderCancelRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderCancelRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetEncodedIssuerLen sets EncodedIssuerLen, Tag 348 diff --git a/fix42/orderstatusrequest/OrderStatusRequest.generated.go b/fix42/orderstatusrequest/OrderStatusRequest.generated.go index 5c41dc13c..80c0a9a61 100644 --- a/fix42/orderstatusrequest/OrderStatusRequest.generated.go +++ b/fix42/orderstatusrequest/OrderStatusRequest.generated.go @@ -1,6 +1,7 @@ package orderstatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -139,8 +140,8 @@ func (m OrderStatusRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 @@ -159,13 +160,13 @@ func (m OrderStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetEncodedIssuerLen sets EncodedIssuerLen, Tag 348 diff --git a/fix42/quote/Quote.generated.go b/fix42/quote/Quote.generated.go index 2745c9d92..4b98d2bbf 100644 --- a/fix42/quote/Quote.generated.go +++ b/fix42/quote/Quote.generated.go @@ -1,6 +1,7 @@ package quote import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -128,23 +129,23 @@ func (m Quote) SetQuoteReqID(v string) { } //SetBidPx sets BidPx, Tag 132 -func (m Quote) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m Quote) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m Quote) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m Quote) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m Quote) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m Quote) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m Quote) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m Quote) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -153,28 +154,28 @@ func (m Quote) SetSecurityType(v string) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m Quote) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m Quote) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m Quote) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m Quote) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m Quote) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m Quote) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m Quote) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m Quote) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m Quote) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m Quote) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetFutSettDate2 sets FutSettDate2, Tag 193 @@ -193,8 +194,8 @@ func (m Quote) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m Quote) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m Quote) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 @@ -213,13 +214,13 @@ func (m Quote) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m Quote) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m Quote) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m Quote) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m Quote) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetQuoteResponseLevel sets QuoteResponseLevel, Tag 301 diff --git a/fix42/quoteacknowledgement/QuoteAcknowledgement.generated.go b/fix42/quoteacknowledgement/QuoteAcknowledgement.generated.go index 4a707771e..add7c6d49 100644 --- a/fix42/quoteacknowledgement/QuoteAcknowledgement.generated.go +++ b/fix42/quoteacknowledgement/QuoteAcknowledgement.generated.go @@ -1,6 +1,7 @@ package quoteacknowledgement import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -241,8 +242,8 @@ func (m NoQuoteSets) SetUnderlyingPutOrCall(v int) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoQuoteSets) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoQuoteSets) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -251,13 +252,13 @@ func (m NoQuoteSets) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoQuoteSets) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoQuoteSets) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoQuoteSets) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoQuoteSets) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -599,8 +600,8 @@ func (m NoQuoteEntries) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoQuoteEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoQuoteEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -609,13 +610,13 @@ func (m NoQuoteEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoQuoteEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoQuoteEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoQuoteEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoQuoteEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 diff --git a/fix42/quotecancel/QuoteCancel.generated.go b/fix42/quotecancel/QuoteCancel.generated.go index 39730d878..dff5fb3ce 100644 --- a/fix42/quotecancel/QuoteCancel.generated.go +++ b/fix42/quotecancel/QuoteCancel.generated.go @@ -1,6 +1,7 @@ package quotecancel import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -205,8 +206,8 @@ func (m NoQuoteEntries) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoQuoteEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoQuoteEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -215,13 +216,13 @@ func (m NoQuoteEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoQuoteEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoQuoteEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoQuoteEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoQuoteEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 diff --git a/fix42/quoterequest/QuoteRequest.generated.go b/fix42/quoterequest/QuoteRequest.generated.go index 9c624aa7b..840baf4d7 100644 --- a/fix42/quoterequest/QuoteRequest.generated.go +++ b/fix42/quoterequest/QuoteRequest.generated.go @@ -1,6 +1,7 @@ package quoterequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -140,8 +141,8 @@ func (m NoRelatedSym) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -150,13 +151,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -195,8 +196,8 @@ func (m NoRelatedSym) SetEncodedSecurityDesc(v string) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoRelatedSym) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoRelatedSym) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetQuoteRequestType sets QuoteRequestType, Tag 303 @@ -215,8 +216,8 @@ func (m NoRelatedSym) SetSide(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoRelatedSym) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoRelatedSym) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetFutSettDate sets FutSettDate, Tag 64 @@ -235,8 +236,8 @@ func (m NoRelatedSym) SetFutSettDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoRelatedSym) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoRelatedSym) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetExpireTime sets ExpireTime, Tag 126 diff --git a/fix42/quotestatusrequest/QuoteStatusRequest.generated.go b/fix42/quotestatusrequest/QuoteStatusRequest.generated.go index c82f00a16..e90c3ed1f 100644 --- a/fix42/quotestatusrequest/QuoteStatusRequest.generated.go +++ b/fix42/quotestatusrequest/QuoteStatusRequest.generated.go @@ -1,6 +1,7 @@ package quotestatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -117,8 +118,8 @@ func (m QuoteStatusRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m QuoteStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m QuoteStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 @@ -137,13 +138,13 @@ func (m QuoteStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m QuoteStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m QuoteStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m QuoteStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m QuoteStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetTradingSessionID sets TradingSessionID, Tag 336 diff --git a/fix42/securitydefinition/SecurityDefinition.generated.go b/fix42/securitydefinition/SecurityDefinition.generated.go index 52b03302f..b193b5b97 100644 --- a/fix42/securitydefinition/SecurityDefinition.generated.go +++ b/fix42/securitydefinition/SecurityDefinition.generated.go @@ -1,6 +1,7 @@ package securitydefinition import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -124,8 +125,8 @@ func (m SecurityDefinition) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityDefinition) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityDefinition) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 @@ -144,13 +145,13 @@ func (m SecurityDefinition) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityDefinition) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityDefinition) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityDefinition) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityDefinition) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetSecurityReqID sets SecurityReqID, Tag 320 @@ -574,8 +575,8 @@ func (m NoRelatedSym) SetUnderlyingPutOrCall(v int) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoRelatedSym) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoRelatedSym) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -584,13 +585,13 @@ func (m NoRelatedSym) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoRelatedSym) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoRelatedSym) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoRelatedSym) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoRelatedSym) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -629,8 +630,8 @@ func (m NoRelatedSym) SetEncodedUnderlyingSecurityDesc(v string) { } //SetRatioQty sets RatioQty, Tag 319 -func (m NoRelatedSym) SetRatioQty(v float64) { - m.Set(field.NewRatioQty(v)) +func (m NoRelatedSym) SetRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRatioQty(value, scale)) } //SetSide sets Side, Tag 54 diff --git a/fix42/securitydefinitionrequest/SecurityDefinitionRequest.generated.go b/fix42/securitydefinitionrequest/SecurityDefinitionRequest.generated.go index 20aaa2f42..7b82f69fa 100644 --- a/fix42/securitydefinitionrequest/SecurityDefinitionRequest.generated.go +++ b/fix42/securitydefinitionrequest/SecurityDefinitionRequest.generated.go @@ -1,6 +1,7 @@ package securitydefinitionrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -123,8 +124,8 @@ func (m SecurityDefinitionRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityDefinitionRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityDefinitionRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 @@ -143,13 +144,13 @@ func (m SecurityDefinitionRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityDefinitionRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityDefinitionRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityDefinitionRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityDefinitionRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetSecurityReqID sets SecurityReqID, Tag 320 @@ -541,8 +542,8 @@ func (m NoRelatedSym) SetUnderlyingPutOrCall(v int) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoRelatedSym) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoRelatedSym) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -551,13 +552,13 @@ func (m NoRelatedSym) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoRelatedSym) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoRelatedSym) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoRelatedSym) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoRelatedSym) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -596,8 +597,8 @@ func (m NoRelatedSym) SetEncodedUnderlyingSecurityDesc(v string) { } //SetRatioQty sets RatioQty, Tag 319 -func (m NoRelatedSym) SetRatioQty(v float64) { - m.Set(field.NewRatioQty(v)) +func (m NoRelatedSym) SetRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRatioQty(value, scale)) } //SetSide sets Side, Tag 54 diff --git a/fix42/securitystatus/SecurityStatus.generated.go b/fix42/securitystatus/SecurityStatus.generated.go index 7fd7c41e3..9e3226206 100644 --- a/fix42/securitystatus/SecurityStatus.generated.go +++ b/fix42/securitystatus/SecurityStatus.generated.go @@ -1,6 +1,7 @@ package securitystatus import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -72,8 +73,8 @@ func (m SecurityStatus) SetIDSource(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m SecurityStatus) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m SecurityStatus) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -122,8 +123,8 @@ func (m SecurityStatus) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityStatus) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityStatus) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 @@ -142,13 +143,13 @@ func (m SecurityStatus) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityStatus) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityStatus) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityStatus) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityStatus) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetFinancialStatus sets FinancialStatus, Tag 291 @@ -192,23 +193,23 @@ func (m SecurityStatus) SetDueToRelated(v bool) { } //SetBuyVolume sets BuyVolume, Tag 330 -func (m SecurityStatus) SetBuyVolume(v float64) { - m.Set(field.NewBuyVolume(v)) +func (m SecurityStatus) SetBuyVolume(value decimal.Decimal, scale int32) { + m.Set(field.NewBuyVolume(value, scale)) } //SetSellVolume sets SellVolume, Tag 331 -func (m SecurityStatus) SetSellVolume(v float64) { - m.Set(field.NewSellVolume(v)) +func (m SecurityStatus) SetSellVolume(value decimal.Decimal, scale int32) { + m.Set(field.NewSellVolume(value, scale)) } //SetHighPx sets HighPx, Tag 332 -func (m SecurityStatus) SetHighPx(v float64) { - m.Set(field.NewHighPx(v)) +func (m SecurityStatus) SetHighPx(value decimal.Decimal, scale int32) { + m.Set(field.NewHighPx(value, scale)) } //SetLowPx sets LowPx, Tag 333 -func (m SecurityStatus) SetLowPx(v float64) { - m.Set(field.NewLowPx(v)) +func (m SecurityStatus) SetLowPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLowPx(value, scale)) } //SetAdjustment sets Adjustment, Tag 334 diff --git a/fix42/securitystatusrequest/SecurityStatusRequest.generated.go b/fix42/securitystatusrequest/SecurityStatusRequest.generated.go index b6e6d39ff..98698af90 100644 --- a/fix42/securitystatusrequest/SecurityStatusRequest.generated.go +++ b/fix42/securitystatusrequest/SecurityStatusRequest.generated.go @@ -1,6 +1,7 @@ package securitystatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -114,8 +115,8 @@ func (m SecurityStatusRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetMaturityDay sets MaturityDay, Tag 205 @@ -134,13 +135,13 @@ func (m SecurityStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetSubscriptionRequestType sets SubscriptionRequestType, Tag 263 diff --git a/fix42/tradingsessionstatus/TradingSessionStatus.generated.go b/fix42/tradingsessionstatus/TradingSessionStatus.generated.go index 67ef6058b..d62a564f6 100644 --- a/fix42/tradingsessionstatus/TradingSessionStatus.generated.go +++ b/fix42/tradingsessionstatus/TradingSessionStatus.generated.go @@ -1,6 +1,7 @@ package tradingsessionstatus import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -133,8 +134,8 @@ func (m TradingSessionStatus) SetEncodedText(v string) { } //SetTotalVolumeTraded sets TotalVolumeTraded, Tag 387 -func (m TradingSessionStatus) SetTotalVolumeTraded(v float64) { - m.Set(field.NewTotalVolumeTraded(v)) +func (m TradingSessionStatus) SetTotalVolumeTraded(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalVolumeTraded(value, scale)) } //GetText gets Text, Tag 58 diff --git a/fix43/advertisement/Advertisement.generated.go b/fix43/advertisement/Advertisement.generated.go index f31d0e9ba..01263fa1a 100644 --- a/fix43/advertisement/Advertisement.generated.go +++ b/fix43/advertisement/Advertisement.generated.go @@ -1,6 +1,7 @@ package advertisement import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -100,8 +101,8 @@ func (m Advertisement) SetLastMkt(v string) { } //SetPrice sets Price, Tag 44 -func (m Advertisement) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m Advertisement) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -110,8 +111,8 @@ func (m Advertisement) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m Advertisement) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m Advertisement) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSymbol sets Symbol, Tag 55 @@ -165,8 +166,8 @@ func (m Advertisement) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m Advertisement) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m Advertisement) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -180,8 +181,8 @@ func (m Advertisement) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m Advertisement) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m Advertisement) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -200,18 +201,18 @@ func (m Advertisement) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m Advertisement) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m Advertisement) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m Advertisement) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m Advertisement) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m Advertisement) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m Advertisement) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 diff --git a/fix43/allocation/Allocation.generated.go b/fix43/allocation/Allocation.generated.go index 80aa8ea6e..2fad44b25 100644 --- a/fix43/allocation/Allocation.generated.go +++ b/fix43/allocation/Allocation.generated.go @@ -1,6 +1,7 @@ package allocation import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -68,8 +69,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m Allocation) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m Allocation) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -93,8 +94,8 @@ func (m Allocation) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m Allocation) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m Allocation) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -183,8 +184,8 @@ func (m Allocation) SetSecurityDesc(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m Allocation) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m Allocation) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetNoExecs sets NoExecs, Tag 124 @@ -198,8 +199,8 @@ func (m Allocation) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m Allocation) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m Allocation) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -223,8 +224,8 @@ func (m Allocation) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m Allocation) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m Allocation) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -238,8 +239,8 @@ func (m Allocation) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m Allocation) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m Allocation) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -258,13 +259,13 @@ func (m Allocation) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m Allocation) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m Allocation) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m Allocation) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m Allocation) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -273,18 +274,18 @@ func (m Allocation) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m Allocation) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m Allocation) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m Allocation) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m Allocation) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m Allocation) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m Allocation) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -338,8 +339,8 @@ func (m Allocation) SetEncodedText(v string) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m Allocation) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m Allocation) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -388,8 +389,8 @@ func (m Allocation) SetLocaleOfIssue(v string) { } //SetTotalAccruedInterestAmt sets TotalAccruedInterestAmt, Tag 540 -func (m Allocation) SetTotalAccruedInterestAmt(v float64) { - m.Set(field.NewTotalAccruedInterestAmt(v)) +func (m Allocation) SetTotalAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalAccruedInterestAmt(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -1311,13 +1312,13 @@ func (m NoAllocs) SetAllocAccount(v string) { } //SetAllocPrice sets AllocPrice, Tag 366 -func (m NoAllocs) SetAllocPrice(v float64) { - m.Set(field.NewAllocPrice(v)) +func (m NoAllocs) SetAllocPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocPrice(value, scale)) } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetIndividualAllocID sets IndividualAllocID, Tag 467 @@ -1361,8 +1362,8 @@ func (m NoAllocs) SetEncodedAllocText(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoAllocs) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoAllocs) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -1381,18 +1382,18 @@ func (m NoAllocs) SetFundRenewWaiv(v string) { } //SetAllocAvgPx sets AllocAvgPx, Tag 153 -func (m NoAllocs) SetAllocAvgPx(v float64) { - m.Set(field.NewAllocAvgPx(v)) +func (m NoAllocs) SetAllocAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAvgPx(value, scale)) } //SetAllocNetMoney sets AllocNetMoney, Tag 154 -func (m NoAllocs) SetAllocNetMoney(v float64) { - m.Set(field.NewAllocNetMoney(v)) +func (m NoAllocs) SetAllocNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoAllocs) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoAllocs) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -1401,8 +1402,8 @@ func (m NoAllocs) SetSettlCurrency(v string) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoAllocs) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoAllocs) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -1411,8 +1412,8 @@ func (m NoAllocs) SetSettlCurrFxRateCalc(v string) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m NoAllocs) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m NoAllocs) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSettlInstMode sets SettlInstMode, Tag 160 @@ -1789,8 +1790,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -1888,8 +1889,8 @@ type NoExecs struct { } //SetLastQty sets LastQty, Tag 32 -func (m NoExecs) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m NoExecs) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetExecID sets ExecID, Tag 17 @@ -1903,8 +1904,8 @@ func (m NoExecs) SetSecondaryExecID(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m NoExecs) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m NoExecs) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastCapacity sets LastCapacity, Tag 29 diff --git a/fix43/bidrequest/BidRequest.generated.go b/fix43/bidrequest/BidRequest.generated.go index 6db9099e8..5fb17772e 100644 --- a/fix43/bidrequest/BidRequest.generated.go +++ b/fix43/bidrequest/BidRequest.generated.go @@ -1,6 +1,7 @@ package bidrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -132,13 +133,13 @@ func (m BidRequest) SetNumTickets(v int) { } //SetSideValue1 sets SideValue1, Tag 396 -func (m BidRequest) SetSideValue1(v float64) { - m.Set(field.NewSideValue1(v)) +func (m BidRequest) SetSideValue1(value decimal.Decimal, scale int32) { + m.Set(field.NewSideValue1(value, scale)) } //SetSideValue2 sets SideValue2, Tag 397 -func (m BidRequest) SetSideValue2(v float64) { - m.Set(field.NewSideValue2(v)) +func (m BidRequest) SetSideValue2(value decimal.Decimal, scale int32) { + m.Set(field.NewSideValue2(value, scale)) } //SetNoBidDescriptors sets NoBidDescriptors, Tag 398 @@ -152,8 +153,8 @@ func (m BidRequest) SetLiquidityIndType(v int) { } //SetWtAverageLiquidity sets WtAverageLiquidity, Tag 410 -func (m BidRequest) SetWtAverageLiquidity(v float64) { - m.Set(field.NewWtAverageLiquidity(v)) +func (m BidRequest) SetWtAverageLiquidity(value decimal.Decimal, scale int32) { + m.Set(field.NewWtAverageLiquidity(value, scale)) } //SetExchangeForPhysical sets ExchangeForPhysical, Tag 411 @@ -162,13 +163,13 @@ func (m BidRequest) SetExchangeForPhysical(v bool) { } //SetOutMainCntryUIndex sets OutMainCntryUIndex, Tag 412 -func (m BidRequest) SetOutMainCntryUIndex(v float64) { - m.Set(field.NewOutMainCntryUIndex(v)) +func (m BidRequest) SetOutMainCntryUIndex(value decimal.Decimal, scale int32) { + m.Set(field.NewOutMainCntryUIndex(value, scale)) } //SetCrossPercent sets CrossPercent, Tag 413 -func (m BidRequest) SetCrossPercent(v float64) { - m.Set(field.NewCrossPercent(v)) +func (m BidRequest) SetCrossPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewCrossPercent(value, scale)) } //SetProgRptReqs sets ProgRptReqs, Tag 414 @@ -553,8 +554,8 @@ func (m NoBidDescriptors) SetSideValueInd(v int) { } //SetLiquidityValue sets LiquidityValue, Tag 404 -func (m NoBidDescriptors) SetLiquidityValue(v float64) { - m.Set(field.NewLiquidityValue(v)) +func (m NoBidDescriptors) SetLiquidityValue(value decimal.Decimal, scale int32) { + m.Set(field.NewLiquidityValue(value, scale)) } //SetLiquidityNumSecurities sets LiquidityNumSecurities, Tag 441 @@ -563,33 +564,33 @@ func (m NoBidDescriptors) SetLiquidityNumSecurities(v int) { } //SetLiquidityPctLow sets LiquidityPctLow, Tag 402 -func (m NoBidDescriptors) SetLiquidityPctLow(v float64) { - m.Set(field.NewLiquidityPctLow(v)) +func (m NoBidDescriptors) SetLiquidityPctLow(value decimal.Decimal, scale int32) { + m.Set(field.NewLiquidityPctLow(value, scale)) } //SetLiquidityPctHigh sets LiquidityPctHigh, Tag 403 -func (m NoBidDescriptors) SetLiquidityPctHigh(v float64) { - m.Set(field.NewLiquidityPctHigh(v)) +func (m NoBidDescriptors) SetLiquidityPctHigh(value decimal.Decimal, scale int32) { + m.Set(field.NewLiquidityPctHigh(value, scale)) } //SetEFPTrackingError sets EFPTrackingError, Tag 405 -func (m NoBidDescriptors) SetEFPTrackingError(v float64) { - m.Set(field.NewEFPTrackingError(v)) +func (m NoBidDescriptors) SetEFPTrackingError(value decimal.Decimal, scale int32) { + m.Set(field.NewEFPTrackingError(value, scale)) } //SetFairValue sets FairValue, Tag 406 -func (m NoBidDescriptors) SetFairValue(v float64) { - m.Set(field.NewFairValue(v)) +func (m NoBidDescriptors) SetFairValue(value decimal.Decimal, scale int32) { + m.Set(field.NewFairValue(value, scale)) } //SetOutsideIndexPct sets OutsideIndexPct, Tag 407 -func (m NoBidDescriptors) SetOutsideIndexPct(v float64) { - m.Set(field.NewOutsideIndexPct(v)) +func (m NoBidDescriptors) SetOutsideIndexPct(value decimal.Decimal, scale int32) { + m.Set(field.NewOutsideIndexPct(value, scale)) } //SetValueOfFutures sets ValueOfFutures, Tag 408 -func (m NoBidDescriptors) SetValueOfFutures(v float64) { - m.Set(field.NewValueOfFutures(v)) +func (m NoBidDescriptors) SetValueOfFutures(value decimal.Decimal, scale int32) { + m.Set(field.NewValueOfFutures(value, scale)) } //GetBidDescriptorType gets BidDescriptorType, Tag 399 diff --git a/fix43/bidresponse/BidResponse.generated.go b/fix43/bidresponse/BidResponse.generated.go index 196b229b5..f7f25170b 100644 --- a/fix43/bidresponse/BidResponse.generated.go +++ b/fix43/bidresponse/BidResponse.generated.go @@ -1,6 +1,7 @@ package bidresponse import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -115,8 +116,8 @@ type NoBidComponents struct { } //SetCommission sets Commission, Tag 12 -func (m NoBidComponents) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoBidComponents) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -150,8 +151,8 @@ func (m NoBidComponents) SetSide(v string) { } //SetPrice sets Price, Tag 44 -func (m NoBidComponents) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoBidComponents) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -160,8 +161,8 @@ func (m NoBidComponents) SetPriceType(v int) { } //SetFairValue sets FairValue, Tag 406 -func (m NoBidComponents) SetFairValue(v float64) { - m.Set(field.NewFairValue(v)) +func (m NoBidComponents) SetFairValue(value decimal.Decimal, scale int32) { + m.Set(field.NewFairValue(value, scale)) } //SetNetGrossInd sets NetGrossInd, Tag 430 diff --git a/fix43/crossordercancelreplacerequest/CrossOrderCancelReplaceRequest.generated.go b/fix43/crossordercancelreplacerequest/CrossOrderCancelReplaceRequest.generated.go index 6333c5c3e..3ba626e34 100644 --- a/fix43/crossordercancelreplacerequest/CrossOrderCancelReplaceRequest.generated.go +++ b/fix43/crossordercancelreplacerequest/CrossOrderCancelReplaceRequest.generated.go @@ -1,6 +1,7 @@ package crossordercancelreplacerequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -103,8 +104,8 @@ func (m CrossOrderCancelReplaceRequest) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m CrossOrderCancelReplaceRequest) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -148,8 +149,8 @@ func (m CrossOrderCancelReplaceRequest) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m CrossOrderCancelReplaceRequest) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m CrossOrderCancelReplaceRequest) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -168,13 +169,13 @@ func (m CrossOrderCancelReplaceRequest) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m CrossOrderCancelReplaceRequest) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m CrossOrderCancelReplaceRequest) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m CrossOrderCancelReplaceRequest) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m CrossOrderCancelReplaceRequest) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -188,8 +189,8 @@ func (m CrossOrderCancelReplaceRequest) SetQuoteID(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m CrossOrderCancelReplaceRequest) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m CrossOrderCancelReplaceRequest) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetExpireTime sets ExpireTime, Tag 126 @@ -198,18 +199,18 @@ func (m CrossOrderCancelReplaceRequest) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m CrossOrderCancelReplaceRequest) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m CrossOrderCancelReplaceRequest) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m CrossOrderCancelReplaceRequest) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m CrossOrderCancelReplaceRequest) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m CrossOrderCancelReplaceRequest) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m CrossOrderCancelReplaceRequest) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -228,8 +229,8 @@ func (m CrossOrderCancelReplaceRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CrossOrderCancelReplaceRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CrossOrderCancelReplaceRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -243,18 +244,18 @@ func (m CrossOrderCancelReplaceRequest) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m CrossOrderCancelReplaceRequest) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m CrossOrderCancelReplaceRequest) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegDifference sets PegDifference, Tag 211 -func (m CrossOrderCancelReplaceRequest) SetPegDifference(v float64) { - m.Set(field.NewPegDifference(v)) +func (m CrossOrderCancelReplaceRequest) SetPegDifference(value decimal.Decimal, scale int32) { + m.Set(field.NewPegDifference(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m CrossOrderCancelReplaceRequest) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CrossOrderCancelReplaceRequest) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -273,8 +274,8 @@ func (m CrossOrderCancelReplaceRequest) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CrossOrderCancelReplaceRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CrossOrderCancelReplaceRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -293,18 +294,18 @@ func (m CrossOrderCancelReplaceRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CrossOrderCancelReplaceRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CrossOrderCancelReplaceRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CrossOrderCancelReplaceRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CrossOrderCancelReplaceRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CrossOrderCancelReplaceRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CrossOrderCancelReplaceRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -318,8 +319,8 @@ func (m CrossOrderCancelReplaceRequest) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m CrossOrderCancelReplaceRequest) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m CrossOrderCancelReplaceRequest) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -373,8 +374,8 @@ func (m CrossOrderCancelReplaceRequest) SetDiscretionInst(v string) { } //SetDiscretionOffset sets DiscretionOffset, Tag 389 -func (m CrossOrderCancelReplaceRequest) SetDiscretionOffset(v float64) { - m.Set(field.NewDiscretionOffset(v)) +func (m CrossOrderCancelReplaceRequest) SetDiscretionOffset(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffset(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -1644,18 +1645,18 @@ func (m NoSides) SetQuantityType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoSides) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoSides) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoSides) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoSides) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoSides) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoSides) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -1664,13 +1665,13 @@ func (m NoSides) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoSides) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoSides) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCommission sets Commission, Tag 12 -func (m NoSides) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoSides) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -2291,8 +2292,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 diff --git a/fix43/crossordercancelrequest/CrossOrderCancelRequest.generated.go b/fix43/crossordercancelrequest/CrossOrderCancelRequest.generated.go index 6888776bf..65b68d647 100644 --- a/fix43/crossordercancelrequest/CrossOrderCancelRequest.generated.go +++ b/fix43/crossordercancelrequest/CrossOrderCancelRequest.generated.go @@ -1,6 +1,7 @@ package crossordercancelrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -116,8 +117,8 @@ func (m CrossOrderCancelRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CrossOrderCancelRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CrossOrderCancelRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -131,8 +132,8 @@ func (m CrossOrderCancelRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CrossOrderCancelRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CrossOrderCancelRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -151,18 +152,18 @@ func (m CrossOrderCancelRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CrossOrderCancelRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CrossOrderCancelRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CrossOrderCancelRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CrossOrderCancelRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CrossOrderCancelRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CrossOrderCancelRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -813,18 +814,18 @@ func (m NoSides) SetTradeOriginationDate(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoSides) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoSides) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoSides) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoSides) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoSides) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoSides) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -833,8 +834,8 @@ func (m NoSides) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoSides) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoSides) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetComplianceID sets ComplianceID, Tag 376 diff --git a/fix43/derivativesecuritylist/DerivativeSecurityList.generated.go b/fix43/derivativesecuritylist/DerivativeSecurityList.generated.go index ab2f1d3f5..22f58dd04 100644 --- a/fix43/derivativesecuritylist/DerivativeSecurityList.generated.go +++ b/fix43/derivativesecuritylist/DerivativeSecurityList.generated.go @@ -1,6 +1,7 @@ package derivativesecuritylist import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -89,13 +90,13 @@ func (m DerivativeSecurityList) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m DerivativeSecurityList) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m DerivativeSecurityList) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m DerivativeSecurityList) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m DerivativeSecurityList) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -154,8 +155,8 @@ func (m DerivativeSecurityList) SetUnderlyingMaturityMonthYear(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m DerivativeSecurityList) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m DerivativeSecurityList) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -199,13 +200,13 @@ func (m DerivativeSecurityList) SetTotalNumSecurities(v int) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m DerivativeSecurityList) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m DerivativeSecurityList) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m DerivativeSecurityList) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m DerivativeSecurityList) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoUnderlyingSecurityAltID sets NoUnderlyingSecurityAltID, Tag 457 @@ -749,13 +750,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -789,8 +790,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -799,13 +800,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -1456,13 +1457,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1496,8 +1497,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegOptAttribute sets LegOptAttribute, Tag 613 @@ -1506,13 +1507,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1551,8 +1552,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 diff --git a/fix43/derivativesecuritylistrequest/DerivativeSecurityListRequest.generated.go b/fix43/derivativesecuritylistrequest/DerivativeSecurityListRequest.generated.go index 9593b7555..2c7e9c177 100644 --- a/fix43/derivativesecuritylistrequest/DerivativeSecurityListRequest.generated.go +++ b/fix43/derivativesecuritylistrequest/DerivativeSecurityListRequest.generated.go @@ -1,6 +1,7 @@ package derivativesecuritylistrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -93,13 +94,13 @@ func (m DerivativeSecurityListRequest) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m DerivativeSecurityListRequest) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m DerivativeSecurityListRequest) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -163,8 +164,8 @@ func (m DerivativeSecurityListRequest) SetUnderlyingMaturityMonthYear(v string) } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m DerivativeSecurityListRequest) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -213,13 +214,13 @@ func (m DerivativeSecurityListRequest) SetEncodedUnderlyingSecurityDesc(v string } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m DerivativeSecurityListRequest) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m DerivativeSecurityListRequest) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoUnderlyingSecurityAltID sets NoUnderlyingSecurityAltID, Tag 457 diff --git a/fix43/dontknowtrade/DontKnowTrade.generated.go b/fix43/dontknowtrade/DontKnowTrade.generated.go index 0968b9cc9..39d85acac 100644 --- a/fix43/dontknowtrade/DontKnowTrade.generated.go +++ b/fix43/dontknowtrade/DontKnowTrade.generated.go @@ -1,6 +1,7 @@ package dontknowtrade import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -75,13 +76,13 @@ func (m DontKnowTrade) SetSecurityIDSource(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m DontKnowTrade) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m DontKnowTrade) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastQty sets LastQty, Tag 32 -func (m DontKnowTrade) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m DontKnowTrade) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetOrderID sets OrderID, Tag 37 @@ -90,8 +91,8 @@ func (m DontKnowTrade) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m DontKnowTrade) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m DontKnowTrade) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -135,8 +136,8 @@ func (m DontKnowTrade) SetDKReason(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m DontKnowTrade) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m DontKnowTrade) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -150,8 +151,8 @@ func (m DontKnowTrade) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m DontKnowTrade) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m DontKnowTrade) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -165,8 +166,8 @@ func (m DontKnowTrade) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m DontKnowTrade) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m DontKnowTrade) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -185,18 +186,18 @@ func (m DontKnowTrade) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m DontKnowTrade) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m DontKnowTrade) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m DontKnowTrade) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m DontKnowTrade) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m DontKnowTrade) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m DontKnowTrade) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -265,8 +266,8 @@ func (m DontKnowTrade) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m DontKnowTrade) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m DontKnowTrade) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -285,8 +286,8 @@ func (m DontKnowTrade) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m DontKnowTrade) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m DontKnowTrade) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 diff --git a/fix43/email/Email.generated.go b/fix43/email/Email.generated.go index 81d8a5756..970064ab3 100644 --- a/fix43/email/Email.generated.go +++ b/fix43/email/Email.generated.go @@ -1,6 +1,7 @@ package email import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -426,13 +427,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -466,8 +467,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -476,13 +477,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 diff --git a/fix43/executionreport/ExecutionReport.generated.go b/fix43/executionreport/ExecutionReport.generated.go index 168345faf..d5129c963 100644 --- a/fix43/executionreport/ExecutionReport.generated.go +++ b/fix43/executionreport/ExecutionReport.generated.go @@ -1,6 +1,7 @@ package executionreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -74,8 +75,8 @@ func (m ExecutionReport) SetAccount(v string) { } //SetAvgPx sets AvgPx, Tag 6 -func (m ExecutionReport) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m ExecutionReport) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetClOrdID sets ClOrdID, Tag 11 @@ -84,8 +85,8 @@ func (m ExecutionReport) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m ExecutionReport) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m ExecutionReport) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -94,8 +95,8 @@ func (m ExecutionReport) SetCommType(v string) { } //SetCumQty sets CumQty, Tag 14 -func (m ExecutionReport) SetCumQty(v float64) { - m.Set(field.NewCumQty(v)) +func (m ExecutionReport) SetCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCumQty(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -139,13 +140,13 @@ func (m ExecutionReport) SetLastMkt(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m ExecutionReport) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m ExecutionReport) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastQty sets LastQty, Tag 32 -func (m ExecutionReport) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m ExecutionReport) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetOrderID sets OrderID, Tag 37 @@ -154,8 +155,8 @@ func (m ExecutionReport) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m ExecutionReport) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m ExecutionReport) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdStatus sets OrdStatus, Tag 39 @@ -174,8 +175,8 @@ func (m ExecutionReport) SetOrigClOrdID(v string) { } //SetPrice sets Price, Tag 44 -func (m ExecutionReport) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m ExecutionReport) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetRule80A sets Rule80A, Tag 47 @@ -244,8 +245,8 @@ func (m ExecutionReport) SetPositionEffect(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m ExecutionReport) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m ExecutionReport) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetOrdRejReason sets OrdRejReason, Tag 103 @@ -264,13 +265,13 @@ func (m ExecutionReport) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m ExecutionReport) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m ExecutionReport) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m ExecutionReport) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m ExecutionReport) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetReportToExch sets ReportToExch, Tag 113 @@ -279,13 +280,13 @@ func (m ExecutionReport) SetReportToExch(v bool) { } //SetNetMoney sets NetMoney, Tag 118 -func (m ExecutionReport) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m ExecutionReport) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m ExecutionReport) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m ExecutionReport) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -304,18 +305,18 @@ func (m ExecutionReport) SetExecType(v string) { } //SetLeavesQty sets LeavesQty, Tag 151 -func (m ExecutionReport) SetLeavesQty(v float64) { - m.Set(field.NewLeavesQty(v)) +func (m ExecutionReport) SetLeavesQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLeavesQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m ExecutionReport) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m ExecutionReport) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m ExecutionReport) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m ExecutionReport) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -329,13 +330,13 @@ func (m ExecutionReport) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m ExecutionReport) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m ExecutionReport) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m ExecutionReport) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m ExecutionReport) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -349,8 +350,8 @@ func (m ExecutionReport) SetEffectiveTime(v time.Time) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m ExecutionReport) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m ExecutionReport) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetFutSettDate2 sets FutSettDate2, Tag 193 @@ -359,13 +360,13 @@ func (m ExecutionReport) SetFutSettDate2(v string) { } //SetLastSpotRate sets LastSpotRate, Tag 194 -func (m ExecutionReport) SetLastSpotRate(v float64) { - m.Set(field.NewLastSpotRate(v)) +func (m ExecutionReport) SetLastSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSpotRate(value, scale)) } //SetLastForwardPoints sets LastForwardPoints, Tag 195 -func (m ExecutionReport) SetLastForwardPoints(v float64) { - m.Set(field.NewLastForwardPoints(v)) +func (m ExecutionReport) SetLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastForwardPoints(value, scale)) } //SetSecondaryOrderID sets SecondaryOrderID, Tag 198 @@ -379,8 +380,8 @@ func (m ExecutionReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m ExecutionReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m ExecutionReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -394,18 +395,18 @@ func (m ExecutionReport) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m ExecutionReport) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m ExecutionReport) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegDifference sets PegDifference, Tag 211 -func (m ExecutionReport) SetPegDifference(v float64) { - m.Set(field.NewPegDifference(v)) +func (m ExecutionReport) SetPegDifference(value decimal.Decimal, scale int32) { + m.Set(field.NewPegDifference(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m ExecutionReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m ExecutionReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -424,8 +425,8 @@ func (m ExecutionReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m ExecutionReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m ExecutionReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -444,13 +445,13 @@ func (m ExecutionReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m ExecutionReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m ExecutionReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m ExecutionReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m ExecutionReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -464,8 +465,8 @@ func (m ExecutionReport) SetExDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m ExecutionReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m ExecutionReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -479,18 +480,18 @@ func (m ExecutionReport) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m ExecutionReport) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m ExecutionReport) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m ExecutionReport) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m ExecutionReport) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m ExecutionReport) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m ExecutionReport) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -519,8 +520,8 @@ func (m ExecutionReport) SetBasisFeatureDate(v string) { } //SetBasisFeaturePrice sets BasisFeaturePrice, Tag 260 -func (m ExecutionReport) SetBasisFeaturePrice(v float64) { - m.Set(field.NewBasisFeaturePrice(v)) +func (m ExecutionReport) SetBasisFeaturePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBasisFeaturePrice(value, scale)) } //SetTradingSessionID sets TradingSessionID, Tag 336 @@ -574,8 +575,8 @@ func (m ExecutionReport) SetExecRestatementReason(v int) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m ExecutionReport) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m ExecutionReport) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetNoContraBrokers sets NoContraBrokers, Tag 382 @@ -589,8 +590,8 @@ func (m ExecutionReport) SetDiscretionInst(v string) { } //SetDiscretionOffset sets DiscretionOffset, Tag 389 -func (m ExecutionReport) SetDiscretionOffset(v float64) { - m.Set(field.NewDiscretionOffset(v)) +func (m ExecutionReport) SetDiscretionOffset(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffset(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -599,18 +600,18 @@ func (m ExecutionReport) SetPriceType(v int) { } //SetDayOrderQty sets DayOrderQty, Tag 424 -func (m ExecutionReport) SetDayOrderQty(v float64) { - m.Set(field.NewDayOrderQty(v)) +func (m ExecutionReport) SetDayOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDayOrderQty(value, scale)) } //SetDayCumQty sets DayCumQty, Tag 425 -func (m ExecutionReport) SetDayCumQty(v float64) { - m.Set(field.NewDayCumQty(v)) +func (m ExecutionReport) SetDayCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDayCumQty(value, scale)) } //SetDayAvgPx sets DayAvgPx, Tag 426 -func (m ExecutionReport) SetDayAvgPx(v float64) { - m.Set(field.NewDayAvgPx(v)) +func (m ExecutionReport) SetDayAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewDayAvgPx(value, scale)) } //SetGTBookingInst sets GTBookingInst, Tag 427 @@ -659,8 +660,8 @@ func (m ExecutionReport) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m ExecutionReport) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m ExecutionReport) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -704,8 +705,8 @@ func (m ExecutionReport) SetExecPriceType(v string) { } //SetExecPriceAdjustment sets ExecPriceAdjustment, Tag 485 -func (m ExecutionReport) SetExecPriceAdjustment(v float64) { - m.Set(field.NewExecPriceAdjustment(v)) +func (m ExecutionReport) SetExecPriceAdjustment(value decimal.Decimal, scale int32) { + m.Set(field.NewExecPriceAdjustment(value, scale)) } //SetDesignation sets Designation, Tag 494 @@ -729,8 +730,8 @@ func (m ExecutionReport) SetExecValuationPoint(v time.Time) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m ExecutionReport) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m ExecutionReport) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetNoContAmts sets NoContAmts, Tag 518 @@ -844,23 +845,23 @@ func (m ExecutionReport) SetPriorityIndicator(v int) { } //SetPriceImprovement sets PriceImprovement, Tag 639 -func (m ExecutionReport) SetPriceImprovement(v float64) { - m.Set(field.NewPriceImprovement(v)) +func (m ExecutionReport) SetPriceImprovement(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceImprovement(value, scale)) } //SetLastForwardPoints2 sets LastForwardPoints2, Tag 641 -func (m ExecutionReport) SetLastForwardPoints2(v float64) { - m.Set(field.NewLastForwardPoints2(v)) +func (m ExecutionReport) SetLastForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewLastForwardPoints2(value, scale)) } //SetUnderlyingLastPx sets UnderlyingLastPx, Tag 651 -func (m ExecutionReport) SetUnderlyingLastPx(v float64) { - m.Set(field.NewUnderlyingLastPx(v)) +func (m ExecutionReport) SetUnderlyingLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingLastPx(value, scale)) } //SetUnderlyingLastQty sets UnderlyingLastQty, Tag 652 -func (m ExecutionReport) SetUnderlyingLastQty(v float64) { - m.Set(field.NewUnderlyingLastQty(v)) +func (m ExecutionReport) SetUnderlyingLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingLastQty(value, scale)) } //GetAccount gets Account, Tag 1 @@ -2694,8 +2695,8 @@ func (m NoContraBrokers) SetContraTrader(v string) { } //SetContraTradeQty sets ContraTradeQty, Tag 437 -func (m NoContraBrokers) SetContraTradeQty(v float64) { - m.Set(field.NewContraTradeQty(v)) +func (m NoContraBrokers) SetContraTradeQty(value decimal.Decimal, scale int32) { + m.Set(field.NewContraTradeQty(value, scale)) } //SetContraTradeTime sets ContraTradeTime, Tag 438 @@ -2949,8 +2950,8 @@ func (m NoContAmts) SetContAmtType(v int) { } //SetContAmtValue sets ContAmtValue, Tag 520 -func (m NoContAmts) SetContAmtValue(v float64) { - m.Set(field.NewContAmtValue(v)) +func (m NoContAmts) SetContAmtValue(value decimal.Decimal, scale int32) { + m.Set(field.NewContAmtValue(value, scale)) } //SetContAmtCurr sets ContAmtCurr, Tag 521 @@ -3090,13 +3091,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3130,8 +3131,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegOptAttribute sets LegOptAttribute, Tag 613 @@ -3140,13 +3141,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3185,8 +3186,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3215,8 +3216,8 @@ func (m NoLegs) SetLegRefID(v string) { } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegSettlmntTyp sets LegSettlmntTyp, Tag 587 @@ -3230,8 +3231,8 @@ func (m NoLegs) SetLegFutSettDate(v string) { } //SetLegLastPx sets LegLastPx, Tag 637 -func (m NoLegs) SetLegLastPx(v float64) { - m.Set(field.NewLegLastPx(v)) +func (m NoLegs) SetLegLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastPx(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 diff --git a/fix43/ioi/IOI.generated.go b/fix43/ioi/IOI.generated.go index 218cabbdb..b49703d73 100644 --- a/fix43/ioi/IOI.generated.go +++ b/fix43/ioi/IOI.generated.go @@ -1,6 +1,7 @@ package ioi import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -100,8 +101,8 @@ func (m IOI) SetIOITransType(v string) { } //SetPrice sets Price, Tag 44 -func (m IOI) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m IOI) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -175,8 +176,8 @@ func (m IOI) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m IOI) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m IOI) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -195,8 +196,8 @@ func (m IOI) SetNoRoutingIDs(f NoRoutingIDsRepeatingGroup) { } //SetSpread sets Spread, Tag 218 -func (m IOI) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m IOI) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmark sets Benchmark, Tag 219 @@ -220,8 +221,8 @@ func (m IOI) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m IOI) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m IOI) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -240,18 +241,18 @@ func (m IOI) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m IOI) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m IOI) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m IOI) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m IOI) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m IOI) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m IOI) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 diff --git a/fix43/liststatus/ListStatus.generated.go b/fix43/liststatus/ListStatus.generated.go index 332b02980..7ec126246 100644 --- a/fix43/liststatus/ListStatus.generated.go +++ b/fix43/liststatus/ListStatus.generated.go @@ -1,6 +1,7 @@ package liststatus import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -259,8 +260,8 @@ func (m NoOrders) SetSecondaryClOrdID(v string) { } //SetCumQty sets CumQty, Tag 14 -func (m NoOrders) SetCumQty(v float64) { - m.Set(field.NewCumQty(v)) +func (m NoOrders) SetCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCumQty(value, scale)) } //SetOrdStatus sets OrdStatus, Tag 39 @@ -274,18 +275,18 @@ func (m NoOrders) SetWorkingIndicator(v bool) { } //SetLeavesQty sets LeavesQty, Tag 151 -func (m NoOrders) SetLeavesQty(v float64) { - m.Set(field.NewLeavesQty(v)) +func (m NoOrders) SetLeavesQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLeavesQty(value, scale)) } //SetCxlQty sets CxlQty, Tag 84 -func (m NoOrders) SetCxlQty(v float64) { - m.Set(field.NewCxlQty(v)) +func (m NoOrders) SetCxlQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCxlQty(value, scale)) } //SetAvgPx sets AvgPx, Tag 6 -func (m NoOrders) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m NoOrders) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetOrdRejReason sets OrdRejReason, Tag 103 diff --git a/fix43/liststrikeprice/ListStrikePrice.generated.go b/fix43/liststrikeprice/ListStrikePrice.generated.go index 348d9934c..371745372 100644 --- a/fix43/liststrikeprice/ListStrikePrice.generated.go +++ b/fix43/liststrikeprice/ListStrikePrice.generated.go @@ -1,6 +1,7 @@ package liststrikeprice import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -187,13 +188,13 @@ func (m NoStrikes) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoStrikes) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoStrikes) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoStrikes) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoStrikes) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -227,8 +228,8 @@ func (m NoStrikes) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoStrikes) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoStrikes) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -237,13 +238,13 @@ func (m NoStrikes) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoStrikes) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoStrikes) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoStrikes) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoStrikes) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -282,8 +283,8 @@ func (m NoStrikes) SetEncodedSecurityDesc(v string) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoStrikes) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoStrikes) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetClOrdID sets ClOrdID, Tag 11 @@ -302,8 +303,8 @@ func (m NoStrikes) SetSide(v string) { } //SetPrice sets Price, Tag 44 -func (m NoStrikes) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoStrikes) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetCurrency sets Currency, Tag 15 diff --git a/fix43/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go b/fix43/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go index 1ff4ed64a..859548b6a 100644 --- a/fix43/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go +++ b/fix43/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go @@ -1,6 +1,7 @@ package marketdataincrementalrefresh import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -194,13 +195,13 @@ func (m NoMDEntries) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoMDEntries) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoMDEntries) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoMDEntries) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoMDEntries) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -234,8 +235,8 @@ func (m NoMDEntries) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoMDEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoMDEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -244,13 +245,13 @@ func (m NoMDEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoMDEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoMDEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoMDEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoMDEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -299,8 +300,8 @@ func (m NoMDEntries) SetCorporateAction(v string) { } //SetMDEntryPx sets MDEntryPx, Tag 270 -func (m NoMDEntries) SetMDEntryPx(v float64) { - m.Set(field.NewMDEntryPx(v)) +func (m NoMDEntries) SetMDEntryPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntryPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -309,8 +310,8 @@ func (m NoMDEntries) SetCurrency(v string) { } //SetMDEntrySize sets MDEntrySize, Tag 271 -func (m NoMDEntries) SetMDEntrySize(v float64) { - m.Set(field.NewMDEntrySize(v)) +func (m NoMDEntries) SetMDEntrySize(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntrySize(value, scale)) } //SetMDEntryDate sets MDEntryDate, Tag 272 @@ -389,8 +390,8 @@ func (m NoMDEntries) SetExpireTime(v time.Time) { } //SetMinQty sets MinQty, Tag 110 -func (m NoMDEntries) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NoMDEntries) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetExecInst sets ExecInst, Tag 18 @@ -439,8 +440,8 @@ func (m NoMDEntries) SetScope(v string) { } //SetTotalVolumeTraded sets TotalVolumeTraded, Tag 387 -func (m NoMDEntries) SetTotalVolumeTraded(v float64) { - m.Set(field.NewTotalVolumeTraded(v)) +func (m NoMDEntries) SetTotalVolumeTraded(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalVolumeTraded(value, scale)) } //SetTotalVolumeTradedDate sets TotalVolumeTradedDate, Tag 449 @@ -454,8 +455,8 @@ func (m NoMDEntries) SetTotalVolumeTradedTime(v string) { } //SetNetChgPrevDay sets NetChgPrevDay, Tag 451 -func (m NoMDEntries) SetNetChgPrevDay(v float64) { - m.Set(field.NewNetChgPrevDay(v)) +func (m NoMDEntries) SetNetChgPrevDay(value decimal.Decimal, scale int32) { + m.Set(field.NewNetChgPrevDay(value, scale)) } //SetText sets Text, Tag 58 diff --git a/fix43/marketdatarequest/MarketDataRequest.generated.go b/fix43/marketdatarequest/MarketDataRequest.generated.go index 731a36f39..e6a8d1642 100644 --- a/fix43/marketdatarequest/MarketDataRequest.generated.go +++ b/fix43/marketdatarequest/MarketDataRequest.generated.go @@ -1,6 +1,7 @@ package marketdatarequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -318,13 +319,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -358,8 +359,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -368,13 +369,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 diff --git a/fix43/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go b/fix43/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go index 47521c498..41972aef7 100644 --- a/fix43/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go +++ b/fix43/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go @@ -1,6 +1,7 @@ package marketdatasnapshotfullrefresh import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -101,8 +102,8 @@ func (m MarketDataSnapshotFullRefresh) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m MarketDataSnapshotFullRefresh) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m MarketDataSnapshotFullRefresh) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -116,8 +117,8 @@ func (m MarketDataSnapshotFullRefresh) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m MarketDataSnapshotFullRefresh) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m MarketDataSnapshotFullRefresh) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -136,18 +137,18 @@ func (m MarketDataSnapshotFullRefresh) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m MarketDataSnapshotFullRefresh) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m MarketDataSnapshotFullRefresh) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m MarketDataSnapshotFullRefresh) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m MarketDataSnapshotFullRefresh) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m MarketDataSnapshotFullRefresh) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m MarketDataSnapshotFullRefresh) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -206,8 +207,8 @@ func (m MarketDataSnapshotFullRefresh) SetEncodedSecurityDesc(v string) { } //SetTotalVolumeTraded sets TotalVolumeTraded, Tag 387 -func (m MarketDataSnapshotFullRefresh) SetTotalVolumeTraded(v float64) { - m.Set(field.NewTotalVolumeTraded(v)) +func (m MarketDataSnapshotFullRefresh) SetTotalVolumeTraded(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalVolumeTraded(value, scale)) } //SetTotalVolumeTradedDate sets TotalVolumeTradedDate, Tag 449 @@ -221,8 +222,8 @@ func (m MarketDataSnapshotFullRefresh) SetTotalVolumeTradedTime(v string) { } //SetNetChgPrevDay sets NetChgPrevDay, Tag 451 -func (m MarketDataSnapshotFullRefresh) SetNetChgPrevDay(v float64) { - m.Set(field.NewNetChgPrevDay(v)) +func (m MarketDataSnapshotFullRefresh) SetNetChgPrevDay(value decimal.Decimal, scale int32) { + m.Set(field.NewNetChgPrevDay(value, scale)) } //SetNoSecurityAltID sets NoSecurityAltID, Tag 454 @@ -729,8 +730,8 @@ func (m NoMDEntries) SetMDEntryType(v string) { } //SetMDEntryPx sets MDEntryPx, Tag 270 -func (m NoMDEntries) SetMDEntryPx(v float64) { - m.Set(field.NewMDEntryPx(v)) +func (m NoMDEntries) SetMDEntryPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntryPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -739,8 +740,8 @@ func (m NoMDEntries) SetCurrency(v string) { } //SetMDEntrySize sets MDEntrySize, Tag 271 -func (m NoMDEntries) SetMDEntrySize(v float64) { - m.Set(field.NewMDEntrySize(v)) +func (m NoMDEntries) SetMDEntrySize(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntrySize(value, scale)) } //SetMDEntryDate sets MDEntryDate, Tag 272 @@ -819,8 +820,8 @@ func (m NoMDEntries) SetExpireTime(v time.Time) { } //SetMinQty sets MinQty, Tag 110 -func (m NoMDEntries) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NoMDEntries) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetExecInst sets ExecInst, Tag 18 diff --git a/fix43/massquote/MassQuote.generated.go b/fix43/massquote/MassQuote.generated.go index dc95c8993..afe2425d6 100644 --- a/fix43/massquote/MassQuote.generated.go +++ b/fix43/massquote/MassQuote.generated.go @@ -1,6 +1,7 @@ package massquote import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -77,13 +78,13 @@ func (m MassQuote) SetQuoteReqID(v string) { } //SetDefBidSize sets DefBidSize, Tag 293 -func (m MassQuote) SetDefBidSize(v float64) { - m.Set(field.NewDefBidSize(v)) +func (m MassQuote) SetDefBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewDefBidSize(value, scale)) } //SetDefOfferSize sets DefOfferSize, Tag 294 -func (m MassQuote) SetDefOfferSize(v float64) { - m.Set(field.NewDefOfferSize(v)) +func (m MassQuote) SetDefOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewDefOfferSize(value, scale)) } //SetNoQuoteSets sets NoQuoteSets, Tag 296 @@ -304,13 +305,13 @@ func (m NoQuoteSets) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoQuoteSets) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoQuoteSets) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoQuoteSets) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoQuoteSets) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -344,8 +345,8 @@ func (m NoQuoteSets) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoQuoteSets) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoQuoteSets) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -354,13 +355,13 @@ func (m NoQuoteSets) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoQuoteSets) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoQuoteSets) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoQuoteSets) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoQuoteSets) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -963,13 +964,13 @@ func (m NoQuoteEntries) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoQuoteEntries) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoQuoteEntries) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoQuoteEntries) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoQuoteEntries) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -1003,8 +1004,8 @@ func (m NoQuoteEntries) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoQuoteEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoQuoteEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -1013,13 +1014,13 @@ func (m NoQuoteEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoQuoteEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoQuoteEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoQuoteEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoQuoteEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -1058,23 +1059,23 @@ func (m NoQuoteEntries) SetEncodedSecurityDesc(v string) { } //SetBidPx sets BidPx, Tag 132 -func (m NoQuoteEntries) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m NoQuoteEntries) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m NoQuoteEntries) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m NoQuoteEntries) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m NoQuoteEntries) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m NoQuoteEntries) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m NoQuoteEntries) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m NoQuoteEntries) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetValidUntilTime sets ValidUntilTime, Tag 62 @@ -1083,43 +1084,43 @@ func (m NoQuoteEntries) SetValidUntilTime(v time.Time) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m NoQuoteEntries) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m NoQuoteEntries) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m NoQuoteEntries) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m NoQuoteEntries) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m NoQuoteEntries) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m NoQuoteEntries) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m NoQuoteEntries) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m NoQuoteEntries) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetMidPx sets MidPx, Tag 631 -func (m NoQuoteEntries) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m NoQuoteEntries) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m NoQuoteEntries) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m NoQuoteEntries) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m NoQuoteEntries) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m NoQuoteEntries) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m NoQuoteEntries) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m NoQuoteEntries) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetTransactTime sets TransactTime, Tag 60 @@ -1153,18 +1154,18 @@ func (m NoQuoteEntries) SetFutSettDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoQuoteEntries) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoQuoteEntries) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m NoQuoteEntries) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m NoQuoteEntries) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m NoQuoteEntries) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m NoQuoteEntries) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetCurrency sets Currency, Tag 15 diff --git a/fix43/massquoteacknowledgement/MassQuoteAcknowledgement.generated.go b/fix43/massquoteacknowledgement/MassQuoteAcknowledgement.generated.go index 2fc42ef49..12ae11847 100644 --- a/fix43/massquoteacknowledgement/MassQuoteAcknowledgement.generated.go +++ b/fix43/massquoteacknowledgement/MassQuoteAcknowledgement.generated.go @@ -1,6 +1,7 @@ package massquoteacknowledgement import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -320,13 +321,13 @@ func (m NoQuoteSets) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoQuoteSets) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoQuoteSets) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoQuoteSets) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoQuoteSets) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -360,8 +361,8 @@ func (m NoQuoteSets) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoQuoteSets) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoQuoteSets) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -370,13 +371,13 @@ func (m NoQuoteSets) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoQuoteSets) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoQuoteSets) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoQuoteSets) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoQuoteSets) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -963,13 +964,13 @@ func (m NoQuoteEntries) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoQuoteEntries) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoQuoteEntries) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoQuoteEntries) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoQuoteEntries) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -1003,8 +1004,8 @@ func (m NoQuoteEntries) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoQuoteEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoQuoteEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -1013,13 +1014,13 @@ func (m NoQuoteEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoQuoteEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoQuoteEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoQuoteEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoQuoteEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -1058,23 +1059,23 @@ func (m NoQuoteEntries) SetEncodedSecurityDesc(v string) { } //SetBidPx sets BidPx, Tag 132 -func (m NoQuoteEntries) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m NoQuoteEntries) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m NoQuoteEntries) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m NoQuoteEntries) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m NoQuoteEntries) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m NoQuoteEntries) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m NoQuoteEntries) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m NoQuoteEntries) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetValidUntilTime sets ValidUntilTime, Tag 62 @@ -1083,43 +1084,43 @@ func (m NoQuoteEntries) SetValidUntilTime(v time.Time) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m NoQuoteEntries) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m NoQuoteEntries) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m NoQuoteEntries) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m NoQuoteEntries) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m NoQuoteEntries) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m NoQuoteEntries) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m NoQuoteEntries) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m NoQuoteEntries) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetMidPx sets MidPx, Tag 631 -func (m NoQuoteEntries) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m NoQuoteEntries) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m NoQuoteEntries) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m NoQuoteEntries) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m NoQuoteEntries) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m NoQuoteEntries) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m NoQuoteEntries) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m NoQuoteEntries) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetTransactTime sets TransactTime, Tag 60 @@ -1153,18 +1154,18 @@ func (m NoQuoteEntries) SetFutSettDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoQuoteEntries) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoQuoteEntries) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m NoQuoteEntries) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m NoQuoteEntries) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m NoQuoteEntries) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m NoQuoteEntries) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetCurrency sets Currency, Tag 15 diff --git a/fix43/multilegordercancelreplacerequest/MultilegOrderCancelReplaceRequest.generated.go b/fix43/multilegordercancelreplacerequest/MultilegOrderCancelReplaceRequest.generated.go index 6cfafdcac..e3eed6d91 100644 --- a/fix43/multilegordercancelreplacerequest/MultilegOrderCancelReplaceRequest.generated.go +++ b/fix43/multilegordercancelreplacerequest/MultilegOrderCancelReplaceRequest.generated.go @@ -1,6 +1,7 @@ package multilegordercancelreplacerequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -77,8 +78,8 @@ func (m MultilegOrderCancelReplaceRequest) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m MultilegOrderCancelReplaceRequest) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m MultilegOrderCancelReplaceRequest) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -117,8 +118,8 @@ func (m MultilegOrderCancelReplaceRequest) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m MultilegOrderCancelReplaceRequest) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m MultilegOrderCancelReplaceRequest) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -132,8 +133,8 @@ func (m MultilegOrderCancelReplaceRequest) SetOrigClOrdID(v string) { } //SetPrice sets Price, Tag 44 -func (m MultilegOrderCancelReplaceRequest) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m MultilegOrderCancelReplaceRequest) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -197,8 +198,8 @@ func (m MultilegOrderCancelReplaceRequest) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m MultilegOrderCancelReplaceRequest) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m MultilegOrderCancelReplaceRequest) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -217,13 +218,13 @@ func (m MultilegOrderCancelReplaceRequest) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m MultilegOrderCancelReplaceRequest) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m MultilegOrderCancelReplaceRequest) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m MultilegOrderCancelReplaceRequest) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m MultilegOrderCancelReplaceRequest) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -237,8 +238,8 @@ func (m MultilegOrderCancelReplaceRequest) SetQuoteID(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m MultilegOrderCancelReplaceRequest) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m MultilegOrderCancelReplaceRequest) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -257,13 +258,13 @@ func (m MultilegOrderCancelReplaceRequest) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m MultilegOrderCancelReplaceRequest) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m MultilegOrderCancelReplaceRequest) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m MultilegOrderCancelReplaceRequest) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m MultilegOrderCancelReplaceRequest) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -282,8 +283,8 @@ func (m MultilegOrderCancelReplaceRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m MultilegOrderCancelReplaceRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m MultilegOrderCancelReplaceRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -302,18 +303,18 @@ func (m MultilegOrderCancelReplaceRequest) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m MultilegOrderCancelReplaceRequest) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m MultilegOrderCancelReplaceRequest) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegDifference sets PegDifference, Tag 211 -func (m MultilegOrderCancelReplaceRequest) SetPegDifference(v float64) { - m.Set(field.NewPegDifference(v)) +func (m MultilegOrderCancelReplaceRequest) SetPegDifference(value decimal.Decimal, scale int32) { + m.Set(field.NewPegDifference(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m MultilegOrderCancelReplaceRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m MultilegOrderCancelReplaceRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -332,18 +333,18 @@ func (m MultilegOrderCancelReplaceRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m MultilegOrderCancelReplaceRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m MultilegOrderCancelReplaceRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m MultilegOrderCancelReplaceRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m MultilegOrderCancelReplaceRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m MultilegOrderCancelReplaceRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m MultilegOrderCancelReplaceRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -412,8 +413,8 @@ func (m MultilegOrderCancelReplaceRequest) SetDiscretionInst(v string) { } //SetDiscretionOffset sets DiscretionOffset, Tag 389 -func (m MultilegOrderCancelReplaceRequest) SetDiscretionOffset(v float64) { - m.Set(field.NewDiscretionOffset(v)) +func (m MultilegOrderCancelReplaceRequest) SetDiscretionOffset(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffset(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -462,8 +463,8 @@ func (m MultilegOrderCancelReplaceRequest) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m MultilegOrderCancelReplaceRequest) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m MultilegOrderCancelReplaceRequest) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -512,8 +513,8 @@ func (m MultilegOrderCancelReplaceRequest) SetRegistID(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m MultilegOrderCancelReplaceRequest) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m MultilegOrderCancelReplaceRequest) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -1783,8 +1784,8 @@ func (m NoAllocs) SetIndividualAllocID(v string) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -2131,13 +2132,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2171,8 +2172,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegOptAttribute sets LegOptAttribute, Tag 613 @@ -2181,13 +2182,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2226,8 +2227,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2256,8 +2257,8 @@ func (m NoLegs) SetLegRefID(v string) { } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegSettlmntTyp sets LegSettlmntTyp, Tag 587 diff --git a/fix43/newordercross/NewOrderCross.generated.go b/fix43/newordercross/NewOrderCross.generated.go index fb0b50d87..f85ab55cb 100644 --- a/fix43/newordercross/NewOrderCross.generated.go +++ b/fix43/newordercross/NewOrderCross.generated.go @@ -1,6 +1,7 @@ package newordercross import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -97,8 +98,8 @@ func (m NewOrderCross) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NewOrderCross) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NewOrderCross) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -142,8 +143,8 @@ func (m NewOrderCross) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m NewOrderCross) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NewOrderCross) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -162,13 +163,13 @@ func (m NewOrderCross) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NewOrderCross) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NewOrderCross) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NewOrderCross) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NewOrderCross) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -182,8 +183,8 @@ func (m NewOrderCross) SetQuoteID(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m NewOrderCross) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m NewOrderCross) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetExpireTime sets ExpireTime, Tag 126 @@ -192,18 +193,18 @@ func (m NewOrderCross) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NewOrderCross) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NewOrderCross) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m NewOrderCross) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m NewOrderCross) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m NewOrderCross) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m NewOrderCross) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -222,8 +223,8 @@ func (m NewOrderCross) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NewOrderCross) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NewOrderCross) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -237,18 +238,18 @@ func (m NewOrderCross) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NewOrderCross) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NewOrderCross) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegDifference sets PegDifference, Tag 211 -func (m NewOrderCross) SetPegDifference(v float64) { - m.Set(field.NewPegDifference(v)) +func (m NewOrderCross) SetPegDifference(value decimal.Decimal, scale int32) { + m.Set(field.NewPegDifference(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m NewOrderCross) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NewOrderCross) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -267,8 +268,8 @@ func (m NewOrderCross) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m NewOrderCross) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NewOrderCross) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -287,18 +288,18 @@ func (m NewOrderCross) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NewOrderCross) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NewOrderCross) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NewOrderCross) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NewOrderCross) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NewOrderCross) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NewOrderCross) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -312,8 +313,8 @@ func (m NewOrderCross) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NewOrderCross) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NewOrderCross) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -367,8 +368,8 @@ func (m NewOrderCross) SetDiscretionInst(v string) { } //SetDiscretionOffset sets DiscretionOffset, Tag 389 -func (m NewOrderCross) SetDiscretionOffset(v float64) { - m.Set(field.NewDiscretionOffset(v)) +func (m NewOrderCross) SetDiscretionOffset(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffset(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -1601,18 +1602,18 @@ func (m NoSides) SetQuantityType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoSides) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoSides) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoSides) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoSides) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoSides) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoSides) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -1621,13 +1622,13 @@ func (m NoSides) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoSides) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoSides) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCommission sets Commission, Tag 12 -func (m NoSides) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoSides) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -2226,8 +2227,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 diff --git a/fix43/neworderlist/NewOrderList.generated.go b/fix43/neworderlist/NewOrderList.generated.go index adb65ce06..b7188cc3c 100644 --- a/fix43/neworderlist/NewOrderList.generated.go +++ b/fix43/neworderlist/NewOrderList.generated.go @@ -1,6 +1,7 @@ package neworderlist import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -405,13 +406,13 @@ func (m NoOrders) SetExecInst(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NoOrders) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NoOrders) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NoOrders) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NoOrders) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -500,13 +501,13 @@ func (m NoOrders) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoOrders) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoOrders) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoOrders) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoOrders) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -540,8 +541,8 @@ func (m NoOrders) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoOrders) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoOrders) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -550,13 +551,13 @@ func (m NoOrders) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoOrders) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoOrders) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoOrders) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoOrders) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -595,8 +596,8 @@ func (m NoOrders) SetEncodedSecurityDesc(v string) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoOrders) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoOrders) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetSide sets Side, Tag 54 @@ -630,18 +631,18 @@ func (m NoOrders) SetQuantityType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoOrders) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoOrders) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoOrders) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoOrders) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -650,8 +651,8 @@ func (m NoOrders) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoOrders) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoOrders) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -665,18 +666,18 @@ func (m NoOrders) SetPriceType(v int) { } //SetPrice sets Price, Tag 44 -func (m NoOrders) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoOrders) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetStopPx sets StopPx, Tag 99 -func (m NoOrders) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NoOrders) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m NoOrders) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoOrders) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -700,8 +701,8 @@ func (m NoOrders) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoOrders) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoOrders) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -755,8 +756,8 @@ func (m NoOrders) SetGTBookingInst(v int) { } //SetCommission sets Commission, Tag 12 -func (m NoOrders) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoOrders) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -825,13 +826,13 @@ func (m NoOrders) SetFutSettDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoOrders) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoOrders) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetPrice2 sets Price2, Tag 640 -func (m NoOrders) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m NoOrders) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetPositionEffect sets PositionEffect, Tag 77 @@ -845,13 +846,13 @@ func (m NoOrders) SetCoveredOrUncovered(v int) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NoOrders) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NoOrders) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegDifference sets PegDifference, Tag 211 -func (m NoOrders) SetPegDifference(v float64) { - m.Set(field.NewPegDifference(v)) +func (m NoOrders) SetPegDifference(value decimal.Decimal, scale int32) { + m.Set(field.NewPegDifference(value, scale)) } //SetDiscretionInst sets DiscretionInst, Tag 388 @@ -860,8 +861,8 @@ func (m NoOrders) SetDiscretionInst(v string) { } //SetDiscretionOffset sets DiscretionOffset, Tag 389 -func (m NoOrders) SetDiscretionOffset(v float64) { - m.Set(field.NewDiscretionOffset(v)) +func (m NoOrders) SetDiscretionOffset(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffset(value, scale)) } //SetDesignation sets Designation, Tag 494 @@ -870,18 +871,18 @@ func (m NoOrders) SetDesignation(v string) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m NoOrders) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m NoOrders) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m NoOrders) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m NoOrders) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetNetMoney sets NetMoney, Tag 118 -func (m NoOrders) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m NoOrders) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 @@ -2267,8 +2268,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 diff --git a/fix43/newordermultileg/NewOrderMultileg.generated.go b/fix43/newordermultileg/NewOrderMultileg.generated.go index 57cdd2cc2..15c962ae8 100644 --- a/fix43/newordermultileg/NewOrderMultileg.generated.go +++ b/fix43/newordermultileg/NewOrderMultileg.generated.go @@ -1,6 +1,7 @@ package newordermultileg import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -76,8 +77,8 @@ func (m NewOrderMultileg) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m NewOrderMultileg) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NewOrderMultileg) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -111,8 +112,8 @@ func (m NewOrderMultileg) SetIOIid(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NewOrderMultileg) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NewOrderMultileg) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -121,8 +122,8 @@ func (m NewOrderMultileg) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NewOrderMultileg) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NewOrderMultileg) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -186,8 +187,8 @@ func (m NewOrderMultileg) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m NewOrderMultileg) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NewOrderMultileg) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -206,13 +207,13 @@ func (m NewOrderMultileg) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NewOrderMultileg) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NewOrderMultileg) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NewOrderMultileg) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NewOrderMultileg) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -226,8 +227,8 @@ func (m NewOrderMultileg) SetQuoteID(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m NewOrderMultileg) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m NewOrderMultileg) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -246,13 +247,13 @@ func (m NewOrderMultileg) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NewOrderMultileg) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NewOrderMultileg) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NewOrderMultileg) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NewOrderMultileg) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -271,8 +272,8 @@ func (m NewOrderMultileg) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NewOrderMultileg) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NewOrderMultileg) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -291,18 +292,18 @@ func (m NewOrderMultileg) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NewOrderMultileg) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NewOrderMultileg) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegDifference sets PegDifference, Tag 211 -func (m NewOrderMultileg) SetPegDifference(v float64) { - m.Set(field.NewPegDifference(v)) +func (m NewOrderMultileg) SetPegDifference(value decimal.Decimal, scale int32) { + m.Set(field.NewPegDifference(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NewOrderMultileg) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NewOrderMultileg) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -321,18 +322,18 @@ func (m NewOrderMultileg) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NewOrderMultileg) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NewOrderMultileg) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NewOrderMultileg) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NewOrderMultileg) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NewOrderMultileg) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NewOrderMultileg) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -401,8 +402,8 @@ func (m NewOrderMultileg) SetDiscretionInst(v string) { } //SetDiscretionOffset sets DiscretionOffset, Tag 389 -func (m NewOrderMultileg) SetDiscretionOffset(v float64) { - m.Set(field.NewDiscretionOffset(v)) +func (m NewOrderMultileg) SetDiscretionOffset(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffset(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -451,8 +452,8 @@ func (m NewOrderMultileg) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NewOrderMultileg) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NewOrderMultileg) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -501,8 +502,8 @@ func (m NewOrderMultileg) SetRegistID(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NewOrderMultileg) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NewOrderMultileg) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -1734,8 +1735,8 @@ func (m NoAllocs) SetIndividualAllocID(v string) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -2082,13 +2083,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2122,8 +2123,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegOptAttribute sets LegOptAttribute, Tag 613 @@ -2132,13 +2133,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2177,8 +2178,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2207,8 +2208,8 @@ func (m NoLegs) SetLegRefID(v string) { } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegSettlmntTyp sets LegSettlmntTyp, Tag 587 diff --git a/fix43/newordersingle/NewOrderSingle.generated.go b/fix43/newordersingle/NewOrderSingle.generated.go index 24dda7c81..d125cbb0a 100644 --- a/fix43/newordersingle/NewOrderSingle.generated.go +++ b/fix43/newordersingle/NewOrderSingle.generated.go @@ -1,6 +1,7 @@ package newordersingle import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -76,8 +77,8 @@ func (m NewOrderSingle) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m NewOrderSingle) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NewOrderSingle) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -111,8 +112,8 @@ func (m NewOrderSingle) SetIOIid(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NewOrderSingle) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NewOrderSingle) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -121,8 +122,8 @@ func (m NewOrderSingle) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NewOrderSingle) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NewOrderSingle) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetRule80A sets Rule80A, Tag 47 @@ -191,8 +192,8 @@ func (m NewOrderSingle) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m NewOrderSingle) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NewOrderSingle) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -211,13 +212,13 @@ func (m NewOrderSingle) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NewOrderSingle) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NewOrderSingle) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NewOrderSingle) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NewOrderSingle) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -231,8 +232,8 @@ func (m NewOrderSingle) SetQuoteID(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m NewOrderSingle) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m NewOrderSingle) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -251,23 +252,23 @@ func (m NewOrderSingle) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NewOrderSingle) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NewOrderSingle) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NewOrderSingle) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NewOrderSingle) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m NewOrderSingle) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m NewOrderSingle) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m NewOrderSingle) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m NewOrderSingle) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -281,8 +282,8 @@ func (m NewOrderSingle) SetEffectiveTime(v time.Time) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NewOrderSingle) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NewOrderSingle) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetFutSettDate2 sets FutSettDate2, Tag 193 @@ -296,8 +297,8 @@ func (m NewOrderSingle) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NewOrderSingle) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NewOrderSingle) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -316,18 +317,18 @@ func (m NewOrderSingle) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NewOrderSingle) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NewOrderSingle) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegDifference sets PegDifference, Tag 211 -func (m NewOrderSingle) SetPegDifference(v float64) { - m.Set(field.NewPegDifference(v)) +func (m NewOrderSingle) SetPegDifference(value decimal.Decimal, scale int32) { + m.Set(field.NewPegDifference(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m NewOrderSingle) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NewOrderSingle) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -346,8 +347,8 @@ func (m NewOrderSingle) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m NewOrderSingle) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NewOrderSingle) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -366,13 +367,13 @@ func (m NewOrderSingle) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NewOrderSingle) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NewOrderSingle) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NewOrderSingle) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NewOrderSingle) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -381,8 +382,8 @@ func (m NewOrderSingle) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NewOrderSingle) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NewOrderSingle) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -396,8 +397,8 @@ func (m NewOrderSingle) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NewOrderSingle) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NewOrderSingle) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -466,8 +467,8 @@ func (m NewOrderSingle) SetDiscretionInst(v string) { } //SetDiscretionOffset sets DiscretionOffset, Tag 389 -func (m NewOrderSingle) SetDiscretionOffset(v float64) { - m.Set(field.NewDiscretionOffset(v)) +func (m NewOrderSingle) SetDiscretionOffset(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffset(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -516,8 +517,8 @@ func (m NewOrderSingle) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NewOrderSingle) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NewOrderSingle) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -566,8 +567,8 @@ func (m NewOrderSingle) SetRegistID(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NewOrderSingle) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NewOrderSingle) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -636,8 +637,8 @@ func (m NewOrderSingle) SetClearingFeeIndicator(v string) { } //SetPrice2 sets Price2, Tag 640 -func (m NewOrderSingle) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m NewOrderSingle) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //GetAccount gets Account, Tag 1 @@ -1931,8 +1932,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 diff --git a/fix43/news/News.generated.go b/fix43/news/News.generated.go index 5b371c15b..beb5a9ebf 100644 --- a/fix43/news/News.generated.go +++ b/fix43/news/News.generated.go @@ -1,6 +1,7 @@ package news import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -392,13 +393,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -432,8 +433,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -442,13 +443,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 diff --git a/fix43/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go b/fix43/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go index 477c929c3..fbd9ee25b 100644 --- a/fix43/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go +++ b/fix43/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go @@ -1,6 +1,7 @@ package ordercancelreplacerequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -77,8 +78,8 @@ func (m OrderCancelReplaceRequest) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m OrderCancelReplaceRequest) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m OrderCancelReplaceRequest) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -112,8 +113,8 @@ func (m OrderCancelReplaceRequest) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m OrderCancelReplaceRequest) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m OrderCancelReplaceRequest) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -127,8 +128,8 @@ func (m OrderCancelReplaceRequest) SetOrigClOrdID(v string) { } //SetPrice sets Price, Tag 44 -func (m OrderCancelReplaceRequest) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m OrderCancelReplaceRequest) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetRule80A sets Rule80A, Tag 47 @@ -197,8 +198,8 @@ func (m OrderCancelReplaceRequest) SetNoAllocs(f NoAllocsRepeatingGroup) { } //SetStopPx sets StopPx, Tag 99 -func (m OrderCancelReplaceRequest) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m OrderCancelReplaceRequest) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -217,13 +218,13 @@ func (m OrderCancelReplaceRequest) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m OrderCancelReplaceRequest) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m OrderCancelReplaceRequest) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m OrderCancelReplaceRequest) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m OrderCancelReplaceRequest) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -232,8 +233,8 @@ func (m OrderCancelReplaceRequest) SetLocateReqd(v bool) { } //SetNetMoney sets NetMoney, Tag 118 -func (m OrderCancelReplaceRequest) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m OrderCancelReplaceRequest) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -252,18 +253,18 @@ func (m OrderCancelReplaceRequest) SetExpireTime(v time.Time) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m OrderCancelReplaceRequest) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m OrderCancelReplaceRequest) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m OrderCancelReplaceRequest) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m OrderCancelReplaceRequest) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m OrderCancelReplaceRequest) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m OrderCancelReplaceRequest) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -277,8 +278,8 @@ func (m OrderCancelReplaceRequest) SetEffectiveTime(v time.Time) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m OrderCancelReplaceRequest) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m OrderCancelReplaceRequest) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetFutSettDate2 sets FutSettDate2, Tag 193 @@ -292,8 +293,8 @@ func (m OrderCancelReplaceRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderCancelReplaceRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderCancelReplaceRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -312,18 +313,18 @@ func (m OrderCancelReplaceRequest) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m OrderCancelReplaceRequest) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m OrderCancelReplaceRequest) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegDifference sets PegDifference, Tag 211 -func (m OrderCancelReplaceRequest) SetPegDifference(v float64) { - m.Set(field.NewPegDifference(v)) +func (m OrderCancelReplaceRequest) SetPegDifference(value decimal.Decimal, scale int32) { + m.Set(field.NewPegDifference(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m OrderCancelReplaceRequest) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m OrderCancelReplaceRequest) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -342,8 +343,8 @@ func (m OrderCancelReplaceRequest) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderCancelReplaceRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderCancelReplaceRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -362,13 +363,13 @@ func (m OrderCancelReplaceRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderCancelReplaceRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderCancelReplaceRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderCancelReplaceRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderCancelReplaceRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -377,8 +378,8 @@ func (m OrderCancelReplaceRequest) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderCancelReplaceRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderCancelReplaceRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetYieldType sets YieldType, Tag 235 @@ -387,8 +388,8 @@ func (m OrderCancelReplaceRequest) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m OrderCancelReplaceRequest) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m OrderCancelReplaceRequest) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -457,8 +458,8 @@ func (m OrderCancelReplaceRequest) SetDiscretionInst(v string) { } //SetDiscretionOffset sets DiscretionOffset, Tag 389 -func (m OrderCancelReplaceRequest) SetDiscretionOffset(v float64) { - m.Set(field.NewDiscretionOffset(v)) +func (m OrderCancelReplaceRequest) SetDiscretionOffset(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffset(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -507,8 +508,8 @@ func (m OrderCancelReplaceRequest) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m OrderCancelReplaceRequest) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m OrderCancelReplaceRequest) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -557,8 +558,8 @@ func (m OrderCancelReplaceRequest) SetRegistID(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m OrderCancelReplaceRequest) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m OrderCancelReplaceRequest) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -632,8 +633,8 @@ func (m OrderCancelReplaceRequest) SetClearingFeeIndicator(v string) { } //SetPrice2 sets Price2, Tag 640 -func (m OrderCancelReplaceRequest) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m OrderCancelReplaceRequest) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //GetAccount gets Account, Tag 1 @@ -1915,8 +1916,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 diff --git a/fix43/ordercancelrequest/OrderCancelRequest.generated.go b/fix43/ordercancelrequest/OrderCancelRequest.generated.go index 0d0c1f087..afb108d1a 100644 --- a/fix43/ordercancelrequest/OrderCancelRequest.generated.go +++ b/fix43/ordercancelrequest/OrderCancelRequest.generated.go @@ -1,6 +1,7 @@ package ordercancelrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -85,8 +86,8 @@ func (m OrderCancelRequest) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m OrderCancelRequest) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m OrderCancelRequest) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrigClOrdID sets OrigClOrdID, Tag 41 @@ -140,8 +141,8 @@ func (m OrderCancelRequest) SetSecurityDesc(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m OrderCancelRequest) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m OrderCancelRequest) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -155,8 +156,8 @@ func (m OrderCancelRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderCancelRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderCancelRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -170,8 +171,8 @@ func (m OrderCancelRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderCancelRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderCancelRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -190,18 +191,18 @@ func (m OrderCancelRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderCancelRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderCancelRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderCancelRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderCancelRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderCancelRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderCancelRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -280,8 +281,8 @@ func (m OrderCancelRequest) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m OrderCancelRequest) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m OrderCancelRequest) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -300,8 +301,8 @@ func (m OrderCancelRequest) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m OrderCancelRequest) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m OrderCancelRequest) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 diff --git a/fix43/ordermasscancelreport/OrderMassCancelReport.generated.go b/fix43/ordermasscancelreport/OrderMassCancelReport.generated.go index e9d5ddca3..7bde29741 100644 --- a/fix43/ordermasscancelreport/OrderMassCancelReport.generated.go +++ b/fix43/ordermasscancelreport/OrderMassCancelReport.generated.go @@ -1,6 +1,7 @@ package ordermasscancelreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -134,8 +135,8 @@ func (m OrderMassCancelReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderMassCancelReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderMassCancelReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -149,8 +150,8 @@ func (m OrderMassCancelReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderMassCancelReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderMassCancelReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -169,18 +170,18 @@ func (m OrderMassCancelReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderMassCancelReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderMassCancelReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderMassCancelReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderMassCancelReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderMassCancelReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderMassCancelReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -214,13 +215,13 @@ func (m OrderMassCancelReport) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m OrderMassCancelReport) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m OrderMassCancelReport) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m OrderMassCancelReport) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m OrderMassCancelReport) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -284,8 +285,8 @@ func (m OrderMassCancelReport) SetUnderlyingMaturityMonthYear(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m OrderMassCancelReport) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m OrderMassCancelReport) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -349,13 +350,13 @@ func (m OrderMassCancelReport) SetEncodedUnderlyingSecurityDesc(v string) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m OrderMassCancelReport) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m OrderMassCancelReport) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m OrderMassCancelReport) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m OrderMassCancelReport) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoSecurityAltID sets NoSecurityAltID, Tag 454 diff --git a/fix43/ordermasscancelrequest/OrderMassCancelRequest.generated.go b/fix43/ordermasscancelrequest/OrderMassCancelRequest.generated.go index 9225bcc2a..503c32c30 100644 --- a/fix43/ordermasscancelrequest/OrderMassCancelRequest.generated.go +++ b/fix43/ordermasscancelrequest/OrderMassCancelRequest.generated.go @@ -1,6 +1,7 @@ package ordermasscancelrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -124,8 +125,8 @@ func (m OrderMassCancelRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderMassCancelRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderMassCancelRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -139,8 +140,8 @@ func (m OrderMassCancelRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderMassCancelRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderMassCancelRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -159,18 +160,18 @@ func (m OrderMassCancelRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderMassCancelRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderMassCancelRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderMassCancelRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderMassCancelRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderMassCancelRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderMassCancelRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -204,13 +205,13 @@ func (m OrderMassCancelRequest) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m OrderMassCancelRequest) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m OrderMassCancelRequest) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m OrderMassCancelRequest) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m OrderMassCancelRequest) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -274,8 +275,8 @@ func (m OrderMassCancelRequest) SetUnderlyingMaturityMonthYear(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m OrderMassCancelRequest) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m OrderMassCancelRequest) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -339,13 +340,13 @@ func (m OrderMassCancelRequest) SetEncodedUnderlyingSecurityDesc(v string) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m OrderMassCancelRequest) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m OrderMassCancelRequest) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m OrderMassCancelRequest) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m OrderMassCancelRequest) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoSecurityAltID sets NoSecurityAltID, Tag 454 diff --git a/fix43/ordermassstatusrequest/OrderMassStatusRequest.generated.go b/fix43/ordermassstatusrequest/OrderMassStatusRequest.generated.go index 73d94422d..8477ffb34 100644 --- a/fix43/ordermassstatusrequest/OrderMassStatusRequest.generated.go +++ b/fix43/ordermassstatusrequest/OrderMassStatusRequest.generated.go @@ -1,6 +1,7 @@ package ordermassstatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -113,8 +114,8 @@ func (m OrderMassStatusRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderMassStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderMassStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -128,8 +129,8 @@ func (m OrderMassStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderMassStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderMassStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -148,18 +149,18 @@ func (m OrderMassStatusRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderMassStatusRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderMassStatusRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderMassStatusRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderMassStatusRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderMassStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderMassStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -193,13 +194,13 @@ func (m OrderMassStatusRequest) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m OrderMassStatusRequest) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m OrderMassStatusRequest) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m OrderMassStatusRequest) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m OrderMassStatusRequest) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -263,8 +264,8 @@ func (m OrderMassStatusRequest) SetUnderlyingMaturityMonthYear(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m OrderMassStatusRequest) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m OrderMassStatusRequest) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -318,13 +319,13 @@ func (m OrderMassStatusRequest) SetEncodedUnderlyingSecurityDesc(v string) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m OrderMassStatusRequest) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m OrderMassStatusRequest) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m OrderMassStatusRequest) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m OrderMassStatusRequest) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoPartyIDs sets NoPartyIDs, Tag 453 diff --git a/fix43/orderstatusrequest/OrderStatusRequest.generated.go b/fix43/orderstatusrequest/OrderStatusRequest.generated.go index d6df24e3c..50ed586b2 100644 --- a/fix43/orderstatusrequest/OrderStatusRequest.generated.go +++ b/fix43/orderstatusrequest/OrderStatusRequest.generated.go @@ -1,6 +1,7 @@ package orderstatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -123,8 +124,8 @@ func (m OrderStatusRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -138,8 +139,8 @@ func (m OrderStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -158,18 +159,18 @@ func (m OrderStatusRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderStatusRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderStatusRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderStatusRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderStatusRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 diff --git a/fix43/quote/Quote.generated.go b/fix43/quote/Quote.generated.go index cfcee8839..064eb089a 100644 --- a/fix43/quote/Quote.generated.go +++ b/fix43/quote/Quote.generated.go @@ -1,6 +1,7 @@ package quote import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -67,8 +68,8 @@ func (m Quote) SetAccount(v string) { } //SetCommission sets Commission, Tag 12 -func (m Quote) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m Quote) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -157,23 +158,23 @@ func (m Quote) SetQuoteReqID(v string) { } //SetBidPx sets BidPx, Tag 132 -func (m Quote) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m Quote) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m Quote) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m Quote) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m Quote) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m Quote) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m Quote) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m Quote) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -187,28 +188,28 @@ func (m Quote) SetSecurityType(v string) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m Quote) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m Quote) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m Quote) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m Quote) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m Quote) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m Quote) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m Quote) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m Quote) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m Quote) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m Quote) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetFutSettDate2 sets FutSettDate2, Tag 193 @@ -222,8 +223,8 @@ func (m Quote) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m Quote) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m Quote) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -237,8 +238,8 @@ func (m Quote) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m Quote) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m Quote) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -257,18 +258,18 @@ func (m Quote) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m Quote) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m Quote) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m Quote) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m Quote) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m Quote) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m Quote) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -392,63 +393,63 @@ func (m Quote) SetTradingSessionSubID(v string) { } //SetMidPx sets MidPx, Tag 631 -func (m Quote) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m Quote) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m Quote) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m Quote) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m Quote) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m Quote) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m Quote) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m Quote) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m Quote) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m Quote) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m Quote) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m Quote) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetMktBidPx sets MktBidPx, Tag 645 -func (m Quote) SetMktBidPx(v float64) { - m.Set(field.NewMktBidPx(v)) +func (m Quote) SetMktBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktBidPx(value, scale)) } //SetMktOfferPx sets MktOfferPx, Tag 646 -func (m Quote) SetMktOfferPx(v float64) { - m.Set(field.NewMktOfferPx(v)) +func (m Quote) SetMktOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktOfferPx(value, scale)) } //SetMinBidSize sets MinBidSize, Tag 647 -func (m Quote) SetMinBidSize(v float64) { - m.Set(field.NewMinBidSize(v)) +func (m Quote) SetMinBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinBidSize(value, scale)) } //SetMinOfferSize sets MinOfferSize, Tag 648 -func (m Quote) SetMinOfferSize(v float64) { - m.Set(field.NewMinOfferSize(v)) +func (m Quote) SetMinOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinOfferSize(value, scale)) } //SetSettlCurrBidFxRate sets SettlCurrBidFxRate, Tag 656 -func (m Quote) SetSettlCurrBidFxRate(v float64) { - m.Set(field.NewSettlCurrBidFxRate(v)) +func (m Quote) SetSettlCurrBidFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrBidFxRate(value, scale)) } //SetSettlCurrOfferFxRate sets SettlCurrOfferFxRate, Tag 657 -func (m Quote) SetSettlCurrOfferFxRate(v float64) { - m.Set(field.NewSettlCurrOfferFxRate(v)) +func (m Quote) SetSettlCurrOfferFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrOfferFxRate(value, scale)) } //GetAccount gets Account, Tag 1 diff --git a/fix43/quotecancel/QuoteCancel.generated.go b/fix43/quotecancel/QuoteCancel.generated.go index 16f6d172b..c9f98bd5b 100644 --- a/fix43/quotecancel/QuoteCancel.generated.go +++ b/fix43/quotecancel/QuoteCancel.generated.go @@ -1,6 +1,7 @@ package quotecancel import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -300,13 +301,13 @@ func (m NoQuoteEntries) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoQuoteEntries) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoQuoteEntries) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoQuoteEntries) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoQuoteEntries) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -340,8 +341,8 @@ func (m NoQuoteEntries) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoQuoteEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoQuoteEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -350,13 +351,13 @@ func (m NoQuoteEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoQuoteEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoQuoteEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoQuoteEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoQuoteEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 diff --git a/fix43/quoterequest/QuoteRequest.generated.go b/fix43/quoterequest/QuoteRequest.generated.go index 9c57257a9..6dea37b97 100644 --- a/fix43/quoterequest/QuoteRequest.generated.go +++ b/fix43/quoterequest/QuoteRequest.generated.go @@ -1,6 +1,7 @@ package quoterequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -234,13 +235,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -274,8 +275,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -284,13 +285,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -329,8 +330,8 @@ func (m NoRelatedSym) SetEncodedSecurityDesc(v string) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoRelatedSym) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoRelatedSym) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetQuoteRequestType sets QuoteRequestType, Tag 303 @@ -374,13 +375,13 @@ func (m NoRelatedSym) SetQuantityType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoRelatedSym) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoRelatedSym) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoRelatedSym) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoRelatedSym) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSettlmntTyp sets SettlmntTyp, Tag 63 @@ -404,8 +405,8 @@ func (m NoRelatedSym) SetFutSettDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoRelatedSym) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoRelatedSym) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetExpireTime sets ExpireTime, Tag 126 @@ -424,8 +425,8 @@ func (m NoRelatedSym) SetCurrency(v string) { } //SetSpread sets Spread, Tag 218 -func (m NoRelatedSym) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoRelatedSym) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -449,13 +450,13 @@ func (m NoRelatedSym) SetPriceType(v int) { } //SetPrice sets Price, Tag 44 -func (m NoRelatedSym) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoRelatedSym) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetPrice2 sets Price2, Tag 640 -func (m NoRelatedSym) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m NoRelatedSym) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetYieldType sets YieldType, Tag 235 @@ -464,8 +465,8 @@ func (m NoRelatedSym) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoRelatedSym) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoRelatedSym) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //GetSymbol gets Symbol, Tag 55 diff --git a/fix43/quoterequestreject/QuoteRequestReject.generated.go b/fix43/quoterequestreject/QuoteRequestReject.generated.go index 82c1d7deb..2696dd989 100644 --- a/fix43/quoterequestreject/QuoteRequestReject.generated.go +++ b/fix43/quoterequestreject/QuoteRequestReject.generated.go @@ -1,6 +1,7 @@ package quoterequestreject import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -251,13 +252,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -291,8 +292,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -301,13 +302,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -346,8 +347,8 @@ func (m NoRelatedSym) SetEncodedSecurityDesc(v string) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoRelatedSym) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoRelatedSym) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetQuoteRequestType sets QuoteRequestType, Tag 303 @@ -391,13 +392,13 @@ func (m NoRelatedSym) SetQuantityType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoRelatedSym) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoRelatedSym) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoRelatedSym) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoRelatedSym) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSettlmntTyp sets SettlmntTyp, Tag 63 @@ -421,8 +422,8 @@ func (m NoRelatedSym) SetFutSettDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoRelatedSym) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoRelatedSym) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetExpireTime sets ExpireTime, Tag 126 @@ -441,8 +442,8 @@ func (m NoRelatedSym) SetCurrency(v string) { } //SetSpread sets Spread, Tag 218 -func (m NoRelatedSym) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoRelatedSym) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -466,13 +467,13 @@ func (m NoRelatedSym) SetPriceType(v int) { } //SetPrice sets Price, Tag 44 -func (m NoRelatedSym) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoRelatedSym) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetPrice2 sets Price2, Tag 640 -func (m NoRelatedSym) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m NoRelatedSym) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetYieldType sets YieldType, Tag 235 @@ -481,8 +482,8 @@ func (m NoRelatedSym) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoRelatedSym) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoRelatedSym) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //GetSymbol gets Symbol, Tag 55 diff --git a/fix43/quotestatusreport/QuoteStatusReport.generated.go b/fix43/quotestatusreport/QuoteStatusReport.generated.go index f314a3027..39197da08 100644 --- a/fix43/quotestatusreport/QuoteStatusReport.generated.go +++ b/fix43/quotestatusreport/QuoteStatusReport.generated.go @@ -1,6 +1,7 @@ package quotestatusreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -67,8 +68,8 @@ func (m QuoteStatusReport) SetAccount(v string) { } //SetCommission sets Commission, Tag 12 -func (m QuoteStatusReport) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m QuoteStatusReport) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -147,23 +148,23 @@ func (m QuoteStatusReport) SetQuoteReqID(v string) { } //SetBidPx sets BidPx, Tag 132 -func (m QuoteStatusReport) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m QuoteStatusReport) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m QuoteStatusReport) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m QuoteStatusReport) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m QuoteStatusReport) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m QuoteStatusReport) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m QuoteStatusReport) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m QuoteStatusReport) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -177,28 +178,28 @@ func (m QuoteStatusReport) SetSecurityType(v string) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m QuoteStatusReport) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m QuoteStatusReport) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m QuoteStatusReport) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m QuoteStatusReport) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m QuoteStatusReport) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m QuoteStatusReport) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m QuoteStatusReport) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m QuoteStatusReport) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m QuoteStatusReport) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m QuoteStatusReport) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetFutSettDate2 sets FutSettDate2, Tag 193 @@ -212,8 +213,8 @@ func (m QuoteStatusReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m QuoteStatusReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m QuoteStatusReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -227,8 +228,8 @@ func (m QuoteStatusReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m QuoteStatusReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m QuoteStatusReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -247,18 +248,18 @@ func (m QuoteStatusReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m QuoteStatusReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m QuoteStatusReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m QuoteStatusReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m QuoteStatusReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m QuoteStatusReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m QuoteStatusReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -372,53 +373,53 @@ func (m QuoteStatusReport) SetTradingSessionSubID(v string) { } //SetMidPx sets MidPx, Tag 631 -func (m QuoteStatusReport) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m QuoteStatusReport) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m QuoteStatusReport) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m QuoteStatusReport) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m QuoteStatusReport) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m QuoteStatusReport) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m QuoteStatusReport) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m QuoteStatusReport) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m QuoteStatusReport) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m QuoteStatusReport) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m QuoteStatusReport) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m QuoteStatusReport) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetMktBidPx sets MktBidPx, Tag 645 -func (m QuoteStatusReport) SetMktBidPx(v float64) { - m.Set(field.NewMktBidPx(v)) +func (m QuoteStatusReport) SetMktBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktBidPx(value, scale)) } //SetMktOfferPx sets MktOfferPx, Tag 646 -func (m QuoteStatusReport) SetMktOfferPx(v float64) { - m.Set(field.NewMktOfferPx(v)) +func (m QuoteStatusReport) SetMktOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktOfferPx(value, scale)) } //SetMinBidSize sets MinBidSize, Tag 647 -func (m QuoteStatusReport) SetMinBidSize(v float64) { - m.Set(field.NewMinBidSize(v)) +func (m QuoteStatusReport) SetMinBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinBidSize(value, scale)) } //SetMinOfferSize sets MinOfferSize, Tag 648 -func (m QuoteStatusReport) SetMinOfferSize(v float64) { - m.Set(field.NewMinOfferSize(v)) +func (m QuoteStatusReport) SetMinOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinOfferSize(value, scale)) } //SetQuoteStatusReqID sets QuoteStatusReqID, Tag 649 @@ -427,13 +428,13 @@ func (m QuoteStatusReport) SetQuoteStatusReqID(v string) { } //SetSettlCurrBidFxRate sets SettlCurrBidFxRate, Tag 656 -func (m QuoteStatusReport) SetSettlCurrBidFxRate(v float64) { - m.Set(field.NewSettlCurrBidFxRate(v)) +func (m QuoteStatusReport) SetSettlCurrBidFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrBidFxRate(value, scale)) } //SetSettlCurrOfferFxRate sets SettlCurrOfferFxRate, Tag 657 -func (m QuoteStatusReport) SetSettlCurrOfferFxRate(v float64) { - m.Set(field.NewSettlCurrOfferFxRate(v)) +func (m QuoteStatusReport) SetSettlCurrOfferFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrOfferFxRate(value, scale)) } //GetAccount gets Account, Tag 1 diff --git a/fix43/quotestatusrequest/QuoteStatusRequest.generated.go b/fix43/quotestatusrequest/QuoteStatusRequest.generated.go index 08c22b487..f77cef038 100644 --- a/fix43/quotestatusrequest/QuoteStatusRequest.generated.go +++ b/fix43/quotestatusrequest/QuoteStatusRequest.generated.go @@ -1,6 +1,7 @@ package quotestatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -111,8 +112,8 @@ func (m QuoteStatusRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m QuoteStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m QuoteStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -126,8 +127,8 @@ func (m QuoteStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m QuoteStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m QuoteStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -146,18 +147,18 @@ func (m QuoteStatusRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m QuoteStatusRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m QuoteStatusRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m QuoteStatusRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m QuoteStatusRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m QuoteStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m QuoteStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 diff --git a/fix43/registrationinstructions/RegistrationInstructions.generated.go b/fix43/registrationinstructions/RegistrationInstructions.generated.go index 8ba24679f..5abce06ed 100644 --- a/fix43/registrationinstructions/RegistrationInstructions.generated.go +++ b/fix43/registrationinstructions/RegistrationInstructions.generated.go @@ -1,6 +1,7 @@ package registrationinstructions import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -594,8 +595,8 @@ func (m NoDistribInsts) SetDistribPaymentMethod(v int) { } //SetDistribPercentage sets DistribPercentage, Tag 512 -func (m NoDistribInsts) SetDistribPercentage(v float64) { - m.Set(field.NewDistribPercentage(v)) +func (m NoDistribInsts) SetDistribPercentage(value decimal.Decimal, scale int32) { + m.Set(field.NewDistribPercentage(value, scale)) } //SetCashDistribCurr sets CashDistribCurr, Tag 478 diff --git a/fix43/rfqrequest/RFQRequest.generated.go b/fix43/rfqrequest/RFQRequest.generated.go index 665e10681..7746a89f4 100644 --- a/fix43/rfqrequest/RFQRequest.generated.go +++ b/fix43/rfqrequest/RFQRequest.generated.go @@ -1,6 +1,7 @@ package rfqrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -186,13 +187,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -226,8 +227,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -236,13 +237,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -281,8 +282,8 @@ func (m NoRelatedSym) SetEncodedSecurityDesc(v string) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoRelatedSym) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoRelatedSym) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetQuoteRequestType sets QuoteRequestType, Tag 303 diff --git a/fix43/securitydefinition/SecurityDefinition.generated.go b/fix43/securitydefinition/SecurityDefinition.generated.go index 2143a0ba4..e762011ff 100644 --- a/fix43/securitydefinition/SecurityDefinition.generated.go +++ b/fix43/securitydefinition/SecurityDefinition.generated.go @@ -1,6 +1,7 @@ package securitydefinition import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -114,8 +115,8 @@ func (m SecurityDefinition) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityDefinition) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityDefinition) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -129,8 +130,8 @@ func (m SecurityDefinition) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityDefinition) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityDefinition) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -149,18 +150,18 @@ func (m SecurityDefinition) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityDefinition) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityDefinition) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityDefinition) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityDefinition) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityDefinition) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityDefinition) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -274,13 +275,13 @@ func (m SecurityDefinition) SetNoLegs(f NoLegsRepeatingGroup) { } //SetRoundLot sets RoundLot, Tag 561 -func (m SecurityDefinition) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m SecurityDefinition) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m SecurityDefinition) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m SecurityDefinition) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetTradingSessionSubID sets TradingSessionSubID, Tag 625 @@ -921,13 +922,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -961,8 +962,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegOptAttribute sets LegOptAttribute, Tag 613 @@ -971,13 +972,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1016,8 +1017,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 diff --git a/fix43/securitydefinitionrequest/SecurityDefinitionRequest.generated.go b/fix43/securitydefinitionrequest/SecurityDefinitionRequest.generated.go index d64f8f42e..8d56f8d3c 100644 --- a/fix43/securitydefinitionrequest/SecurityDefinitionRequest.generated.go +++ b/fix43/securitydefinitionrequest/SecurityDefinitionRequest.generated.go @@ -1,6 +1,7 @@ package securitydefinitionrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -113,8 +114,8 @@ func (m SecurityDefinitionRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityDefinitionRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityDefinitionRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -128,8 +129,8 @@ func (m SecurityDefinitionRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityDefinitionRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityDefinitionRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -148,18 +149,18 @@ func (m SecurityDefinitionRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityDefinitionRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityDefinitionRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityDefinitionRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityDefinitionRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityDefinitionRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityDefinitionRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -888,13 +889,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -928,8 +929,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegOptAttribute sets LegOptAttribute, Tag 613 @@ -938,13 +939,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -983,8 +984,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 diff --git a/fix43/securitylist/SecurityList.generated.go b/fix43/securitylist/SecurityList.generated.go index 96fda8e63..d3ce9cd1e 100644 --- a/fix43/securitylist/SecurityList.generated.go +++ b/fix43/securitylist/SecurityList.generated.go @@ -1,6 +1,7 @@ package securitylist import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -220,13 +221,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -260,8 +261,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -270,13 +271,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -325,13 +326,13 @@ func (m NoRelatedSym) SetNoLegs(f NoLegsRepeatingGroup) { } //SetRoundLot sets RoundLot, Tag 561 -func (m NoRelatedSym) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m NoRelatedSym) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m NoRelatedSym) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m NoRelatedSym) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetTradingSessionID sets TradingSessionID, Tag 336 @@ -959,13 +960,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -999,8 +1000,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegOptAttribute sets LegOptAttribute, Tag 613 @@ -1009,13 +1010,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1054,8 +1055,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 diff --git a/fix43/securitylistrequest/SecurityListRequest.generated.go b/fix43/securitylistrequest/SecurityListRequest.generated.go index 0bc786db4..bc9764a16 100644 --- a/fix43/securitylistrequest/SecurityListRequest.generated.go +++ b/fix43/securitylistrequest/SecurityListRequest.generated.go @@ -1,6 +1,7 @@ package securitylistrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -113,8 +114,8 @@ func (m SecurityListRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityListRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityListRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -128,8 +129,8 @@ func (m SecurityListRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityListRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityListRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -148,18 +149,18 @@ func (m SecurityListRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityListRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityListRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityListRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityListRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityListRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityListRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 diff --git a/fix43/securitystatus/SecurityStatus.generated.go b/fix43/securitystatus/SecurityStatus.generated.go index 2c1b341d8..613b2ef48 100644 --- a/fix43/securitystatus/SecurityStatus.generated.go +++ b/fix43/securitystatus/SecurityStatus.generated.go @@ -1,6 +1,7 @@ package securitystatus import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -71,8 +72,8 @@ func (m SecurityStatus) SetSecurityIDSource(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m SecurityStatus) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m SecurityStatus) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -121,8 +122,8 @@ func (m SecurityStatus) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityStatus) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityStatus) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -136,8 +137,8 @@ func (m SecurityStatus) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityStatus) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityStatus) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -156,18 +157,18 @@ func (m SecurityStatus) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityStatus) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityStatus) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityStatus) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityStatus) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityStatus) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityStatus) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -226,23 +227,23 @@ func (m SecurityStatus) SetDueToRelated(v bool) { } //SetBuyVolume sets BuyVolume, Tag 330 -func (m SecurityStatus) SetBuyVolume(v float64) { - m.Set(field.NewBuyVolume(v)) +func (m SecurityStatus) SetBuyVolume(value decimal.Decimal, scale int32) { + m.Set(field.NewBuyVolume(value, scale)) } //SetSellVolume sets SellVolume, Tag 331 -func (m SecurityStatus) SetSellVolume(v float64) { - m.Set(field.NewSellVolume(v)) +func (m SecurityStatus) SetSellVolume(value decimal.Decimal, scale int32) { + m.Set(field.NewSellVolume(value, scale)) } //SetHighPx sets HighPx, Tag 332 -func (m SecurityStatus) SetHighPx(v float64) { - m.Set(field.NewHighPx(v)) +func (m SecurityStatus) SetHighPx(value decimal.Decimal, scale int32) { + m.Set(field.NewHighPx(value, scale)) } //SetLowPx sets LowPx, Tag 333 -func (m SecurityStatus) SetLowPx(v float64) { - m.Set(field.NewLowPx(v)) +func (m SecurityStatus) SetLowPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLowPx(value, scale)) } //SetAdjustment sets Adjustment, Tag 334 diff --git a/fix43/securitystatusrequest/SecurityStatusRequest.generated.go b/fix43/securitystatusrequest/SecurityStatusRequest.generated.go index 62a024faf..a0962bdd5 100644 --- a/fix43/securitystatusrequest/SecurityStatusRequest.generated.go +++ b/fix43/securitystatusrequest/SecurityStatusRequest.generated.go @@ -1,6 +1,7 @@ package securitystatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -108,8 +109,8 @@ func (m SecurityStatusRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -123,8 +124,8 @@ func (m SecurityStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -143,18 +144,18 @@ func (m SecurityStatusRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityStatusRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityStatusRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityStatusRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityStatusRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 diff --git a/fix43/tradecapturereport/TradeCaptureReport.generated.go b/fix43/tradecapturereport/TradeCaptureReport.generated.go index ca75c20de..093a251f8 100644 --- a/fix43/tradecapturereport/TradeCaptureReport.generated.go +++ b/fix43/tradecapturereport/TradeCaptureReport.generated.go @@ -1,6 +1,7 @@ package tradecapturereport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -83,18 +84,18 @@ func (m TradeCaptureReport) SetLastMkt(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m TradeCaptureReport) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m TradeCaptureReport) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastQty sets LastQty, Tag 32 -func (m TradeCaptureReport) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m TradeCaptureReport) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetOrderQty sets OrderQty, Tag 38 -func (m TradeCaptureReport) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m TradeCaptureReport) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -148,8 +149,8 @@ func (m TradeCaptureReport) SetExecType(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m TradeCaptureReport) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m TradeCaptureReport) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -158,13 +159,13 @@ func (m TradeCaptureReport) SetSecurityType(v string) { } //SetLastSpotRate sets LastSpotRate, Tag 194 -func (m TradeCaptureReport) SetLastSpotRate(v float64) { - m.Set(field.NewLastSpotRate(v)) +func (m TradeCaptureReport) SetLastSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSpotRate(value, scale)) } //SetLastForwardPoints sets LastForwardPoints, Tag 195 -func (m TradeCaptureReport) SetLastForwardPoints(v float64) { - m.Set(field.NewLastForwardPoints(v)) +func (m TradeCaptureReport) SetLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastForwardPoints(value, scale)) } //SetMaturityMonthYear sets MaturityMonthYear, Tag 200 @@ -173,8 +174,8 @@ func (m TradeCaptureReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m TradeCaptureReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m TradeCaptureReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -188,8 +189,8 @@ func (m TradeCaptureReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m TradeCaptureReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m TradeCaptureReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -208,18 +209,18 @@ func (m TradeCaptureReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m TradeCaptureReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m TradeCaptureReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m TradeCaptureReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m TradeCaptureReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m TradeCaptureReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m TradeCaptureReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -283,8 +284,8 @@ func (m TradeCaptureReport) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m TradeCaptureReport) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m TradeCaptureReport) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -308,8 +309,8 @@ func (m TradeCaptureReport) SetTradeReportTransType(v int) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m TradeCaptureReport) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m TradeCaptureReport) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryExecID sets SecondaryExecID, Tag 527 @@ -1189,8 +1190,8 @@ func (m NoSides) SetTradingSessionSubID(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoSides) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoSides) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -1209,8 +1210,8 @@ func (m NoSides) SetFundRenewWaiv(v string) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m NoSides) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m NoSides) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetNumDaysInterest sets NumDaysInterest, Tag 157 @@ -1224,33 +1225,33 @@ func (m NoSides) SetExDate(v string) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m NoSides) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m NoSides) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m NoSides) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m NoSides) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m NoSides) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m NoSides) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m NoSides) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m NoSides) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetNetMoney sets NetMoney, Tag 118 -func (m NoSides) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m NoSides) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoSides) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoSides) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -1259,8 +1260,8 @@ func (m NoSides) SetSettlCurrency(v string) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoSides) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoSides) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -1949,8 +1950,8 @@ func (m NoContAmts) SetContAmtType(v int) { } //SetContAmtValue sets ContAmtValue, Tag 520 -func (m NoContAmts) SetContAmtValue(v float64) { - m.Set(field.NewContAmtValue(v)) +func (m NoContAmts) SetContAmtValue(value decimal.Decimal, scale int32) { + m.Set(field.NewContAmtValue(value, scale)) } //SetContAmtCurr sets ContAmtCurr, Tag 521 @@ -2020,8 +2021,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 diff --git a/fix43/tradecapturereportrequest/TradeCaptureReportRequest.generated.go b/fix43/tradecapturereportrequest/TradeCaptureReportRequest.generated.go index e3e8bc684..b07be3061 100644 --- a/fix43/tradecapturereportrequest/TradeCaptureReportRequest.generated.go +++ b/fix43/tradecapturereportrequest/TradeCaptureReportRequest.generated.go @@ -1,6 +1,7 @@ package tradecapturereportrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -128,8 +129,8 @@ func (m TradeCaptureReportRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m TradeCaptureReportRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m TradeCaptureReportRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -143,8 +144,8 @@ func (m TradeCaptureReportRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m TradeCaptureReportRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m TradeCaptureReportRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -163,18 +164,18 @@ func (m TradeCaptureReportRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m TradeCaptureReportRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m TradeCaptureReportRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m TradeCaptureReportRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m TradeCaptureReportRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m TradeCaptureReportRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m TradeCaptureReportRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 diff --git a/fix43/tradingsessionstatus/TradingSessionStatus.generated.go b/fix43/tradingsessionstatus/TradingSessionStatus.generated.go index 4379a0c10..4e940ecf6 100644 --- a/fix43/tradingsessionstatus/TradingSessionStatus.generated.go +++ b/fix43/tradingsessionstatus/TradingSessionStatus.generated.go @@ -1,6 +1,7 @@ package tradingsessionstatus import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -133,8 +134,8 @@ func (m TradingSessionStatus) SetEncodedText(v string) { } //SetTotalVolumeTraded sets TotalVolumeTraded, Tag 387 -func (m TradingSessionStatus) SetTotalVolumeTraded(v float64) { - m.Set(field.NewTotalVolumeTraded(v)) +func (m TradingSessionStatus) SetTotalVolumeTraded(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalVolumeTraded(value, scale)) } //SetTradSesStatusRejReason sets TradSesStatusRejReason, Tag 567 diff --git a/fix44/advertisement/Advertisement.generated.go b/fix44/advertisement/Advertisement.generated.go index 13f35fb26..c96ad2832 100644 --- a/fix44/advertisement/Advertisement.generated.go +++ b/fix44/advertisement/Advertisement.generated.go @@ -1,6 +1,7 @@ package advertisement import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -100,8 +101,8 @@ func (m Advertisement) SetLastMkt(v string) { } //SetPrice sets Price, Tag 44 -func (m Advertisement) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m Advertisement) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -110,8 +111,8 @@ func (m Advertisement) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m Advertisement) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m Advertisement) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSymbol sets Symbol, Tag 55 @@ -165,8 +166,8 @@ func (m Advertisement) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m Advertisement) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m Advertisement) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -180,8 +181,8 @@ func (m Advertisement) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m Advertisement) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m Advertisement) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -200,18 +201,18 @@ func (m Advertisement) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m Advertisement) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m Advertisement) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m Advertisement) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m Advertisement) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m Advertisement) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m Advertisement) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -1185,13 +1186,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1225,8 +1226,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1240,13 +1241,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1285,8 +1286,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -1946,13 +1947,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1986,8 +1987,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2001,13 +2002,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2061,38 +2062,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2767,8 +2768,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/allocationinstruction/AllocationInstruction.generated.go b/fix44/allocationinstruction/AllocationInstruction.generated.go index 78301e40d..2c8b16274 100644 --- a/fix44/allocationinstruction/AllocationInstruction.generated.go +++ b/fix44/allocationinstruction/AllocationInstruction.generated.go @@ -1,6 +1,7 @@ package allocationinstruction import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -69,8 +70,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m AllocationInstruction) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m AllocationInstruction) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -94,8 +95,8 @@ func (m AllocationInstruction) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m AllocationInstruction) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m AllocationInstruction) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -184,8 +185,8 @@ func (m AllocationInstruction) SetSecurityDesc(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m AllocationInstruction) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m AllocationInstruction) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetNoExecs sets NoExecs, Tag 124 @@ -199,13 +200,13 @@ func (m AllocationInstruction) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m AllocationInstruction) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m AllocationInstruction) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m AllocationInstruction) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m AllocationInstruction) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -229,8 +230,8 @@ func (m AllocationInstruction) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m AllocationInstruction) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m AllocationInstruction) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -244,8 +245,8 @@ func (m AllocationInstruction) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m AllocationInstruction) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m AllocationInstruction) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -264,8 +265,8 @@ func (m AllocationInstruction) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m AllocationInstruction) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m AllocationInstruction) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -284,13 +285,13 @@ func (m AllocationInstruction) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m AllocationInstruction) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m AllocationInstruction) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m AllocationInstruction) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m AllocationInstruction) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -299,8 +300,8 @@ func (m AllocationInstruction) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m AllocationInstruction) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m AllocationInstruction) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -314,18 +315,18 @@ func (m AllocationInstruction) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m AllocationInstruction) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m AllocationInstruction) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m AllocationInstruction) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m AllocationInstruction) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m AllocationInstruction) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m AllocationInstruction) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -379,8 +380,8 @@ func (m AllocationInstruction) SetEncodedText(v string) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m AllocationInstruction) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m AllocationInstruction) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -429,8 +430,8 @@ func (m AllocationInstruction) SetLocaleOfIssue(v string) { } //SetTotalAccruedInterestAmt sets TotalAccruedInterestAmt, Tag 540 -func (m AllocationInstruction) SetTotalAccruedInterestAmt(v float64) { - m.Set(field.NewTotalAccruedInterestAmt(v)) +func (m AllocationInstruction) SetTotalAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalAccruedInterestAmt(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -474,8 +475,8 @@ func (m AllocationInstruction) SetLegalConfirm(v bool) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m AllocationInstruction) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m AllocationInstruction) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -504,8 +505,8 @@ func (m AllocationInstruction) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m AllocationInstruction) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m AllocationInstruction) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -534,8 +535,8 @@ func (m AllocationInstruction) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m AllocationInstruction) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m AllocationInstruction) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetAutoAcceptIndicator sets AutoAcceptIndicator, Tag 754 @@ -589,8 +590,8 @@ func (m AllocationInstruction) SetAllocNoOrdersType(v int) { } //SetAvgParPx sets AvgParPx, Tag 860 -func (m AllocationInstruction) SetAvgParPx(v float64) { - m.Set(field.NewAvgParPx(v)) +func (m AllocationInstruction) SetAvgParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgParPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -599,8 +600,8 @@ func (m AllocationInstruction) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m AllocationInstruction) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m AllocationInstruction) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -639,8 +640,8 @@ func (m AllocationInstruction) SetLastFragment(v bool) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m AllocationInstruction) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m AllocationInstruction) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -679,18 +680,18 @@ func (m AllocationInstruction) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m AllocationInstruction) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m AllocationInstruction) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m AllocationInstruction) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m AllocationInstruction) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m AllocationInstruction) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m AllocationInstruction) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -2130,18 +2131,18 @@ func (m NoOrders) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrderAvgPx sets OrderAvgPx, Tag 799 -func (m NoOrders) SetOrderAvgPx(v float64) { - m.Set(field.NewOrderAvgPx(v)) +func (m NoOrders) SetOrderAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderAvgPx(value, scale)) } //SetOrderBookingQty sets OrderBookingQty, Tag 800 -func (m NoOrders) SetOrderBookingQty(v float64) { - m.Set(field.NewOrderBookingQty(v)) +func (m NoOrders) SetOrderBookingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderBookingQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 @@ -2441,13 +2442,13 @@ func (m NoAllocs) SetMatchStatus(v string) { } //SetAllocPrice sets AllocPrice, Tag 366 -func (m NoAllocs) SetAllocPrice(v float64) { - m.Set(field.NewAllocPrice(v)) +func (m NoAllocs) SetAllocPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocPrice(value, scale)) } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetIndividualAllocID sets IndividualAllocID, Tag 467 @@ -2491,8 +2492,8 @@ func (m NoAllocs) SetEncodedAllocText(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoAllocs) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoAllocs) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -2511,23 +2512,23 @@ func (m NoAllocs) SetFundRenewWaiv(v string) { } //SetAllocAvgPx sets AllocAvgPx, Tag 153 -func (m NoAllocs) SetAllocAvgPx(v float64) { - m.Set(field.NewAllocAvgPx(v)) +func (m NoAllocs) SetAllocAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAvgPx(value, scale)) } //SetAllocNetMoney sets AllocNetMoney, Tag 154 -func (m NoAllocs) SetAllocNetMoney(v float64) { - m.Set(field.NewAllocNetMoney(v)) +func (m NoAllocs) SetAllocNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoAllocs) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoAllocs) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetAllocSettlCurrAmt sets AllocSettlCurrAmt, Tag 737 -func (m NoAllocs) SetAllocSettlCurrAmt(v float64) { - m.Set(field.NewAllocSettlCurrAmt(v)) +func (m NoAllocs) SetAllocSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -2541,8 +2542,8 @@ func (m NoAllocs) SetAllocSettlCurrency(v string) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoAllocs) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoAllocs) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -2551,13 +2552,13 @@ func (m NoAllocs) SetSettlCurrFxRateCalc(v string) { } //SetAllocAccruedInterestAmt sets AllocAccruedInterestAmt, Tag 742 -func (m NoAllocs) SetAllocAccruedInterestAmt(v float64) { - m.Set(field.NewAllocAccruedInterestAmt(v)) +func (m NoAllocs) SetAllocAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAccruedInterestAmt(value, scale)) } //SetAllocInterestAtMaturity sets AllocInterestAtMaturity, Tag 741 -func (m NoAllocs) SetAllocInterestAtMaturity(v float64) { - m.Set(field.NewAllocInterestAtMaturity(v)) +func (m NoAllocs) SetAllocInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocInterestAtMaturity(value, scale)) } //SetNoMiscFees sets NoMiscFees, Tag 136 @@ -3164,8 +3165,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -3553,8 +3554,8 @@ type NoExecs struct { } //SetLastQty sets LastQty, Tag 32 -func (m NoExecs) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m NoExecs) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetExecID sets ExecID, Tag 17 @@ -3568,13 +3569,13 @@ func (m NoExecs) SetSecondaryExecID(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m NoExecs) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m NoExecs) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastParPx sets LastParPx, Tag 669 -func (m NoExecs) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m NoExecs) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetLastCapacity sets LastCapacity, Tag 29 @@ -4025,13 +4026,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4065,8 +4066,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4080,13 +4081,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4125,8 +4126,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4786,13 +4787,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4826,8 +4827,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4841,13 +4842,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4901,38 +4902,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -5607,8 +5608,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/allocationinstructionack/AllocationInstructionAck.generated.go b/fix44/allocationinstructionack/AllocationInstructionAck.generated.go index 92636710e..35376e967 100644 --- a/fix44/allocationinstructionack/AllocationInstructionAck.generated.go +++ b/fix44/allocationinstructionack/AllocationInstructionAck.generated.go @@ -1,6 +1,7 @@ package allocationinstructionack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -337,8 +338,8 @@ func (m NoAllocs) SetAllocAcctIDSource(v int) { } //SetAllocPrice sets AllocPrice, Tag 366 -func (m NoAllocs) SetAllocPrice(v float64) { - m.Set(field.NewAllocPrice(v)) +func (m NoAllocs) SetAllocPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocPrice(value, scale)) } //SetIndividualAllocID sets IndividualAllocID, Tag 467 diff --git a/fix44/allocationreport/AllocationReport.generated.go b/fix44/allocationreport/AllocationReport.generated.go index 761df9126..2ce81df76 100644 --- a/fix44/allocationreport/AllocationReport.generated.go +++ b/fix44/allocationreport/AllocationReport.generated.go @@ -1,6 +1,7 @@ package allocationreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -70,8 +71,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m AllocationReport) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m AllocationReport) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -95,8 +96,8 @@ func (m AllocationReport) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m AllocationReport) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m AllocationReport) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -195,8 +196,8 @@ func (m AllocationReport) SetSecurityDesc(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m AllocationReport) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m AllocationReport) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetNoExecs sets NoExecs, Tag 124 @@ -210,13 +211,13 @@ func (m AllocationReport) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m AllocationReport) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m AllocationReport) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m AllocationReport) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m AllocationReport) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -240,8 +241,8 @@ func (m AllocationReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m AllocationReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m AllocationReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -255,8 +256,8 @@ func (m AllocationReport) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m AllocationReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m AllocationReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -275,8 +276,8 @@ func (m AllocationReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m AllocationReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m AllocationReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -295,13 +296,13 @@ func (m AllocationReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m AllocationReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m AllocationReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m AllocationReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m AllocationReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -310,8 +311,8 @@ func (m AllocationReport) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m AllocationReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m AllocationReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -325,18 +326,18 @@ func (m AllocationReport) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m AllocationReport) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m AllocationReport) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m AllocationReport) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m AllocationReport) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m AllocationReport) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m AllocationReport) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -390,8 +391,8 @@ func (m AllocationReport) SetEncodedText(v string) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m AllocationReport) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m AllocationReport) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -440,8 +441,8 @@ func (m AllocationReport) SetLocaleOfIssue(v string) { } //SetTotalAccruedInterestAmt sets TotalAccruedInterestAmt, Tag 540 -func (m AllocationReport) SetTotalAccruedInterestAmt(v float64) { - m.Set(field.NewTotalAccruedInterestAmt(v)) +func (m AllocationReport) SetTotalAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalAccruedInterestAmt(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -480,8 +481,8 @@ func (m AllocationReport) SetLegalConfirm(v bool) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m AllocationReport) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m AllocationReport) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -510,8 +511,8 @@ func (m AllocationReport) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m AllocationReport) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m AllocationReport) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -540,8 +541,8 @@ func (m AllocationReport) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m AllocationReport) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m AllocationReport) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetAutoAcceptIndicator sets AutoAcceptIndicator, Tag 754 @@ -610,8 +611,8 @@ func (m AllocationReport) SetAllocNoOrdersType(v int) { } //SetAvgParPx sets AvgParPx, Tag 860 -func (m AllocationReport) SetAvgParPx(v float64) { - m.Set(field.NewAvgParPx(v)) +func (m AllocationReport) SetAvgParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgParPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -620,8 +621,8 @@ func (m AllocationReport) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m AllocationReport) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m AllocationReport) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -660,8 +661,8 @@ func (m AllocationReport) SetLastFragment(v bool) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m AllocationReport) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m AllocationReport) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -700,18 +701,18 @@ func (m AllocationReport) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m AllocationReport) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m AllocationReport) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m AllocationReport) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m AllocationReport) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m AllocationReport) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m AllocationReport) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -2195,18 +2196,18 @@ func (m NoOrders) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrderAvgPx sets OrderAvgPx, Tag 799 -func (m NoOrders) SetOrderAvgPx(v float64) { - m.Set(field.NewOrderAvgPx(v)) +func (m NoOrders) SetOrderAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderAvgPx(value, scale)) } //SetOrderBookingQty sets OrderBookingQty, Tag 800 -func (m NoOrders) SetOrderBookingQty(v float64) { - m.Set(field.NewOrderBookingQty(v)) +func (m NoOrders) SetOrderBookingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderBookingQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 @@ -2506,13 +2507,13 @@ func (m NoAllocs) SetMatchStatus(v string) { } //SetAllocPrice sets AllocPrice, Tag 366 -func (m NoAllocs) SetAllocPrice(v float64) { - m.Set(field.NewAllocPrice(v)) +func (m NoAllocs) SetAllocPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocPrice(value, scale)) } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetIndividualAllocID sets IndividualAllocID, Tag 467 @@ -2556,8 +2557,8 @@ func (m NoAllocs) SetEncodedAllocText(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoAllocs) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoAllocs) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -2576,23 +2577,23 @@ func (m NoAllocs) SetFundRenewWaiv(v string) { } //SetAllocAvgPx sets AllocAvgPx, Tag 153 -func (m NoAllocs) SetAllocAvgPx(v float64) { - m.Set(field.NewAllocAvgPx(v)) +func (m NoAllocs) SetAllocAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAvgPx(value, scale)) } //SetAllocNetMoney sets AllocNetMoney, Tag 154 -func (m NoAllocs) SetAllocNetMoney(v float64) { - m.Set(field.NewAllocNetMoney(v)) +func (m NoAllocs) SetAllocNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoAllocs) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoAllocs) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetAllocSettlCurrAmt sets AllocSettlCurrAmt, Tag 737 -func (m NoAllocs) SetAllocSettlCurrAmt(v float64) { - m.Set(field.NewAllocSettlCurrAmt(v)) +func (m NoAllocs) SetAllocSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -2606,8 +2607,8 @@ func (m NoAllocs) SetAllocSettlCurrency(v string) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoAllocs) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoAllocs) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -2616,13 +2617,13 @@ func (m NoAllocs) SetSettlCurrFxRateCalc(v string) { } //SetAllocAccruedInterestAmt sets AllocAccruedInterestAmt, Tag 742 -func (m NoAllocs) SetAllocAccruedInterestAmt(v float64) { - m.Set(field.NewAllocAccruedInterestAmt(v)) +func (m NoAllocs) SetAllocAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAccruedInterestAmt(value, scale)) } //SetAllocInterestAtMaturity sets AllocInterestAtMaturity, Tag 741 -func (m NoAllocs) SetAllocInterestAtMaturity(v float64) { - m.Set(field.NewAllocInterestAtMaturity(v)) +func (m NoAllocs) SetAllocInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocInterestAtMaturity(value, scale)) } //SetNoMiscFees sets NoMiscFees, Tag 136 @@ -3229,8 +3230,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -3618,8 +3619,8 @@ type NoExecs struct { } //SetLastQty sets LastQty, Tag 32 -func (m NoExecs) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m NoExecs) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetExecID sets ExecID, Tag 17 @@ -3633,13 +3634,13 @@ func (m NoExecs) SetSecondaryExecID(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m NoExecs) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m NoExecs) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastParPx sets LastParPx, Tag 669 -func (m NoExecs) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m NoExecs) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetLastCapacity sets LastCapacity, Tag 29 @@ -4090,13 +4091,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4130,8 +4131,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4145,13 +4146,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4190,8 +4191,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4851,13 +4852,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4891,8 +4892,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4906,13 +4907,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4966,38 +4967,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -5672,8 +5673,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/allocationreportack/AllocationReportAck.generated.go b/fix44/allocationreportack/AllocationReportAck.generated.go index 93cca93e9..898b9e6ef 100644 --- a/fix44/allocationreportack/AllocationReportAck.generated.go +++ b/fix44/allocationreportack/AllocationReportAck.generated.go @@ -1,6 +1,7 @@ package allocationreportack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -354,8 +355,8 @@ func (m NoAllocs) SetAllocAcctIDSource(v int) { } //SetAllocPrice sets AllocPrice, Tag 366 -func (m NoAllocs) SetAllocPrice(v float64) { - m.Set(field.NewAllocPrice(v)) +func (m NoAllocs) SetAllocPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocPrice(value, scale)) } //SetIndividualAllocID sets IndividualAllocID, Tag 467 diff --git a/fix44/assignmentreport/AssignmentReport.generated.go b/fix44/assignmentreport/AssignmentReport.generated.go index 712c64bd4..5434e7a06 100644 --- a/fix44/assignmentreport/AssignmentReport.generated.go +++ b/fix44/assignmentreport/AssignmentReport.generated.go @@ -1,6 +1,7 @@ package assignmentreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -127,8 +128,8 @@ func (m AssignmentReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m AssignmentReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m AssignmentReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -142,8 +143,8 @@ func (m AssignmentReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m AssignmentReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m AssignmentReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -162,18 +163,18 @@ func (m AssignmentReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m AssignmentReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m AssignmentReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m AssignmentReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m AssignmentReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m AssignmentReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m AssignmentReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -317,8 +318,8 @@ func (m AssignmentReport) SetSettlSessSubID(v string) { } //SetSettlPrice sets SettlPrice, Tag 730 -func (m AssignmentReport) SetSettlPrice(v float64) { - m.Set(field.NewSettlPrice(v)) +func (m AssignmentReport) SetSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlPrice(value, scale)) } //SetSettlPriceType sets SettlPriceType, Tag 731 @@ -327,8 +328,8 @@ func (m AssignmentReport) SetSettlPriceType(v int) { } //SetUnderlyingSettlPrice sets UnderlyingSettlPrice, Tag 732 -func (m AssignmentReport) SetUnderlyingSettlPrice(v float64) { - m.Set(field.NewUnderlyingSettlPrice(v)) +func (m AssignmentReport) SetUnderlyingSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingSettlPrice(value, scale)) } //SetAssignmentMethod sets AssignmentMethod, Tag 744 @@ -337,13 +338,13 @@ func (m AssignmentReport) SetAssignmentMethod(v string) { } //SetAssignmentUnit sets AssignmentUnit, Tag 745 -func (m AssignmentReport) SetAssignmentUnit(v float64) { - m.Set(field.NewAssignmentUnit(v)) +func (m AssignmentReport) SetAssignmentUnit(value decimal.Decimal, scale int32) { + m.Set(field.NewAssignmentUnit(value, scale)) } //SetOpenInterest sets OpenInterest, Tag 746 -func (m AssignmentReport) SetOpenInterest(v float64) { - m.Set(field.NewOpenInterest(v)) +func (m AssignmentReport) SetOpenInterest(value decimal.Decimal, scale int32) { + m.Set(field.NewOpenInterest(value, scale)) } //SetExerciseMethod sets ExerciseMethod, Tag 747 @@ -372,8 +373,8 @@ func (m AssignmentReport) SetAsgnRptID(v string) { } //SetThresholdAmount sets ThresholdAmount, Tag 834 -func (m AssignmentReport) SetThresholdAmount(v float64) { - m.Set(field.NewThresholdAmount(v)) +func (m AssignmentReport) SetThresholdAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewThresholdAmount(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -1460,13 +1461,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1500,8 +1501,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1515,13 +1516,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1560,8 +1561,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2151,13 +2152,13 @@ func (m NoPositions) SetPosType(v string) { } //SetLongQty sets LongQty, Tag 704 -func (m NoPositions) SetLongQty(v float64) { - m.Set(field.NewLongQty(v)) +func (m NoPositions) SetLongQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLongQty(value, scale)) } //SetShortQty sets ShortQty, Tag 705 -func (m NoPositions) SetShortQty(v float64) { - m.Set(field.NewShortQty(v)) +func (m NoPositions) SetShortQty(value decimal.Decimal, scale int32) { + m.Set(field.NewShortQty(value, scale)) } //SetPosQtyStatus sets PosQtyStatus, Tag 706 @@ -2483,13 +2484,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2523,8 +2524,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2538,13 +2539,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2598,38 +2599,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3299,8 +3300,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //GetPosAmtType gets PosAmtType, Tag 707 @@ -3364,8 +3365,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/bidrequest/BidRequest.generated.go b/fix44/bidrequest/BidRequest.generated.go index 374b8b419..ed1793df1 100644 --- a/fix44/bidrequest/BidRequest.generated.go +++ b/fix44/bidrequest/BidRequest.generated.go @@ -1,6 +1,7 @@ package bidrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -132,13 +133,13 @@ func (m BidRequest) SetNumTickets(v int) { } //SetSideValue1 sets SideValue1, Tag 396 -func (m BidRequest) SetSideValue1(v float64) { - m.Set(field.NewSideValue1(v)) +func (m BidRequest) SetSideValue1(value decimal.Decimal, scale int32) { + m.Set(field.NewSideValue1(value, scale)) } //SetSideValue2 sets SideValue2, Tag 397 -func (m BidRequest) SetSideValue2(v float64) { - m.Set(field.NewSideValue2(v)) +func (m BidRequest) SetSideValue2(value decimal.Decimal, scale int32) { + m.Set(field.NewSideValue2(value, scale)) } //SetNoBidDescriptors sets NoBidDescriptors, Tag 398 @@ -152,8 +153,8 @@ func (m BidRequest) SetLiquidityIndType(v int) { } //SetWtAverageLiquidity sets WtAverageLiquidity, Tag 410 -func (m BidRequest) SetWtAverageLiquidity(v float64) { - m.Set(field.NewWtAverageLiquidity(v)) +func (m BidRequest) SetWtAverageLiquidity(value decimal.Decimal, scale int32) { + m.Set(field.NewWtAverageLiquidity(value, scale)) } //SetExchangeForPhysical sets ExchangeForPhysical, Tag 411 @@ -162,13 +163,13 @@ func (m BidRequest) SetExchangeForPhysical(v bool) { } //SetOutMainCntryUIndex sets OutMainCntryUIndex, Tag 412 -func (m BidRequest) SetOutMainCntryUIndex(v float64) { - m.Set(field.NewOutMainCntryUIndex(v)) +func (m BidRequest) SetOutMainCntryUIndex(value decimal.Decimal, scale int32) { + m.Set(field.NewOutMainCntryUIndex(value, scale)) } //SetCrossPercent sets CrossPercent, Tag 413 -func (m BidRequest) SetCrossPercent(v float64) { - m.Set(field.NewCrossPercent(v)) +func (m BidRequest) SetCrossPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewCrossPercent(value, scale)) } //SetProgRptReqs sets ProgRptReqs, Tag 414 @@ -553,8 +554,8 @@ func (m NoBidDescriptors) SetSideValueInd(v int) { } //SetLiquidityValue sets LiquidityValue, Tag 404 -func (m NoBidDescriptors) SetLiquidityValue(v float64) { - m.Set(field.NewLiquidityValue(v)) +func (m NoBidDescriptors) SetLiquidityValue(value decimal.Decimal, scale int32) { + m.Set(field.NewLiquidityValue(value, scale)) } //SetLiquidityNumSecurities sets LiquidityNumSecurities, Tag 441 @@ -563,33 +564,33 @@ func (m NoBidDescriptors) SetLiquidityNumSecurities(v int) { } //SetLiquidityPctLow sets LiquidityPctLow, Tag 402 -func (m NoBidDescriptors) SetLiquidityPctLow(v float64) { - m.Set(field.NewLiquidityPctLow(v)) +func (m NoBidDescriptors) SetLiquidityPctLow(value decimal.Decimal, scale int32) { + m.Set(field.NewLiquidityPctLow(value, scale)) } //SetLiquidityPctHigh sets LiquidityPctHigh, Tag 403 -func (m NoBidDescriptors) SetLiquidityPctHigh(v float64) { - m.Set(field.NewLiquidityPctHigh(v)) +func (m NoBidDescriptors) SetLiquidityPctHigh(value decimal.Decimal, scale int32) { + m.Set(field.NewLiquidityPctHigh(value, scale)) } //SetEFPTrackingError sets EFPTrackingError, Tag 405 -func (m NoBidDescriptors) SetEFPTrackingError(v float64) { - m.Set(field.NewEFPTrackingError(v)) +func (m NoBidDescriptors) SetEFPTrackingError(value decimal.Decimal, scale int32) { + m.Set(field.NewEFPTrackingError(value, scale)) } //SetFairValue sets FairValue, Tag 406 -func (m NoBidDescriptors) SetFairValue(v float64) { - m.Set(field.NewFairValue(v)) +func (m NoBidDescriptors) SetFairValue(value decimal.Decimal, scale int32) { + m.Set(field.NewFairValue(value, scale)) } //SetOutsideIndexPct sets OutsideIndexPct, Tag 407 -func (m NoBidDescriptors) SetOutsideIndexPct(v float64) { - m.Set(field.NewOutsideIndexPct(v)) +func (m NoBidDescriptors) SetOutsideIndexPct(value decimal.Decimal, scale int32) { + m.Set(field.NewOutsideIndexPct(value, scale)) } //SetValueOfFutures sets ValueOfFutures, Tag 408 -func (m NoBidDescriptors) SetValueOfFutures(v float64) { - m.Set(field.NewValueOfFutures(v)) +func (m NoBidDescriptors) SetValueOfFutures(value decimal.Decimal, scale int32) { + m.Set(field.NewValueOfFutures(value, scale)) } //GetBidDescriptorType gets BidDescriptorType, Tag 399 diff --git a/fix44/bidresponse/BidResponse.generated.go b/fix44/bidresponse/BidResponse.generated.go index a8e110ad6..95d724087 100644 --- a/fix44/bidresponse/BidResponse.generated.go +++ b/fix44/bidresponse/BidResponse.generated.go @@ -1,6 +1,7 @@ package bidresponse import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -115,8 +116,8 @@ type NoBidComponents struct { } //SetCommission sets Commission, Tag 12 -func (m NoBidComponents) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoBidComponents) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -150,8 +151,8 @@ func (m NoBidComponents) SetSide(v string) { } //SetPrice sets Price, Tag 44 -func (m NoBidComponents) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoBidComponents) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -160,8 +161,8 @@ func (m NoBidComponents) SetPriceType(v int) { } //SetFairValue sets FairValue, Tag 406 -func (m NoBidComponents) SetFairValue(v float64) { - m.Set(field.NewFairValue(v)) +func (m NoBidComponents) SetFairValue(value decimal.Decimal, scale int32) { + m.Set(field.NewFairValue(value, scale)) } //SetNetGrossInd sets NetGrossInd, Tag 430 diff --git a/fix44/collateralassignment/CollateralAssignment.generated.go b/fix44/collateralassignment/CollateralAssignment.generated.go index f033e1d34..94ba9b15e 100644 --- a/fix44/collateralassignment/CollateralAssignment.generated.go +++ b/fix44/collateralassignment/CollateralAssignment.generated.go @@ -1,6 +1,7 @@ package collateralassignment import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -90,8 +91,8 @@ func (m CollateralAssignment) SetOrderID(v string) { } //SetPrice sets Price, Tag 44 -func (m CollateralAssignment) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CollateralAssignment) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -100,8 +101,8 @@ func (m CollateralAssignment) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralAssignment) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralAssignment) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -165,8 +166,8 @@ func (m CollateralAssignment) SetNoMiscFees(f NoMiscFeesRepeatingGroup) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m CollateralAssignment) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m CollateralAssignment) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -205,8 +206,8 @@ func (m CollateralAssignment) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralAssignment) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralAssignment) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -220,8 +221,8 @@ func (m CollateralAssignment) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m CollateralAssignment) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CollateralAssignment) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -240,8 +241,8 @@ func (m CollateralAssignment) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralAssignment) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralAssignment) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -260,18 +261,18 @@ func (m CollateralAssignment) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralAssignment) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralAssignment) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralAssignment) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralAssignment) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralAssignment) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralAssignment) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -400,8 +401,8 @@ func (m CollateralAssignment) SetTradingSessionSubID(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CollateralAssignment) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CollateralAssignment) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -510,23 +511,23 @@ func (m CollateralAssignment) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralAssignment) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralAssignment) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetMarginExcess sets MarginExcess, Tag 899 -func (m CollateralAssignment) SetMarginExcess(v float64) { - m.Set(field.NewMarginExcess(v)) +func (m CollateralAssignment) SetMarginExcess(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginExcess(value, scale)) } //SetTotalNetValue sets TotalNetValue, Tag 900 -func (m CollateralAssignment) SetTotalNetValue(v float64) { - m.Set(field.NewTotalNetValue(v)) +func (m CollateralAssignment) SetTotalNetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalNetValue(value, scale)) } //SetCashOutstanding sets CashOutstanding, Tag 901 -func (m CollateralAssignment) SetCashOutstanding(v float64) { - m.Set(field.NewCashOutstanding(v)) +func (m CollateralAssignment) SetCashOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOutstanding(value, scale)) } //SetCollAsgnID sets CollAsgnID, Tag 902 @@ -580,18 +581,18 @@ func (m CollateralAssignment) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m CollateralAssignment) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m CollateralAssignment) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m CollateralAssignment) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m CollateralAssignment) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m CollateralAssignment) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m CollateralAssignment) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -2067,8 +2068,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -2507,13 +2508,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2547,8 +2548,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2562,13 +2563,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2607,8 +2608,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3268,13 +3269,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3308,8 +3309,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3323,13 +3324,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3383,38 +3384,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4181,8 +4182,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/collateralinquiry/CollateralInquiry.generated.go b/fix44/collateralinquiry/CollateralInquiry.generated.go index d1daae549..90320d566 100644 --- a/fix44/collateralinquiry/CollateralInquiry.generated.go +++ b/fix44/collateralinquiry/CollateralInquiry.generated.go @@ -1,6 +1,7 @@ package collateralinquiry import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -86,8 +87,8 @@ func (m CollateralInquiry) SetOrderID(v string) { } //SetPrice sets Price, Tag 44 -func (m CollateralInquiry) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CollateralInquiry) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -96,8 +97,8 @@ func (m CollateralInquiry) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralInquiry) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralInquiry) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -146,8 +147,8 @@ func (m CollateralInquiry) SetNoExecs(f NoExecsRepeatingGroup) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m CollateralInquiry) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m CollateralInquiry) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -186,8 +187,8 @@ func (m CollateralInquiry) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralInquiry) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralInquiry) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -201,8 +202,8 @@ func (m CollateralInquiry) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m CollateralInquiry) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CollateralInquiry) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -221,8 +222,8 @@ func (m CollateralInquiry) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralInquiry) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralInquiry) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -241,18 +242,18 @@ func (m CollateralInquiry) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralInquiry) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralInquiry) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralInquiry) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralInquiry) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralInquiry) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralInquiry) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -386,8 +387,8 @@ func (m CollateralInquiry) SetTradingSessionSubID(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CollateralInquiry) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CollateralInquiry) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -496,23 +497,23 @@ func (m CollateralInquiry) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralInquiry) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralInquiry) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetMarginExcess sets MarginExcess, Tag 899 -func (m CollateralInquiry) SetMarginExcess(v float64) { - m.Set(field.NewMarginExcess(v)) +func (m CollateralInquiry) SetMarginExcess(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginExcess(value, scale)) } //SetTotalNetValue sets TotalNetValue, Tag 900 -func (m CollateralInquiry) SetTotalNetValue(v float64) { - m.Set(field.NewTotalNetValue(v)) +func (m CollateralInquiry) SetTotalNetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalNetValue(value, scale)) } //SetCashOutstanding sets CashOutstanding, Tag 901 -func (m CollateralInquiry) SetCashOutstanding(v float64) { - m.Set(field.NewCashOutstanding(v)) +func (m CollateralInquiry) SetCashOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOutstanding(value, scale)) } //SetCollInquiryID sets CollInquiryID, Tag 909 @@ -556,18 +557,18 @@ func (m CollateralInquiry) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m CollateralInquiry) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m CollateralInquiry) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m CollateralInquiry) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m CollateralInquiry) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m CollateralInquiry) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m CollateralInquiry) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetNoCollInquiryQualifier sets NoCollInquiryQualifier, Tag 938 @@ -2363,13 +2364,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2403,8 +2404,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2418,13 +2419,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2463,8 +2464,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3124,13 +3125,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3164,8 +3165,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3179,13 +3180,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3239,38 +3240,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4021,8 +4022,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/collateralinquiryack/CollateralInquiryAck.generated.go b/fix44/collateralinquiryack/CollateralInquiryAck.generated.go index 031f0a411..cc4d1683b 100644 --- a/fix44/collateralinquiryack/CollateralInquiryAck.generated.go +++ b/fix44/collateralinquiryack/CollateralInquiryAck.generated.go @@ -1,6 +1,7 @@ package collateralinquiryack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -93,8 +94,8 @@ func (m CollateralInquiryAck) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralInquiryAck) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralInquiryAck) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSymbol sets Symbol, Tag 55 @@ -148,8 +149,8 @@ func (m CollateralInquiryAck) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralInquiryAck) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralInquiryAck) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -163,8 +164,8 @@ func (m CollateralInquiryAck) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralInquiryAck) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralInquiryAck) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -183,18 +184,18 @@ func (m CollateralInquiryAck) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralInquiryAck) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralInquiryAck) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralInquiryAck) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralInquiryAck) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralInquiryAck) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralInquiryAck) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -398,8 +399,8 @@ func (m CollateralInquiryAck) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralInquiryAck) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralInquiryAck) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetCollInquiryID sets CollInquiryID, Tag 909 @@ -1704,13 +1705,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1744,8 +1745,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1759,13 +1760,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1804,8 +1805,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2465,13 +2466,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2505,8 +2506,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2520,13 +2521,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2580,38 +2581,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3286,8 +3287,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/collateralreport/CollateralReport.generated.go b/fix44/collateralreport/CollateralReport.generated.go index 2fc28f8b2..db673b7f5 100644 --- a/fix44/collateralreport/CollateralReport.generated.go +++ b/fix44/collateralreport/CollateralReport.generated.go @@ -1,6 +1,7 @@ package collateralreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -88,8 +89,8 @@ func (m CollateralReport) SetOrderID(v string) { } //SetPrice sets Price, Tag 44 -func (m CollateralReport) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CollateralReport) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -98,8 +99,8 @@ func (m CollateralReport) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralReport) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralReport) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -153,8 +154,8 @@ func (m CollateralReport) SetNoMiscFees(f NoMiscFeesRepeatingGroup) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m CollateralReport) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m CollateralReport) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -193,8 +194,8 @@ func (m CollateralReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -208,8 +209,8 @@ func (m CollateralReport) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m CollateralReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CollateralReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -228,8 +229,8 @@ func (m CollateralReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -248,18 +249,18 @@ func (m CollateralReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -388,8 +389,8 @@ func (m CollateralReport) SetTradingSessionSubID(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CollateralReport) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CollateralReport) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -488,23 +489,23 @@ func (m CollateralReport) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralReport) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralReport) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetMarginExcess sets MarginExcess, Tag 899 -func (m CollateralReport) SetMarginExcess(v float64) { - m.Set(field.NewMarginExcess(v)) +func (m CollateralReport) SetMarginExcess(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginExcess(value, scale)) } //SetTotalNetValue sets TotalNetValue, Tag 900 -func (m CollateralReport) SetTotalNetValue(v float64) { - m.Set(field.NewTotalNetValue(v)) +func (m CollateralReport) SetTotalNetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalNetValue(value, scale)) } //SetCashOutstanding sets CashOutstanding, Tag 901 -func (m CollateralReport) SetCashOutstanding(v float64) { - m.Set(field.NewCashOutstanding(v)) +func (m CollateralReport) SetCashOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOutstanding(value, scale)) } //SetCollRptID sets CollRptID, Tag 908 @@ -568,18 +569,18 @@ func (m CollateralReport) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m CollateralReport) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m CollateralReport) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m CollateralReport) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m CollateralReport) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m CollateralReport) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m CollateralReport) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -2033,8 +2034,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -2473,13 +2474,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2513,8 +2514,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2528,13 +2529,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2573,8 +2574,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3234,13 +3235,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3274,8 +3275,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3289,13 +3290,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3349,38 +3350,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4131,8 +4132,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/collateralrequest/CollateralRequest.generated.go b/fix44/collateralrequest/CollateralRequest.generated.go index 57006da4f..a48ca1c11 100644 --- a/fix44/collateralrequest/CollateralRequest.generated.go +++ b/fix44/collateralrequest/CollateralRequest.generated.go @@ -1,6 +1,7 @@ package collateralrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -89,8 +90,8 @@ func (m CollateralRequest) SetOrderID(v string) { } //SetPrice sets Price, Tag 44 -func (m CollateralRequest) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CollateralRequest) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -99,8 +100,8 @@ func (m CollateralRequest) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralRequest) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralRequest) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -159,8 +160,8 @@ func (m CollateralRequest) SetNoMiscFees(f NoMiscFeesRepeatingGroup) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m CollateralRequest) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m CollateralRequest) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -179,8 +180,8 @@ func (m CollateralRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -194,8 +195,8 @@ func (m CollateralRequest) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m CollateralRequest) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CollateralRequest) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -214,8 +215,8 @@ func (m CollateralRequest) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -234,18 +235,18 @@ func (m CollateralRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -374,8 +375,8 @@ func (m CollateralRequest) SetTradingSessionSubID(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CollateralRequest) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CollateralRequest) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -484,23 +485,23 @@ func (m CollateralRequest) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetMarginExcess sets MarginExcess, Tag 899 -func (m CollateralRequest) SetMarginExcess(v float64) { - m.Set(field.NewMarginExcess(v)) +func (m CollateralRequest) SetMarginExcess(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginExcess(value, scale)) } //SetTotalNetValue sets TotalNetValue, Tag 900 -func (m CollateralRequest) SetTotalNetValue(v float64) { - m.Set(field.NewTotalNetValue(v)) +func (m CollateralRequest) SetTotalNetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalNetValue(value, scale)) } //SetCashOutstanding sets CashOutstanding, Tag 901 -func (m CollateralRequest) SetCashOutstanding(v float64) { - m.Set(field.NewCashOutstanding(v)) +func (m CollateralRequest) SetCashOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOutstanding(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -539,18 +540,18 @@ func (m CollateralRequest) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m CollateralRequest) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m CollateralRequest) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m CollateralRequest) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m CollateralRequest) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m CollateralRequest) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m CollateralRequest) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -1707,8 +1708,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -2147,13 +2148,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2187,8 +2188,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2202,13 +2203,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2247,8 +2248,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2908,13 +2909,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2948,8 +2949,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2963,13 +2964,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3023,38 +3024,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3821,8 +3822,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/collateralresponse/CollateralResponse.generated.go b/fix44/collateralresponse/CollateralResponse.generated.go index 12fc5caf8..820797a4c 100644 --- a/fix44/collateralresponse/CollateralResponse.generated.go +++ b/fix44/collateralresponse/CollateralResponse.generated.go @@ -1,6 +1,7 @@ package collateralresponse import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -91,8 +92,8 @@ func (m CollateralResponse) SetOrderID(v string) { } //SetPrice sets Price, Tag 44 -func (m CollateralResponse) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CollateralResponse) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -101,8 +102,8 @@ func (m CollateralResponse) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralResponse) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralResponse) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -156,8 +157,8 @@ func (m CollateralResponse) SetNoMiscFees(f NoMiscFeesRepeatingGroup) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m CollateralResponse) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m CollateralResponse) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -176,8 +177,8 @@ func (m CollateralResponse) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralResponse) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralResponse) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -191,8 +192,8 @@ func (m CollateralResponse) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m CollateralResponse) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CollateralResponse) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -211,8 +212,8 @@ func (m CollateralResponse) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralResponse) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralResponse) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -231,18 +232,18 @@ func (m CollateralResponse) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralResponse) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralResponse) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralResponse) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralResponse) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralResponse) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralResponse) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -361,8 +362,8 @@ func (m CollateralResponse) SetAccountType(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CollateralResponse) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CollateralResponse) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -456,23 +457,23 @@ func (m CollateralResponse) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralResponse) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralResponse) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetMarginExcess sets MarginExcess, Tag 899 -func (m CollateralResponse) SetMarginExcess(v float64) { - m.Set(field.NewMarginExcess(v)) +func (m CollateralResponse) SetMarginExcess(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginExcess(value, scale)) } //SetTotalNetValue sets TotalNetValue, Tag 900 -func (m CollateralResponse) SetTotalNetValue(v float64) { - m.Set(field.NewTotalNetValue(v)) +func (m CollateralResponse) SetTotalNetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalNetValue(value, scale)) } //SetCashOutstanding sets CashOutstanding, Tag 901 -func (m CollateralResponse) SetCashOutstanding(v float64) { - m.Set(field.NewCashOutstanding(v)) +func (m CollateralResponse) SetCashOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOutstanding(value, scale)) } //SetCollAsgnID sets CollAsgnID, Tag 902 @@ -536,18 +537,18 @@ func (m CollateralResponse) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m CollateralResponse) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m CollateralResponse) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m CollateralResponse) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m CollateralResponse) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m CollateralResponse) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m CollateralResponse) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -1693,8 +1694,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -2133,13 +2134,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2173,8 +2174,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2188,13 +2189,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2233,8 +2234,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2894,13 +2895,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2934,8 +2935,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2949,13 +2950,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3009,38 +3010,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3807,8 +3808,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/confirmation/Confirmation.generated.go b/fix44/confirmation/Confirmation.generated.go index 5d7ed4ca9..7153e494e 100644 --- a/fix44/confirmation/Confirmation.generated.go +++ b/fix44/confirmation/Confirmation.generated.go @@ -1,6 +1,7 @@ package confirmation import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -73,13 +74,13 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m Confirmation) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m Confirmation) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCommission sets Commission, Tag 12 -func (m Confirmation) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m Confirmation) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -168,8 +169,8 @@ func (m Confirmation) SetAllocAccount(v string) { } //SetAllocQty sets AllocQty, Tag 80 -func (m Confirmation) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m Confirmation) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetProcessCode sets ProcessCode, Tag 81 @@ -193,13 +194,13 @@ func (m Confirmation) SetSecurityDesc(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m Confirmation) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m Confirmation) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m Confirmation) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m Confirmation) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -213,8 +214,8 @@ func (m Confirmation) SetNoMiscFees(f NoMiscFeesRepeatingGroup) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m Confirmation) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m Confirmation) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -228,13 +229,13 @@ func (m Confirmation) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m Confirmation) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m Confirmation) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m Confirmation) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m Confirmation) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -268,8 +269,8 @@ func (m Confirmation) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m Confirmation) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m Confirmation) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -283,8 +284,8 @@ func (m Confirmation) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m Confirmation) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m Confirmation) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -303,8 +304,8 @@ func (m Confirmation) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m Confirmation) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m Confirmation) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -323,13 +324,13 @@ func (m Confirmation) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m Confirmation) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m Confirmation) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m Confirmation) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m Confirmation) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetExDate sets ExDate, Tag 230 @@ -338,8 +339,8 @@ func (m Confirmation) SetExDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m Confirmation) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m Confirmation) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -353,18 +354,18 @@ func (m Confirmation) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m Confirmation) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m Confirmation) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m Confirmation) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m Confirmation) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m Confirmation) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m Confirmation) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -413,8 +414,8 @@ func (m Confirmation) SetEncodedText(v string) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m Confirmation) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m Confirmation) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -498,8 +499,8 @@ func (m Confirmation) SetAllocAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m Confirmation) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m Confirmation) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -543,8 +544,8 @@ func (m Confirmation) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m Confirmation) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m Confirmation) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -568,8 +569,8 @@ func (m Confirmation) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m Confirmation) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m Confirmation) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetBenchmarkSecurityIDSource sets BenchmarkSecurityIDSource, Tag 761 @@ -623,8 +624,8 @@ func (m Confirmation) SetQtyType(v int) { } //SetSharedCommission sets SharedCommission, Tag 858 -func (m Confirmation) SetSharedCommission(v float64) { - m.Set(field.NewSharedCommission(v)) +func (m Confirmation) SetSharedCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewSharedCommission(value, scale)) } //SetConfirmReqID sets ConfirmReqID, Tag 859 @@ -633,13 +634,13 @@ func (m Confirmation) SetConfirmReqID(v string) { } //SetAvgParPx sets AvgParPx, Tag 860 -func (m Confirmation) SetAvgParPx(v float64) { - m.Set(field.NewAvgParPx(v)) +func (m Confirmation) SetAvgParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgParPx(value, scale)) } //SetReportedPx sets ReportedPx, Tag 861 -func (m Confirmation) SetReportedPx(v float64) { - m.Set(field.NewReportedPx(v)) +func (m Confirmation) SetReportedPx(value decimal.Decimal, scale int32) { + m.Set(field.NewReportedPx(value, scale)) } //SetNoCapacities sets NoCapacities, Tag 862 @@ -653,8 +654,8 @@ func (m Confirmation) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m Confirmation) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m Confirmation) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -683,13 +684,13 @@ func (m Confirmation) SetCPRegType(v string) { } //SetMaturityNetMoney sets MaturityNetMoney, Tag 890 -func (m Confirmation) SetMaturityNetMoney(v float64) { - m.Set(field.NewMaturityNetMoney(v)) +func (m Confirmation) SetMaturityNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewMaturityNetMoney(value, scale)) } //SetMarginRatio sets MarginRatio, Tag 898 -func (m Confirmation) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m Confirmation) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -728,18 +729,18 @@ func (m Confirmation) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m Confirmation) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m Confirmation) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m Confirmation) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m Confirmation) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m Confirmation) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m Confirmation) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -2280,18 +2281,18 @@ func (m NoOrders) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrderAvgPx sets OrderAvgPx, Tag 799 -func (m NoOrders) SetOrderAvgPx(v float64) { - m.Set(field.NewOrderAvgPx(v)) +func (m NoOrders) SetOrderAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderAvgPx(value, scale)) } //SetOrderBookingQty sets OrderBookingQty, Tag 800 -func (m NoOrders) SetOrderBookingQty(v float64) { - m.Set(field.NewOrderBookingQty(v)) +func (m NoOrders) SetOrderBookingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderBookingQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 @@ -2806,8 +2807,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -3246,13 +3247,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3286,8 +3287,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3301,13 +3302,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3346,8 +3347,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4007,13 +4008,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4047,8 +4048,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4062,13 +4063,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4122,38 +4123,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4904,8 +4905,8 @@ func (m NoCapacities) SetOrderRestrictions(v string) { } //SetOrderCapacityQty sets OrderCapacityQty, Tag 863 -func (m NoCapacities) SetOrderCapacityQty(v float64) { - m.Set(field.NewOrderCapacityQty(v)) +func (m NoCapacities) SetOrderCapacityQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderCapacityQty(value, scale)) } //GetOrderCapacity gets OrderCapacity, Tag 528 @@ -4980,8 +4981,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/confirmationrequest/ConfirmationRequest.generated.go b/fix44/confirmationrequest/ConfirmationRequest.generated.go index efe521f16..c8e008cb7 100644 --- a/fix44/confirmationrequest/ConfirmationRequest.generated.go +++ b/fix44/confirmationrequest/ConfirmationRequest.generated.go @@ -1,6 +1,7 @@ package confirmationrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -308,18 +309,18 @@ func (m NoOrders) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrderAvgPx sets OrderAvgPx, Tag 799 -func (m NoOrders) SetOrderAvgPx(v float64) { - m.Set(field.NewOrderAvgPx(v)) +func (m NoOrders) SetOrderAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderAvgPx(value, scale)) } //SetOrderBookingQty sets OrderBookingQty, Tag 800 -func (m NoOrders) SetOrderBookingQty(v float64) { - m.Set(field.NewOrderBookingQty(v)) +func (m NoOrders) SetOrderBookingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderBookingQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 diff --git a/fix44/crossordercancelreplacerequest/CrossOrderCancelReplaceRequest.generated.go b/fix44/crossordercancelreplacerequest/CrossOrderCancelReplaceRequest.generated.go index 6feb4e861..2efe8278b 100644 --- a/fix44/crossordercancelreplacerequest/CrossOrderCancelReplaceRequest.generated.go +++ b/fix44/crossordercancelreplacerequest/CrossOrderCancelReplaceRequest.generated.go @@ -1,6 +1,7 @@ package crossordercancelreplacerequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -102,8 +103,8 @@ func (m CrossOrderCancelReplaceRequest) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m CrossOrderCancelReplaceRequest) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -147,8 +148,8 @@ func (m CrossOrderCancelReplaceRequest) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m CrossOrderCancelReplaceRequest) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m CrossOrderCancelReplaceRequest) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -167,13 +168,13 @@ func (m CrossOrderCancelReplaceRequest) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m CrossOrderCancelReplaceRequest) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m CrossOrderCancelReplaceRequest) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m CrossOrderCancelReplaceRequest) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m CrossOrderCancelReplaceRequest) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -192,8 +193,8 @@ func (m CrossOrderCancelReplaceRequest) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m CrossOrderCancelReplaceRequest) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m CrossOrderCancelReplaceRequest) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -212,8 +213,8 @@ func (m CrossOrderCancelReplaceRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CrossOrderCancelReplaceRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CrossOrderCancelReplaceRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -227,18 +228,18 @@ func (m CrossOrderCancelReplaceRequest) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m CrossOrderCancelReplaceRequest) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m CrossOrderCancelReplaceRequest) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m CrossOrderCancelReplaceRequest) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m CrossOrderCancelReplaceRequest) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m CrossOrderCancelReplaceRequest) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CrossOrderCancelReplaceRequest) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -257,8 +258,8 @@ func (m CrossOrderCancelReplaceRequest) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CrossOrderCancelReplaceRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CrossOrderCancelReplaceRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -277,18 +278,18 @@ func (m CrossOrderCancelReplaceRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CrossOrderCancelReplaceRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CrossOrderCancelReplaceRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CrossOrderCancelReplaceRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CrossOrderCancelReplaceRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CrossOrderCancelReplaceRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CrossOrderCancelReplaceRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -302,8 +303,8 @@ func (m CrossOrderCancelReplaceRequest) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m CrossOrderCancelReplaceRequest) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m CrossOrderCancelReplaceRequest) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -357,8 +358,8 @@ func (m CrossOrderCancelReplaceRequest) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m CrossOrderCancelReplaceRequest) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m CrossOrderCancelReplaceRequest) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -467,8 +468,8 @@ func (m CrossOrderCancelReplaceRequest) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CrossOrderCancelReplaceRequest) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -492,8 +493,8 @@ func (m CrossOrderCancelReplaceRequest) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m CrossOrderCancelReplaceRequest) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -587,8 +588,8 @@ func (m CrossOrderCancelReplaceRequest) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m CrossOrderCancelReplaceRequest) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m CrossOrderCancelReplaceRequest) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -2125,18 +2126,18 @@ func (m NoSides) SetQtyType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoSides) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoSides) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoSides) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoSides) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoSides) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoSides) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -2145,13 +2146,13 @@ func (m NoSides) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoSides) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoSides) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCommission sets Commission, Tag 12 -func (m NoSides) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoSides) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -2892,8 +2893,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -3243,13 +3244,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3283,8 +3284,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3298,13 +3299,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3343,8 +3344,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4004,13 +4005,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4044,8 +4045,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4059,13 +4060,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4119,38 +4120,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4825,8 +4826,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/crossordercancelrequest/CrossOrderCancelRequest.generated.go b/fix44/crossordercancelrequest/CrossOrderCancelRequest.generated.go index 2be25fe96..657b279be 100644 --- a/fix44/crossordercancelrequest/CrossOrderCancelRequest.generated.go +++ b/fix44/crossordercancelrequest/CrossOrderCancelRequest.generated.go @@ -1,6 +1,7 @@ package crossordercancelrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -116,8 +117,8 @@ func (m CrossOrderCancelRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CrossOrderCancelRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CrossOrderCancelRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -131,8 +132,8 @@ func (m CrossOrderCancelRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CrossOrderCancelRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CrossOrderCancelRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -151,18 +152,18 @@ func (m CrossOrderCancelRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CrossOrderCancelRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CrossOrderCancelRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CrossOrderCancelRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CrossOrderCancelRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CrossOrderCancelRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CrossOrderCancelRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -997,18 +998,18 @@ func (m NoSides) SetTradeDate(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoSides) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoSides) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoSides) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoSides) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoSides) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoSides) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -1017,8 +1018,8 @@ func (m NoSides) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoSides) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoSides) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetComplianceID sets ComplianceID, Tag 376 @@ -1497,13 +1498,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1537,8 +1538,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1552,13 +1553,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1597,8 +1598,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2258,13 +2259,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2298,8 +2299,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2313,13 +2314,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2373,38 +2374,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3079,8 +3080,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/derivativesecuritylist/DerivativeSecurityList.generated.go b/fix44/derivativesecuritylist/DerivativeSecurityList.generated.go index c6e8261e2..30eb75d04 100644 --- a/fix44/derivativesecuritylist/DerivativeSecurityList.generated.go +++ b/fix44/derivativesecuritylist/DerivativeSecurityList.generated.go @@ -1,6 +1,7 @@ package derivativesecuritylist import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -89,13 +90,13 @@ func (m DerivativeSecurityList) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m DerivativeSecurityList) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m DerivativeSecurityList) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m DerivativeSecurityList) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m DerivativeSecurityList) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -154,8 +155,8 @@ func (m DerivativeSecurityList) SetUnderlyingMaturityMonthYear(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m DerivativeSecurityList) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m DerivativeSecurityList) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -204,13 +205,13 @@ func (m DerivativeSecurityList) SetTotNoRelatedSym(v int) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m DerivativeSecurityList) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m DerivativeSecurityList) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m DerivativeSecurityList) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m DerivativeSecurityList) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoUnderlyingSecurityAltID sets NoUnderlyingSecurityAltID, Tag 457 @@ -264,8 +265,8 @@ func (m DerivativeSecurityList) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m DerivativeSecurityList) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m DerivativeSecurityList) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingCPProgram sets UnderlyingCPProgram, Tag 877 @@ -279,33 +280,33 @@ func (m DerivativeSecurityList) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m DerivativeSecurityList) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m DerivativeSecurityList) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m DerivativeSecurityList) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m DerivativeSecurityList) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m DerivativeSecurityList) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m DerivativeSecurityList) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m DerivativeSecurityList) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m DerivativeSecurityList) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m DerivativeSecurityList) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m DerivativeSecurityList) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m DerivativeSecurityList) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m DerivativeSecurityList) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -979,13 +980,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -1019,8 +1020,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -1034,13 +1035,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -1129,8 +1130,8 @@ func (m NoRelatedSym) SetDeliveryForm(v int) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m NoRelatedSym) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m NoRelatedSym) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -1831,8 +1832,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2048,13 +2049,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2088,8 +2089,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2103,13 +2104,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2148,8 +2149,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 diff --git a/fix44/derivativesecuritylistrequest/DerivativeSecurityListRequest.generated.go b/fix44/derivativesecuritylistrequest/DerivativeSecurityListRequest.generated.go index 18288be15..2e7e696da 100644 --- a/fix44/derivativesecuritylistrequest/DerivativeSecurityListRequest.generated.go +++ b/fix44/derivativesecuritylistrequest/DerivativeSecurityListRequest.generated.go @@ -1,6 +1,7 @@ package derivativesecuritylistrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -93,13 +94,13 @@ func (m DerivativeSecurityListRequest) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m DerivativeSecurityListRequest) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m DerivativeSecurityListRequest) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -163,8 +164,8 @@ func (m DerivativeSecurityListRequest) SetUnderlyingMaturityMonthYear(v string) } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m DerivativeSecurityListRequest) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -218,13 +219,13 @@ func (m DerivativeSecurityListRequest) SetEncodedUnderlyingSecurityDesc(v string } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m DerivativeSecurityListRequest) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m DerivativeSecurityListRequest) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoUnderlyingSecurityAltID sets NoUnderlyingSecurityAltID, Tag 457 @@ -288,8 +289,8 @@ func (m DerivativeSecurityListRequest) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m DerivativeSecurityListRequest) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingCPProgram sets UnderlyingCPProgram, Tag 877 @@ -303,33 +304,33 @@ func (m DerivativeSecurityListRequest) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m DerivativeSecurityListRequest) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m DerivativeSecurityListRequest) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m DerivativeSecurityListRequest) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m DerivativeSecurityListRequest) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m DerivativeSecurityListRequest) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m DerivativeSecurityListRequest) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 diff --git a/fix44/dontknowtrade/DontKnowTrade.generated.go b/fix44/dontknowtrade/DontKnowTrade.generated.go index c882e726e..59e52e5a5 100644 --- a/fix44/dontknowtrade/DontKnowTrade.generated.go +++ b/fix44/dontknowtrade/DontKnowTrade.generated.go @@ -1,6 +1,7 @@ package dontknowtrade import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -75,13 +76,13 @@ func (m DontKnowTrade) SetSecurityIDSource(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m DontKnowTrade) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m DontKnowTrade) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastQty sets LastQty, Tag 32 -func (m DontKnowTrade) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m DontKnowTrade) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetOrderID sets OrderID, Tag 37 @@ -90,8 +91,8 @@ func (m DontKnowTrade) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m DontKnowTrade) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m DontKnowTrade) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -135,8 +136,8 @@ func (m DontKnowTrade) SetDKReason(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m DontKnowTrade) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m DontKnowTrade) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -155,8 +156,8 @@ func (m DontKnowTrade) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m DontKnowTrade) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m DontKnowTrade) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -170,8 +171,8 @@ func (m DontKnowTrade) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m DontKnowTrade) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m DontKnowTrade) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -190,18 +191,18 @@ func (m DontKnowTrade) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m DontKnowTrade) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m DontKnowTrade) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m DontKnowTrade) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m DontKnowTrade) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m DontKnowTrade) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m DontKnowTrade) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -270,8 +271,8 @@ func (m DontKnowTrade) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m DontKnowTrade) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m DontKnowTrade) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -290,8 +291,8 @@ func (m DontKnowTrade) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m DontKnowTrade) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m DontKnowTrade) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -1153,13 +1154,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1193,8 +1194,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1208,13 +1209,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1253,8 +1254,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -1914,13 +1915,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1954,8 +1955,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1969,13 +1970,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2029,38 +2030,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2735,8 +2736,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/email/Email.generated.go b/fix44/email/Email.generated.go index 871a0830e..1cb0a6379 100644 --- a/fix44/email/Email.generated.go +++ b/fix44/email/Email.generated.go @@ -1,6 +1,7 @@ package email import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -465,13 +466,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -505,8 +506,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -520,13 +521,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -1139,8 +1140,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -1379,13 +1380,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1419,8 +1420,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1434,13 +1435,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1479,8 +1480,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2140,13 +2141,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2180,8 +2181,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2195,13 +2196,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2255,38 +2256,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 diff --git a/fix44/executionreport/ExecutionReport.generated.go b/fix44/executionreport/ExecutionReport.generated.go index 83eb7b3bd..256995b18 100644 --- a/fix44/executionreport/ExecutionReport.generated.go +++ b/fix44/executionreport/ExecutionReport.generated.go @@ -1,6 +1,7 @@ package executionreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -74,8 +75,8 @@ func (m ExecutionReport) SetAccount(v string) { } //SetAvgPx sets AvgPx, Tag 6 -func (m ExecutionReport) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m ExecutionReport) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetClOrdID sets ClOrdID, Tag 11 @@ -84,8 +85,8 @@ func (m ExecutionReport) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m ExecutionReport) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m ExecutionReport) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -94,8 +95,8 @@ func (m ExecutionReport) SetCommType(v string) { } //SetCumQty sets CumQty, Tag 14 -func (m ExecutionReport) SetCumQty(v float64) { - m.Set(field.NewCumQty(v)) +func (m ExecutionReport) SetCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCumQty(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -139,13 +140,13 @@ func (m ExecutionReport) SetLastMkt(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m ExecutionReport) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m ExecutionReport) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastQty sets LastQty, Tag 32 -func (m ExecutionReport) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m ExecutionReport) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetOrderID sets OrderID, Tag 37 @@ -154,8 +155,8 @@ func (m ExecutionReport) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m ExecutionReport) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m ExecutionReport) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdStatus sets OrdStatus, Tag 39 @@ -174,8 +175,8 @@ func (m ExecutionReport) SetOrigClOrdID(v string) { } //SetPrice sets Price, Tag 44 -func (m ExecutionReport) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m ExecutionReport) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -239,8 +240,8 @@ func (m ExecutionReport) SetPositionEffect(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m ExecutionReport) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m ExecutionReport) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetOrdRejReason sets OrdRejReason, Tag 103 @@ -259,13 +260,13 @@ func (m ExecutionReport) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m ExecutionReport) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m ExecutionReport) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m ExecutionReport) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m ExecutionReport) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetReportToExch sets ReportToExch, Tag 113 @@ -274,13 +275,13 @@ func (m ExecutionReport) SetReportToExch(v bool) { } //SetNetMoney sets NetMoney, Tag 118 -func (m ExecutionReport) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m ExecutionReport) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m ExecutionReport) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m ExecutionReport) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -304,18 +305,18 @@ func (m ExecutionReport) SetExecType(v string) { } //SetLeavesQty sets LeavesQty, Tag 151 -func (m ExecutionReport) SetLeavesQty(v float64) { - m.Set(field.NewLeavesQty(v)) +func (m ExecutionReport) SetLeavesQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLeavesQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m ExecutionReport) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m ExecutionReport) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m ExecutionReport) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m ExecutionReport) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -329,13 +330,13 @@ func (m ExecutionReport) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m ExecutionReport) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m ExecutionReport) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m ExecutionReport) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m ExecutionReport) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -349,8 +350,8 @@ func (m ExecutionReport) SetEffectiveTime(v time.Time) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m ExecutionReport) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m ExecutionReport) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -359,13 +360,13 @@ func (m ExecutionReport) SetSettlDate2(v string) { } //SetLastSpotRate sets LastSpotRate, Tag 194 -func (m ExecutionReport) SetLastSpotRate(v float64) { - m.Set(field.NewLastSpotRate(v)) +func (m ExecutionReport) SetLastSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSpotRate(value, scale)) } //SetLastForwardPoints sets LastForwardPoints, Tag 195 -func (m ExecutionReport) SetLastForwardPoints(v float64) { - m.Set(field.NewLastForwardPoints(v)) +func (m ExecutionReport) SetLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastForwardPoints(value, scale)) } //SetSecondaryOrderID sets SecondaryOrderID, Tag 198 @@ -379,8 +380,8 @@ func (m ExecutionReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m ExecutionReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m ExecutionReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -394,18 +395,18 @@ func (m ExecutionReport) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m ExecutionReport) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m ExecutionReport) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m ExecutionReport) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m ExecutionReport) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m ExecutionReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m ExecutionReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -424,8 +425,8 @@ func (m ExecutionReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m ExecutionReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m ExecutionReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -444,13 +445,13 @@ func (m ExecutionReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m ExecutionReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m ExecutionReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m ExecutionReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m ExecutionReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -464,8 +465,8 @@ func (m ExecutionReport) SetExDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m ExecutionReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m ExecutionReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -479,18 +480,18 @@ func (m ExecutionReport) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m ExecutionReport) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m ExecutionReport) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m ExecutionReport) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m ExecutionReport) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m ExecutionReport) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m ExecutionReport) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -519,8 +520,8 @@ func (m ExecutionReport) SetBasisFeatureDate(v string) { } //SetBasisFeaturePrice sets BasisFeaturePrice, Tag 260 -func (m ExecutionReport) SetBasisFeaturePrice(v float64) { - m.Set(field.NewBasisFeaturePrice(v)) +func (m ExecutionReport) SetBasisFeaturePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBasisFeaturePrice(value, scale)) } //SetTradingSessionID sets TradingSessionID, Tag 336 @@ -574,8 +575,8 @@ func (m ExecutionReport) SetExecRestatementReason(v int) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m ExecutionReport) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m ExecutionReport) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetNoContraBrokers sets NoContraBrokers, Tag 382 @@ -589,8 +590,8 @@ func (m ExecutionReport) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m ExecutionReport) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m ExecutionReport) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -599,18 +600,18 @@ func (m ExecutionReport) SetPriceType(v int) { } //SetDayOrderQty sets DayOrderQty, Tag 424 -func (m ExecutionReport) SetDayOrderQty(v float64) { - m.Set(field.NewDayOrderQty(v)) +func (m ExecutionReport) SetDayOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDayOrderQty(value, scale)) } //SetDayCumQty sets DayCumQty, Tag 425 -func (m ExecutionReport) SetDayCumQty(v float64) { - m.Set(field.NewDayCumQty(v)) +func (m ExecutionReport) SetDayCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDayCumQty(value, scale)) } //SetDayAvgPx sets DayAvgPx, Tag 426 -func (m ExecutionReport) SetDayAvgPx(v float64) { - m.Set(field.NewDayAvgPx(v)) +func (m ExecutionReport) SetDayAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewDayAvgPx(value, scale)) } //SetGTBookingInst sets GTBookingInst, Tag 427 @@ -654,8 +655,8 @@ func (m ExecutionReport) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m ExecutionReport) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m ExecutionReport) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -699,8 +700,8 @@ func (m ExecutionReport) SetExecPriceType(v string) { } //SetExecPriceAdjustment sets ExecPriceAdjustment, Tag 485 -func (m ExecutionReport) SetExecPriceAdjustment(v float64) { - m.Set(field.NewExecPriceAdjustment(v)) +func (m ExecutionReport) SetExecPriceAdjustment(value decimal.Decimal, scale int32) { + m.Set(field.NewExecPriceAdjustment(value, scale)) } //SetDesignation sets Designation, Tag 494 @@ -724,8 +725,8 @@ func (m ExecutionReport) SetExecValuationPoint(v time.Time) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m ExecutionReport) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m ExecutionReport) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetNoContAmts sets NoContAmts, Tag 518 @@ -844,23 +845,23 @@ func (m ExecutionReport) SetPriorityIndicator(v int) { } //SetPriceImprovement sets PriceImprovement, Tag 639 -func (m ExecutionReport) SetPriceImprovement(v float64) { - m.Set(field.NewPriceImprovement(v)) +func (m ExecutionReport) SetPriceImprovement(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceImprovement(value, scale)) } //SetLastForwardPoints2 sets LastForwardPoints2, Tag 641 -func (m ExecutionReport) SetLastForwardPoints2(v float64) { - m.Set(field.NewLastForwardPoints2(v)) +func (m ExecutionReport) SetLastForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewLastForwardPoints2(value, scale)) } //SetUnderlyingLastPx sets UnderlyingLastPx, Tag 651 -func (m ExecutionReport) SetUnderlyingLastPx(v float64) { - m.Set(field.NewUnderlyingLastPx(v)) +func (m ExecutionReport) SetUnderlyingLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingLastPx(value, scale)) } //SetUnderlyingLastQty sets UnderlyingLastQty, Tag 652 -func (m ExecutionReport) SetUnderlyingLastQty(v float64) { - m.Set(field.NewUnderlyingLastQty(v)) +func (m ExecutionReport) SetUnderlyingLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingLastQty(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -869,8 +870,8 @@ func (m ExecutionReport) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m ExecutionReport) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m ExecutionReport) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -884,8 +885,8 @@ func (m ExecutionReport) SetContractSettlMonth(v string) { } //SetLastParPx sets LastParPx, Tag 669 -func (m ExecutionReport) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m ExecutionReport) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetPool sets Pool, Tag 691 @@ -904,8 +905,8 @@ func (m ExecutionReport) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m ExecutionReport) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m ExecutionReport) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -929,8 +930,8 @@ func (m ExecutionReport) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m ExecutionReport) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m ExecutionReport) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetBenchmarkSecurityIDSource sets BenchmarkSecurityIDSource, Tag 761 @@ -984,8 +985,8 @@ func (m ExecutionReport) SetPegRoundDirection(v int) { } //SetPeggedPrice sets PeggedPrice, Tag 839 -func (m ExecutionReport) SetPeggedPrice(v float64) { - m.Set(field.NewPeggedPrice(v)) +func (m ExecutionReport) SetPeggedPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPeggedPrice(value, scale)) } //SetPegScope sets PegScope, Tag 840 @@ -1014,8 +1015,8 @@ func (m ExecutionReport) SetDiscretionRoundDirection(v int) { } //SetDiscretionPrice sets DiscretionPrice, Tag 845 -func (m ExecutionReport) SetDiscretionPrice(v float64) { - m.Set(field.NewDiscretionPrice(v)) +func (m ExecutionReport) SetDiscretionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionPrice(value, scale)) } //SetDiscretionScope sets DiscretionScope, Tag 846 @@ -1034,13 +1035,13 @@ func (m ExecutionReport) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m ExecutionReport) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m ExecutionReport) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetTargetStrategyPerformance sets TargetStrategyPerformance, Tag 850 -func (m ExecutionReport) SetTargetStrategyPerformance(v float64) { - m.Set(field.NewTargetStrategyPerformance(v)) +func (m ExecutionReport) SetTargetStrategyPerformance(value decimal.Decimal, scale int32) { + m.Set(field.NewTargetStrategyPerformance(value, scale)) } //SetLastLiquidityInd sets LastLiquidityInd, Tag 851 @@ -1079,8 +1080,8 @@ func (m ExecutionReport) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m ExecutionReport) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m ExecutionReport) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetTotNumReports sets TotNumReports, Tag 911 @@ -1129,18 +1130,18 @@ func (m ExecutionReport) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m ExecutionReport) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m ExecutionReport) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m ExecutionReport) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m ExecutionReport) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m ExecutionReport) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m ExecutionReport) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetTimeBracket sets TimeBracket, Tag 943 @@ -3555,8 +3556,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -3717,8 +3718,8 @@ func (m NoContraBrokers) SetContraTrader(v string) { } //SetContraTradeQty sets ContraTradeQty, Tag 437 -func (m NoContraBrokers) SetContraTradeQty(v float64) { - m.Set(field.NewContraTradeQty(v)) +func (m NoContraBrokers) SetContraTradeQty(value decimal.Decimal, scale int32) { + m.Set(field.NewContraTradeQty(value, scale)) } //SetContraTradeTime sets ContraTradeTime, Tag 438 @@ -4033,8 +4034,8 @@ func (m NoContAmts) SetContAmtType(v int) { } //SetContAmtValue sets ContAmtValue, Tag 520 -func (m NoContAmts) SetContAmtValue(v float64) { - m.Set(field.NewContAmtValue(v)) +func (m NoContAmts) SetContAmtValue(value decimal.Decimal, scale int32) { + m.Set(field.NewContAmtValue(value, scale)) } //SetContAmtCurr sets ContAmtCurr, Tag 521 @@ -4179,13 +4180,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4219,8 +4220,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4234,13 +4235,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4279,8 +4280,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4314,8 +4315,8 @@ func (m NoLegs) SetLegInterestAccrualDate(v string) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -4349,8 +4350,8 @@ func (m NoLegs) SetLegRefID(v string) { } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegSettlType sets LegSettlType, Tag 587 @@ -4364,8 +4365,8 @@ func (m NoLegs) SetLegSettlDate(v string) { } //SetLegLastPx sets LegLastPx, Tag 637 -func (m NoLegs) SetLegLastPx(v float64) { - m.Set(field.NewLegLastPx(v)) +func (m NoLegs) SetLegLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastPx(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -5331,13 +5332,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -5371,8 +5372,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -5386,13 +5387,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -5446,38 +5447,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -6152,8 +6153,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/ioi/IOI.generated.go b/fix44/ioi/IOI.generated.go index a5f5d349a..87cdfe3e0 100644 --- a/fix44/ioi/IOI.generated.go +++ b/fix44/ioi/IOI.generated.go @@ -1,6 +1,7 @@ package ioi import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -100,13 +101,13 @@ func (m IOI) SetIOITransType(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m IOI) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m IOI) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetPrice sets Price, Tag 44 -func (m IOI) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m IOI) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -165,8 +166,8 @@ func (m IOI) SetURLLink(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m IOI) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m IOI) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -185,8 +186,8 @@ func (m IOI) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m IOI) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m IOI) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -205,8 +206,8 @@ func (m IOI) SetNoRoutingIDs(f NoRoutingIDsRepeatingGroup) { } //SetSpread sets Spread, Tag 218 -func (m IOI) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m IOI) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -225,8 +226,8 @@ func (m IOI) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m IOI) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m IOI) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -245,18 +246,18 @@ func (m IOI) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m IOI) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m IOI) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m IOI) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m IOI) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m IOI) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m IOI) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -270,8 +271,8 @@ func (m IOI) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m IOI) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m IOI) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -345,8 +346,8 @@ func (m IOI) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m IOI) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m IOI) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -365,8 +366,8 @@ func (m IOI) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m IOI) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m IOI) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -385,8 +386,8 @@ func (m IOI) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m IOI) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m IOI) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -410,8 +411,8 @@ func (m IOI) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m IOI) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m IOI) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -480,8 +481,8 @@ func (m IOI) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m IOI) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m IOI) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -1848,13 +1849,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1888,8 +1889,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1903,13 +1904,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1948,8 +1949,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2702,13 +2703,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2742,8 +2743,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2757,13 +2758,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2817,38 +2818,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3523,8 +3524,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/liststatus/ListStatus.generated.go b/fix44/liststatus/ListStatus.generated.go index 9ba85b195..644826214 100644 --- a/fix44/liststatus/ListStatus.generated.go +++ b/fix44/liststatus/ListStatus.generated.go @@ -1,6 +1,7 @@ package liststatus import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -275,8 +276,8 @@ func (m NoOrders) SetSecondaryClOrdID(v string) { } //SetCumQty sets CumQty, Tag 14 -func (m NoOrders) SetCumQty(v float64) { - m.Set(field.NewCumQty(v)) +func (m NoOrders) SetCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCumQty(value, scale)) } //SetOrdStatus sets OrdStatus, Tag 39 @@ -290,18 +291,18 @@ func (m NoOrders) SetWorkingIndicator(v bool) { } //SetLeavesQty sets LeavesQty, Tag 151 -func (m NoOrders) SetLeavesQty(v float64) { - m.Set(field.NewLeavesQty(v)) +func (m NoOrders) SetLeavesQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLeavesQty(value, scale)) } //SetCxlQty sets CxlQty, Tag 84 -func (m NoOrders) SetCxlQty(v float64) { - m.Set(field.NewCxlQty(v)) +func (m NoOrders) SetCxlQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCxlQty(value, scale)) } //SetAvgPx sets AvgPx, Tag 6 -func (m NoOrders) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m NoOrders) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetOrdRejReason sets OrdRejReason, Tag 103 diff --git a/fix44/liststrikeprice/ListStrikePrice.generated.go b/fix44/liststrikeprice/ListStrikePrice.generated.go index 292e4b2d2..5d0b68eb0 100644 --- a/fix44/liststrikeprice/ListStrikePrice.generated.go +++ b/fix44/liststrikeprice/ListStrikePrice.generated.go @@ -1,6 +1,7 @@ package liststrikeprice import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -225,13 +226,13 @@ func (m NoStrikes) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoStrikes) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoStrikes) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoStrikes) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoStrikes) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -265,8 +266,8 @@ func (m NoStrikes) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoStrikes) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoStrikes) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -280,13 +281,13 @@ func (m NoStrikes) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoStrikes) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoStrikes) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoStrikes) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoStrikes) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -899,8 +900,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -1079,13 +1080,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1119,8 +1120,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1134,13 +1135,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -1194,38 +1195,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -1234,8 +1235,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoUnderlyings) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoUnderlyings) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetClOrdID sets ClOrdID, Tag 11 @@ -1254,8 +1255,8 @@ func (m NoUnderlyings) SetSide(v string) { } //SetPrice sets Price, Tag 44 -func (m NoUnderlyings) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoUnderlyings) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetCurrency sets Currency, Tag 15 diff --git a/fix44/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go b/fix44/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go index 09660beee..248d01e20 100644 --- a/fix44/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go +++ b/fix44/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go @@ -1,6 +1,7 @@ package marketdataincrementalrefresh import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -231,13 +232,13 @@ func (m NoMDEntries) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoMDEntries) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoMDEntries) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoMDEntries) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoMDEntries) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -271,8 +272,8 @@ func (m NoMDEntries) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoMDEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoMDEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -286,13 +287,13 @@ func (m NoMDEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoMDEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoMDEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoMDEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoMDEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -386,8 +387,8 @@ func (m NoMDEntries) SetCorporateAction(v string) { } //SetMDEntryPx sets MDEntryPx, Tag 270 -func (m NoMDEntries) SetMDEntryPx(v float64) { - m.Set(field.NewMDEntryPx(v)) +func (m NoMDEntries) SetMDEntryPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntryPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -396,8 +397,8 @@ func (m NoMDEntries) SetCurrency(v string) { } //SetMDEntrySize sets MDEntrySize, Tag 271 -func (m NoMDEntries) SetMDEntrySize(v float64) { - m.Set(field.NewMDEntrySize(v)) +func (m NoMDEntries) SetMDEntrySize(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntrySize(value, scale)) } //SetMDEntryDate sets MDEntryDate, Tag 272 @@ -476,8 +477,8 @@ func (m NoMDEntries) SetExpireTime(v time.Time) { } //SetMinQty sets MinQty, Tag 110 -func (m NoMDEntries) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NoMDEntries) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetExecInst sets ExecInst, Tag 18 @@ -526,13 +527,13 @@ func (m NoMDEntries) SetScope(v string) { } //SetPriceDelta sets PriceDelta, Tag 811 -func (m NoMDEntries) SetPriceDelta(v float64) { - m.Set(field.NewPriceDelta(v)) +func (m NoMDEntries) SetPriceDelta(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceDelta(value, scale)) } //SetNetChgPrevDay sets NetChgPrevDay, Tag 451 -func (m NoMDEntries) SetNetChgPrevDay(v float64) { - m.Set(field.NewNetChgPrevDay(v)) +func (m NoMDEntries) SetNetChgPrevDay(value decimal.Decimal, scale int32) { + m.Set(field.NewNetChgPrevDay(value, scale)) } //SetText sets Text, Tag 58 @@ -1554,8 +1555,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -1711,13 +1712,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1751,8 +1752,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1766,13 +1767,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -1826,38 +1827,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2597,13 +2598,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2637,8 +2638,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2652,13 +2653,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2697,8 +2698,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 diff --git a/fix44/marketdatarequest/MarketDataRequest.generated.go b/fix44/marketdatarequest/MarketDataRequest.generated.go index cadc930dc..b630074ed 100644 --- a/fix44/marketdatarequest/MarketDataRequest.generated.go +++ b/fix44/marketdatarequest/MarketDataRequest.generated.go @@ -1,6 +1,7 @@ package marketdatarequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -306,13 +307,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -346,8 +347,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -361,13 +362,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -1063,8 +1064,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -1220,13 +1221,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1260,8 +1261,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1275,13 +1276,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -1335,38 +1336,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2106,13 +2107,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2146,8 +2147,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2161,13 +2162,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2206,8 +2207,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 diff --git a/fix44/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go b/fix44/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go index 0bb37206f..6ddccf9a6 100644 --- a/fix44/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go +++ b/fix44/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go @@ -1,6 +1,7 @@ package marketdatasnapshotfullrefresh import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -101,8 +102,8 @@ func (m MarketDataSnapshotFullRefresh) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m MarketDataSnapshotFullRefresh) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m MarketDataSnapshotFullRefresh) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -116,8 +117,8 @@ func (m MarketDataSnapshotFullRefresh) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m MarketDataSnapshotFullRefresh) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m MarketDataSnapshotFullRefresh) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -136,18 +137,18 @@ func (m MarketDataSnapshotFullRefresh) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m MarketDataSnapshotFullRefresh) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m MarketDataSnapshotFullRefresh) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m MarketDataSnapshotFullRefresh) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m MarketDataSnapshotFullRefresh) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m MarketDataSnapshotFullRefresh) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m MarketDataSnapshotFullRefresh) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -206,8 +207,8 @@ func (m MarketDataSnapshotFullRefresh) SetEncodedSecurityDesc(v string) { } //SetNetChgPrevDay sets NetChgPrevDay, Tag 451 -func (m MarketDataSnapshotFullRefresh) SetNetChgPrevDay(v float64) { - m.Set(field.NewNetChgPrevDay(v)) +func (m MarketDataSnapshotFullRefresh) SetNetChgPrevDay(value decimal.Decimal, scale int32) { + m.Set(field.NewNetChgPrevDay(value, scale)) } //SetNoSecurityAltID sets NoSecurityAltID, Tag 454 @@ -892,8 +893,8 @@ func (m NoMDEntries) SetMDEntryType(v string) { } //SetMDEntryPx sets MDEntryPx, Tag 270 -func (m NoMDEntries) SetMDEntryPx(v float64) { - m.Set(field.NewMDEntryPx(v)) +func (m NoMDEntries) SetMDEntryPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntryPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -902,8 +903,8 @@ func (m NoMDEntries) SetCurrency(v string) { } //SetMDEntrySize sets MDEntrySize, Tag 271 -func (m NoMDEntries) SetMDEntrySize(v float64) { - m.Set(field.NewMDEntrySize(v)) +func (m NoMDEntries) SetMDEntrySize(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntrySize(value, scale)) } //SetMDEntryDate sets MDEntryDate, Tag 272 @@ -982,8 +983,8 @@ func (m NoMDEntries) SetExpireTime(v time.Time) { } //SetMinQty sets MinQty, Tag 110 -func (m NoMDEntries) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NoMDEntries) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetExecInst sets ExecInst, Tag 18 @@ -1032,8 +1033,8 @@ func (m NoMDEntries) SetScope(v string) { } //SetPriceDelta sets PriceDelta, Tag 811 -func (m NoMDEntries) SetPriceDelta(v float64) { - m.Set(field.NewPriceDelta(v)) +func (m NoMDEntries) SetPriceDelta(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceDelta(value, scale)) } //SetText sets Text, Tag 58 @@ -1578,13 +1579,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1618,8 +1619,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1633,13 +1634,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1678,8 +1679,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2339,13 +2340,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2379,8 +2380,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2394,13 +2395,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2454,38 +2455,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3160,8 +3161,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/massquote/MassQuote.generated.go b/fix44/massquote/MassQuote.generated.go index 11c29cd39..22d0274ae 100644 --- a/fix44/massquote/MassQuote.generated.go +++ b/fix44/massquote/MassQuote.generated.go @@ -1,6 +1,7 @@ package massquote import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -77,13 +78,13 @@ func (m MassQuote) SetQuoteReqID(v string) { } //SetDefBidSize sets DefBidSize, Tag 293 -func (m MassQuote) SetDefBidSize(v float64) { - m.Set(field.NewDefBidSize(v)) +func (m MassQuote) SetDefBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewDefBidSize(value, scale)) } //SetDefOfferSize sets DefOfferSize, Tag 294 -func (m MassQuote) SetDefOfferSize(v float64) { - m.Set(field.NewDefOfferSize(v)) +func (m MassQuote) SetDefOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewDefOfferSize(value, scale)) } //SetNoQuoteSets sets NoQuoteSets, Tag 296 @@ -325,13 +326,13 @@ func (m NoQuoteSets) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoQuoteSets) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoQuoteSets) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoQuoteSets) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoQuoteSets) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -365,8 +366,8 @@ func (m NoQuoteSets) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoQuoteSets) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoQuoteSets) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -380,13 +381,13 @@ func (m NoQuoteSets) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoQuoteSets) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoQuoteSets) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoQuoteSets) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoQuoteSets) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -440,38 +441,38 @@ func (m NoQuoteSets) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoQuoteSets) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoQuoteSets) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoQuoteSets) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoQuoteSets) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoQuoteSets) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoQuoteSets) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoQuoteSets) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoQuoteSets) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoQuoteSets) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoQuoteSets) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoQuoteSets) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoQuoteSets) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoQuoteSets) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoQuoteSets) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -1269,13 +1270,13 @@ func (m NoQuoteEntries) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoQuoteEntries) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoQuoteEntries) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoQuoteEntries) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoQuoteEntries) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -1309,8 +1310,8 @@ func (m NoQuoteEntries) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoQuoteEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoQuoteEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -1324,13 +1325,13 @@ func (m NoQuoteEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoQuoteEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoQuoteEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoQuoteEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoQuoteEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -1409,23 +1410,23 @@ func (m NoQuoteEntries) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBidPx sets BidPx, Tag 132 -func (m NoQuoteEntries) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m NoQuoteEntries) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m NoQuoteEntries) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m NoQuoteEntries) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m NoQuoteEntries) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m NoQuoteEntries) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m NoQuoteEntries) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m NoQuoteEntries) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetValidUntilTime sets ValidUntilTime, Tag 62 @@ -1434,43 +1435,43 @@ func (m NoQuoteEntries) SetValidUntilTime(v time.Time) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m NoQuoteEntries) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m NoQuoteEntries) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m NoQuoteEntries) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m NoQuoteEntries) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m NoQuoteEntries) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m NoQuoteEntries) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m NoQuoteEntries) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m NoQuoteEntries) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetMidPx sets MidPx, Tag 631 -func (m NoQuoteEntries) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m NoQuoteEntries) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m NoQuoteEntries) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m NoQuoteEntries) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m NoQuoteEntries) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m NoQuoteEntries) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m NoQuoteEntries) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m NoQuoteEntries) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetTransactTime sets TransactTime, Tag 60 @@ -1504,18 +1505,18 @@ func (m NoQuoteEntries) SetSettlDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoQuoteEntries) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoQuoteEntries) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m NoQuoteEntries) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m NoQuoteEntries) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m NoQuoteEntries) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m NoQuoteEntries) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -2339,8 +2340,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2496,13 +2497,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2536,8 +2537,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2551,13 +2552,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2596,8 +2597,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 diff --git a/fix44/massquoteacknowledgement/MassQuoteAcknowledgement.generated.go b/fix44/massquoteacknowledgement/MassQuoteAcknowledgement.generated.go index 213f92559..134034913 100644 --- a/fix44/massquoteacknowledgement/MassQuoteAcknowledgement.generated.go +++ b/fix44/massquoteacknowledgement/MassQuoteAcknowledgement.generated.go @@ -1,6 +1,7 @@ package massquoteacknowledgement import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -373,13 +374,13 @@ func (m NoQuoteSets) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoQuoteSets) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoQuoteSets) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoQuoteSets) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoQuoteSets) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -413,8 +414,8 @@ func (m NoQuoteSets) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoQuoteSets) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoQuoteSets) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -428,13 +429,13 @@ func (m NoQuoteSets) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoQuoteSets) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoQuoteSets) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoQuoteSets) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoQuoteSets) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -488,38 +489,38 @@ func (m NoQuoteSets) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoQuoteSets) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoQuoteSets) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoQuoteSets) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoQuoteSets) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoQuoteSets) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoQuoteSets) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoQuoteSets) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoQuoteSets) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoQuoteSets) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoQuoteSets) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoQuoteSets) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoQuoteSets) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoQuoteSets) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoQuoteSets) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -1301,13 +1302,13 @@ func (m NoQuoteEntries) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoQuoteEntries) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoQuoteEntries) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoQuoteEntries) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoQuoteEntries) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -1341,8 +1342,8 @@ func (m NoQuoteEntries) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoQuoteEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoQuoteEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -1356,13 +1357,13 @@ func (m NoQuoteEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoQuoteEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoQuoteEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoQuoteEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoQuoteEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -1441,23 +1442,23 @@ func (m NoQuoteEntries) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBidPx sets BidPx, Tag 132 -func (m NoQuoteEntries) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m NoQuoteEntries) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m NoQuoteEntries) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m NoQuoteEntries) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m NoQuoteEntries) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m NoQuoteEntries) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m NoQuoteEntries) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m NoQuoteEntries) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetValidUntilTime sets ValidUntilTime, Tag 62 @@ -1466,43 +1467,43 @@ func (m NoQuoteEntries) SetValidUntilTime(v time.Time) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m NoQuoteEntries) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m NoQuoteEntries) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m NoQuoteEntries) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m NoQuoteEntries) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m NoQuoteEntries) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m NoQuoteEntries) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m NoQuoteEntries) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m NoQuoteEntries) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetMidPx sets MidPx, Tag 631 -func (m NoQuoteEntries) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m NoQuoteEntries) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m NoQuoteEntries) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m NoQuoteEntries) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m NoQuoteEntries) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m NoQuoteEntries) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m NoQuoteEntries) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m NoQuoteEntries) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetTransactTime sets TransactTime, Tag 60 @@ -1536,18 +1537,18 @@ func (m NoQuoteEntries) SetSettlDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoQuoteEntries) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoQuoteEntries) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m NoQuoteEntries) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m NoQuoteEntries) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m NoQuoteEntries) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m NoQuoteEntries) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -2387,8 +2388,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2544,13 +2545,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2584,8 +2585,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2599,13 +2600,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2644,8 +2645,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 diff --git a/fix44/multilegordercancelreplace/MultilegOrderCancelReplace.generated.go b/fix44/multilegordercancelreplace/MultilegOrderCancelReplace.generated.go index 0f6eee6cb..b42e62244 100644 --- a/fix44/multilegordercancelreplace/MultilegOrderCancelReplace.generated.go +++ b/fix44/multilegordercancelreplace/MultilegOrderCancelReplace.generated.go @@ -1,6 +1,7 @@ package multilegordercancelreplace import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -76,8 +77,8 @@ func (m MultilegOrderCancelReplace) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m MultilegOrderCancelReplace) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m MultilegOrderCancelReplace) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -116,8 +117,8 @@ func (m MultilegOrderCancelReplace) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m MultilegOrderCancelReplace) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m MultilegOrderCancelReplace) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -131,8 +132,8 @@ func (m MultilegOrderCancelReplace) SetOrigClOrdID(v string) { } //SetPrice sets Price, Tag 44 -func (m MultilegOrderCancelReplace) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m MultilegOrderCancelReplace) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -206,8 +207,8 @@ func (m MultilegOrderCancelReplace) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m MultilegOrderCancelReplace) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m MultilegOrderCancelReplace) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -226,13 +227,13 @@ func (m MultilegOrderCancelReplace) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m MultilegOrderCancelReplace) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m MultilegOrderCancelReplace) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m MultilegOrderCancelReplace) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m MultilegOrderCancelReplace) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -261,13 +262,13 @@ func (m MultilegOrderCancelReplace) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m MultilegOrderCancelReplace) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m MultilegOrderCancelReplace) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m MultilegOrderCancelReplace) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m MultilegOrderCancelReplace) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -286,8 +287,8 @@ func (m MultilegOrderCancelReplace) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m MultilegOrderCancelReplace) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m MultilegOrderCancelReplace) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -306,18 +307,18 @@ func (m MultilegOrderCancelReplace) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m MultilegOrderCancelReplace) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m MultilegOrderCancelReplace) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m MultilegOrderCancelReplace) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m MultilegOrderCancelReplace) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m MultilegOrderCancelReplace) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m MultilegOrderCancelReplace) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -336,13 +337,13 @@ func (m MultilegOrderCancelReplace) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m MultilegOrderCancelReplace) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m MultilegOrderCancelReplace) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m MultilegOrderCancelReplace) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m MultilegOrderCancelReplace) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -351,8 +352,8 @@ func (m MultilegOrderCancelReplace) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m MultilegOrderCancelReplace) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m MultilegOrderCancelReplace) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -421,8 +422,8 @@ func (m MultilegOrderCancelReplace) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m MultilegOrderCancelReplace) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m MultilegOrderCancelReplace) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -466,8 +467,8 @@ func (m MultilegOrderCancelReplace) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m MultilegOrderCancelReplace) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m MultilegOrderCancelReplace) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -516,8 +517,8 @@ func (m MultilegOrderCancelReplace) SetRegistID(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m MultilegOrderCancelReplace) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m MultilegOrderCancelReplace) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -691,8 +692,8 @@ func (m MultilegOrderCancelReplace) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m MultilegOrderCancelReplace) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m MultilegOrderCancelReplace) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetQtyType sets QtyType, Tag 854 @@ -2231,8 +2232,8 @@ func (m NoAllocs) SetNoNested3PartyIDs(f NoNested3PartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -2832,13 +2833,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2872,8 +2873,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2887,13 +2888,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2932,8 +2933,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2967,8 +2968,8 @@ func (m NoLegs) SetLegInterestAccrualDate(v string) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -3007,8 +3008,8 @@ func (m NoLegs) SetLegRefID(v string) { } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegSettlType sets LegSettlType, Tag 587 @@ -3749,8 +3750,8 @@ func (m NoLegAllocs) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetLegAllocQty sets LegAllocQty, Tag 673 -func (m NoLegAllocs) SetLegAllocQty(v float64) { - m.Set(field.NewLegAllocQty(v)) +func (m NoLegAllocs) SetLegAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegAllocQty(value, scale)) } //SetLegAllocAcctIDSource sets LegAllocAcctIDSource, Tag 674 @@ -4263,13 +4264,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4303,8 +4304,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4318,13 +4319,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4378,38 +4379,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -5084,8 +5085,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/newordercross/NewOrderCross.generated.go b/fix44/newordercross/NewOrderCross.generated.go index 6480dfcbd..9f9deff2d 100644 --- a/fix44/newordercross/NewOrderCross.generated.go +++ b/fix44/newordercross/NewOrderCross.generated.go @@ -1,6 +1,7 @@ package newordercross import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -96,8 +97,8 @@ func (m NewOrderCross) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NewOrderCross) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NewOrderCross) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -141,8 +142,8 @@ func (m NewOrderCross) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m NewOrderCross) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NewOrderCross) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -161,13 +162,13 @@ func (m NewOrderCross) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NewOrderCross) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NewOrderCross) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NewOrderCross) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NewOrderCross) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -186,8 +187,8 @@ func (m NewOrderCross) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NewOrderCross) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NewOrderCross) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -206,8 +207,8 @@ func (m NewOrderCross) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NewOrderCross) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NewOrderCross) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -221,18 +222,18 @@ func (m NewOrderCross) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NewOrderCross) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NewOrderCross) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m NewOrderCross) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m NewOrderCross) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m NewOrderCross) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NewOrderCross) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -251,8 +252,8 @@ func (m NewOrderCross) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m NewOrderCross) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NewOrderCross) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -271,18 +272,18 @@ func (m NewOrderCross) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NewOrderCross) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NewOrderCross) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NewOrderCross) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NewOrderCross) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NewOrderCross) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NewOrderCross) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -296,8 +297,8 @@ func (m NewOrderCross) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NewOrderCross) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NewOrderCross) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -351,8 +352,8 @@ func (m NewOrderCross) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m NewOrderCross) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m NewOrderCross) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -456,8 +457,8 @@ func (m NewOrderCross) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NewOrderCross) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NewOrderCross) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -481,8 +482,8 @@ func (m NewOrderCross) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NewOrderCross) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NewOrderCross) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -576,8 +577,8 @@ func (m NewOrderCross) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m NewOrderCross) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m NewOrderCross) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -2082,18 +2083,18 @@ func (m NoSides) SetQtyType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoSides) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoSides) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoSides) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoSides) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoSides) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoSides) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -2102,13 +2103,13 @@ func (m NoSides) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoSides) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoSides) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCommission sets Commission, Tag 12 -func (m NoSides) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoSides) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -2827,8 +2828,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -3178,13 +3179,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3218,8 +3219,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3233,13 +3234,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3278,8 +3279,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3939,13 +3940,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3979,8 +3980,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3994,13 +3995,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4054,38 +4055,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4760,8 +4761,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/neworderlist/NewOrderList.generated.go b/fix44/neworderlist/NewOrderList.generated.go index 06bfbdbbe..f03082258 100644 --- a/fix44/neworderlist/NewOrderList.generated.go +++ b/fix44/neworderlist/NewOrderList.generated.go @@ -1,6 +1,7 @@ package neworderlist import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -139,13 +140,13 @@ func (m NewOrderList) SetRegistID(v string) { } //SetAllowableOneSidednessPct sets AllowableOneSidednessPct, Tag 765 -func (m NewOrderList) SetAllowableOneSidednessPct(v float64) { - m.Set(field.NewAllowableOneSidednessPct(v)) +func (m NewOrderList) SetAllowableOneSidednessPct(value decimal.Decimal, scale int32) { + m.Set(field.NewAllowableOneSidednessPct(value, scale)) } //SetAllowableOneSidednessValue sets AllowableOneSidednessValue, Tag 766 -func (m NewOrderList) SetAllowableOneSidednessValue(v float64) { - m.Set(field.NewAllowableOneSidednessValue(v)) +func (m NewOrderList) SetAllowableOneSidednessValue(value decimal.Decimal, scale int32) { + m.Set(field.NewAllowableOneSidednessValue(value, scale)) } //SetAllowableOneSidednessCurr sets AllowableOneSidednessCurr, Tag 767 @@ -484,13 +485,13 @@ func (m NoOrders) SetExecInst(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NoOrders) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NoOrders) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NoOrders) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NoOrders) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -584,13 +585,13 @@ func (m NoOrders) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoOrders) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoOrders) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoOrders) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoOrders) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -624,8 +625,8 @@ func (m NoOrders) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoOrders) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoOrders) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -639,13 +640,13 @@ func (m NoOrders) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoOrders) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoOrders) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoOrders) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoOrders) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -724,8 +725,8 @@ func (m NoOrders) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoOrders) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoOrders) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetSide sets Side, Tag 54 @@ -759,18 +760,18 @@ func (m NoOrders) SetQtyType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoOrders) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoOrders) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoOrders) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoOrders) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -779,8 +780,8 @@ func (m NoOrders) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoOrders) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoOrders) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -794,18 +795,18 @@ func (m NoOrders) SetPriceType(v int) { } //SetPrice sets Price, Tag 44 -func (m NoOrders) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoOrders) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetStopPx sets StopPx, Tag 99 -func (m NoOrders) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NoOrders) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m NoOrders) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoOrders) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -824,8 +825,8 @@ func (m NoOrders) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoOrders) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoOrders) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -849,8 +850,8 @@ func (m NoOrders) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoOrders) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoOrders) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -864,8 +865,8 @@ func (m NoOrders) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoOrders) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoOrders) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -924,8 +925,8 @@ func (m NoOrders) SetGTBookingInst(v int) { } //SetCommission sets Commission, Tag 12 -func (m NoOrders) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoOrders) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -994,13 +995,13 @@ func (m NoOrders) SetSettlDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoOrders) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoOrders) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetPrice2 sets Price2, Tag 640 -func (m NoOrders) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m NoOrders) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetPositionEffect sets PositionEffect, Tag 77 @@ -1014,13 +1015,13 @@ func (m NoOrders) SetCoveredOrUncovered(v int) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NoOrders) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NoOrders) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m NoOrders) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m NoOrders) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetPegMoveType sets PegMoveType, Tag 835 @@ -1054,8 +1055,8 @@ func (m NoOrders) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m NoOrders) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m NoOrders) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetDiscretionMoveType sets DiscretionMoveType, Tag 841 @@ -1094,8 +1095,8 @@ func (m NoOrders) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m NoOrders) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m NoOrders) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetDesignation sets Designation, Tag 494 @@ -2900,8 +2901,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -3283,8 +3284,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -3440,13 +3441,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3480,8 +3481,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3495,13 +3496,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3555,38 +3556,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 diff --git a/fix44/newordermultileg/NewOrderMultileg.generated.go b/fix44/newordermultileg/NewOrderMultileg.generated.go index ac03189e1..d4bd96c9d 100644 --- a/fix44/newordermultileg/NewOrderMultileg.generated.go +++ b/fix44/newordermultileg/NewOrderMultileg.generated.go @@ -1,6 +1,7 @@ package newordermultileg import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -75,8 +76,8 @@ func (m NewOrderMultileg) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m NewOrderMultileg) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NewOrderMultileg) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -110,8 +111,8 @@ func (m NewOrderMultileg) SetIOIID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NewOrderMultileg) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NewOrderMultileg) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -120,8 +121,8 @@ func (m NewOrderMultileg) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NewOrderMultileg) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NewOrderMultileg) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -195,8 +196,8 @@ func (m NewOrderMultileg) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m NewOrderMultileg) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NewOrderMultileg) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -215,13 +216,13 @@ func (m NewOrderMultileg) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NewOrderMultileg) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NewOrderMultileg) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NewOrderMultileg) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NewOrderMultileg) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -250,13 +251,13 @@ func (m NewOrderMultileg) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NewOrderMultileg) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NewOrderMultileg) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NewOrderMultileg) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NewOrderMultileg) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -275,8 +276,8 @@ func (m NewOrderMultileg) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NewOrderMultileg) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NewOrderMultileg) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -295,18 +296,18 @@ func (m NewOrderMultileg) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NewOrderMultileg) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NewOrderMultileg) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m NewOrderMultileg) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m NewOrderMultileg) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NewOrderMultileg) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NewOrderMultileg) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -325,13 +326,13 @@ func (m NewOrderMultileg) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NewOrderMultileg) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NewOrderMultileg) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NewOrderMultileg) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NewOrderMultileg) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -340,8 +341,8 @@ func (m NewOrderMultileg) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NewOrderMultileg) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NewOrderMultileg) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -410,8 +411,8 @@ func (m NewOrderMultileg) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m NewOrderMultileg) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m NewOrderMultileg) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -455,8 +456,8 @@ func (m NewOrderMultileg) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NewOrderMultileg) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NewOrderMultileg) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -505,8 +506,8 @@ func (m NewOrderMultileg) SetRegistID(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NewOrderMultileg) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NewOrderMultileg) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -675,8 +676,8 @@ func (m NewOrderMultileg) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m NewOrderMultileg) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m NewOrderMultileg) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetQtyType sets QtyType, Tag 854 @@ -2182,8 +2183,8 @@ func (m NoAllocs) SetNoNested3PartyIDs(f NoNested3PartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -2783,13 +2784,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2823,8 +2824,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2838,13 +2839,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2883,8 +2884,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2918,8 +2919,8 @@ func (m NoLegs) SetLegInterestAccrualDate(v string) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -2958,8 +2959,8 @@ func (m NoLegs) SetLegRefID(v string) { } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegSettlType sets LegSettlType, Tag 587 @@ -3700,8 +3701,8 @@ func (m NoLegAllocs) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetLegAllocQty sets LegAllocQty, Tag 673 -func (m NoLegAllocs) SetLegAllocQty(v float64) { - m.Set(field.NewLegAllocQty(v)) +func (m NoLegAllocs) SetLegAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegAllocQty(value, scale)) } //SetLegAllocAcctIDSource sets LegAllocAcctIDSource, Tag 674 @@ -4214,13 +4215,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4254,8 +4255,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4269,13 +4270,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4329,38 +4330,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -5035,8 +5036,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/newordersingle/NewOrderSingle.generated.go b/fix44/newordersingle/NewOrderSingle.generated.go index 761ed8c40..210a5b367 100644 --- a/fix44/newordersingle/NewOrderSingle.generated.go +++ b/fix44/newordersingle/NewOrderSingle.generated.go @@ -1,6 +1,7 @@ package newordersingle import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -75,8 +76,8 @@ func (m NewOrderSingle) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m NewOrderSingle) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NewOrderSingle) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -110,8 +111,8 @@ func (m NewOrderSingle) SetIOIID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NewOrderSingle) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NewOrderSingle) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -120,8 +121,8 @@ func (m NewOrderSingle) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NewOrderSingle) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NewOrderSingle) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -195,8 +196,8 @@ func (m NewOrderSingle) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m NewOrderSingle) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NewOrderSingle) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -215,13 +216,13 @@ func (m NewOrderSingle) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NewOrderSingle) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NewOrderSingle) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NewOrderSingle) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NewOrderSingle) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -250,13 +251,13 @@ func (m NewOrderSingle) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NewOrderSingle) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NewOrderSingle) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NewOrderSingle) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NewOrderSingle) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -270,8 +271,8 @@ func (m NewOrderSingle) SetEffectiveTime(v time.Time) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NewOrderSingle) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NewOrderSingle) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -285,8 +286,8 @@ func (m NewOrderSingle) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NewOrderSingle) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NewOrderSingle) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -305,18 +306,18 @@ func (m NewOrderSingle) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NewOrderSingle) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NewOrderSingle) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m NewOrderSingle) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m NewOrderSingle) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m NewOrderSingle) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NewOrderSingle) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -335,8 +336,8 @@ func (m NewOrderSingle) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m NewOrderSingle) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NewOrderSingle) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -355,13 +356,13 @@ func (m NewOrderSingle) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NewOrderSingle) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NewOrderSingle) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NewOrderSingle) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NewOrderSingle) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -370,8 +371,8 @@ func (m NewOrderSingle) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NewOrderSingle) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NewOrderSingle) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -385,8 +386,8 @@ func (m NewOrderSingle) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NewOrderSingle) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NewOrderSingle) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -455,8 +456,8 @@ func (m NewOrderSingle) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m NewOrderSingle) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m NewOrderSingle) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -500,8 +501,8 @@ func (m NewOrderSingle) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NewOrderSingle) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NewOrderSingle) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -550,8 +551,8 @@ func (m NewOrderSingle) SetRegistID(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NewOrderSingle) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NewOrderSingle) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -620,8 +621,8 @@ func (m NewOrderSingle) SetClearingFeeIndicator(v string) { } //SetPrice2 sets Price2, Tag 640 -func (m NewOrderSingle) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m NewOrderSingle) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -630,8 +631,8 @@ func (m NewOrderSingle) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NewOrderSingle) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NewOrderSingle) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -655,8 +656,8 @@ func (m NewOrderSingle) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NewOrderSingle) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NewOrderSingle) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -760,8 +761,8 @@ func (m NewOrderSingle) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m NewOrderSingle) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m NewOrderSingle) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetQtyType sets QtyType, Tag 854 @@ -795,8 +796,8 @@ func (m NewOrderSingle) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NewOrderSingle) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NewOrderSingle) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -2582,8 +2583,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -3243,13 +3244,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3283,8 +3284,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3298,13 +3299,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3358,38 +3359,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4064,8 +4065,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/news/News.generated.go b/fix44/news/News.generated.go index 57eee85d3..0aa0be4c2 100644 --- a/fix44/news/News.generated.go +++ b/fix44/news/News.generated.go @@ -1,6 +1,7 @@ package news import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -431,13 +432,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -471,8 +472,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -486,13 +487,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -1105,8 +1106,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -1345,13 +1346,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1385,8 +1386,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1400,13 +1401,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1445,8 +1446,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2106,13 +2107,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2146,8 +2147,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2161,13 +2162,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2221,38 +2222,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 diff --git a/fix44/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go b/fix44/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go index c7563d33f..b2c7d992a 100644 --- a/fix44/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go +++ b/fix44/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go @@ -1,6 +1,7 @@ package ordercancelreplacerequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -76,8 +77,8 @@ func (m OrderCancelReplaceRequest) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m OrderCancelReplaceRequest) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m OrderCancelReplaceRequest) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -111,8 +112,8 @@ func (m OrderCancelReplaceRequest) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m OrderCancelReplaceRequest) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m OrderCancelReplaceRequest) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -126,8 +127,8 @@ func (m OrderCancelReplaceRequest) SetOrigClOrdID(v string) { } //SetPrice sets Price, Tag 44 -func (m OrderCancelReplaceRequest) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m OrderCancelReplaceRequest) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -201,8 +202,8 @@ func (m OrderCancelReplaceRequest) SetNoAllocs(f NoAllocsRepeatingGroup) { } //SetStopPx sets StopPx, Tag 99 -func (m OrderCancelReplaceRequest) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m OrderCancelReplaceRequest) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -221,13 +222,13 @@ func (m OrderCancelReplaceRequest) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m OrderCancelReplaceRequest) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m OrderCancelReplaceRequest) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m OrderCancelReplaceRequest) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m OrderCancelReplaceRequest) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -251,8 +252,8 @@ func (m OrderCancelReplaceRequest) SetExpireTime(v time.Time) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m OrderCancelReplaceRequest) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m OrderCancelReplaceRequest) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -266,8 +267,8 @@ func (m OrderCancelReplaceRequest) SetEffectiveTime(v time.Time) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m OrderCancelReplaceRequest) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m OrderCancelReplaceRequest) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -281,8 +282,8 @@ func (m OrderCancelReplaceRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderCancelReplaceRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderCancelReplaceRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -301,18 +302,18 @@ func (m OrderCancelReplaceRequest) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m OrderCancelReplaceRequest) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m OrderCancelReplaceRequest) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m OrderCancelReplaceRequest) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m OrderCancelReplaceRequest) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m OrderCancelReplaceRequest) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m OrderCancelReplaceRequest) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -331,8 +332,8 @@ func (m OrderCancelReplaceRequest) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderCancelReplaceRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderCancelReplaceRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -351,13 +352,13 @@ func (m OrderCancelReplaceRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderCancelReplaceRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderCancelReplaceRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderCancelReplaceRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderCancelReplaceRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -366,8 +367,8 @@ func (m OrderCancelReplaceRequest) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderCancelReplaceRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderCancelReplaceRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetYieldType sets YieldType, Tag 235 @@ -376,8 +377,8 @@ func (m OrderCancelReplaceRequest) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m OrderCancelReplaceRequest) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m OrderCancelReplaceRequest) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -446,8 +447,8 @@ func (m OrderCancelReplaceRequest) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m OrderCancelReplaceRequest) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m OrderCancelReplaceRequest) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -491,8 +492,8 @@ func (m OrderCancelReplaceRequest) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m OrderCancelReplaceRequest) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m OrderCancelReplaceRequest) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -541,8 +542,8 @@ func (m OrderCancelReplaceRequest) SetRegistID(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m OrderCancelReplaceRequest) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m OrderCancelReplaceRequest) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -616,8 +617,8 @@ func (m OrderCancelReplaceRequest) SetClearingFeeIndicator(v string) { } //SetPrice2 sets Price2, Tag 640 -func (m OrderCancelReplaceRequest) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m OrderCancelReplaceRequest) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -626,8 +627,8 @@ func (m OrderCancelReplaceRequest) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m OrderCancelReplaceRequest) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m OrderCancelReplaceRequest) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -651,8 +652,8 @@ func (m OrderCancelReplaceRequest) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m OrderCancelReplaceRequest) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m OrderCancelReplaceRequest) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -756,8 +757,8 @@ func (m OrderCancelReplaceRequest) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m OrderCancelReplaceRequest) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m OrderCancelReplaceRequest) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetQtyType sets QtyType, Tag 854 @@ -791,8 +792,8 @@ func (m OrderCancelReplaceRequest) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m OrderCancelReplaceRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m OrderCancelReplaceRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -2566,8 +2567,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -3167,13 +3168,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3207,8 +3208,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3222,13 +3223,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3282,38 +3283,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3988,8 +3989,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/ordercancelrequest/OrderCancelRequest.generated.go b/fix44/ordercancelrequest/OrderCancelRequest.generated.go index 11afa9b79..20b706b22 100644 --- a/fix44/ordercancelrequest/OrderCancelRequest.generated.go +++ b/fix44/ordercancelrequest/OrderCancelRequest.generated.go @@ -1,6 +1,7 @@ package ordercancelrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -85,8 +86,8 @@ func (m OrderCancelRequest) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m OrderCancelRequest) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m OrderCancelRequest) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrigClOrdID sets OrigClOrdID, Tag 41 @@ -140,8 +141,8 @@ func (m OrderCancelRequest) SetSecurityDesc(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m OrderCancelRequest) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m OrderCancelRequest) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -155,8 +156,8 @@ func (m OrderCancelRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderCancelRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderCancelRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -170,8 +171,8 @@ func (m OrderCancelRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderCancelRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderCancelRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -190,18 +191,18 @@ func (m OrderCancelRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderCancelRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderCancelRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderCancelRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderCancelRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderCancelRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderCancelRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -280,8 +281,8 @@ func (m OrderCancelRequest) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m OrderCancelRequest) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m OrderCancelRequest) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -300,8 +301,8 @@ func (m OrderCancelRequest) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m OrderCancelRequest) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m OrderCancelRequest) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -390,8 +391,8 @@ func (m OrderCancelRequest) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m OrderCancelRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m OrderCancelRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -1546,13 +1547,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1586,8 +1587,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1601,13 +1602,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -1661,38 +1662,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2367,8 +2368,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/ordermasscancelreport/OrderMassCancelReport.generated.go b/fix44/ordermasscancelreport/OrderMassCancelReport.generated.go index 7a993ba87..890fe71bb 100644 --- a/fix44/ordermasscancelreport/OrderMassCancelReport.generated.go +++ b/fix44/ordermasscancelreport/OrderMassCancelReport.generated.go @@ -1,6 +1,7 @@ package ordermasscancelreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -134,8 +135,8 @@ func (m OrderMassCancelReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderMassCancelReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderMassCancelReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -149,8 +150,8 @@ func (m OrderMassCancelReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderMassCancelReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderMassCancelReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -169,18 +170,18 @@ func (m OrderMassCancelReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderMassCancelReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderMassCancelReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderMassCancelReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderMassCancelReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderMassCancelReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderMassCancelReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -214,13 +215,13 @@ func (m OrderMassCancelReport) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m OrderMassCancelReport) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m OrderMassCancelReport) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m OrderMassCancelReport) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m OrderMassCancelReport) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -284,8 +285,8 @@ func (m OrderMassCancelReport) SetUnderlyingMaturityMonthYear(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m OrderMassCancelReport) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m OrderMassCancelReport) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -354,13 +355,13 @@ func (m OrderMassCancelReport) SetEncodedUnderlyingSecurityDesc(v string) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m OrderMassCancelReport) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m OrderMassCancelReport) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m OrderMassCancelReport) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m OrderMassCancelReport) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoSecurityAltID sets NoSecurityAltID, Tag 454 @@ -499,8 +500,8 @@ func (m OrderMassCancelReport) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m OrderMassCancelReport) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m OrderMassCancelReport) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -539,33 +540,33 @@ func (m OrderMassCancelReport) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m OrderMassCancelReport) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m OrderMassCancelReport) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m OrderMassCancelReport) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m OrderMassCancelReport) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m OrderMassCancelReport) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m OrderMassCancelReport) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m OrderMassCancelReport) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m OrderMassCancelReport) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m OrderMassCancelReport) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m OrderMassCancelReport) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m OrderMassCancelReport) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m OrderMassCancelReport) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -1944,8 +1945,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/ordermasscancelrequest/OrderMassCancelRequest.generated.go b/fix44/ordermasscancelrequest/OrderMassCancelRequest.generated.go index 863f0ef58..5ac5b7b2c 100644 --- a/fix44/ordermasscancelrequest/OrderMassCancelRequest.generated.go +++ b/fix44/ordermasscancelrequest/OrderMassCancelRequest.generated.go @@ -1,6 +1,7 @@ package ordermasscancelrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -124,8 +125,8 @@ func (m OrderMassCancelRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderMassCancelRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderMassCancelRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -139,8 +140,8 @@ func (m OrderMassCancelRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderMassCancelRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderMassCancelRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -159,18 +160,18 @@ func (m OrderMassCancelRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderMassCancelRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderMassCancelRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderMassCancelRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderMassCancelRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderMassCancelRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderMassCancelRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -204,13 +205,13 @@ func (m OrderMassCancelRequest) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m OrderMassCancelRequest) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m OrderMassCancelRequest) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m OrderMassCancelRequest) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m OrderMassCancelRequest) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -274,8 +275,8 @@ func (m OrderMassCancelRequest) SetUnderlyingMaturityMonthYear(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m OrderMassCancelRequest) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m OrderMassCancelRequest) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -344,13 +345,13 @@ func (m OrderMassCancelRequest) SetEncodedUnderlyingSecurityDesc(v string) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m OrderMassCancelRequest) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m OrderMassCancelRequest) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m OrderMassCancelRequest) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m OrderMassCancelRequest) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoSecurityAltID sets NoSecurityAltID, Tag 454 @@ -469,8 +470,8 @@ func (m OrderMassCancelRequest) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m OrderMassCancelRequest) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m OrderMassCancelRequest) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -509,33 +510,33 @@ func (m OrderMassCancelRequest) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m OrderMassCancelRequest) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m OrderMassCancelRequest) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m OrderMassCancelRequest) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m OrderMassCancelRequest) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m OrderMassCancelRequest) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m OrderMassCancelRequest) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m OrderMassCancelRequest) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m OrderMassCancelRequest) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m OrderMassCancelRequest) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m OrderMassCancelRequest) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m OrderMassCancelRequest) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m OrderMassCancelRequest) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -1771,8 +1772,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/ordermassstatusrequest/OrderMassStatusRequest.generated.go b/fix44/ordermassstatusrequest/OrderMassStatusRequest.generated.go index ef69f7b1b..a9495174a 100644 --- a/fix44/ordermassstatusrequest/OrderMassStatusRequest.generated.go +++ b/fix44/ordermassstatusrequest/OrderMassStatusRequest.generated.go @@ -1,6 +1,7 @@ package ordermassstatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -113,8 +114,8 @@ func (m OrderMassStatusRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderMassStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderMassStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -128,8 +129,8 @@ func (m OrderMassStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderMassStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderMassStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -148,18 +149,18 @@ func (m OrderMassStatusRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderMassStatusRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderMassStatusRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderMassStatusRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderMassStatusRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderMassStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderMassStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -193,13 +194,13 @@ func (m OrderMassStatusRequest) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m OrderMassStatusRequest) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m OrderMassStatusRequest) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m OrderMassStatusRequest) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m OrderMassStatusRequest) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -263,8 +264,8 @@ func (m OrderMassStatusRequest) SetUnderlyingMaturityMonthYear(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m OrderMassStatusRequest) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m OrderMassStatusRequest) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -323,13 +324,13 @@ func (m OrderMassStatusRequest) SetEncodedUnderlyingSecurityDesc(v string) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m OrderMassStatusRequest) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m OrderMassStatusRequest) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m OrderMassStatusRequest) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m OrderMassStatusRequest) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoPartyIDs sets NoPartyIDs, Tag 453 @@ -458,8 +459,8 @@ func (m OrderMassStatusRequest) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m OrderMassStatusRequest) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m OrderMassStatusRequest) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -498,33 +499,33 @@ func (m OrderMassStatusRequest) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m OrderMassStatusRequest) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m OrderMassStatusRequest) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m OrderMassStatusRequest) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m OrderMassStatusRequest) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m OrderMassStatusRequest) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m OrderMassStatusRequest) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m OrderMassStatusRequest) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m OrderMassStatusRequest) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m OrderMassStatusRequest) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m OrderMassStatusRequest) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m OrderMassStatusRequest) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m OrderMassStatusRequest) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -1892,8 +1893,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/orderstatusrequest/OrderStatusRequest.generated.go b/fix44/orderstatusrequest/OrderStatusRequest.generated.go index 97b78b23f..1859c9a21 100644 --- a/fix44/orderstatusrequest/OrderStatusRequest.generated.go +++ b/fix44/orderstatusrequest/OrderStatusRequest.generated.go @@ -1,6 +1,7 @@ package orderstatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -123,8 +124,8 @@ func (m OrderStatusRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -138,8 +139,8 @@ func (m OrderStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -158,18 +159,18 @@ func (m OrderStatusRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderStatusRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderStatusRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderStatusRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderStatusRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -323,8 +324,8 @@ func (m OrderStatusRequest) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m OrderStatusRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m OrderStatusRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -1336,13 +1337,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1376,8 +1377,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1391,13 +1392,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -1451,38 +1452,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2157,8 +2158,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/positionmaintenancereport/PositionMaintenanceReport.generated.go b/fix44/positionmaintenancereport/PositionMaintenanceReport.generated.go index e0a64eaad..4b610de8a 100644 --- a/fix44/positionmaintenancereport/PositionMaintenanceReport.generated.go +++ b/fix44/positionmaintenancereport/PositionMaintenanceReport.generated.go @@ -1,6 +1,7 @@ package positionmaintenancereport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -130,8 +131,8 @@ func (m PositionMaintenanceReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m PositionMaintenanceReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m PositionMaintenanceReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -145,8 +146,8 @@ func (m PositionMaintenanceReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m PositionMaintenanceReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m PositionMaintenanceReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -165,18 +166,18 @@ func (m PositionMaintenanceReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m PositionMaintenanceReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m PositionMaintenanceReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m PositionMaintenanceReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m PositionMaintenanceReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m PositionMaintenanceReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m PositionMaintenanceReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -375,8 +376,8 @@ func (m PositionMaintenanceReport) SetSecuritySubType(v string) { } //SetThresholdAmount sets ThresholdAmount, Tag 834 -func (m PositionMaintenanceReport) SetThresholdAmount(v float64) { - m.Set(field.NewThresholdAmount(v)) +func (m PositionMaintenanceReport) SetThresholdAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewThresholdAmount(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -1519,13 +1520,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1559,8 +1560,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1574,13 +1575,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1619,8 +1620,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2210,13 +2211,13 @@ func (m NoPositions) SetPosType(v string) { } //SetLongQty sets LongQty, Tag 704 -func (m NoPositions) SetLongQty(v float64) { - m.Set(field.NewLongQty(v)) +func (m NoPositions) SetLongQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLongQty(value, scale)) } //SetShortQty sets ShortQty, Tag 705 -func (m NoPositions) SetShortQty(v float64) { - m.Set(field.NewShortQty(v)) +func (m NoPositions) SetShortQty(value decimal.Decimal, scale int32) { + m.Set(field.NewShortQty(value, scale)) } //SetPosQtyStatus sets PosQtyStatus, Tag 706 @@ -2542,13 +2543,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2582,8 +2583,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2597,13 +2598,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2657,38 +2658,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3358,8 +3359,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //GetPosAmtType gets PosAmtType, Tag 707 @@ -3423,8 +3424,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/positionmaintenancerequest/PositionMaintenanceRequest.generated.go b/fix44/positionmaintenancerequest/PositionMaintenanceRequest.generated.go index 6d00b5c4d..7c63ef9b7 100644 --- a/fix44/positionmaintenancerequest/PositionMaintenanceRequest.generated.go +++ b/fix44/positionmaintenancerequest/PositionMaintenanceRequest.generated.go @@ -1,6 +1,7 @@ package positionmaintenancerequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -128,8 +129,8 @@ func (m PositionMaintenanceRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m PositionMaintenanceRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m PositionMaintenanceRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -143,8 +144,8 @@ func (m PositionMaintenanceRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m PositionMaintenanceRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m PositionMaintenanceRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -163,18 +164,18 @@ func (m PositionMaintenanceRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m PositionMaintenanceRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m PositionMaintenanceRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m PositionMaintenanceRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m PositionMaintenanceRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m PositionMaintenanceRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m PositionMaintenanceRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -368,8 +369,8 @@ func (m PositionMaintenanceRequest) SetSecuritySubType(v string) { } //SetThresholdAmount sets ThresholdAmount, Tag 834 -func (m PositionMaintenanceRequest) SetThresholdAmount(v float64) { - m.Set(field.NewThresholdAmount(v)) +func (m PositionMaintenanceRequest) SetThresholdAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewThresholdAmount(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -1500,13 +1501,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1540,8 +1541,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1555,13 +1556,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1600,8 +1601,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2191,13 +2192,13 @@ func (m NoPositions) SetPosType(v string) { } //SetLongQty sets LongQty, Tag 704 -func (m NoPositions) SetLongQty(v float64) { - m.Set(field.NewLongQty(v)) +func (m NoPositions) SetLongQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLongQty(value, scale)) } //SetShortQty sets ShortQty, Tag 705 -func (m NoPositions) SetShortQty(v float64) { - m.Set(field.NewShortQty(v)) +func (m NoPositions) SetShortQty(value decimal.Decimal, scale int32) { + m.Set(field.NewShortQty(value, scale)) } //SetPosQtyStatus sets PosQtyStatus, Tag 706 @@ -2523,13 +2524,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2563,8 +2564,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2578,13 +2579,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2638,38 +2639,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3344,8 +3345,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/positionreport/PositionReport.generated.go b/fix44/positionreport/PositionReport.generated.go index 8b91d05ab..517a56fdf 100644 --- a/fix44/positionreport/PositionReport.generated.go +++ b/fix44/positionreport/PositionReport.generated.go @@ -1,6 +1,7 @@ package positionreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -124,8 +125,8 @@ func (m PositionReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m PositionReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m PositionReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -139,8 +140,8 @@ func (m PositionReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m PositionReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m PositionReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -159,18 +160,18 @@ func (m PositionReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m PositionReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m PositionReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m PositionReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m PositionReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m PositionReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m PositionReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -354,8 +355,8 @@ func (m PositionReport) SetPosReqResult(v int) { } //SetSettlPrice sets SettlPrice, Tag 730 -func (m PositionReport) SetSettlPrice(v float64) { - m.Set(field.NewSettlPrice(v)) +func (m PositionReport) SetSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlPrice(value, scale)) } //SetSettlPriceType sets SettlPriceType, Tag 731 @@ -364,8 +365,8 @@ func (m PositionReport) SetSettlPriceType(v int) { } //SetPriorSettlPrice sets PriorSettlPrice, Tag 734 -func (m PositionReport) SetPriorSettlPrice(v float64) { - m.Set(field.NewPriorSettlPrice(v)) +func (m PositionReport) SetPriorSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPriorSettlPrice(value, scale)) } //SetDeliveryDate sets DeliveryDate, Tag 743 @@ -1473,13 +1474,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1513,8 +1514,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1528,13 +1529,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1573,8 +1574,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2164,13 +2165,13 @@ func (m NoPositions) SetPosType(v string) { } //SetLongQty sets LongQty, Tag 704 -func (m NoPositions) SetLongQty(v float64) { - m.Set(field.NewLongQty(v)) +func (m NoPositions) SetLongQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLongQty(value, scale)) } //SetShortQty sets ShortQty, Tag 705 -func (m NoPositions) SetShortQty(v float64) { - m.Set(field.NewShortQty(v)) +func (m NoPositions) SetShortQty(value decimal.Decimal, scale int32) { + m.Set(field.NewShortQty(value, scale)) } //SetPosQtyStatus sets PosQtyStatus, Tag 706 @@ -2496,13 +2497,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2536,8 +2537,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2551,13 +2552,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2611,38 +2612,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2651,8 +2652,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingSettlPrice sets UnderlyingSettlPrice, Tag 732 -func (m NoUnderlyings) SetUnderlyingSettlPrice(v float64) { - m.Set(field.NewUnderlyingSettlPrice(v)) +func (m NoUnderlyings) SetUnderlyingSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingSettlPrice(value, scale)) } //SetUnderlyingSettlPriceType sets UnderlyingSettlPriceType, Tag 733 @@ -3344,8 +3345,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //GetPosAmtType gets PosAmtType, Tag 707 @@ -3409,8 +3410,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/quote/Quote.generated.go b/fix44/quote/Quote.generated.go index 726344a37..a57a17f3e 100644 --- a/fix44/quote/Quote.generated.go +++ b/fix44/quote/Quote.generated.go @@ -1,6 +1,7 @@ package quote import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -67,8 +68,8 @@ func (m Quote) SetAccount(v string) { } //SetCommission sets Commission, Tag 12 -func (m Quote) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m Quote) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -87,8 +88,8 @@ func (m Quote) SetSecurityIDSource(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m Quote) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m Quote) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -167,28 +168,28 @@ func (m Quote) SetQuoteReqID(v string) { } //SetBidPx sets BidPx, Tag 132 -func (m Quote) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m Quote) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m Quote) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m Quote) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m Quote) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m Quote) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m Quote) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m Quote) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m Quote) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m Quote) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -202,28 +203,28 @@ func (m Quote) SetSecurityType(v string) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m Quote) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m Quote) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m Quote) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m Quote) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m Quote) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m Quote) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m Quote) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m Quote) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m Quote) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m Quote) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -237,8 +238,8 @@ func (m Quote) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m Quote) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m Quote) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -252,8 +253,8 @@ func (m Quote) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m Quote) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m Quote) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -272,8 +273,8 @@ func (m Quote) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m Quote) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m Quote) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -292,18 +293,18 @@ func (m Quote) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m Quote) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m Quote) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m Quote) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m Quote) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m Quote) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m Quote) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -317,8 +318,8 @@ func (m Quote) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m Quote) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m Quote) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -407,8 +408,8 @@ func (m Quote) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m Quote) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m Quote) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -427,8 +428,8 @@ func (m Quote) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m Quote) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m Quote) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetOrderCapacity sets OrderCapacity, Tag 528 @@ -472,63 +473,63 @@ func (m Quote) SetTradingSessionSubID(v string) { } //SetMidPx sets MidPx, Tag 631 -func (m Quote) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m Quote) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m Quote) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m Quote) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m Quote) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m Quote) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m Quote) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m Quote) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m Quote) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m Quote) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m Quote) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m Quote) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetMktBidPx sets MktBidPx, Tag 645 -func (m Quote) SetMktBidPx(v float64) { - m.Set(field.NewMktBidPx(v)) +func (m Quote) SetMktBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktBidPx(value, scale)) } //SetMktOfferPx sets MktOfferPx, Tag 646 -func (m Quote) SetMktOfferPx(v float64) { - m.Set(field.NewMktOfferPx(v)) +func (m Quote) SetMktOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktOfferPx(value, scale)) } //SetMinBidSize sets MinBidSize, Tag 647 -func (m Quote) SetMinBidSize(v float64) { - m.Set(field.NewMinBidSize(v)) +func (m Quote) SetMinBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinBidSize(value, scale)) } //SetMinOfferSize sets MinOfferSize, Tag 648 -func (m Quote) SetMinOfferSize(v float64) { - m.Set(field.NewMinOfferSize(v)) +func (m Quote) SetMinOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinOfferSize(value, scale)) } //SetSettlCurrBidFxRate sets SettlCurrBidFxRate, Tag 656 -func (m Quote) SetSettlCurrBidFxRate(v float64) { - m.Set(field.NewSettlCurrBidFxRate(v)) +func (m Quote) SetSettlCurrBidFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrBidFxRate(value, scale)) } //SetSettlCurrOfferFxRate sets SettlCurrOfferFxRate, Tag 657 -func (m Quote) SetSettlCurrOfferFxRate(v float64) { - m.Set(field.NewSettlCurrOfferFxRate(v)) +func (m Quote) SetSettlCurrOfferFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrOfferFxRate(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -537,8 +538,8 @@ func (m Quote) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m Quote) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m Quote) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -567,8 +568,8 @@ func (m Quote) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m Quote) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m Quote) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -637,8 +638,8 @@ func (m Quote) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m Quote) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m Quote) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -2406,13 +2407,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2446,8 +2447,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2461,13 +2462,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2506,8 +2507,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2541,8 +2542,8 @@ func (m NoLegs) SetLegInterestAccrualDate(v string) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -2576,13 +2577,13 @@ func (m NoLegs) SetLegPriceType(v int) { } //SetLegBidPx sets LegBidPx, Tag 681 -func (m NoLegs) SetLegBidPx(v float64) { - m.Set(field.NewLegBidPx(v)) +func (m NoLegs) SetLegBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBidPx(value, scale)) } //SetLegOfferPx sets LegOfferPx, Tag 684 -func (m NoLegs) SetLegOfferPx(v float64) { - m.Set(field.NewLegOfferPx(v)) +func (m NoLegs) SetLegOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOfferPx(value, scale)) } //SetLegBenchmarkCurveCurrency sets LegBenchmarkCurveCurrency, Tag 676 @@ -2601,8 +2602,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 @@ -3606,13 +3607,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3646,8 +3647,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3661,13 +3662,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3721,38 +3722,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4471,8 +4472,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/quotecancel/QuoteCancel.generated.go b/fix44/quotecancel/QuoteCancel.generated.go index 94242b452..cb3094326 100644 --- a/fix44/quotecancel/QuoteCancel.generated.go +++ b/fix44/quotecancel/QuoteCancel.generated.go @@ -1,6 +1,7 @@ package quotecancel import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -321,13 +322,13 @@ func (m NoQuoteEntries) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoQuoteEntries) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoQuoteEntries) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoQuoteEntries) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoQuoteEntries) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -361,8 +362,8 @@ func (m NoQuoteEntries) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoQuoteEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoQuoteEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -376,13 +377,13 @@ func (m NoQuoteEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoQuoteEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoQuoteEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoQuoteEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoQuoteEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -496,8 +497,8 @@ func (m NoQuoteEntries) SetDeliveryType(v int) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NoQuoteEntries) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NoQuoteEntries) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetNoUnderlyings sets NoUnderlyings, Tag 711 @@ -1173,8 +1174,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -1330,13 +1331,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1370,8 +1371,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1385,13 +1386,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -1445,38 +1446,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2216,13 +2217,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2256,8 +2257,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2271,13 +2272,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2316,8 +2317,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 diff --git a/fix44/quoterequest/QuoteRequest.generated.go b/fix44/quoterequest/QuoteRequest.generated.go index 98ca93553..fbf9af106 100644 --- a/fix44/quoterequest/QuoteRequest.generated.go +++ b/fix44/quoterequest/QuoteRequest.generated.go @@ -1,6 +1,7 @@ package quoterequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -271,13 +272,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -311,8 +312,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -326,13 +327,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -446,8 +447,8 @@ func (m NoRelatedSym) SetDeliveryType(v int) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NoRelatedSym) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NoRelatedSym) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetNoUnderlyings sets NoUnderlyings, Tag 711 @@ -456,8 +457,8 @@ func (m NoRelatedSym) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoRelatedSym) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoRelatedSym) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetQuoteRequestType sets QuoteRequestType, Tag 303 @@ -496,18 +497,18 @@ func (m NoRelatedSym) SetQtyType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoRelatedSym) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoRelatedSym) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoRelatedSym) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoRelatedSym) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoRelatedSym) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoRelatedSym) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -516,8 +517,8 @@ func (m NoRelatedSym) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoRelatedSym) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoRelatedSym) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetSettlType sets SettlType, Tag 63 @@ -536,8 +537,8 @@ func (m NoRelatedSym) SetSettlDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoRelatedSym) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoRelatedSym) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -601,8 +602,8 @@ func (m NoRelatedSym) SetTransactTime(v time.Time) { } //SetSpread sets Spread, Tag 218 -func (m NoRelatedSym) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoRelatedSym) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -621,8 +622,8 @@ func (m NoRelatedSym) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoRelatedSym) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoRelatedSym) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -646,13 +647,13 @@ func (m NoRelatedSym) SetPriceType(v int) { } //SetPrice sets Price, Tag 44 -func (m NoRelatedSym) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoRelatedSym) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetPrice2 sets Price2, Tag 640 -func (m NoRelatedSym) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m NoRelatedSym) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetYieldType sets YieldType, Tag 235 @@ -661,8 +662,8 @@ func (m NoRelatedSym) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoRelatedSym) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoRelatedSym) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -676,8 +677,8 @@ func (m NoRelatedSym) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoRelatedSym) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoRelatedSym) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -1862,8 +1863,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2019,13 +2020,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2059,8 +2060,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2074,13 +2075,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2134,38 +2135,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2965,13 +2966,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3005,8 +3006,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3020,13 +3021,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3065,8 +3066,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3100,8 +3101,8 @@ func (m NoLegs) SetLegInterestAccrualDate(v string) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -3145,8 +3146,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 diff --git a/fix44/quoterequestreject/QuoteRequestReject.generated.go b/fix44/quoterequestreject/QuoteRequestReject.generated.go index e6269d080..ba44a56b8 100644 --- a/fix44/quoterequestreject/QuoteRequestReject.generated.go +++ b/fix44/quoterequestreject/QuoteRequestReject.generated.go @@ -1,6 +1,7 @@ package quoterequestreject import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -256,13 +257,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -296,8 +297,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -311,13 +312,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -431,8 +432,8 @@ func (m NoRelatedSym) SetDeliveryType(v int) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NoRelatedSym) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NoRelatedSym) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetNoUnderlyings sets NoUnderlyings, Tag 711 @@ -441,8 +442,8 @@ func (m NoRelatedSym) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoRelatedSym) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoRelatedSym) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetQuoteRequestType sets QuoteRequestType, Tag 303 @@ -481,18 +482,18 @@ func (m NoRelatedSym) SetQtyType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoRelatedSym) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoRelatedSym) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoRelatedSym) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoRelatedSym) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoRelatedSym) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoRelatedSym) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -501,8 +502,8 @@ func (m NoRelatedSym) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoRelatedSym) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoRelatedSym) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetSettlType sets SettlType, Tag 63 @@ -521,8 +522,8 @@ func (m NoRelatedSym) SetSettlDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoRelatedSym) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoRelatedSym) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -581,8 +582,8 @@ func (m NoRelatedSym) SetTransactTime(v time.Time) { } //SetSpread sets Spread, Tag 218 -func (m NoRelatedSym) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoRelatedSym) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -601,8 +602,8 @@ func (m NoRelatedSym) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoRelatedSym) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoRelatedSym) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -626,13 +627,13 @@ func (m NoRelatedSym) SetPriceType(v int) { } //SetPrice sets Price, Tag 44 -func (m NoRelatedSym) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoRelatedSym) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetPrice2 sets Price2, Tag 640 -func (m NoRelatedSym) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m NoRelatedSym) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetYieldType sets YieldType, Tag 235 @@ -641,8 +642,8 @@ func (m NoRelatedSym) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoRelatedSym) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoRelatedSym) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -656,8 +657,8 @@ func (m NoRelatedSym) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoRelatedSym) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoRelatedSym) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -1831,8 +1832,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -1988,13 +1989,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2028,8 +2029,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2043,13 +2044,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2103,38 +2104,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2934,13 +2935,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2974,8 +2975,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2989,13 +2990,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3034,8 +3035,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3069,8 +3070,8 @@ func (m NoLegs) SetLegInterestAccrualDate(v string) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -3114,8 +3115,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 diff --git a/fix44/quoteresponse/QuoteResponse.generated.go b/fix44/quoteresponse/QuoteResponse.generated.go index d017c5614..7fb7c3627 100644 --- a/fix44/quoteresponse/QuoteResponse.generated.go +++ b/fix44/quoteresponse/QuoteResponse.generated.go @@ -1,6 +1,7 @@ package quoteresponse import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -73,8 +74,8 @@ func (m QuoteResponse) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m QuoteResponse) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m QuoteResponse) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -98,8 +99,8 @@ func (m QuoteResponse) SetIOIID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m QuoteResponse) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m QuoteResponse) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -108,8 +109,8 @@ func (m QuoteResponse) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m QuoteResponse) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m QuoteResponse) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -178,28 +179,28 @@ func (m QuoteResponse) SetQuoteID(v string) { } //SetBidPx sets BidPx, Tag 132 -func (m QuoteResponse) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m QuoteResponse) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m QuoteResponse) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m QuoteResponse) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m QuoteResponse) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m QuoteResponse) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m QuoteResponse) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m QuoteResponse) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m QuoteResponse) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m QuoteResponse) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -213,28 +214,28 @@ func (m QuoteResponse) SetSecurityType(v string) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m QuoteResponse) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m QuoteResponse) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m QuoteResponse) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m QuoteResponse) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m QuoteResponse) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m QuoteResponse) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m QuoteResponse) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m QuoteResponse) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m QuoteResponse) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m QuoteResponse) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -248,8 +249,8 @@ func (m QuoteResponse) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m QuoteResponse) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m QuoteResponse) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -263,8 +264,8 @@ func (m QuoteResponse) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m QuoteResponse) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m QuoteResponse) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -283,8 +284,8 @@ func (m QuoteResponse) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m QuoteResponse) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m QuoteResponse) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -303,18 +304,18 @@ func (m QuoteResponse) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m QuoteResponse) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m QuoteResponse) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m QuoteResponse) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m QuoteResponse) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m QuoteResponse) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m QuoteResponse) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -328,8 +329,8 @@ func (m QuoteResponse) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m QuoteResponse) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m QuoteResponse) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -413,8 +414,8 @@ func (m QuoteResponse) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m QuoteResponse) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m QuoteResponse) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -433,8 +434,8 @@ func (m QuoteResponse) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m QuoteResponse) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m QuoteResponse) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetOrderCapacity sets OrderCapacity, Tag 528 @@ -478,63 +479,63 @@ func (m QuoteResponse) SetTradingSessionSubID(v string) { } //SetMidPx sets MidPx, Tag 631 -func (m QuoteResponse) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m QuoteResponse) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m QuoteResponse) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m QuoteResponse) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m QuoteResponse) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m QuoteResponse) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m QuoteResponse) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m QuoteResponse) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m QuoteResponse) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m QuoteResponse) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m QuoteResponse) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m QuoteResponse) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetMktBidPx sets MktBidPx, Tag 645 -func (m QuoteResponse) SetMktBidPx(v float64) { - m.Set(field.NewMktBidPx(v)) +func (m QuoteResponse) SetMktBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktBidPx(value, scale)) } //SetMktOfferPx sets MktOfferPx, Tag 646 -func (m QuoteResponse) SetMktOfferPx(v float64) { - m.Set(field.NewMktOfferPx(v)) +func (m QuoteResponse) SetMktOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktOfferPx(value, scale)) } //SetMinBidSize sets MinBidSize, Tag 647 -func (m QuoteResponse) SetMinBidSize(v float64) { - m.Set(field.NewMinBidSize(v)) +func (m QuoteResponse) SetMinBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinBidSize(value, scale)) } //SetMinOfferSize sets MinOfferSize, Tag 648 -func (m QuoteResponse) SetMinOfferSize(v float64) { - m.Set(field.NewMinOfferSize(v)) +func (m QuoteResponse) SetMinOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinOfferSize(value, scale)) } //SetSettlCurrBidFxRate sets SettlCurrBidFxRate, Tag 656 -func (m QuoteResponse) SetSettlCurrBidFxRate(v float64) { - m.Set(field.NewSettlCurrBidFxRate(v)) +func (m QuoteResponse) SetSettlCurrBidFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrBidFxRate(value, scale)) } //SetSettlCurrOfferFxRate sets SettlCurrOfferFxRate, Tag 657 -func (m QuoteResponse) SetSettlCurrOfferFxRate(v float64) { - m.Set(field.NewSettlCurrOfferFxRate(v)) +func (m QuoteResponse) SetSettlCurrOfferFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrOfferFxRate(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -543,8 +544,8 @@ func (m QuoteResponse) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m QuoteResponse) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m QuoteResponse) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -578,8 +579,8 @@ func (m QuoteResponse) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m QuoteResponse) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m QuoteResponse) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -648,8 +649,8 @@ func (m QuoteResponse) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m QuoteResponse) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m QuoteResponse) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -2439,13 +2440,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2479,8 +2480,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2494,13 +2495,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2539,8 +2540,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2574,8 +2575,8 @@ func (m NoLegs) SetLegInterestAccrualDate(v string) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -2609,13 +2610,13 @@ func (m NoLegs) SetLegPriceType(v int) { } //SetLegBidPx sets LegBidPx, Tag 681 -func (m NoLegs) SetLegBidPx(v float64) { - m.Set(field.NewLegBidPx(v)) +func (m NoLegs) SetLegBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBidPx(value, scale)) } //SetLegOfferPx sets LegOfferPx, Tag 684 -func (m NoLegs) SetLegOfferPx(v float64) { - m.Set(field.NewLegOfferPx(v)) +func (m NoLegs) SetLegOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOfferPx(value, scale)) } //SetLegBenchmarkCurveCurrency sets LegBenchmarkCurveCurrency, Tag 676 @@ -2634,8 +2635,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 @@ -3639,13 +3640,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3679,8 +3680,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3694,13 +3695,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3754,38 +3755,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4504,8 +4505,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/quotestatusreport/QuoteStatusReport.generated.go b/fix44/quotestatusreport/QuoteStatusReport.generated.go index fb48d5166..622c1fbcb 100644 --- a/fix44/quotestatusreport/QuoteStatusReport.generated.go +++ b/fix44/quotestatusreport/QuoteStatusReport.generated.go @@ -1,6 +1,7 @@ package quotestatusreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -67,8 +68,8 @@ func (m QuoteStatusReport) SetAccount(v string) { } //SetCommission sets Commission, Tag 12 -func (m QuoteStatusReport) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m QuoteStatusReport) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -87,8 +88,8 @@ func (m QuoteStatusReport) SetSecurityIDSource(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m QuoteStatusReport) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m QuoteStatusReport) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -97,8 +98,8 @@ func (m QuoteStatusReport) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m QuoteStatusReport) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m QuoteStatusReport) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -177,28 +178,28 @@ func (m QuoteStatusReport) SetQuoteReqID(v string) { } //SetBidPx sets BidPx, Tag 132 -func (m QuoteStatusReport) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m QuoteStatusReport) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m QuoteStatusReport) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m QuoteStatusReport) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m QuoteStatusReport) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m QuoteStatusReport) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m QuoteStatusReport) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m QuoteStatusReport) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m QuoteStatusReport) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m QuoteStatusReport) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -212,28 +213,28 @@ func (m QuoteStatusReport) SetSecurityType(v string) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m QuoteStatusReport) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m QuoteStatusReport) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m QuoteStatusReport) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m QuoteStatusReport) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m QuoteStatusReport) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m QuoteStatusReport) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m QuoteStatusReport) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m QuoteStatusReport) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m QuoteStatusReport) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m QuoteStatusReport) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -247,8 +248,8 @@ func (m QuoteStatusReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m QuoteStatusReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m QuoteStatusReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -262,8 +263,8 @@ func (m QuoteStatusReport) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m QuoteStatusReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m QuoteStatusReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -282,8 +283,8 @@ func (m QuoteStatusReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m QuoteStatusReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m QuoteStatusReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -302,18 +303,18 @@ func (m QuoteStatusReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m QuoteStatusReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m QuoteStatusReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m QuoteStatusReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m QuoteStatusReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m QuoteStatusReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m QuoteStatusReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -327,8 +328,8 @@ func (m QuoteStatusReport) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m QuoteStatusReport) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m QuoteStatusReport) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -417,8 +418,8 @@ func (m QuoteStatusReport) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m QuoteStatusReport) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m QuoteStatusReport) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -437,8 +438,8 @@ func (m QuoteStatusReport) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m QuoteStatusReport) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m QuoteStatusReport) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetQuoteType sets QuoteType, Tag 537 @@ -477,53 +478,53 @@ func (m QuoteStatusReport) SetTradingSessionSubID(v string) { } //SetMidPx sets MidPx, Tag 631 -func (m QuoteStatusReport) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m QuoteStatusReport) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m QuoteStatusReport) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m QuoteStatusReport) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m QuoteStatusReport) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m QuoteStatusReport) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m QuoteStatusReport) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m QuoteStatusReport) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m QuoteStatusReport) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m QuoteStatusReport) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m QuoteStatusReport) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m QuoteStatusReport) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetMktBidPx sets MktBidPx, Tag 645 -func (m QuoteStatusReport) SetMktBidPx(v float64) { - m.Set(field.NewMktBidPx(v)) +func (m QuoteStatusReport) SetMktBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktBidPx(value, scale)) } //SetMktOfferPx sets MktOfferPx, Tag 646 -func (m QuoteStatusReport) SetMktOfferPx(v float64) { - m.Set(field.NewMktOfferPx(v)) +func (m QuoteStatusReport) SetMktOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktOfferPx(value, scale)) } //SetMinBidSize sets MinBidSize, Tag 647 -func (m QuoteStatusReport) SetMinBidSize(v float64) { - m.Set(field.NewMinBidSize(v)) +func (m QuoteStatusReport) SetMinBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinBidSize(value, scale)) } //SetMinOfferSize sets MinOfferSize, Tag 648 -func (m QuoteStatusReport) SetMinOfferSize(v float64) { - m.Set(field.NewMinOfferSize(v)) +func (m QuoteStatusReport) SetMinOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinOfferSize(value, scale)) } //SetQuoteStatusReqID sets QuoteStatusReqID, Tag 649 @@ -532,13 +533,13 @@ func (m QuoteStatusReport) SetQuoteStatusReqID(v string) { } //SetSettlCurrBidFxRate sets SettlCurrBidFxRate, Tag 656 -func (m QuoteStatusReport) SetSettlCurrBidFxRate(v float64) { - m.Set(field.NewSettlCurrBidFxRate(v)) +func (m QuoteStatusReport) SetSettlCurrBidFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrBidFxRate(value, scale)) } //SetSettlCurrOfferFxRate sets SettlCurrOfferFxRate, Tag 657 -func (m QuoteStatusReport) SetSettlCurrOfferFxRate(v float64) { - m.Set(field.NewSettlCurrOfferFxRate(v)) +func (m QuoteStatusReport) SetSettlCurrOfferFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrOfferFxRate(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -547,8 +548,8 @@ func (m QuoteStatusReport) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m QuoteStatusReport) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m QuoteStatusReport) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -577,8 +578,8 @@ func (m QuoteStatusReport) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m QuoteStatusReport) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m QuoteStatusReport) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -647,8 +648,8 @@ func (m QuoteStatusReport) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m QuoteStatusReport) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m QuoteStatusReport) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -2438,13 +2439,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2478,8 +2479,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2493,13 +2494,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2538,8 +2539,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2573,8 +2574,8 @@ func (m NoLegs) SetLegInterestAccrualDate(v string) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -3510,13 +3511,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3550,8 +3551,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3565,13 +3566,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3625,38 +3626,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4375,8 +4376,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/quotestatusrequest/QuoteStatusRequest.generated.go b/fix44/quotestatusrequest/QuoteStatusRequest.generated.go index fa762b5fe..73a00eb9f 100644 --- a/fix44/quotestatusrequest/QuoteStatusRequest.generated.go +++ b/fix44/quotestatusrequest/QuoteStatusRequest.generated.go @@ -1,6 +1,7 @@ package quotestatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -111,8 +112,8 @@ func (m QuoteStatusRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m QuoteStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m QuoteStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -126,8 +127,8 @@ func (m QuoteStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m QuoteStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m QuoteStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -146,18 +147,18 @@ func (m QuoteStatusRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m QuoteStatusRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m QuoteStatusRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m QuoteStatusRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m QuoteStatusRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m QuoteStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m QuoteStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -326,8 +327,8 @@ func (m QuoteStatusRequest) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m QuoteStatusRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m QuoteStatusRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -1351,13 +1352,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1391,8 +1392,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1406,13 +1407,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1451,8 +1452,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2112,13 +2113,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2152,8 +2153,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2167,13 +2168,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2227,38 +2228,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2933,8 +2934,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/registrationinstructions/RegistrationInstructions.generated.go b/fix44/registrationinstructions/RegistrationInstructions.generated.go index daa347b73..e3713c6b2 100644 --- a/fix44/registrationinstructions/RegistrationInstructions.generated.go +++ b/fix44/registrationinstructions/RegistrationInstructions.generated.go @@ -1,6 +1,7 @@ package registrationinstructions import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -732,8 +733,8 @@ func (m NoDistribInsts) SetDistribPaymentMethod(v int) { } //SetDistribPercentage sets DistribPercentage, Tag 512 -func (m NoDistribInsts) SetDistribPercentage(v float64) { - m.Set(field.NewDistribPercentage(v)) +func (m NoDistribInsts) SetDistribPercentage(value decimal.Decimal, scale int32) { + m.Set(field.NewDistribPercentage(value, scale)) } //SetCashDistribCurr sets CashDistribCurr, Tag 478 diff --git a/fix44/requestforpositions/RequestForPositions.generated.go b/fix44/requestforpositions/RequestForPositions.generated.go index 1ea6579f4..c6735e964 100644 --- a/fix44/requestforpositions/RequestForPositions.generated.go +++ b/fix44/requestforpositions/RequestForPositions.generated.go @@ -1,6 +1,7 @@ package requestforpositions import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -127,8 +128,8 @@ func (m RequestForPositions) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m RequestForPositions) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m RequestForPositions) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -142,8 +143,8 @@ func (m RequestForPositions) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m RequestForPositions) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m RequestForPositions) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -162,18 +163,18 @@ func (m RequestForPositions) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m RequestForPositions) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m RequestForPositions) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m RequestForPositions) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m RequestForPositions) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m RequestForPositions) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m RequestForPositions) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -1434,13 +1435,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1474,8 +1475,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1489,13 +1490,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1534,8 +1535,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2195,13 +2196,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2235,8 +2236,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2250,13 +2251,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2310,38 +2311,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3016,8 +3017,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/requestforpositionsack/RequestForPositionsAck.generated.go b/fix44/requestforpositionsack/RequestForPositionsAck.generated.go index 2b76382e9..996b68bb6 100644 --- a/fix44/requestforpositionsack/RequestForPositionsAck.generated.go +++ b/fix44/requestforpositionsack/RequestForPositionsAck.generated.go @@ -1,6 +1,7 @@ package requestforpositionsack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -121,8 +122,8 @@ func (m RequestForPositionsAck) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m RequestForPositionsAck) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m RequestForPositionsAck) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -136,8 +137,8 @@ func (m RequestForPositionsAck) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m RequestForPositionsAck) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m RequestForPositionsAck) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -156,18 +157,18 @@ func (m RequestForPositionsAck) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m RequestForPositionsAck) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m RequestForPositionsAck) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m RequestForPositionsAck) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m RequestForPositionsAck) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m RequestForPositionsAck) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m RequestForPositionsAck) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -1324,13 +1325,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1364,8 +1365,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1379,13 +1380,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1424,8 +1425,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2085,13 +2086,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2125,8 +2126,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2140,13 +2141,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2200,38 +2201,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2906,8 +2907,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/rfqrequest/RFQRequest.generated.go b/fix44/rfqrequest/RFQRequest.generated.go index 15283c277..3a08d57a6 100644 --- a/fix44/rfqrequest/RFQRequest.generated.go +++ b/fix44/rfqrequest/RFQRequest.generated.go @@ -1,6 +1,7 @@ package rfqrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -191,13 +192,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -231,8 +232,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -246,13 +247,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -336,8 +337,8 @@ func (m NoRelatedSym) SetNoLegs(f NoLegsRepeatingGroup) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoRelatedSym) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoRelatedSym) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetQuoteRequestType sets QuoteRequestType, Tag 303 @@ -979,8 +980,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -1136,13 +1137,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1176,8 +1177,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1191,13 +1192,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -1251,38 +1252,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2022,13 +2023,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2062,8 +2063,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2077,13 +2078,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2122,8 +2123,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 diff --git a/fix44/securitydefinition/SecurityDefinition.generated.go b/fix44/securitydefinition/SecurityDefinition.generated.go index dc1b32f11..45a8fdc3f 100644 --- a/fix44/securitydefinition/SecurityDefinition.generated.go +++ b/fix44/securitydefinition/SecurityDefinition.generated.go @@ -1,6 +1,7 @@ package securitydefinition import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -114,8 +115,8 @@ func (m SecurityDefinition) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityDefinition) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityDefinition) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -129,8 +130,8 @@ func (m SecurityDefinition) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityDefinition) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityDefinition) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -149,18 +150,18 @@ func (m SecurityDefinition) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityDefinition) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityDefinition) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityDefinition) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityDefinition) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityDefinition) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityDefinition) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -274,13 +275,13 @@ func (m SecurityDefinition) SetNoLegs(f NoLegsRepeatingGroup) { } //SetRoundLot sets RoundLot, Tag 561 -func (m SecurityDefinition) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m SecurityDefinition) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m SecurityDefinition) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m SecurityDefinition) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetTradingSessionSubID sets TradingSessionSubID, Tag 625 @@ -324,8 +325,8 @@ func (m SecurityDefinition) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m SecurityDefinition) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m SecurityDefinition) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -1153,13 +1154,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1193,8 +1194,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1208,13 +1209,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1253,8 +1254,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -1914,13 +1915,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1954,8 +1955,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1969,13 +1970,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2029,38 +2030,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2735,8 +2736,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/securitydefinitionrequest/SecurityDefinitionRequest.generated.go b/fix44/securitydefinitionrequest/SecurityDefinitionRequest.generated.go index 7c1054c9c..8eac74e13 100644 --- a/fix44/securitydefinitionrequest/SecurityDefinitionRequest.generated.go +++ b/fix44/securitydefinitionrequest/SecurityDefinitionRequest.generated.go @@ -1,6 +1,7 @@ package securitydefinitionrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -113,8 +114,8 @@ func (m SecurityDefinitionRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityDefinitionRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityDefinitionRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -128,8 +129,8 @@ func (m SecurityDefinitionRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityDefinitionRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityDefinitionRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -148,18 +149,18 @@ func (m SecurityDefinitionRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityDefinitionRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityDefinitionRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityDefinitionRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityDefinitionRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityDefinitionRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityDefinitionRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -313,8 +314,8 @@ func (m SecurityDefinitionRequest) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m SecurityDefinitionRequest) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m SecurityDefinitionRequest) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -1120,13 +1121,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1160,8 +1161,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1175,13 +1176,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1220,8 +1221,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -1881,13 +1882,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1921,8 +1922,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1936,13 +1937,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -1996,38 +1997,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2702,8 +2703,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/securitylist/SecurityList.generated.go b/fix44/securitylist/SecurityList.generated.go index 061e3b494..8b2eef481 100644 --- a/fix44/securitylist/SecurityList.generated.go +++ b/fix44/securitylist/SecurityList.generated.go @@ -1,6 +1,7 @@ package securitylist import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -241,13 +242,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -281,8 +282,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -296,13 +297,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -381,8 +382,8 @@ func (m NoRelatedSym) SetDeliveryForm(v int) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m NoRelatedSym) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m NoRelatedSym) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -431,8 +432,8 @@ func (m NoRelatedSym) SetDeliveryType(v int) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NoRelatedSym) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NoRelatedSym) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetNoUnderlyings sets NoUnderlyings, Tag 711 @@ -456,8 +457,8 @@ func (m NoRelatedSym) SetNoLegs(f NoLegsRepeatingGroup) { } //SetSpread sets Spread, Tag 218 -func (m NoRelatedSym) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoRelatedSym) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -476,8 +477,8 @@ func (m NoRelatedSym) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoRelatedSym) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoRelatedSym) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -501,8 +502,8 @@ func (m NoRelatedSym) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoRelatedSym) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoRelatedSym) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -516,8 +517,8 @@ func (m NoRelatedSym) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoRelatedSym) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoRelatedSym) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -526,13 +527,13 @@ func (m NoRelatedSym) SetYieldRedemptionPriceType(v int) { } //SetRoundLot sets RoundLot, Tag 561 -func (m NoRelatedSym) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m NoRelatedSym) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m NoRelatedSym) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m NoRelatedSym) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetTradingSessionID sets TradingSessionID, Tag 336 @@ -1527,8 +1528,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -1744,13 +1745,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1784,8 +1785,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1799,13 +1800,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -1859,38 +1860,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2690,13 +2691,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2730,8 +2731,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2745,13 +2746,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2790,8 +2791,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2855,8 +2856,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 diff --git a/fix44/securitylistrequest/SecurityListRequest.generated.go b/fix44/securitylistrequest/SecurityListRequest.generated.go index 99b16f259..bbdee8969 100644 --- a/fix44/securitylistrequest/SecurityListRequest.generated.go +++ b/fix44/securitylistrequest/SecurityListRequest.generated.go @@ -1,6 +1,7 @@ package securitylistrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -113,8 +114,8 @@ func (m SecurityListRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityListRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityListRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -128,8 +129,8 @@ func (m SecurityListRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityListRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityListRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -148,18 +149,18 @@ func (m SecurityListRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityListRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityListRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityListRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityListRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityListRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityListRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -313,8 +314,8 @@ func (m SecurityListRequest) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m SecurityListRequest) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m SecurityListRequest) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -343,8 +344,8 @@ func (m SecurityListRequest) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m SecurityListRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m SecurityListRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -1248,13 +1249,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1288,8 +1289,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1303,13 +1304,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1348,8 +1349,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2009,13 +2010,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2049,8 +2050,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2064,13 +2065,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2124,38 +2125,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2830,8 +2831,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/securitystatus/SecurityStatus.generated.go b/fix44/securitystatus/SecurityStatus.generated.go index 045b3d762..ae8167593 100644 --- a/fix44/securitystatus/SecurityStatus.generated.go +++ b/fix44/securitystatus/SecurityStatus.generated.go @@ -1,6 +1,7 @@ package securitystatus import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -71,8 +72,8 @@ func (m SecurityStatus) SetSecurityIDSource(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m SecurityStatus) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m SecurityStatus) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -121,8 +122,8 @@ func (m SecurityStatus) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityStatus) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityStatus) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -136,8 +137,8 @@ func (m SecurityStatus) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityStatus) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityStatus) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -156,18 +157,18 @@ func (m SecurityStatus) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityStatus) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityStatus) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityStatus) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityStatus) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityStatus) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityStatus) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -226,23 +227,23 @@ func (m SecurityStatus) SetDueToRelated(v bool) { } //SetBuyVolume sets BuyVolume, Tag 330 -func (m SecurityStatus) SetBuyVolume(v float64) { - m.Set(field.NewBuyVolume(v)) +func (m SecurityStatus) SetBuyVolume(value decimal.Decimal, scale int32) { + m.Set(field.NewBuyVolume(value, scale)) } //SetSellVolume sets SellVolume, Tag 331 -func (m SecurityStatus) SetSellVolume(v float64) { - m.Set(field.NewSellVolume(v)) +func (m SecurityStatus) SetSellVolume(value decimal.Decimal, scale int32) { + m.Set(field.NewSellVolume(value, scale)) } //SetHighPx sets HighPx, Tag 332 -func (m SecurityStatus) SetHighPx(v float64) { - m.Set(field.NewHighPx(v)) +func (m SecurityStatus) SetHighPx(value decimal.Decimal, scale int32) { + m.Set(field.NewHighPx(value, scale)) } //SetLowPx sets LowPx, Tag 333 -func (m SecurityStatus) SetLowPx(v float64) { - m.Set(field.NewLowPx(v)) +func (m SecurityStatus) SetLowPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLowPx(value, scale)) } //SetAdjustment sets Adjustment, Tag 334 @@ -366,8 +367,8 @@ func (m SecurityStatus) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m SecurityStatus) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m SecurityStatus) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -1294,13 +1295,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1334,8 +1335,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1349,13 +1350,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1394,8 +1395,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2055,13 +2056,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2095,8 +2096,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2110,13 +2111,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2170,38 +2171,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2876,8 +2877,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/securitystatusrequest/SecurityStatusRequest.generated.go b/fix44/securitystatusrequest/SecurityStatusRequest.generated.go index 0c691d753..b57ebd853 100644 --- a/fix44/securitystatusrequest/SecurityStatusRequest.generated.go +++ b/fix44/securitystatusrequest/SecurityStatusRequest.generated.go @@ -1,6 +1,7 @@ package securitystatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -108,8 +109,8 @@ func (m SecurityStatusRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -123,8 +124,8 @@ func (m SecurityStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -143,18 +144,18 @@ func (m SecurityStatusRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityStatusRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityStatusRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityStatusRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityStatusRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -288,8 +289,8 @@ func (m SecurityStatusRequest) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m SecurityStatusRequest) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m SecurityStatusRequest) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -1040,13 +1041,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1080,8 +1081,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1095,13 +1096,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1140,8 +1141,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -1801,13 +1802,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1841,8 +1842,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1856,13 +1857,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -1916,38 +1917,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2622,8 +2623,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/tradecapturereport/TradeCaptureReport.generated.go b/fix44/tradecapturereport/TradeCaptureReport.generated.go index fa712af05..ceadb09c0 100644 --- a/fix44/tradecapturereport/TradeCaptureReport.generated.go +++ b/fix44/tradecapturereport/TradeCaptureReport.generated.go @@ -1,6 +1,7 @@ package tradecapturereport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -67,8 +68,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m TradeCaptureReport) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m TradeCaptureReport) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetExecID sets ExecID, Tag 17 @@ -87,18 +88,18 @@ func (m TradeCaptureReport) SetLastMkt(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m TradeCaptureReport) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m TradeCaptureReport) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastQty sets LastQty, Tag 32 -func (m TradeCaptureReport) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m TradeCaptureReport) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetOrderQty sets OrderQty, Tag 38 -func (m TradeCaptureReport) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m TradeCaptureReport) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdStatus sets OrdStatus, Tag 39 @@ -157,8 +158,8 @@ func (m TradeCaptureReport) SetExecType(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m TradeCaptureReport) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m TradeCaptureReport) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -167,13 +168,13 @@ func (m TradeCaptureReport) SetSecurityType(v string) { } //SetLastSpotRate sets LastSpotRate, Tag 194 -func (m TradeCaptureReport) SetLastSpotRate(v float64) { - m.Set(field.NewLastSpotRate(v)) +func (m TradeCaptureReport) SetLastSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSpotRate(value, scale)) } //SetLastForwardPoints sets LastForwardPoints, Tag 195 -func (m TradeCaptureReport) SetLastForwardPoints(v float64) { - m.Set(field.NewLastForwardPoints(v)) +func (m TradeCaptureReport) SetLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastForwardPoints(value, scale)) } //SetMaturityMonthYear sets MaturityMonthYear, Tag 200 @@ -182,8 +183,8 @@ func (m TradeCaptureReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m TradeCaptureReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m TradeCaptureReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -197,8 +198,8 @@ func (m TradeCaptureReport) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m TradeCaptureReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m TradeCaptureReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -217,8 +218,8 @@ func (m TradeCaptureReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m TradeCaptureReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m TradeCaptureReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -237,18 +238,18 @@ func (m TradeCaptureReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m TradeCaptureReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m TradeCaptureReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m TradeCaptureReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m TradeCaptureReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m TradeCaptureReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m TradeCaptureReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetYieldType sets YieldType, Tag 235 @@ -257,8 +258,8 @@ func (m TradeCaptureReport) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m TradeCaptureReport) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m TradeCaptureReport) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -342,8 +343,8 @@ func (m TradeCaptureReport) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m TradeCaptureReport) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m TradeCaptureReport) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -367,8 +368,8 @@ func (m TradeCaptureReport) SetTradeReportTransType(v int) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m TradeCaptureReport) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m TradeCaptureReport) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryExecID sets SecondaryExecID, Tag 527 @@ -427,8 +428,8 @@ func (m TradeCaptureReport) SetMatchType(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m TradeCaptureReport) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m TradeCaptureReport) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -442,8 +443,8 @@ func (m TradeCaptureReport) SetContractSettlMonth(v string) { } //SetLastParPx sets LastParPx, Tag 669 -func (m TradeCaptureReport) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m TradeCaptureReport) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetPool sets Pool, Tag 691 @@ -457,8 +458,8 @@ func (m TradeCaptureReport) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m TradeCaptureReport) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m TradeCaptureReport) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -612,8 +613,8 @@ func (m TradeCaptureReport) SetSecondaryTradeReportRefID(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m TradeCaptureReport) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m TradeCaptureReport) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetLastRptRequested sets LastRptRequested, Tag 912 @@ -2188,8 +2189,8 @@ func (m NoSides) SetTimeBracket(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoSides) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoSides) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -2208,8 +2209,8 @@ func (m NoSides) SetFundRenewWaiv(v string) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m NoSides) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m NoSides) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetNumDaysInterest sets NumDaysInterest, Tag 157 @@ -2223,53 +2224,53 @@ func (m NoSides) SetExDate(v string) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m NoSides) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m NoSides) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m NoSides) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m NoSides) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m NoSides) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m NoSides) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m NoSides) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m NoSides) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m NoSides) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m NoSides) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m NoSides) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m NoSides) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m NoSides) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m NoSides) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m NoSides) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m NoSides) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetNetMoney sets NetMoney, Tag 118 -func (m NoSides) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m NoSides) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoSides) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoSides) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -2278,8 +2279,8 @@ func (m NoSides) SetSettlCurrency(v string) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoSides) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoSides) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -3296,8 +3297,8 @@ func (m NoContAmts) SetContAmtType(v int) { } //SetContAmtValue sets ContAmtValue, Tag 520 -func (m NoContAmts) SetContAmtValue(v float64) { - m.Set(field.NewContAmtValue(v)) +func (m NoContAmts) SetContAmtValue(value decimal.Decimal, scale int32) { + m.Set(field.NewContAmtValue(value, scale)) } //SetContAmtCurr sets ContAmtCurr, Tag 521 @@ -3427,8 +3428,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -3544,8 +3545,8 @@ func (m NoAllocs) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -3895,13 +3896,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3935,8 +3936,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3950,13 +3951,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3995,8 +3996,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4030,8 +4031,8 @@ func (m NoLegs) SetLegInterestAccrualDate(v string) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -4065,8 +4066,8 @@ func (m NoLegs) SetLegRefID(v string) { } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegSettlType sets LegSettlType, Tag 587 @@ -4080,8 +4081,8 @@ func (m NoLegs) SetLegSettlDate(v string) { } //SetLegLastPx sets LegLastPx, Tag 637 -func (m NoLegs) SetLegLastPx(v float64) { - m.Set(field.NewLegLastPx(v)) +func (m NoLegs) SetLegLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastPx(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -5047,13 +5048,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -5087,8 +5088,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -5102,13 +5103,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -5162,38 +5163,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -5863,8 +5864,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //GetPosAmtType gets PosAmtType, Tag 707 @@ -6004,8 +6005,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/tradecapturereportack/TradeCaptureReportAck.generated.go b/fix44/tradecapturereportack/TradeCaptureReportAck.generated.go index 41527ed4e..9e4dbc214 100644 --- a/fix44/tradecapturereportack/TradeCaptureReportAck.generated.go +++ b/fix44/tradecapturereportack/TradeCaptureReportAck.generated.go @@ -1,6 +1,7 @@ package tradecapturereportack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -138,8 +139,8 @@ func (m TradeCaptureReportAck) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m TradeCaptureReportAck) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m TradeCaptureReportAck) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -153,8 +154,8 @@ func (m TradeCaptureReportAck) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m TradeCaptureReportAck) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m TradeCaptureReportAck) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -173,18 +174,18 @@ func (m TradeCaptureReportAck) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m TradeCaptureReportAck) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m TradeCaptureReportAck) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m TradeCaptureReportAck) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m TradeCaptureReportAck) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m TradeCaptureReportAck) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m TradeCaptureReportAck) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -1346,8 +1347,8 @@ func (m NoAllocs) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -1734,13 +1735,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1774,8 +1775,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1789,13 +1790,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1834,8 +1835,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -1869,8 +1870,8 @@ func (m NoLegs) SetLegInterestAccrualDate(v string) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -1904,8 +1905,8 @@ func (m NoLegs) SetLegRefID(v string) { } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegSettlType sets LegSettlType, Tag 587 @@ -1919,8 +1920,8 @@ func (m NoLegs) SetLegSettlDate(v string) { } //SetLegLastPx sets LegLastPx, Tag 637 -func (m NoLegs) SetLegLastPx(v float64) { - m.Set(field.NewLegLastPx(v)) +func (m NoLegs) SetLegLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastPx(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -2897,8 +2898,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/tradecapturereportrequest/TradeCaptureReportRequest.generated.go b/fix44/tradecapturereportrequest/TradeCaptureReportRequest.generated.go index e98a564e7..ec30cccf2 100644 --- a/fix44/tradecapturereportrequest/TradeCaptureReportRequest.generated.go +++ b/fix44/tradecapturereportrequest/TradeCaptureReportRequest.generated.go @@ -1,6 +1,7 @@ package tradecapturereportrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -133,8 +134,8 @@ func (m TradeCaptureReportRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m TradeCaptureReportRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m TradeCaptureReportRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -148,8 +149,8 @@ func (m TradeCaptureReportRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m TradeCaptureReportRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m TradeCaptureReportRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -168,18 +169,18 @@ func (m TradeCaptureReportRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m TradeCaptureReportRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m TradeCaptureReportRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m TradeCaptureReportRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m TradeCaptureReportRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m TradeCaptureReportRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m TradeCaptureReportRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -413,8 +414,8 @@ func (m TradeCaptureReportRequest) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m TradeCaptureReportRequest) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m TradeCaptureReportRequest) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -448,8 +449,8 @@ func (m TradeCaptureReportRequest) SetTrdMatchID(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m TradeCaptureReportRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m TradeCaptureReportRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -1755,13 +1756,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1795,8 +1796,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1810,13 +1811,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1855,8 +1856,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2576,13 +2577,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2616,8 +2617,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2631,13 +2632,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2691,38 +2692,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3397,8 +3398,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/tradecapturereportrequestack/TradeCaptureReportRequestAck.generated.go b/fix44/tradecapturereportrequestack/TradeCaptureReportRequestAck.generated.go index f31fa11d9..f413914ad 100644 --- a/fix44/tradecapturereportrequestack/TradeCaptureReportRequestAck.generated.go +++ b/fix44/tradecapturereportrequestack/TradeCaptureReportRequestAck.generated.go @@ -1,6 +1,7 @@ package tradecapturereportrequestack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -110,8 +111,8 @@ func (m TradeCaptureReportRequestAck) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m TradeCaptureReportRequestAck) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m TradeCaptureReportRequestAck) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -125,8 +126,8 @@ func (m TradeCaptureReportRequestAck) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m TradeCaptureReportRequestAck) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m TradeCaptureReportRequestAck) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -145,18 +146,18 @@ func (m TradeCaptureReportRequestAck) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m TradeCaptureReportRequestAck) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m TradeCaptureReportRequestAck) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m TradeCaptureReportRequestAck) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m TradeCaptureReportRequestAck) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m TradeCaptureReportRequestAck) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m TradeCaptureReportRequestAck) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -1105,13 +1106,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1145,8 +1146,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1160,13 +1161,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1205,8 +1206,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -1866,13 +1867,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1906,8 +1907,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1921,13 +1922,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -1981,38 +1982,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2687,8 +2688,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix44/tradingsessionstatus/TradingSessionStatus.generated.go b/fix44/tradingsessionstatus/TradingSessionStatus.generated.go index e8e64b5cc..986f38dc6 100644 --- a/fix44/tradingsessionstatus/TradingSessionStatus.generated.go +++ b/fix44/tradingsessionstatus/TradingSessionStatus.generated.go @@ -1,6 +1,7 @@ package tradingsessionstatus import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -133,8 +134,8 @@ func (m TradingSessionStatus) SetEncodedText(v string) { } //SetTotalVolumeTraded sets TotalVolumeTraded, Tag 387 -func (m TradingSessionStatus) SetTotalVolumeTraded(v float64) { - m.Set(field.NewTotalVolumeTraded(v)) +func (m TradingSessionStatus) SetTotalVolumeTraded(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalVolumeTraded(value, scale)) } //SetTradSesStatusRejReason sets TradSesStatusRejReason, Tag 567 diff --git a/fix50/adjustedpositionreport/AdjustedPositionReport.generated.go b/fix50/adjustedpositionreport/AdjustedPositionReport.generated.go index f1fd1b8c5..3d668ef6b 100644 --- a/fix50/adjustedpositionreport/AdjustedPositionReport.generated.go +++ b/fix50/adjustedpositionreport/AdjustedPositionReport.generated.go @@ -1,6 +1,7 @@ package adjustedpositionreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -103,8 +104,8 @@ func (m AdjustedPositionReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m AdjustedPositionReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m AdjustedPositionReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -118,8 +119,8 @@ func (m AdjustedPositionReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m AdjustedPositionReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m AdjustedPositionReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -138,18 +139,18 @@ func (m AdjustedPositionReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m AdjustedPositionReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m AdjustedPositionReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m AdjustedPositionReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m AdjustedPositionReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m AdjustedPositionReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m AdjustedPositionReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -273,13 +274,13 @@ func (m AdjustedPositionReport) SetPosReqType(v int) { } //SetSettlPrice sets SettlPrice, Tag 730 -func (m AdjustedPositionReport) SetSettlPrice(v float64) { - m.Set(field.NewSettlPrice(v)) +func (m AdjustedPositionReport) SetSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlPrice(value, scale)) } //SetPriorSettlPrice sets PriorSettlPrice, Tag 734 -func (m AdjustedPositionReport) SetPriorSettlPrice(v float64) { - m.Set(field.NewPriorSettlPrice(v)) +func (m AdjustedPositionReport) SetPriorSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPriorSettlPrice(value, scale)) } //SetSecuritySubType sets SecuritySubType, Tag 762 @@ -328,18 +329,18 @@ func (m AdjustedPositionReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m AdjustedPositionReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m AdjustedPositionReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m AdjustedPositionReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m AdjustedPositionReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m AdjustedPositionReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m AdjustedPositionReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1299,13 +1300,13 @@ func (m NoPositions) SetPosType(v string) { } //SetLongQty sets LongQty, Tag 704 -func (m NoPositions) SetLongQty(v float64) { - m.Set(field.NewLongQty(v)) +func (m NoPositions) SetLongQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLongQty(value, scale)) } //SetShortQty sets ShortQty, Tag 705 -func (m NoPositions) SetShortQty(v float64) { - m.Set(field.NewShortQty(v)) +func (m NoPositions) SetShortQty(value decimal.Decimal, scale int32) { + m.Set(field.NewShortQty(value, scale)) } //SetPosQtyStatus sets PosQtyStatus, Tag 706 @@ -1582,8 +1583,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/advertisement/Advertisement.generated.go b/fix50/advertisement/Advertisement.generated.go index d9d7143a3..91028b819 100644 --- a/fix50/advertisement/Advertisement.generated.go +++ b/fix50/advertisement/Advertisement.generated.go @@ -1,6 +1,7 @@ package advertisement import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -100,8 +101,8 @@ func (m Advertisement) SetLastMkt(v string) { } //SetPrice sets Price, Tag 44 -func (m Advertisement) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m Advertisement) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -110,8 +111,8 @@ func (m Advertisement) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m Advertisement) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m Advertisement) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSymbol sets Symbol, Tag 55 @@ -165,8 +166,8 @@ func (m Advertisement) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m Advertisement) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m Advertisement) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -180,8 +181,8 @@ func (m Advertisement) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m Advertisement) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m Advertisement) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -200,18 +201,18 @@ func (m Advertisement) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m Advertisement) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m Advertisement) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m Advertisement) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m Advertisement) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m Advertisement) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m Advertisement) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -380,18 +381,18 @@ func (m Advertisement) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m Advertisement) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m Advertisement) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m Advertisement) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m Advertisement) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m Advertisement) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m Advertisement) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1378,13 +1379,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1418,8 +1419,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1433,13 +1434,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1478,8 +1479,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2171,13 +2172,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2211,8 +2212,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2226,13 +2227,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2286,38 +2287,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2326,8 +2327,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2336,8 +2337,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2356,8 +2357,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2371,13 +2372,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3338,8 +3339,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/allocationinstruction/AllocationInstruction.generated.go b/fix50/allocationinstruction/AllocationInstruction.generated.go index 03cd8cece..d1872f09d 100644 --- a/fix50/allocationinstruction/AllocationInstruction.generated.go +++ b/fix50/allocationinstruction/AllocationInstruction.generated.go @@ -1,6 +1,7 @@ package allocationinstruction import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -67,8 +68,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m AllocationInstruction) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m AllocationInstruction) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -92,8 +93,8 @@ func (m AllocationInstruction) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m AllocationInstruction) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m AllocationInstruction) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -182,8 +183,8 @@ func (m AllocationInstruction) SetSecurityDesc(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m AllocationInstruction) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m AllocationInstruction) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetNoExecs sets NoExecs, Tag 124 @@ -197,13 +198,13 @@ func (m AllocationInstruction) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m AllocationInstruction) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m AllocationInstruction) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m AllocationInstruction) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m AllocationInstruction) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -227,8 +228,8 @@ func (m AllocationInstruction) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m AllocationInstruction) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m AllocationInstruction) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -242,8 +243,8 @@ func (m AllocationInstruction) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m AllocationInstruction) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m AllocationInstruction) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -262,8 +263,8 @@ func (m AllocationInstruction) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m AllocationInstruction) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m AllocationInstruction) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -282,13 +283,13 @@ func (m AllocationInstruction) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m AllocationInstruction) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m AllocationInstruction) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m AllocationInstruction) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m AllocationInstruction) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -297,8 +298,8 @@ func (m AllocationInstruction) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m AllocationInstruction) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m AllocationInstruction) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -312,18 +313,18 @@ func (m AllocationInstruction) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m AllocationInstruction) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m AllocationInstruction) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m AllocationInstruction) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m AllocationInstruction) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m AllocationInstruction) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m AllocationInstruction) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -377,8 +378,8 @@ func (m AllocationInstruction) SetEncodedText(v string) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m AllocationInstruction) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m AllocationInstruction) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -432,8 +433,8 @@ func (m AllocationInstruction) SetLocaleOfIssue(v string) { } //SetTotalAccruedInterestAmt sets TotalAccruedInterestAmt, Tag 540 -func (m AllocationInstruction) SetTotalAccruedInterestAmt(v float64) { - m.Set(field.NewTotalAccruedInterestAmt(v)) +func (m AllocationInstruction) SetTotalAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalAccruedInterestAmt(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -487,8 +488,8 @@ func (m AllocationInstruction) SetLegalConfirm(v bool) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m AllocationInstruction) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m AllocationInstruction) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -517,8 +518,8 @@ func (m AllocationInstruction) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m AllocationInstruction) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m AllocationInstruction) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -552,8 +553,8 @@ func (m AllocationInstruction) SetClearingBusinessDate(v string) { } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m AllocationInstruction) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m AllocationInstruction) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetNoPosAmt sets NoPosAmt, Tag 753 @@ -627,8 +628,8 @@ func (m AllocationInstruction) SetAllocNoOrdersType(v int) { } //SetAvgParPx sets AvgParPx, Tag 860 -func (m AllocationInstruction) SetAvgParPx(v float64) { - m.Set(field.NewAvgParPx(v)) +func (m AllocationInstruction) SetAvgParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgParPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -637,8 +638,8 @@ func (m AllocationInstruction) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m AllocationInstruction) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m AllocationInstruction) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -677,8 +678,8 @@ func (m AllocationInstruction) SetLastFragment(v bool) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m AllocationInstruction) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m AllocationInstruction) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -717,18 +718,18 @@ func (m AllocationInstruction) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m AllocationInstruction) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m AllocationInstruction) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m AllocationInstruction) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m AllocationInstruction) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m AllocationInstruction) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m AllocationInstruction) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -747,18 +748,18 @@ func (m AllocationInstruction) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m AllocationInstruction) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m AllocationInstruction) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m AllocationInstruction) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m AllocationInstruction) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m AllocationInstruction) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m AllocationInstruction) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -772,8 +773,8 @@ func (m AllocationInstruction) SetNTPositionLimit(v int) { } //SetRndPx sets RndPx, Tag 991 -func (m AllocationInstruction) SetRndPx(v float64) { - m.Set(field.NewRndPx(v)) +func (m AllocationInstruction) SetRndPx(value decimal.Decimal, scale int32) { + m.Set(field.NewRndPx(value, scale)) } //SetUnitOfMeasure sets UnitOfMeasure, Tag 996 @@ -2482,18 +2483,18 @@ func (m NoOrders) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrderAvgPx sets OrderAvgPx, Tag 799 -func (m NoOrders) SetOrderAvgPx(v float64) { - m.Set(field.NewOrderAvgPx(v)) +func (m NoOrders) SetOrderAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderAvgPx(value, scale)) } //SetOrderBookingQty sets OrderBookingQty, Tag 800 -func (m NoOrders) SetOrderBookingQty(v float64) { - m.Set(field.NewOrderBookingQty(v)) +func (m NoOrders) SetOrderBookingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderBookingQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 @@ -2793,13 +2794,13 @@ func (m NoAllocs) SetMatchStatus(v string) { } //SetAllocPrice sets AllocPrice, Tag 366 -func (m NoAllocs) SetAllocPrice(v float64) { - m.Set(field.NewAllocPrice(v)) +func (m NoAllocs) SetAllocPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocPrice(value, scale)) } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetIndividualAllocID sets IndividualAllocID, Tag 467 @@ -2843,8 +2844,8 @@ func (m NoAllocs) SetEncodedAllocText(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoAllocs) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoAllocs) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -2863,23 +2864,23 @@ func (m NoAllocs) SetFundRenewWaiv(v string) { } //SetAllocAvgPx sets AllocAvgPx, Tag 153 -func (m NoAllocs) SetAllocAvgPx(v float64) { - m.Set(field.NewAllocAvgPx(v)) +func (m NoAllocs) SetAllocAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAvgPx(value, scale)) } //SetAllocNetMoney sets AllocNetMoney, Tag 154 -func (m NoAllocs) SetAllocNetMoney(v float64) { - m.Set(field.NewAllocNetMoney(v)) +func (m NoAllocs) SetAllocNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoAllocs) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoAllocs) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetAllocSettlCurrAmt sets AllocSettlCurrAmt, Tag 737 -func (m NoAllocs) SetAllocSettlCurrAmt(v float64) { - m.Set(field.NewAllocSettlCurrAmt(v)) +func (m NoAllocs) SetAllocSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -2893,8 +2894,8 @@ func (m NoAllocs) SetAllocSettlCurrency(v string) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoAllocs) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoAllocs) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -2903,13 +2904,13 @@ func (m NoAllocs) SetSettlCurrFxRateCalc(v string) { } //SetAllocAccruedInterestAmt sets AllocAccruedInterestAmt, Tag 742 -func (m NoAllocs) SetAllocAccruedInterestAmt(v float64) { - m.Set(field.NewAllocAccruedInterestAmt(v)) +func (m NoAllocs) SetAllocAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAccruedInterestAmt(value, scale)) } //SetAllocInterestAtMaturity sets AllocInterestAtMaturity, Tag 741 -func (m NoAllocs) SetAllocInterestAtMaturity(v float64) { - m.Set(field.NewAllocInterestAtMaturity(v)) +func (m NoAllocs) SetAllocInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocInterestAtMaturity(value, scale)) } //SetNoMiscFees sets NoMiscFees, Tag 136 @@ -3596,8 +3597,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -3985,8 +3986,8 @@ type NoExecs struct { } //SetLastQty sets LastQty, Tag 32 -func (m NoExecs) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m NoExecs) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetExecID sets ExecID, Tag 17 @@ -4000,13 +4001,13 @@ func (m NoExecs) SetSecondaryExecID(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m NoExecs) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m NoExecs) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastParPx sets LastParPx, Tag 669 -func (m NoExecs) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m NoExecs) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetLastCapacity sets LastCapacity, Tag 29 @@ -4489,13 +4490,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4529,8 +4530,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4544,13 +4545,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4589,8 +4590,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -5282,13 +5283,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -5322,8 +5323,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -5337,13 +5338,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -5397,38 +5398,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -5437,8 +5438,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -5447,8 +5448,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -5467,8 +5468,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -5482,13 +5483,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -6444,8 +6445,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -6525,8 +6526,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/allocationinstructionack/AllocationInstructionAck.generated.go b/fix50/allocationinstructionack/AllocationInstructionAck.generated.go index 4865ffe0d..434744436 100644 --- a/fix50/allocationinstructionack/AllocationInstructionAck.generated.go +++ b/fix50/allocationinstructionack/AllocationInstructionAck.generated.go @@ -1,6 +1,7 @@ package allocationinstructionack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -336,8 +337,8 @@ func (m NoAllocs) SetAllocAcctIDSource(v int) { } //SetAllocPrice sets AllocPrice, Tag 366 -func (m NoAllocs) SetAllocPrice(v float64) { - m.Set(field.NewAllocPrice(v)) +func (m NoAllocs) SetAllocPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocPrice(value, scale)) } //SetIndividualAllocID sets IndividualAllocID, Tag 467 @@ -381,8 +382,8 @@ func (m NoAllocs) SetIndividualAllocType(v int) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetNoNestedPartyIDs sets NoNestedPartyIDs, Tag 539 diff --git a/fix50/allocationinstructionalert/AllocationInstructionAlert.generated.go b/fix50/allocationinstructionalert/AllocationInstructionAlert.generated.go index 4eb8ced8d..0e4339f78 100644 --- a/fix50/allocationinstructionalert/AllocationInstructionAlert.generated.go +++ b/fix50/allocationinstructionalert/AllocationInstructionAlert.generated.go @@ -1,6 +1,7 @@ package allocationinstructionalert import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -67,8 +68,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m AllocationInstructionAlert) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m AllocationInstructionAlert) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -92,8 +93,8 @@ func (m AllocationInstructionAlert) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m AllocationInstructionAlert) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m AllocationInstructionAlert) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -182,8 +183,8 @@ func (m AllocationInstructionAlert) SetSecurityDesc(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m AllocationInstructionAlert) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m AllocationInstructionAlert) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetNoExecs sets NoExecs, Tag 124 @@ -197,13 +198,13 @@ func (m AllocationInstructionAlert) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m AllocationInstructionAlert) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m AllocationInstructionAlert) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m AllocationInstructionAlert) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m AllocationInstructionAlert) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -227,8 +228,8 @@ func (m AllocationInstructionAlert) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m AllocationInstructionAlert) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m AllocationInstructionAlert) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -242,8 +243,8 @@ func (m AllocationInstructionAlert) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m AllocationInstructionAlert) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m AllocationInstructionAlert) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -262,8 +263,8 @@ func (m AllocationInstructionAlert) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m AllocationInstructionAlert) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m AllocationInstructionAlert) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -282,13 +283,13 @@ func (m AllocationInstructionAlert) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m AllocationInstructionAlert) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m AllocationInstructionAlert) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m AllocationInstructionAlert) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m AllocationInstructionAlert) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -297,8 +298,8 @@ func (m AllocationInstructionAlert) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m AllocationInstructionAlert) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m AllocationInstructionAlert) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -312,18 +313,18 @@ func (m AllocationInstructionAlert) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m AllocationInstructionAlert) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m AllocationInstructionAlert) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m AllocationInstructionAlert) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m AllocationInstructionAlert) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m AllocationInstructionAlert) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m AllocationInstructionAlert) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -377,8 +378,8 @@ func (m AllocationInstructionAlert) SetEncodedText(v string) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m AllocationInstructionAlert) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m AllocationInstructionAlert) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -432,8 +433,8 @@ func (m AllocationInstructionAlert) SetLocaleOfIssue(v string) { } //SetTotalAccruedInterestAmt sets TotalAccruedInterestAmt, Tag 540 -func (m AllocationInstructionAlert) SetTotalAccruedInterestAmt(v float64) { - m.Set(field.NewTotalAccruedInterestAmt(v)) +func (m AllocationInstructionAlert) SetTotalAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalAccruedInterestAmt(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -487,8 +488,8 @@ func (m AllocationInstructionAlert) SetLegalConfirm(v bool) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m AllocationInstructionAlert) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m AllocationInstructionAlert) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -517,8 +518,8 @@ func (m AllocationInstructionAlert) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m AllocationInstructionAlert) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m AllocationInstructionAlert) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -552,8 +553,8 @@ func (m AllocationInstructionAlert) SetClearingBusinessDate(v string) { } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m AllocationInstructionAlert) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m AllocationInstructionAlert) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetNoPosAmt sets NoPosAmt, Tag 753 @@ -627,8 +628,8 @@ func (m AllocationInstructionAlert) SetAllocNoOrdersType(v int) { } //SetAvgParPx sets AvgParPx, Tag 860 -func (m AllocationInstructionAlert) SetAvgParPx(v float64) { - m.Set(field.NewAvgParPx(v)) +func (m AllocationInstructionAlert) SetAvgParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgParPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -637,8 +638,8 @@ func (m AllocationInstructionAlert) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m AllocationInstructionAlert) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m AllocationInstructionAlert) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -677,8 +678,8 @@ func (m AllocationInstructionAlert) SetLastFragment(v bool) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m AllocationInstructionAlert) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m AllocationInstructionAlert) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -717,18 +718,18 @@ func (m AllocationInstructionAlert) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m AllocationInstructionAlert) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m AllocationInstructionAlert) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m AllocationInstructionAlert) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m AllocationInstructionAlert) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m AllocationInstructionAlert) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m AllocationInstructionAlert) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -747,18 +748,18 @@ func (m AllocationInstructionAlert) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m AllocationInstructionAlert) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m AllocationInstructionAlert) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m AllocationInstructionAlert) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m AllocationInstructionAlert) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m AllocationInstructionAlert) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m AllocationInstructionAlert) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -772,8 +773,8 @@ func (m AllocationInstructionAlert) SetNTPositionLimit(v int) { } //SetRndPx sets RndPx, Tag 991 -func (m AllocationInstructionAlert) SetRndPx(v float64) { - m.Set(field.NewRndPx(v)) +func (m AllocationInstructionAlert) SetRndPx(value decimal.Decimal, scale int32) { + m.Set(field.NewRndPx(value, scale)) } //SetUnitOfMeasure sets UnitOfMeasure, Tag 996 @@ -2482,18 +2483,18 @@ func (m NoOrders) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrderAvgPx sets OrderAvgPx, Tag 799 -func (m NoOrders) SetOrderAvgPx(v float64) { - m.Set(field.NewOrderAvgPx(v)) +func (m NoOrders) SetOrderAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderAvgPx(value, scale)) } //SetOrderBookingQty sets OrderBookingQty, Tag 800 -func (m NoOrders) SetOrderBookingQty(v float64) { - m.Set(field.NewOrderBookingQty(v)) +func (m NoOrders) SetOrderBookingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderBookingQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 @@ -2793,13 +2794,13 @@ func (m NoAllocs) SetMatchStatus(v string) { } //SetAllocPrice sets AllocPrice, Tag 366 -func (m NoAllocs) SetAllocPrice(v float64) { - m.Set(field.NewAllocPrice(v)) +func (m NoAllocs) SetAllocPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocPrice(value, scale)) } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetIndividualAllocID sets IndividualAllocID, Tag 467 @@ -2843,8 +2844,8 @@ func (m NoAllocs) SetEncodedAllocText(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoAllocs) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoAllocs) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -2863,23 +2864,23 @@ func (m NoAllocs) SetFundRenewWaiv(v string) { } //SetAllocAvgPx sets AllocAvgPx, Tag 153 -func (m NoAllocs) SetAllocAvgPx(v float64) { - m.Set(field.NewAllocAvgPx(v)) +func (m NoAllocs) SetAllocAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAvgPx(value, scale)) } //SetAllocNetMoney sets AllocNetMoney, Tag 154 -func (m NoAllocs) SetAllocNetMoney(v float64) { - m.Set(field.NewAllocNetMoney(v)) +func (m NoAllocs) SetAllocNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoAllocs) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoAllocs) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetAllocSettlCurrAmt sets AllocSettlCurrAmt, Tag 737 -func (m NoAllocs) SetAllocSettlCurrAmt(v float64) { - m.Set(field.NewAllocSettlCurrAmt(v)) +func (m NoAllocs) SetAllocSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -2893,8 +2894,8 @@ func (m NoAllocs) SetAllocSettlCurrency(v string) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoAllocs) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoAllocs) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -2903,13 +2904,13 @@ func (m NoAllocs) SetSettlCurrFxRateCalc(v string) { } //SetAllocAccruedInterestAmt sets AllocAccruedInterestAmt, Tag 742 -func (m NoAllocs) SetAllocAccruedInterestAmt(v float64) { - m.Set(field.NewAllocAccruedInterestAmt(v)) +func (m NoAllocs) SetAllocAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAccruedInterestAmt(value, scale)) } //SetAllocInterestAtMaturity sets AllocInterestAtMaturity, Tag 741 -func (m NoAllocs) SetAllocInterestAtMaturity(v float64) { - m.Set(field.NewAllocInterestAtMaturity(v)) +func (m NoAllocs) SetAllocInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocInterestAtMaturity(value, scale)) } //SetNoMiscFees sets NoMiscFees, Tag 136 @@ -3596,8 +3597,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -3985,8 +3986,8 @@ type NoExecs struct { } //SetLastQty sets LastQty, Tag 32 -func (m NoExecs) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m NoExecs) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetExecID sets ExecID, Tag 17 @@ -4000,13 +4001,13 @@ func (m NoExecs) SetSecondaryExecID(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m NoExecs) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m NoExecs) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastParPx sets LastParPx, Tag 669 -func (m NoExecs) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m NoExecs) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetLastCapacity sets LastCapacity, Tag 29 @@ -4489,13 +4490,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4529,8 +4530,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4544,13 +4545,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4589,8 +4590,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -5282,13 +5283,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -5322,8 +5323,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -5337,13 +5338,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -5397,38 +5398,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -5437,8 +5438,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -5447,8 +5448,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -5467,8 +5468,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -5482,13 +5483,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -6444,8 +6445,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -6525,8 +6526,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/allocationreport/AllocationReport.generated.go b/fix50/allocationreport/AllocationReport.generated.go index 465757d52..0a70d1e9c 100644 --- a/fix50/allocationreport/AllocationReport.generated.go +++ b/fix50/allocationreport/AllocationReport.generated.go @@ -1,6 +1,7 @@ package allocationreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -69,8 +70,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m AllocationReport) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m AllocationReport) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -94,8 +95,8 @@ func (m AllocationReport) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m AllocationReport) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m AllocationReport) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -194,8 +195,8 @@ func (m AllocationReport) SetSecurityDesc(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m AllocationReport) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m AllocationReport) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetNoExecs sets NoExecs, Tag 124 @@ -209,13 +210,13 @@ func (m AllocationReport) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m AllocationReport) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m AllocationReport) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m AllocationReport) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m AllocationReport) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -239,8 +240,8 @@ func (m AllocationReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m AllocationReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m AllocationReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -254,8 +255,8 @@ func (m AllocationReport) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m AllocationReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m AllocationReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -274,8 +275,8 @@ func (m AllocationReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m AllocationReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m AllocationReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -294,13 +295,13 @@ func (m AllocationReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m AllocationReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m AllocationReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m AllocationReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m AllocationReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -309,8 +310,8 @@ func (m AllocationReport) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m AllocationReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m AllocationReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -324,18 +325,18 @@ func (m AllocationReport) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m AllocationReport) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m AllocationReport) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m AllocationReport) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m AllocationReport) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m AllocationReport) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m AllocationReport) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -389,8 +390,8 @@ func (m AllocationReport) SetEncodedText(v string) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m AllocationReport) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m AllocationReport) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -444,8 +445,8 @@ func (m AllocationReport) SetLocaleOfIssue(v string) { } //SetTotalAccruedInterestAmt sets TotalAccruedInterestAmt, Tag 540 -func (m AllocationReport) SetTotalAccruedInterestAmt(v float64) { - m.Set(field.NewTotalAccruedInterestAmt(v)) +func (m AllocationReport) SetTotalAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalAccruedInterestAmt(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -499,8 +500,8 @@ func (m AllocationReport) SetLegalConfirm(v bool) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m AllocationReport) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m AllocationReport) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -529,8 +530,8 @@ func (m AllocationReport) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m AllocationReport) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m AllocationReport) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -564,8 +565,8 @@ func (m AllocationReport) SetClearingBusinessDate(v string) { } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m AllocationReport) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m AllocationReport) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetNoPosAmt sets NoPosAmt, Tag 753 @@ -654,8 +655,8 @@ func (m AllocationReport) SetAllocNoOrdersType(v int) { } //SetAvgParPx sets AvgParPx, Tag 860 -func (m AllocationReport) SetAvgParPx(v float64) { - m.Set(field.NewAvgParPx(v)) +func (m AllocationReport) SetAvgParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgParPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -664,8 +665,8 @@ func (m AllocationReport) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m AllocationReport) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m AllocationReport) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -704,8 +705,8 @@ func (m AllocationReport) SetLastFragment(v bool) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m AllocationReport) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m AllocationReport) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -744,18 +745,18 @@ func (m AllocationReport) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m AllocationReport) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m AllocationReport) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m AllocationReport) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m AllocationReport) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m AllocationReport) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m AllocationReport) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -774,18 +775,18 @@ func (m AllocationReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m AllocationReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m AllocationReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m AllocationReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m AllocationReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m AllocationReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m AllocationReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -799,8 +800,8 @@ func (m AllocationReport) SetNTPositionLimit(v int) { } //SetRndPx sets RndPx, Tag 991 -func (m AllocationReport) SetRndPx(v float64) { - m.Set(field.NewRndPx(v)) +func (m AllocationReport) SetRndPx(value decimal.Decimal, scale int32) { + m.Set(field.NewRndPx(value, scale)) } //SetUnitOfMeasure sets UnitOfMeasure, Tag 996 @@ -2564,18 +2565,18 @@ func (m NoOrders) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrderAvgPx sets OrderAvgPx, Tag 799 -func (m NoOrders) SetOrderAvgPx(v float64) { - m.Set(field.NewOrderAvgPx(v)) +func (m NoOrders) SetOrderAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderAvgPx(value, scale)) } //SetOrderBookingQty sets OrderBookingQty, Tag 800 -func (m NoOrders) SetOrderBookingQty(v float64) { - m.Set(field.NewOrderBookingQty(v)) +func (m NoOrders) SetOrderBookingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderBookingQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 @@ -2875,13 +2876,13 @@ func (m NoAllocs) SetMatchStatus(v string) { } //SetAllocPrice sets AllocPrice, Tag 366 -func (m NoAllocs) SetAllocPrice(v float64) { - m.Set(field.NewAllocPrice(v)) +func (m NoAllocs) SetAllocPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocPrice(value, scale)) } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetIndividualAllocID sets IndividualAllocID, Tag 467 @@ -2925,8 +2926,8 @@ func (m NoAllocs) SetEncodedAllocText(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoAllocs) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoAllocs) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -2945,23 +2946,23 @@ func (m NoAllocs) SetFundRenewWaiv(v string) { } //SetAllocAvgPx sets AllocAvgPx, Tag 153 -func (m NoAllocs) SetAllocAvgPx(v float64) { - m.Set(field.NewAllocAvgPx(v)) +func (m NoAllocs) SetAllocAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAvgPx(value, scale)) } //SetAllocNetMoney sets AllocNetMoney, Tag 154 -func (m NoAllocs) SetAllocNetMoney(v float64) { - m.Set(field.NewAllocNetMoney(v)) +func (m NoAllocs) SetAllocNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoAllocs) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoAllocs) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetAllocSettlCurrAmt sets AllocSettlCurrAmt, Tag 737 -func (m NoAllocs) SetAllocSettlCurrAmt(v float64) { - m.Set(field.NewAllocSettlCurrAmt(v)) +func (m NoAllocs) SetAllocSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -2975,8 +2976,8 @@ func (m NoAllocs) SetAllocSettlCurrency(v string) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoAllocs) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoAllocs) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -2985,13 +2986,13 @@ func (m NoAllocs) SetSettlCurrFxRateCalc(v string) { } //SetAllocAccruedInterestAmt sets AllocAccruedInterestAmt, Tag 742 -func (m NoAllocs) SetAllocAccruedInterestAmt(v float64) { - m.Set(field.NewAllocAccruedInterestAmt(v)) +func (m NoAllocs) SetAllocAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAccruedInterestAmt(value, scale)) } //SetAllocInterestAtMaturity sets AllocInterestAtMaturity, Tag 741 -func (m NoAllocs) SetAllocInterestAtMaturity(v float64) { - m.Set(field.NewAllocInterestAtMaturity(v)) +func (m NoAllocs) SetAllocInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocInterestAtMaturity(value, scale)) } //SetNoMiscFees sets NoMiscFees, Tag 136 @@ -3678,8 +3679,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -4067,8 +4068,8 @@ type NoExecs struct { } //SetLastQty sets LastQty, Tag 32 -func (m NoExecs) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m NoExecs) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetExecID sets ExecID, Tag 17 @@ -4082,13 +4083,13 @@ func (m NoExecs) SetSecondaryExecID(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m NoExecs) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m NoExecs) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastParPx sets LastParPx, Tag 669 -func (m NoExecs) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m NoExecs) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetLastCapacity sets LastCapacity, Tag 29 @@ -4571,13 +4572,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4611,8 +4612,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4626,13 +4627,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4671,8 +4672,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -5364,13 +5365,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -5404,8 +5405,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -5419,13 +5420,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -5479,38 +5480,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -5519,8 +5520,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -5529,8 +5530,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -5549,8 +5550,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -5564,13 +5565,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -6526,8 +6527,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -6607,8 +6608,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/allocationreportack/AllocationReportAck.generated.go b/fix50/allocationreportack/AllocationReportAck.generated.go index e22094917..38d09fa39 100644 --- a/fix50/allocationreportack/AllocationReportAck.generated.go +++ b/fix50/allocationreportack/AllocationReportAck.generated.go @@ -1,6 +1,7 @@ package allocationreportack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -63,8 +64,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetQuantity sets Quantity, Tag 53 -func (m AllocationReportAck) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m AllocationReportAck) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetText sets Text, Tag 58 @@ -416,8 +417,8 @@ func (m NoAllocs) SetAllocAcctIDSource(v int) { } //SetAllocPrice sets AllocPrice, Tag 366 -func (m NoAllocs) SetAllocPrice(v float64) { - m.Set(field.NewAllocPrice(v)) +func (m NoAllocs) SetAllocPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocPrice(value, scale)) } //SetIndividualAllocID sets IndividualAllocID, Tag 467 @@ -461,8 +462,8 @@ func (m NoAllocs) SetIndividualAllocType(v int) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetNoNestedPartyIDs sets NoNestedPartyIDs, Tag 539 diff --git a/fix50/assignmentreport/AssignmentReport.generated.go b/fix50/assignmentreport/AssignmentReport.generated.go index 1a4a97e3e..0a00e0a9c 100644 --- a/fix50/assignmentreport/AssignmentReport.generated.go +++ b/fix50/assignmentreport/AssignmentReport.generated.go @@ -1,6 +1,7 @@ package assignmentreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -118,8 +119,8 @@ func (m AssignmentReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m AssignmentReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m AssignmentReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -133,8 +134,8 @@ func (m AssignmentReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m AssignmentReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m AssignmentReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -153,18 +154,18 @@ func (m AssignmentReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m AssignmentReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m AssignmentReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m AssignmentReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m AssignmentReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m AssignmentReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m AssignmentReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -308,8 +309,8 @@ func (m AssignmentReport) SetSettlSessSubID(v string) { } //SetSettlPrice sets SettlPrice, Tag 730 -func (m AssignmentReport) SetSettlPrice(v float64) { - m.Set(field.NewSettlPrice(v)) +func (m AssignmentReport) SetSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlPrice(value, scale)) } //SetSettlPriceType sets SettlPriceType, Tag 731 @@ -318,13 +319,13 @@ func (m AssignmentReport) SetSettlPriceType(v int) { } //SetUnderlyingSettlPrice sets UnderlyingSettlPrice, Tag 732 -func (m AssignmentReport) SetUnderlyingSettlPrice(v float64) { - m.Set(field.NewUnderlyingSettlPrice(v)) +func (m AssignmentReport) SetUnderlyingSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingSettlPrice(value, scale)) } //SetPriorSettlPrice sets PriorSettlPrice, Tag 734 -func (m AssignmentReport) SetPriorSettlPrice(v float64) { - m.Set(field.NewPriorSettlPrice(v)) +func (m AssignmentReport) SetPriorSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPriorSettlPrice(value, scale)) } //SetAssignmentMethod sets AssignmentMethod, Tag 744 @@ -333,13 +334,13 @@ func (m AssignmentReport) SetAssignmentMethod(v string) { } //SetAssignmentUnit sets AssignmentUnit, Tag 745 -func (m AssignmentReport) SetAssignmentUnit(v float64) { - m.Set(field.NewAssignmentUnit(v)) +func (m AssignmentReport) SetAssignmentUnit(value decimal.Decimal, scale int32) { + m.Set(field.NewAssignmentUnit(value, scale)) } //SetOpenInterest sets OpenInterest, Tag 746 -func (m AssignmentReport) SetOpenInterest(v float64) { - m.Set(field.NewOpenInterest(v)) +func (m AssignmentReport) SetOpenInterest(value decimal.Decimal, scale int32) { + m.Set(field.NewOpenInterest(value, scale)) } //SetExerciseMethod sets ExerciseMethod, Tag 747 @@ -368,8 +369,8 @@ func (m AssignmentReport) SetAsgnRptID(v string) { } //SetThresholdAmount sets ThresholdAmount, Tag 834 -func (m AssignmentReport) SetThresholdAmount(v float64) { - m.Set(field.NewThresholdAmount(v)) +func (m AssignmentReport) SetThresholdAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewThresholdAmount(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -418,18 +419,18 @@ func (m AssignmentReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m AssignmentReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m AssignmentReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m AssignmentReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m AssignmentReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m AssignmentReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m AssignmentReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1660,13 +1661,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1700,8 +1701,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1715,13 +1716,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1760,8 +1761,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2383,13 +2384,13 @@ func (m NoPositions) SetPosType(v string) { } //SetLongQty sets LongQty, Tag 704 -func (m NoPositions) SetLongQty(v float64) { - m.Set(field.NewLongQty(v)) +func (m NoPositions) SetLongQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLongQty(value, scale)) } //SetShortQty sets ShortQty, Tag 705 -func (m NoPositions) SetShortQty(v float64) { - m.Set(field.NewShortQty(v)) +func (m NoPositions) SetShortQty(value decimal.Decimal, scale int32) { + m.Set(field.NewShortQty(value, scale)) } //SetPosQtyStatus sets PosQtyStatus, Tag 706 @@ -2731,13 +2732,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2771,8 +2772,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2786,13 +2787,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2846,38 +2847,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2886,8 +2887,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2896,8 +2897,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2916,8 +2917,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2931,13 +2932,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3893,8 +3894,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -3974,8 +3975,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/bidrequest/BidRequest.generated.go b/fix50/bidrequest/BidRequest.generated.go index 7dcb1c2cc..3af7625cc 100644 --- a/fix50/bidrequest/BidRequest.generated.go +++ b/fix50/bidrequest/BidRequest.generated.go @@ -1,6 +1,7 @@ package bidrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -132,13 +133,13 @@ func (m BidRequest) SetNumTickets(v int) { } //SetSideValue1 sets SideValue1, Tag 396 -func (m BidRequest) SetSideValue1(v float64) { - m.Set(field.NewSideValue1(v)) +func (m BidRequest) SetSideValue1(value decimal.Decimal, scale int32) { + m.Set(field.NewSideValue1(value, scale)) } //SetSideValue2 sets SideValue2, Tag 397 -func (m BidRequest) SetSideValue2(v float64) { - m.Set(field.NewSideValue2(v)) +func (m BidRequest) SetSideValue2(value decimal.Decimal, scale int32) { + m.Set(field.NewSideValue2(value, scale)) } //SetNoBidDescriptors sets NoBidDescriptors, Tag 398 @@ -152,8 +153,8 @@ func (m BidRequest) SetLiquidityIndType(v int) { } //SetWtAverageLiquidity sets WtAverageLiquidity, Tag 410 -func (m BidRequest) SetWtAverageLiquidity(v float64) { - m.Set(field.NewWtAverageLiquidity(v)) +func (m BidRequest) SetWtAverageLiquidity(value decimal.Decimal, scale int32) { + m.Set(field.NewWtAverageLiquidity(value, scale)) } //SetExchangeForPhysical sets ExchangeForPhysical, Tag 411 @@ -162,13 +163,13 @@ func (m BidRequest) SetExchangeForPhysical(v bool) { } //SetOutMainCntryUIndex sets OutMainCntryUIndex, Tag 412 -func (m BidRequest) SetOutMainCntryUIndex(v float64) { - m.Set(field.NewOutMainCntryUIndex(v)) +func (m BidRequest) SetOutMainCntryUIndex(value decimal.Decimal, scale int32) { + m.Set(field.NewOutMainCntryUIndex(value, scale)) } //SetCrossPercent sets CrossPercent, Tag 413 -func (m BidRequest) SetCrossPercent(v float64) { - m.Set(field.NewCrossPercent(v)) +func (m BidRequest) SetCrossPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewCrossPercent(value, scale)) } //SetProgRptReqs sets ProgRptReqs, Tag 414 @@ -553,8 +554,8 @@ func (m NoBidDescriptors) SetSideValueInd(v int) { } //SetLiquidityValue sets LiquidityValue, Tag 404 -func (m NoBidDescriptors) SetLiquidityValue(v float64) { - m.Set(field.NewLiquidityValue(v)) +func (m NoBidDescriptors) SetLiquidityValue(value decimal.Decimal, scale int32) { + m.Set(field.NewLiquidityValue(value, scale)) } //SetLiquidityNumSecurities sets LiquidityNumSecurities, Tag 441 @@ -563,33 +564,33 @@ func (m NoBidDescriptors) SetLiquidityNumSecurities(v int) { } //SetLiquidityPctLow sets LiquidityPctLow, Tag 402 -func (m NoBidDescriptors) SetLiquidityPctLow(v float64) { - m.Set(field.NewLiquidityPctLow(v)) +func (m NoBidDescriptors) SetLiquidityPctLow(value decimal.Decimal, scale int32) { + m.Set(field.NewLiquidityPctLow(value, scale)) } //SetLiquidityPctHigh sets LiquidityPctHigh, Tag 403 -func (m NoBidDescriptors) SetLiquidityPctHigh(v float64) { - m.Set(field.NewLiquidityPctHigh(v)) +func (m NoBidDescriptors) SetLiquidityPctHigh(value decimal.Decimal, scale int32) { + m.Set(field.NewLiquidityPctHigh(value, scale)) } //SetEFPTrackingError sets EFPTrackingError, Tag 405 -func (m NoBidDescriptors) SetEFPTrackingError(v float64) { - m.Set(field.NewEFPTrackingError(v)) +func (m NoBidDescriptors) SetEFPTrackingError(value decimal.Decimal, scale int32) { + m.Set(field.NewEFPTrackingError(value, scale)) } //SetFairValue sets FairValue, Tag 406 -func (m NoBidDescriptors) SetFairValue(v float64) { - m.Set(field.NewFairValue(v)) +func (m NoBidDescriptors) SetFairValue(value decimal.Decimal, scale int32) { + m.Set(field.NewFairValue(value, scale)) } //SetOutsideIndexPct sets OutsideIndexPct, Tag 407 -func (m NoBidDescriptors) SetOutsideIndexPct(v float64) { - m.Set(field.NewOutsideIndexPct(v)) +func (m NoBidDescriptors) SetOutsideIndexPct(value decimal.Decimal, scale int32) { + m.Set(field.NewOutsideIndexPct(value, scale)) } //SetValueOfFutures sets ValueOfFutures, Tag 408 -func (m NoBidDescriptors) SetValueOfFutures(v float64) { - m.Set(field.NewValueOfFutures(v)) +func (m NoBidDescriptors) SetValueOfFutures(value decimal.Decimal, scale int32) { + m.Set(field.NewValueOfFutures(value, scale)) } //GetBidDescriptorType gets BidDescriptorType, Tag 399 diff --git a/fix50/bidresponse/BidResponse.generated.go b/fix50/bidresponse/BidResponse.generated.go index 5e1b6a715..4e4306079 100644 --- a/fix50/bidresponse/BidResponse.generated.go +++ b/fix50/bidresponse/BidResponse.generated.go @@ -1,6 +1,7 @@ package bidresponse import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -115,8 +116,8 @@ type NoBidComponents struct { } //SetCommission sets Commission, Tag 12 -func (m NoBidComponents) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoBidComponents) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -150,8 +151,8 @@ func (m NoBidComponents) SetSide(v string) { } //SetPrice sets Price, Tag 44 -func (m NoBidComponents) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoBidComponents) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -160,8 +161,8 @@ func (m NoBidComponents) SetPriceType(v int) { } //SetFairValue sets FairValue, Tag 406 -func (m NoBidComponents) SetFairValue(v float64) { - m.Set(field.NewFairValue(v)) +func (m NoBidComponents) SetFairValue(value decimal.Decimal, scale int32) { + m.Set(field.NewFairValue(value, scale)) } //SetNetGrossInd sets NetGrossInd, Tag 430 diff --git a/fix50/collateralassignment/CollateralAssignment.generated.go b/fix50/collateralassignment/CollateralAssignment.generated.go index 743b8c265..cfbe5c288 100644 --- a/fix50/collateralassignment/CollateralAssignment.generated.go +++ b/fix50/collateralassignment/CollateralAssignment.generated.go @@ -1,6 +1,7 @@ package collateralassignment import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -90,8 +91,8 @@ func (m CollateralAssignment) SetOrderID(v string) { } //SetPrice sets Price, Tag 44 -func (m CollateralAssignment) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CollateralAssignment) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -100,8 +101,8 @@ func (m CollateralAssignment) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralAssignment) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralAssignment) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -165,8 +166,8 @@ func (m CollateralAssignment) SetNoMiscFees(f NoMiscFeesRepeatingGroup) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m CollateralAssignment) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m CollateralAssignment) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -205,8 +206,8 @@ func (m CollateralAssignment) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralAssignment) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralAssignment) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -220,8 +221,8 @@ func (m CollateralAssignment) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m CollateralAssignment) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CollateralAssignment) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -240,8 +241,8 @@ func (m CollateralAssignment) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralAssignment) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralAssignment) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -260,18 +261,18 @@ func (m CollateralAssignment) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralAssignment) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralAssignment) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralAssignment) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralAssignment) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralAssignment) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralAssignment) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -400,8 +401,8 @@ func (m CollateralAssignment) SetTradingSessionSubID(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CollateralAssignment) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CollateralAssignment) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -510,23 +511,23 @@ func (m CollateralAssignment) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralAssignment) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralAssignment) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetMarginExcess sets MarginExcess, Tag 899 -func (m CollateralAssignment) SetMarginExcess(v float64) { - m.Set(field.NewMarginExcess(v)) +func (m CollateralAssignment) SetMarginExcess(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginExcess(value, scale)) } //SetTotalNetValue sets TotalNetValue, Tag 900 -func (m CollateralAssignment) SetTotalNetValue(v float64) { - m.Set(field.NewTotalNetValue(v)) +func (m CollateralAssignment) SetTotalNetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalNetValue(value, scale)) } //SetCashOutstanding sets CashOutstanding, Tag 901 -func (m CollateralAssignment) SetCashOutstanding(v float64) { - m.Set(field.NewCashOutstanding(v)) +func (m CollateralAssignment) SetCashOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOutstanding(value, scale)) } //SetCollAsgnID sets CollAsgnID, Tag 902 @@ -580,18 +581,18 @@ func (m CollateralAssignment) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m CollateralAssignment) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m CollateralAssignment) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m CollateralAssignment) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m CollateralAssignment) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m CollateralAssignment) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m CollateralAssignment) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -610,18 +611,18 @@ func (m CollateralAssignment) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CollateralAssignment) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CollateralAssignment) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CollateralAssignment) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CollateralAssignment) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CollateralAssignment) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CollateralAssignment) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -2260,8 +2261,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -2700,13 +2701,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2740,8 +2741,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2755,13 +2756,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2800,8 +2801,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3493,13 +3494,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3533,8 +3534,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3548,13 +3549,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3608,38 +3609,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3648,8 +3649,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3658,8 +3659,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3678,8 +3679,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3693,13 +3694,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4800,8 +4801,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/collateralinquiry/CollateralInquiry.generated.go b/fix50/collateralinquiry/CollateralInquiry.generated.go index 968486f17..bb70de6d5 100644 --- a/fix50/collateralinquiry/CollateralInquiry.generated.go +++ b/fix50/collateralinquiry/CollateralInquiry.generated.go @@ -1,6 +1,7 @@ package collateralinquiry import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -86,8 +87,8 @@ func (m CollateralInquiry) SetOrderID(v string) { } //SetPrice sets Price, Tag 44 -func (m CollateralInquiry) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CollateralInquiry) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -96,8 +97,8 @@ func (m CollateralInquiry) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralInquiry) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralInquiry) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -146,8 +147,8 @@ func (m CollateralInquiry) SetNoExecs(f NoExecsRepeatingGroup) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m CollateralInquiry) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m CollateralInquiry) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -186,8 +187,8 @@ func (m CollateralInquiry) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralInquiry) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralInquiry) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -201,8 +202,8 @@ func (m CollateralInquiry) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m CollateralInquiry) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CollateralInquiry) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -221,8 +222,8 @@ func (m CollateralInquiry) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralInquiry) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralInquiry) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -241,18 +242,18 @@ func (m CollateralInquiry) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralInquiry) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralInquiry) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralInquiry) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralInquiry) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralInquiry) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralInquiry) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -386,8 +387,8 @@ func (m CollateralInquiry) SetTradingSessionSubID(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CollateralInquiry) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CollateralInquiry) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -496,23 +497,23 @@ func (m CollateralInquiry) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralInquiry) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralInquiry) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetMarginExcess sets MarginExcess, Tag 899 -func (m CollateralInquiry) SetMarginExcess(v float64) { - m.Set(field.NewMarginExcess(v)) +func (m CollateralInquiry) SetMarginExcess(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginExcess(value, scale)) } //SetTotalNetValue sets TotalNetValue, Tag 900 -func (m CollateralInquiry) SetTotalNetValue(v float64) { - m.Set(field.NewTotalNetValue(v)) +func (m CollateralInquiry) SetTotalNetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalNetValue(value, scale)) } //SetCashOutstanding sets CashOutstanding, Tag 901 -func (m CollateralInquiry) SetCashOutstanding(v float64) { - m.Set(field.NewCashOutstanding(v)) +func (m CollateralInquiry) SetCashOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOutstanding(value, scale)) } //SetCollInquiryID sets CollInquiryID, Tag 909 @@ -556,18 +557,18 @@ func (m CollateralInquiry) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m CollateralInquiry) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m CollateralInquiry) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m CollateralInquiry) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m CollateralInquiry) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m CollateralInquiry) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m CollateralInquiry) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetNoCollInquiryQualifier sets NoCollInquiryQualifier, Tag 938 @@ -591,18 +592,18 @@ func (m CollateralInquiry) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CollateralInquiry) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CollateralInquiry) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CollateralInquiry) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CollateralInquiry) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CollateralInquiry) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CollateralInquiry) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -2556,13 +2557,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2596,8 +2597,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2611,13 +2612,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2656,8 +2657,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3349,13 +3350,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3389,8 +3390,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3404,13 +3405,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3464,38 +3465,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3504,8 +3505,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3514,8 +3515,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3534,8 +3535,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3549,13 +3550,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4640,8 +4641,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/collateralinquiryack/CollateralInquiryAck.generated.go b/fix50/collateralinquiryack/CollateralInquiryAck.generated.go index 81921aeab..861aa4e01 100644 --- a/fix50/collateralinquiryack/CollateralInquiryAck.generated.go +++ b/fix50/collateralinquiryack/CollateralInquiryAck.generated.go @@ -1,6 +1,7 @@ package collateralinquiryack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -93,8 +94,8 @@ func (m CollateralInquiryAck) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralInquiryAck) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralInquiryAck) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSymbol sets Symbol, Tag 55 @@ -148,8 +149,8 @@ func (m CollateralInquiryAck) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralInquiryAck) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralInquiryAck) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -163,8 +164,8 @@ func (m CollateralInquiryAck) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralInquiryAck) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralInquiryAck) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -183,18 +184,18 @@ func (m CollateralInquiryAck) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralInquiryAck) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralInquiryAck) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralInquiryAck) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralInquiryAck) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralInquiryAck) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralInquiryAck) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -398,8 +399,8 @@ func (m CollateralInquiryAck) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralInquiryAck) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralInquiryAck) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetCollInquiryID sets CollInquiryID, Tag 909 @@ -478,18 +479,18 @@ func (m CollateralInquiryAck) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CollateralInquiryAck) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CollateralInquiryAck) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CollateralInquiryAck) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CollateralInquiryAck) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CollateralInquiryAck) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CollateralInquiryAck) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1897,13 +1898,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1937,8 +1938,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1952,13 +1953,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1997,8 +1998,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2690,13 +2691,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2730,8 +2731,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2745,13 +2746,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2805,38 +2806,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2845,8 +2846,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2855,8 +2856,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2875,8 +2876,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2890,13 +2891,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3857,8 +3858,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/collateralreport/CollateralReport.generated.go b/fix50/collateralreport/CollateralReport.generated.go index 3a4244326..da2688e31 100644 --- a/fix50/collateralreport/CollateralReport.generated.go +++ b/fix50/collateralreport/CollateralReport.generated.go @@ -1,6 +1,7 @@ package collateralreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -88,8 +89,8 @@ func (m CollateralReport) SetOrderID(v string) { } //SetPrice sets Price, Tag 44 -func (m CollateralReport) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CollateralReport) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -98,8 +99,8 @@ func (m CollateralReport) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralReport) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralReport) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -158,8 +159,8 @@ func (m CollateralReport) SetNoMiscFees(f NoMiscFeesRepeatingGroup) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m CollateralReport) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m CollateralReport) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -198,8 +199,8 @@ func (m CollateralReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -213,8 +214,8 @@ func (m CollateralReport) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m CollateralReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CollateralReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -233,8 +234,8 @@ func (m CollateralReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -253,18 +254,18 @@ func (m CollateralReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -398,8 +399,8 @@ func (m CollateralReport) SetTradingSessionSubID(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CollateralReport) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CollateralReport) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -498,23 +499,23 @@ func (m CollateralReport) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralReport) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralReport) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetMarginExcess sets MarginExcess, Tag 899 -func (m CollateralReport) SetMarginExcess(v float64) { - m.Set(field.NewMarginExcess(v)) +func (m CollateralReport) SetMarginExcess(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginExcess(value, scale)) } //SetTotalNetValue sets TotalNetValue, Tag 900 -func (m CollateralReport) SetTotalNetValue(v float64) { - m.Set(field.NewTotalNetValue(v)) +func (m CollateralReport) SetTotalNetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalNetValue(value, scale)) } //SetCashOutstanding sets CashOutstanding, Tag 901 -func (m CollateralReport) SetCashOutstanding(v float64) { - m.Set(field.NewCashOutstanding(v)) +func (m CollateralReport) SetCashOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOutstanding(value, scale)) } //SetCollRptID sets CollRptID, Tag 908 @@ -578,18 +579,18 @@ func (m CollateralReport) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m CollateralReport) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m CollateralReport) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m CollateralReport) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m CollateralReport) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m CollateralReport) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m CollateralReport) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -608,18 +609,18 @@ func (m CollateralReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CollateralReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CollateralReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CollateralReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CollateralReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CollateralReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CollateralReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -2274,8 +2275,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -2714,13 +2715,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2754,8 +2755,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2769,13 +2770,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2814,8 +2815,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3507,13 +3508,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3547,8 +3548,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3562,13 +3563,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3622,38 +3623,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3662,8 +3663,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3672,8 +3673,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3692,8 +3693,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3707,13 +3708,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4798,8 +4799,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/collateralrequest/CollateralRequest.generated.go b/fix50/collateralrequest/CollateralRequest.generated.go index c0d985030..2be7b9b9d 100644 --- a/fix50/collateralrequest/CollateralRequest.generated.go +++ b/fix50/collateralrequest/CollateralRequest.generated.go @@ -1,6 +1,7 @@ package collateralrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -89,8 +90,8 @@ func (m CollateralRequest) SetOrderID(v string) { } //SetPrice sets Price, Tag 44 -func (m CollateralRequest) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CollateralRequest) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -99,8 +100,8 @@ func (m CollateralRequest) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralRequest) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralRequest) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -159,8 +160,8 @@ func (m CollateralRequest) SetNoMiscFees(f NoMiscFeesRepeatingGroup) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m CollateralRequest) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m CollateralRequest) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -179,8 +180,8 @@ func (m CollateralRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -194,8 +195,8 @@ func (m CollateralRequest) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m CollateralRequest) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CollateralRequest) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -214,8 +215,8 @@ func (m CollateralRequest) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -234,18 +235,18 @@ func (m CollateralRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -374,8 +375,8 @@ func (m CollateralRequest) SetTradingSessionSubID(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CollateralRequest) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CollateralRequest) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -484,23 +485,23 @@ func (m CollateralRequest) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetMarginExcess sets MarginExcess, Tag 899 -func (m CollateralRequest) SetMarginExcess(v float64) { - m.Set(field.NewMarginExcess(v)) +func (m CollateralRequest) SetMarginExcess(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginExcess(value, scale)) } //SetTotalNetValue sets TotalNetValue, Tag 900 -func (m CollateralRequest) SetTotalNetValue(v float64) { - m.Set(field.NewTotalNetValue(v)) +func (m CollateralRequest) SetTotalNetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalNetValue(value, scale)) } //SetCashOutstanding sets CashOutstanding, Tag 901 -func (m CollateralRequest) SetCashOutstanding(v float64) { - m.Set(field.NewCashOutstanding(v)) +func (m CollateralRequest) SetCashOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOutstanding(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -539,18 +540,18 @@ func (m CollateralRequest) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m CollateralRequest) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m CollateralRequest) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m CollateralRequest) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m CollateralRequest) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m CollateralRequest) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m CollateralRequest) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -569,18 +570,18 @@ func (m CollateralRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CollateralRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CollateralRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CollateralRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CollateralRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CollateralRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CollateralRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1900,8 +1901,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -2340,13 +2341,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2380,8 +2381,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2395,13 +2396,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2440,8 +2441,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3133,13 +3134,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3173,8 +3174,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3188,13 +3189,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3248,38 +3249,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3288,8 +3289,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3298,8 +3299,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3318,8 +3319,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3333,13 +3334,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4440,8 +4441,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/collateralresponse/CollateralResponse.generated.go b/fix50/collateralresponse/CollateralResponse.generated.go index ebcbe154a..7bb487152 100644 --- a/fix50/collateralresponse/CollateralResponse.generated.go +++ b/fix50/collateralresponse/CollateralResponse.generated.go @@ -1,6 +1,7 @@ package collateralresponse import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -89,8 +90,8 @@ func (m CollateralResponse) SetOrderID(v string) { } //SetPrice sets Price, Tag 44 -func (m CollateralResponse) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CollateralResponse) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -99,8 +100,8 @@ func (m CollateralResponse) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralResponse) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralResponse) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -154,8 +155,8 @@ func (m CollateralResponse) SetNoMiscFees(f NoMiscFeesRepeatingGroup) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m CollateralResponse) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m CollateralResponse) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -174,8 +175,8 @@ func (m CollateralResponse) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralResponse) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralResponse) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -189,8 +190,8 @@ func (m CollateralResponse) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m CollateralResponse) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CollateralResponse) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -209,8 +210,8 @@ func (m CollateralResponse) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralResponse) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralResponse) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -229,18 +230,18 @@ func (m CollateralResponse) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralResponse) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralResponse) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralResponse) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralResponse) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralResponse) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralResponse) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -364,8 +365,8 @@ func (m CollateralResponse) SetAccountType(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CollateralResponse) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CollateralResponse) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -464,23 +465,23 @@ func (m CollateralResponse) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralResponse) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralResponse) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetMarginExcess sets MarginExcess, Tag 899 -func (m CollateralResponse) SetMarginExcess(v float64) { - m.Set(field.NewMarginExcess(v)) +func (m CollateralResponse) SetMarginExcess(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginExcess(value, scale)) } //SetTotalNetValue sets TotalNetValue, Tag 900 -func (m CollateralResponse) SetTotalNetValue(v float64) { - m.Set(field.NewTotalNetValue(v)) +func (m CollateralResponse) SetTotalNetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalNetValue(value, scale)) } //SetCashOutstanding sets CashOutstanding, Tag 901 -func (m CollateralResponse) SetCashOutstanding(v float64) { - m.Set(field.NewCashOutstanding(v)) +func (m CollateralResponse) SetCashOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOutstanding(value, scale)) } //SetCollAsgnID sets CollAsgnID, Tag 902 @@ -544,18 +545,18 @@ func (m CollateralResponse) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m CollateralResponse) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m CollateralResponse) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m CollateralResponse) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m CollateralResponse) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m CollateralResponse) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m CollateralResponse) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -574,18 +575,18 @@ func (m CollateralResponse) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CollateralResponse) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CollateralResponse) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CollateralResponse) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CollateralResponse) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CollateralResponse) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CollateralResponse) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1932,8 +1933,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -2372,13 +2373,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2412,8 +2413,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2427,13 +2428,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2472,8 +2473,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3165,13 +3166,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3205,8 +3206,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3220,13 +3221,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3280,38 +3281,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3320,8 +3321,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3330,8 +3331,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3350,8 +3351,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3365,13 +3366,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4472,8 +4473,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/confirmation/Confirmation.generated.go b/fix50/confirmation/Confirmation.generated.go index e865aef08..68f00cff5 100644 --- a/fix50/confirmation/Confirmation.generated.go +++ b/fix50/confirmation/Confirmation.generated.go @@ -1,6 +1,7 @@ package confirmation import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -73,13 +74,13 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m Confirmation) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m Confirmation) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCommission sets Commission, Tag 12 -func (m Confirmation) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m Confirmation) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -168,8 +169,8 @@ func (m Confirmation) SetAllocAccount(v string) { } //SetAllocQty sets AllocQty, Tag 80 -func (m Confirmation) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m Confirmation) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetProcessCode sets ProcessCode, Tag 81 @@ -193,13 +194,13 @@ func (m Confirmation) SetSecurityDesc(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m Confirmation) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m Confirmation) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m Confirmation) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m Confirmation) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -213,8 +214,8 @@ func (m Confirmation) SetNoMiscFees(f NoMiscFeesRepeatingGroup) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m Confirmation) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m Confirmation) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -228,13 +229,13 @@ func (m Confirmation) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m Confirmation) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m Confirmation) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m Confirmation) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m Confirmation) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -268,8 +269,8 @@ func (m Confirmation) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m Confirmation) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m Confirmation) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -283,8 +284,8 @@ func (m Confirmation) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m Confirmation) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m Confirmation) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -303,8 +304,8 @@ func (m Confirmation) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m Confirmation) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m Confirmation) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -323,13 +324,13 @@ func (m Confirmation) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m Confirmation) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m Confirmation) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m Confirmation) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m Confirmation) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetExDate sets ExDate, Tag 230 @@ -338,8 +339,8 @@ func (m Confirmation) SetExDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m Confirmation) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m Confirmation) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -353,18 +354,18 @@ func (m Confirmation) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m Confirmation) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m Confirmation) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m Confirmation) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m Confirmation) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m Confirmation) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m Confirmation) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -413,8 +414,8 @@ func (m Confirmation) SetEncodedText(v string) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m Confirmation) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m Confirmation) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -498,8 +499,8 @@ func (m Confirmation) SetAllocAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m Confirmation) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m Confirmation) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -543,8 +544,8 @@ func (m Confirmation) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m Confirmation) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m Confirmation) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -568,8 +569,8 @@ func (m Confirmation) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m Confirmation) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m Confirmation) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetBenchmarkSecurityIDSource sets BenchmarkSecurityIDSource, Tag 761 @@ -623,8 +624,8 @@ func (m Confirmation) SetQtyType(v int) { } //SetSharedCommission sets SharedCommission, Tag 858 -func (m Confirmation) SetSharedCommission(v float64) { - m.Set(field.NewSharedCommission(v)) +func (m Confirmation) SetSharedCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewSharedCommission(value, scale)) } //SetConfirmReqID sets ConfirmReqID, Tag 859 @@ -633,13 +634,13 @@ func (m Confirmation) SetConfirmReqID(v string) { } //SetAvgParPx sets AvgParPx, Tag 860 -func (m Confirmation) SetAvgParPx(v float64) { - m.Set(field.NewAvgParPx(v)) +func (m Confirmation) SetAvgParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgParPx(value, scale)) } //SetReportedPx sets ReportedPx, Tag 861 -func (m Confirmation) SetReportedPx(v float64) { - m.Set(field.NewReportedPx(v)) +func (m Confirmation) SetReportedPx(value decimal.Decimal, scale int32) { + m.Set(field.NewReportedPx(value, scale)) } //SetNoCapacities sets NoCapacities, Tag 862 @@ -653,8 +654,8 @@ func (m Confirmation) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m Confirmation) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m Confirmation) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -683,13 +684,13 @@ func (m Confirmation) SetCPRegType(v string) { } //SetMaturityNetMoney sets MaturityNetMoney, Tag 890 -func (m Confirmation) SetMaturityNetMoney(v float64) { - m.Set(field.NewMaturityNetMoney(v)) +func (m Confirmation) SetMaturityNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewMaturityNetMoney(value, scale)) } //SetMarginRatio sets MarginRatio, Tag 898 -func (m Confirmation) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m Confirmation) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -728,18 +729,18 @@ func (m Confirmation) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m Confirmation) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m Confirmation) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m Confirmation) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m Confirmation) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m Confirmation) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m Confirmation) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -758,18 +759,18 @@ func (m Confirmation) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m Confirmation) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m Confirmation) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m Confirmation) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m Confirmation) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m Confirmation) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m Confirmation) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -2473,18 +2474,18 @@ func (m NoOrders) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrderAvgPx sets OrderAvgPx, Tag 799 -func (m NoOrders) SetOrderAvgPx(v float64) { - m.Set(field.NewOrderAvgPx(v)) +func (m NoOrders) SetOrderAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderAvgPx(value, scale)) } //SetOrderBookingQty sets OrderBookingQty, Tag 800 -func (m NoOrders) SetOrderBookingQty(v float64) { - m.Set(field.NewOrderBookingQty(v)) +func (m NoOrders) SetOrderBookingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderBookingQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 @@ -2999,8 +3000,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -3439,13 +3440,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3479,8 +3480,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3494,13 +3495,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3539,8 +3540,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4232,13 +4233,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4272,8 +4273,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4287,13 +4288,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4347,38 +4348,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4387,8 +4388,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4397,8 +4398,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4417,8 +4418,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4432,13 +4433,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -5523,8 +5524,8 @@ func (m NoCapacities) SetOrderRestrictions(v string) { } //SetOrderCapacityQty sets OrderCapacityQty, Tag 863 -func (m NoCapacities) SetOrderCapacityQty(v float64) { - m.Set(field.NewOrderCapacityQty(v)) +func (m NoCapacities) SetOrderCapacityQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderCapacityQty(value, scale)) } //GetOrderCapacity gets OrderCapacity, Tag 528 @@ -5599,8 +5600,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/confirmationrequest/ConfirmationRequest.generated.go b/fix50/confirmationrequest/ConfirmationRequest.generated.go index 24e90e3e4..5b408a660 100644 --- a/fix50/confirmationrequest/ConfirmationRequest.generated.go +++ b/fix50/confirmationrequest/ConfirmationRequest.generated.go @@ -1,6 +1,7 @@ package confirmationrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -308,18 +309,18 @@ func (m NoOrders) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrderAvgPx sets OrderAvgPx, Tag 799 -func (m NoOrders) SetOrderAvgPx(v float64) { - m.Set(field.NewOrderAvgPx(v)) +func (m NoOrders) SetOrderAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderAvgPx(value, scale)) } //SetOrderBookingQty sets OrderBookingQty, Tag 800 -func (m NoOrders) SetOrderBookingQty(v float64) { - m.Set(field.NewOrderBookingQty(v)) +func (m NoOrders) SetOrderBookingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderBookingQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 diff --git a/fix50/contraryintentionreport/ContraryIntentionReport.generated.go b/fix50/contraryintentionreport/ContraryIntentionReport.generated.go index 8b10a823e..37e173c99 100644 --- a/fix50/contraryintentionreport/ContraryIntentionReport.generated.go +++ b/fix50/contraryintentionreport/ContraryIntentionReport.generated.go @@ -1,6 +1,7 @@ package contraryintentionreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -113,8 +114,8 @@ func (m ContraryIntentionReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m ContraryIntentionReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m ContraryIntentionReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -128,8 +129,8 @@ func (m ContraryIntentionReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m ContraryIntentionReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m ContraryIntentionReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -148,18 +149,18 @@ func (m ContraryIntentionReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m ContraryIntentionReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m ContraryIntentionReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m ContraryIntentionReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m ContraryIntentionReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m ContraryIntentionReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m ContraryIntentionReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -318,18 +319,18 @@ func (m ContraryIntentionReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m ContraryIntentionReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m ContraryIntentionReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m ContraryIntentionReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m ContraryIntentionReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m ContraryIntentionReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m ContraryIntentionReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1402,13 +1403,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1442,8 +1443,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1457,13 +1458,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -1517,38 +1518,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -1557,8 +1558,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -1567,8 +1568,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -1587,8 +1588,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -1602,13 +1603,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2569,8 +2570,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2656,8 +2657,8 @@ func (m NoExpiration) SetExpType(v int) { } //SetExpQty sets ExpQty, Tag 983 -func (m NoExpiration) SetExpQty(v float64) { - m.Set(field.NewExpQty(v)) +func (m NoExpiration) SetExpQty(value decimal.Decimal, scale int32) { + m.Set(field.NewExpQty(value, scale)) } //GetExpType gets ExpType, Tag 982 diff --git a/fix50/crossordercancelreplacerequest/CrossOrderCancelReplaceRequest.generated.go b/fix50/crossordercancelreplacerequest/CrossOrderCancelReplaceRequest.generated.go index 9225e064c..6306e537a 100644 --- a/fix50/crossordercancelreplacerequest/CrossOrderCancelReplaceRequest.generated.go +++ b/fix50/crossordercancelreplacerequest/CrossOrderCancelReplaceRequest.generated.go @@ -1,6 +1,7 @@ package crossordercancelreplacerequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -102,8 +103,8 @@ func (m CrossOrderCancelReplaceRequest) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m CrossOrderCancelReplaceRequest) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -147,8 +148,8 @@ func (m CrossOrderCancelReplaceRequest) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m CrossOrderCancelReplaceRequest) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m CrossOrderCancelReplaceRequest) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -167,13 +168,13 @@ func (m CrossOrderCancelReplaceRequest) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m CrossOrderCancelReplaceRequest) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m CrossOrderCancelReplaceRequest) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m CrossOrderCancelReplaceRequest) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m CrossOrderCancelReplaceRequest) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -192,8 +193,8 @@ func (m CrossOrderCancelReplaceRequest) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m CrossOrderCancelReplaceRequest) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m CrossOrderCancelReplaceRequest) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -212,8 +213,8 @@ func (m CrossOrderCancelReplaceRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CrossOrderCancelReplaceRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CrossOrderCancelReplaceRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -227,18 +228,18 @@ func (m CrossOrderCancelReplaceRequest) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m CrossOrderCancelReplaceRequest) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m CrossOrderCancelReplaceRequest) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m CrossOrderCancelReplaceRequest) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m CrossOrderCancelReplaceRequest) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m CrossOrderCancelReplaceRequest) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CrossOrderCancelReplaceRequest) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -257,8 +258,8 @@ func (m CrossOrderCancelReplaceRequest) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CrossOrderCancelReplaceRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CrossOrderCancelReplaceRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -277,18 +278,18 @@ func (m CrossOrderCancelReplaceRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CrossOrderCancelReplaceRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CrossOrderCancelReplaceRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CrossOrderCancelReplaceRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CrossOrderCancelReplaceRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CrossOrderCancelReplaceRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CrossOrderCancelReplaceRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -302,8 +303,8 @@ func (m CrossOrderCancelReplaceRequest) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m CrossOrderCancelReplaceRequest) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m CrossOrderCancelReplaceRequest) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -357,8 +358,8 @@ func (m CrossOrderCancelReplaceRequest) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m CrossOrderCancelReplaceRequest) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m CrossOrderCancelReplaceRequest) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -472,8 +473,8 @@ func (m CrossOrderCancelReplaceRequest) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CrossOrderCancelReplaceRequest) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -497,8 +498,8 @@ func (m CrossOrderCancelReplaceRequest) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m CrossOrderCancelReplaceRequest) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -592,8 +593,8 @@ func (m CrossOrderCancelReplaceRequest) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m CrossOrderCancelReplaceRequest) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m CrossOrderCancelReplaceRequest) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -647,18 +648,18 @@ func (m CrossOrderCancelReplaceRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CrossOrderCancelReplaceRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CrossOrderCancelReplaceRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CrossOrderCancelReplaceRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CrossOrderCancelReplaceRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CrossOrderCancelReplaceRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CrossOrderCancelReplaceRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -697,8 +698,8 @@ func (m CrossOrderCancelReplaceRequest) SetMaturityTime(v string) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m CrossOrderCancelReplaceRequest) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m CrossOrderCancelReplaceRequest) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -712,28 +713,28 @@ func (m CrossOrderCancelReplaceRequest) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m CrossOrderCancelReplaceRequest) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m CrossOrderCancelReplaceRequest) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m CrossOrderCancelReplaceRequest) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m CrossOrderCancelReplaceRequest) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m CrossOrderCancelReplaceRequest) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m CrossOrderCancelReplaceRequest) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m CrossOrderCancelReplaceRequest) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m CrossOrderCancelReplaceRequest) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m CrossOrderCancelReplaceRequest) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m CrossOrderCancelReplaceRequest) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -782,8 +783,8 @@ func (m CrossOrderCancelReplaceRequest) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m CrossOrderCancelReplaceRequest) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -822,8 +823,8 @@ func (m CrossOrderCancelReplaceRequest) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m CrossOrderCancelReplaceRequest) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -832,8 +833,8 @@ func (m CrossOrderCancelReplaceRequest) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m CrossOrderCancelReplaceRequest) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m CrossOrderCancelReplaceRequest) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -857,8 +858,8 @@ func (m CrossOrderCancelReplaceRequest) SetExDestinationIDSource(v string) { } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m CrossOrderCancelReplaceRequest) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m CrossOrderCancelReplaceRequest) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //GetCurrency gets Currency, Tag 15 @@ -2886,18 +2887,18 @@ func (m NoSides) SetQtyType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoSides) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoSides) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoSides) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoSides) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoSides) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoSides) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -2906,13 +2907,13 @@ func (m NoSides) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoSides) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoSides) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCommission sets Commission, Tag 12 -func (m NoSides) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoSides) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -3663,8 +3664,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -4014,13 +4015,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4054,8 +4055,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4069,13 +4070,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4114,8 +4115,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4807,13 +4808,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4847,8 +4848,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4862,13 +4863,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4922,38 +4923,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4962,8 +4963,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4972,8 +4973,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4992,8 +4993,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -5007,13 +5008,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -5974,8 +5975,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/crossordercancelrequest/CrossOrderCancelRequest.generated.go b/fix50/crossordercancelrequest/CrossOrderCancelRequest.generated.go index cb2a589c7..146e4ea92 100644 --- a/fix50/crossordercancelrequest/CrossOrderCancelRequest.generated.go +++ b/fix50/crossordercancelrequest/CrossOrderCancelRequest.generated.go @@ -1,6 +1,7 @@ package crossordercancelrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -116,8 +117,8 @@ func (m CrossOrderCancelRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CrossOrderCancelRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CrossOrderCancelRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -131,8 +132,8 @@ func (m CrossOrderCancelRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CrossOrderCancelRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CrossOrderCancelRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -151,18 +152,18 @@ func (m CrossOrderCancelRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CrossOrderCancelRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CrossOrderCancelRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CrossOrderCancelRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CrossOrderCancelRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CrossOrderCancelRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CrossOrderCancelRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -336,18 +337,18 @@ func (m CrossOrderCancelRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CrossOrderCancelRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CrossOrderCancelRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CrossOrderCancelRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CrossOrderCancelRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CrossOrderCancelRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CrossOrderCancelRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1223,18 +1224,18 @@ func (m NoSides) SetTradeDate(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoSides) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoSides) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoSides) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoSides) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoSides) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoSides) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -1243,8 +1244,8 @@ func (m NoSides) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoSides) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoSides) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetComplianceID sets ComplianceID, Tag 376 @@ -1723,13 +1724,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1763,8 +1764,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1778,13 +1779,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1823,8 +1824,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2516,13 +2517,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2556,8 +2557,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2571,13 +2572,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2631,38 +2632,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2671,8 +2672,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2681,8 +2682,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2701,8 +2702,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2716,13 +2717,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3683,8 +3684,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/derivativesecuritylist/DerivativeSecurityList.generated.go b/fix50/derivativesecuritylist/DerivativeSecurityList.generated.go index 72ee7b827..8921d2e36 100644 --- a/fix50/derivativesecuritylist/DerivativeSecurityList.generated.go +++ b/fix50/derivativesecuritylist/DerivativeSecurityList.generated.go @@ -1,6 +1,7 @@ package derivativesecuritylist import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -89,13 +90,13 @@ func (m DerivativeSecurityList) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m DerivativeSecurityList) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m DerivativeSecurityList) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m DerivativeSecurityList) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m DerivativeSecurityList) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -154,8 +155,8 @@ func (m DerivativeSecurityList) SetUnderlyingMaturityMonthYear(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m DerivativeSecurityList) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m DerivativeSecurityList) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -204,13 +205,13 @@ func (m DerivativeSecurityList) SetTotNoRelatedSym(v int) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m DerivativeSecurityList) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m DerivativeSecurityList) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m DerivativeSecurityList) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m DerivativeSecurityList) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoUnderlyingSecurityAltID sets NoUnderlyingSecurityAltID, Tag 457 @@ -264,8 +265,8 @@ func (m DerivativeSecurityList) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m DerivativeSecurityList) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m DerivativeSecurityList) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingCPProgram sets UnderlyingCPProgram, Tag 877 @@ -279,33 +280,33 @@ func (m DerivativeSecurityList) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m DerivativeSecurityList) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m DerivativeSecurityList) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m DerivativeSecurityList) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m DerivativeSecurityList) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m DerivativeSecurityList) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m DerivativeSecurityList) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m DerivativeSecurityList) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m DerivativeSecurityList) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m DerivativeSecurityList) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m DerivativeSecurityList) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m DerivativeSecurityList) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m DerivativeSecurityList) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -324,13 +325,13 @@ func (m DerivativeSecurityList) SetUnderlyingStrikeCurrency(v string) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m DerivativeSecurityList) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m DerivativeSecurityList) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m DerivativeSecurityList) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m DerivativeSecurityList) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -354,8 +355,8 @@ func (m DerivativeSecurityList) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m DerivativeSecurityList) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m DerivativeSecurityList) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetUnderlyingSettlMethod sets UnderlyingSettlMethod, Tag 1039 @@ -364,13 +365,13 @@ func (m DerivativeSecurityList) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m DerivativeSecurityList) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m DerivativeSecurityList) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m DerivativeSecurityList) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m DerivativeSecurityList) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -1172,13 +1173,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -1212,8 +1213,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -1227,13 +1228,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -1322,18 +1323,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1382,8 +1383,8 @@ func (m NoRelatedSym) SetDeliveryForm(v int) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m NoRelatedSym) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m NoRelatedSym) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -2217,8 +2218,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2587,13 +2588,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2627,8 +2628,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2642,13 +2643,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2687,8 +2688,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 diff --git a/fix50/derivativesecuritylistrequest/DerivativeSecurityListRequest.generated.go b/fix50/derivativesecuritylistrequest/DerivativeSecurityListRequest.generated.go index df6b100b9..a5fce616b 100644 --- a/fix50/derivativesecuritylistrequest/DerivativeSecurityListRequest.generated.go +++ b/fix50/derivativesecuritylistrequest/DerivativeSecurityListRequest.generated.go @@ -1,6 +1,7 @@ package derivativesecuritylistrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -93,13 +94,13 @@ func (m DerivativeSecurityListRequest) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m DerivativeSecurityListRequest) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m DerivativeSecurityListRequest) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -163,8 +164,8 @@ func (m DerivativeSecurityListRequest) SetUnderlyingMaturityMonthYear(v string) } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m DerivativeSecurityListRequest) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -218,13 +219,13 @@ func (m DerivativeSecurityListRequest) SetEncodedUnderlyingSecurityDesc(v string } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m DerivativeSecurityListRequest) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m DerivativeSecurityListRequest) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoUnderlyingSecurityAltID sets NoUnderlyingSecurityAltID, Tag 457 @@ -288,8 +289,8 @@ func (m DerivativeSecurityListRequest) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m DerivativeSecurityListRequest) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingCPProgram sets UnderlyingCPProgram, Tag 877 @@ -303,33 +304,33 @@ func (m DerivativeSecurityListRequest) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m DerivativeSecurityListRequest) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m DerivativeSecurityListRequest) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m DerivativeSecurityListRequest) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m DerivativeSecurityListRequest) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m DerivativeSecurityListRequest) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m DerivativeSecurityListRequest) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -343,13 +344,13 @@ func (m DerivativeSecurityListRequest) SetUnderlyingStrikeCurrency(v string) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m DerivativeSecurityListRequest) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m DerivativeSecurityListRequest) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -373,8 +374,8 @@ func (m DerivativeSecurityListRequest) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m DerivativeSecurityListRequest) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetUnderlyingSettlMethod sets UnderlyingSettlMethod, Tag 1039 @@ -383,13 +384,13 @@ func (m DerivativeSecurityListRequest) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m DerivativeSecurityListRequest) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m DerivativeSecurityListRequest) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 diff --git a/fix50/dontknowtrade/DontKnowTrade.generated.go b/fix50/dontknowtrade/DontKnowTrade.generated.go index b2fe9fe59..0d8eebf60 100644 --- a/fix50/dontknowtrade/DontKnowTrade.generated.go +++ b/fix50/dontknowtrade/DontKnowTrade.generated.go @@ -1,6 +1,7 @@ package dontknowtrade import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -75,13 +76,13 @@ func (m DontKnowTrade) SetSecurityIDSource(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m DontKnowTrade) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m DontKnowTrade) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastQty sets LastQty, Tag 32 -func (m DontKnowTrade) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m DontKnowTrade) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetOrderID sets OrderID, Tag 37 @@ -90,8 +91,8 @@ func (m DontKnowTrade) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m DontKnowTrade) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m DontKnowTrade) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -135,8 +136,8 @@ func (m DontKnowTrade) SetDKReason(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m DontKnowTrade) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m DontKnowTrade) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -155,8 +156,8 @@ func (m DontKnowTrade) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m DontKnowTrade) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m DontKnowTrade) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -170,8 +171,8 @@ func (m DontKnowTrade) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m DontKnowTrade) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m DontKnowTrade) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -190,18 +191,18 @@ func (m DontKnowTrade) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m DontKnowTrade) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m DontKnowTrade) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m DontKnowTrade) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m DontKnowTrade) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m DontKnowTrade) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m DontKnowTrade) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -270,8 +271,8 @@ func (m DontKnowTrade) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m DontKnowTrade) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m DontKnowTrade) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -290,8 +291,8 @@ func (m DontKnowTrade) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m DontKnowTrade) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m DontKnowTrade) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -370,18 +371,18 @@ func (m DontKnowTrade) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m DontKnowTrade) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m DontKnowTrade) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m DontKnowTrade) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m DontKnowTrade) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m DontKnowTrade) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m DontKnowTrade) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1346,13 +1347,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1386,8 +1387,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1401,13 +1402,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1446,8 +1447,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2139,13 +2140,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2179,8 +2180,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2194,13 +2195,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2254,38 +2255,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2294,8 +2295,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2304,8 +2305,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2324,8 +2325,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2339,13 +2340,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3306,8 +3307,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/email/Email.generated.go b/fix50/email/Email.generated.go index 1b4ce92c2..d8eb9f9c9 100644 --- a/fix50/email/Email.generated.go +++ b/fix50/email/Email.generated.go @@ -1,6 +1,7 @@ package email import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -465,13 +466,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -505,8 +506,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -520,13 +521,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -615,18 +616,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1332,8 +1333,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -1725,13 +1726,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1765,8 +1766,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1780,13 +1781,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1825,8 +1826,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2518,13 +2519,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2558,8 +2559,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2573,13 +2574,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2633,38 +2634,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2673,8 +2674,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2683,8 +2684,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2703,8 +2704,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2718,13 +2719,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 diff --git a/fix50/executionacknowledgement/ExecutionAcknowledgement.generated.go b/fix50/executionacknowledgement/ExecutionAcknowledgement.generated.go index 9a22bb004..ac8c1aa6a 100644 --- a/fix50/executionacknowledgement/ExecutionAcknowledgement.generated.go +++ b/fix50/executionacknowledgement/ExecutionAcknowledgement.generated.go @@ -1,6 +1,7 @@ package executionacknowledgement import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -65,8 +66,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m ExecutionAcknowledgement) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m ExecutionAcknowledgement) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetClOrdID sets ClOrdID, Tag 11 @@ -75,8 +76,8 @@ func (m ExecutionAcknowledgement) SetClOrdID(v string) { } //SetCumQty sets CumQty, Tag 14 -func (m ExecutionAcknowledgement) SetCumQty(v float64) { - m.Set(field.NewCumQty(v)) +func (m ExecutionAcknowledgement) SetCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCumQty(value, scale)) } //SetExecID sets ExecID, Tag 17 @@ -90,13 +91,13 @@ func (m ExecutionAcknowledgement) SetSecurityIDSource(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m ExecutionAcknowledgement) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m ExecutionAcknowledgement) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastQty sets LastQty, Tag 32 -func (m ExecutionAcknowledgement) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m ExecutionAcknowledgement) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetOrderID sets OrderID, Tag 37 @@ -105,8 +106,8 @@ func (m ExecutionAcknowledgement) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m ExecutionAcknowledgement) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m ExecutionAcknowledgement) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -150,8 +151,8 @@ func (m ExecutionAcknowledgement) SetDKReason(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m ExecutionAcknowledgement) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m ExecutionAcknowledgement) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -170,8 +171,8 @@ func (m ExecutionAcknowledgement) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m ExecutionAcknowledgement) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m ExecutionAcknowledgement) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -185,8 +186,8 @@ func (m ExecutionAcknowledgement) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m ExecutionAcknowledgement) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m ExecutionAcknowledgement) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -205,18 +206,18 @@ func (m ExecutionAcknowledgement) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m ExecutionAcknowledgement) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m ExecutionAcknowledgement) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m ExecutionAcknowledgement) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m ExecutionAcknowledgement) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m ExecutionAcknowledgement) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m ExecutionAcknowledgement) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -290,8 +291,8 @@ func (m ExecutionAcknowledgement) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m ExecutionAcknowledgement) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m ExecutionAcknowledgement) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -310,8 +311,8 @@ func (m ExecutionAcknowledgement) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m ExecutionAcknowledgement) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m ExecutionAcknowledgement) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -335,8 +336,8 @@ func (m ExecutionAcknowledgement) SetContractSettlMonth(v string) { } //SetLastParPx sets LastParPx, Tag 669 -func (m ExecutionAcknowledgement) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m ExecutionAcknowledgement) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetPool sets Pool, Tag 691 @@ -395,18 +396,18 @@ func (m ExecutionAcknowledgement) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m ExecutionAcknowledgement) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m ExecutionAcknowledgement) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m ExecutionAcknowledgement) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m ExecutionAcknowledgement) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m ExecutionAcknowledgement) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m ExecutionAcknowledgement) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1442,13 +1443,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1482,8 +1483,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1497,13 +1498,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1542,8 +1543,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2235,13 +2236,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2275,8 +2276,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2290,13 +2291,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2350,38 +2351,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2390,8 +2391,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2400,8 +2401,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2420,8 +2421,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2435,13 +2436,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3402,8 +3403,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/executionreport/ExecutionReport.generated.go b/fix50/executionreport/ExecutionReport.generated.go index b3b5bf426..4788d999b 100644 --- a/fix50/executionreport/ExecutionReport.generated.go +++ b/fix50/executionreport/ExecutionReport.generated.go @@ -1,6 +1,7 @@ package executionreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -73,8 +74,8 @@ func (m ExecutionReport) SetAccount(v string) { } //SetAvgPx sets AvgPx, Tag 6 -func (m ExecutionReport) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m ExecutionReport) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetClOrdID sets ClOrdID, Tag 11 @@ -83,8 +84,8 @@ func (m ExecutionReport) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m ExecutionReport) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m ExecutionReport) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -93,8 +94,8 @@ func (m ExecutionReport) SetCommType(v string) { } //SetCumQty sets CumQty, Tag 14 -func (m ExecutionReport) SetCumQty(v float64) { - m.Set(field.NewCumQty(v)) +func (m ExecutionReport) SetCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCumQty(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -138,13 +139,13 @@ func (m ExecutionReport) SetLastMkt(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m ExecutionReport) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m ExecutionReport) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastQty sets LastQty, Tag 32 -func (m ExecutionReport) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m ExecutionReport) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetOrderID sets OrderID, Tag 37 @@ -153,8 +154,8 @@ func (m ExecutionReport) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m ExecutionReport) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m ExecutionReport) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdStatus sets OrdStatus, Tag 39 @@ -173,8 +174,8 @@ func (m ExecutionReport) SetOrigClOrdID(v string) { } //SetPrice sets Price, Tag 44 -func (m ExecutionReport) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m ExecutionReport) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -238,8 +239,8 @@ func (m ExecutionReport) SetPositionEffect(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m ExecutionReport) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m ExecutionReport) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetOrdRejReason sets OrdRejReason, Tag 103 @@ -258,13 +259,13 @@ func (m ExecutionReport) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m ExecutionReport) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m ExecutionReport) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m ExecutionReport) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m ExecutionReport) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetReportToExch sets ReportToExch, Tag 113 @@ -273,13 +274,13 @@ func (m ExecutionReport) SetReportToExch(v bool) { } //SetNetMoney sets NetMoney, Tag 118 -func (m ExecutionReport) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m ExecutionReport) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m ExecutionReport) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m ExecutionReport) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -303,18 +304,18 @@ func (m ExecutionReport) SetExecType(v string) { } //SetLeavesQty sets LeavesQty, Tag 151 -func (m ExecutionReport) SetLeavesQty(v float64) { - m.Set(field.NewLeavesQty(v)) +func (m ExecutionReport) SetLeavesQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLeavesQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m ExecutionReport) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m ExecutionReport) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m ExecutionReport) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m ExecutionReport) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -328,13 +329,13 @@ func (m ExecutionReport) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m ExecutionReport) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m ExecutionReport) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m ExecutionReport) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m ExecutionReport) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -348,8 +349,8 @@ func (m ExecutionReport) SetEffectiveTime(v time.Time) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m ExecutionReport) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m ExecutionReport) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -358,13 +359,13 @@ func (m ExecutionReport) SetSettlDate2(v string) { } //SetLastSpotRate sets LastSpotRate, Tag 194 -func (m ExecutionReport) SetLastSpotRate(v float64) { - m.Set(field.NewLastSpotRate(v)) +func (m ExecutionReport) SetLastSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSpotRate(value, scale)) } //SetLastForwardPoints sets LastForwardPoints, Tag 195 -func (m ExecutionReport) SetLastForwardPoints(v float64) { - m.Set(field.NewLastForwardPoints(v)) +func (m ExecutionReport) SetLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastForwardPoints(value, scale)) } //SetSecondaryOrderID sets SecondaryOrderID, Tag 198 @@ -378,8 +379,8 @@ func (m ExecutionReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m ExecutionReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m ExecutionReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -393,18 +394,18 @@ func (m ExecutionReport) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m ExecutionReport) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m ExecutionReport) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m ExecutionReport) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m ExecutionReport) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m ExecutionReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m ExecutionReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -423,8 +424,8 @@ func (m ExecutionReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m ExecutionReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m ExecutionReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -443,13 +444,13 @@ func (m ExecutionReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m ExecutionReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m ExecutionReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m ExecutionReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m ExecutionReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -463,8 +464,8 @@ func (m ExecutionReport) SetExDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m ExecutionReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m ExecutionReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -478,18 +479,18 @@ func (m ExecutionReport) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m ExecutionReport) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m ExecutionReport) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m ExecutionReport) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m ExecutionReport) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m ExecutionReport) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m ExecutionReport) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -518,8 +519,8 @@ func (m ExecutionReport) SetBasisFeatureDate(v string) { } //SetBasisFeaturePrice sets BasisFeaturePrice, Tag 260 -func (m ExecutionReport) SetBasisFeaturePrice(v float64) { - m.Set(field.NewBasisFeaturePrice(v)) +func (m ExecutionReport) SetBasisFeaturePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBasisFeaturePrice(value, scale)) } //SetTradingSessionID sets TradingSessionID, Tag 336 @@ -573,8 +574,8 @@ func (m ExecutionReport) SetExecRestatementReason(v int) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m ExecutionReport) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m ExecutionReport) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetNoContraBrokers sets NoContraBrokers, Tag 382 @@ -588,8 +589,8 @@ func (m ExecutionReport) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m ExecutionReport) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m ExecutionReport) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -598,18 +599,18 @@ func (m ExecutionReport) SetPriceType(v int) { } //SetDayOrderQty sets DayOrderQty, Tag 424 -func (m ExecutionReport) SetDayOrderQty(v float64) { - m.Set(field.NewDayOrderQty(v)) +func (m ExecutionReport) SetDayOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDayOrderQty(value, scale)) } //SetDayCumQty sets DayCumQty, Tag 425 -func (m ExecutionReport) SetDayCumQty(v float64) { - m.Set(field.NewDayCumQty(v)) +func (m ExecutionReport) SetDayCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDayCumQty(value, scale)) } //SetDayAvgPx sets DayAvgPx, Tag 426 -func (m ExecutionReport) SetDayAvgPx(v float64) { - m.Set(field.NewDayAvgPx(v)) +func (m ExecutionReport) SetDayAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewDayAvgPx(value, scale)) } //SetGTBookingInst sets GTBookingInst, Tag 427 @@ -653,8 +654,8 @@ func (m ExecutionReport) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m ExecutionReport) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m ExecutionReport) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -698,8 +699,8 @@ func (m ExecutionReport) SetExecPriceType(v string) { } //SetExecPriceAdjustment sets ExecPriceAdjustment, Tag 485 -func (m ExecutionReport) SetExecPriceAdjustment(v float64) { - m.Set(field.NewExecPriceAdjustment(v)) +func (m ExecutionReport) SetExecPriceAdjustment(value decimal.Decimal, scale int32) { + m.Set(field.NewExecPriceAdjustment(value, scale)) } //SetDesignation sets Designation, Tag 494 @@ -723,8 +724,8 @@ func (m ExecutionReport) SetExecValuationPoint(v time.Time) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m ExecutionReport) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m ExecutionReport) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetNoContAmts sets NoContAmts, Tag 518 @@ -848,23 +849,23 @@ func (m ExecutionReport) SetPriorityIndicator(v int) { } //SetPriceImprovement sets PriceImprovement, Tag 639 -func (m ExecutionReport) SetPriceImprovement(v float64) { - m.Set(field.NewPriceImprovement(v)) +func (m ExecutionReport) SetPriceImprovement(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceImprovement(value, scale)) } //SetLastForwardPoints2 sets LastForwardPoints2, Tag 641 -func (m ExecutionReport) SetLastForwardPoints2(v float64) { - m.Set(field.NewLastForwardPoints2(v)) +func (m ExecutionReport) SetLastForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewLastForwardPoints2(value, scale)) } //SetUnderlyingLastPx sets UnderlyingLastPx, Tag 651 -func (m ExecutionReport) SetUnderlyingLastPx(v float64) { - m.Set(field.NewUnderlyingLastPx(v)) +func (m ExecutionReport) SetUnderlyingLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingLastPx(value, scale)) } //SetUnderlyingLastQty sets UnderlyingLastQty, Tag 652 -func (m ExecutionReport) SetUnderlyingLastQty(v float64) { - m.Set(field.NewUnderlyingLastQty(v)) +func (m ExecutionReport) SetUnderlyingLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingLastQty(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -873,8 +874,8 @@ func (m ExecutionReport) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m ExecutionReport) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m ExecutionReport) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -888,8 +889,8 @@ func (m ExecutionReport) SetContractSettlMonth(v string) { } //SetLastParPx sets LastParPx, Tag 669 -func (m ExecutionReport) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m ExecutionReport) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetPool sets Pool, Tag 691 @@ -908,8 +909,8 @@ func (m ExecutionReport) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m ExecutionReport) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m ExecutionReport) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -933,8 +934,8 @@ func (m ExecutionReport) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m ExecutionReport) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m ExecutionReport) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetBenchmarkSecurityIDSource sets BenchmarkSecurityIDSource, Tag 761 @@ -993,8 +994,8 @@ func (m ExecutionReport) SetPegRoundDirection(v int) { } //SetPeggedPrice sets PeggedPrice, Tag 839 -func (m ExecutionReport) SetPeggedPrice(v float64) { - m.Set(field.NewPeggedPrice(v)) +func (m ExecutionReport) SetPeggedPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPeggedPrice(value, scale)) } //SetPegScope sets PegScope, Tag 840 @@ -1023,8 +1024,8 @@ func (m ExecutionReport) SetDiscretionRoundDirection(v int) { } //SetDiscretionPrice sets DiscretionPrice, Tag 845 -func (m ExecutionReport) SetDiscretionPrice(v float64) { - m.Set(field.NewDiscretionPrice(v)) +func (m ExecutionReport) SetDiscretionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionPrice(value, scale)) } //SetDiscretionScope sets DiscretionScope, Tag 846 @@ -1043,13 +1044,13 @@ func (m ExecutionReport) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m ExecutionReport) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m ExecutionReport) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetTargetStrategyPerformance sets TargetStrategyPerformance, Tag 850 -func (m ExecutionReport) SetTargetStrategyPerformance(v float64) { - m.Set(field.NewTargetStrategyPerformance(v)) +func (m ExecutionReport) SetTargetStrategyPerformance(value decimal.Decimal, scale int32) { + m.Set(field.NewTargetStrategyPerformance(value, scale)) } //SetLastLiquidityInd sets LastLiquidityInd, Tag 851 @@ -1088,8 +1089,8 @@ func (m ExecutionReport) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m ExecutionReport) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m ExecutionReport) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetTotNumReports sets TotNumReports, Tag 911 @@ -1138,18 +1139,18 @@ func (m ExecutionReport) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m ExecutionReport) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m ExecutionReport) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m ExecutionReport) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m ExecutionReport) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m ExecutionReport) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m ExecutionReport) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetTimeBracket sets TimeBracket, Tag 943 @@ -1183,18 +1184,18 @@ func (m ExecutionReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m ExecutionReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m ExecutionReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m ExecutionReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m ExecutionReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m ExecutionReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m ExecutionReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1253,8 +1254,8 @@ func (m ExecutionReport) SetInstrmtAssignmentMethod(v string) { } //SetCalculatedCcyLastQty sets CalculatedCcyLastQty, Tag 1056 -func (m ExecutionReport) SetCalculatedCcyLastQty(v float64) { - m.Set(field.NewCalculatedCcyLastQty(v)) +func (m ExecutionReport) SetCalculatedCcyLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCalculatedCcyLastQty(value, scale)) } //SetAggressorIndicator sets AggressorIndicator, Tag 1057 @@ -1263,8 +1264,8 @@ func (m ExecutionReport) SetAggressorIndicator(v bool) { } //SetLastSwapPoints sets LastSwapPoints, Tag 1071 -func (m ExecutionReport) SetLastSwapPoints(v float64) { - m.Set(field.NewLastSwapPoints(v)) +func (m ExecutionReport) SetLastSwapPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSwapPoints(value, scale)) } //SetMaturityTime sets MaturityTime, Tag 1079 @@ -1273,8 +1274,8 @@ func (m ExecutionReport) SetMaturityTime(v string) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m ExecutionReport) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m ExecutionReport) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -1288,28 +1289,28 @@ func (m ExecutionReport) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m ExecutionReport) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m ExecutionReport) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m ExecutionReport) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m ExecutionReport) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m ExecutionReport) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m ExecutionReport) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m ExecutionReport) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m ExecutionReport) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m ExecutionReport) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m ExecutionReport) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -1338,8 +1339,8 @@ func (m ExecutionReport) SetPegPriceType(v int) { } //SetPeggedRefPrice sets PeggedRefPrice, Tag 1095 -func (m ExecutionReport) SetPeggedRefPrice(v float64) { - m.Set(field.NewPeggedRefPrice(v)) +func (m ExecutionReport) SetPeggedRefPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPeggedRefPrice(value, scale)) } //SetPegSecurityIDSource sets PegSecurityIDSource, Tag 1096 @@ -1373,8 +1374,8 @@ func (m ExecutionReport) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m ExecutionReport) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m ExecutionReport) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -1413,8 +1414,8 @@ func (m ExecutionReport) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m ExecutionReport) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m ExecutionReport) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -1423,8 +1424,8 @@ func (m ExecutionReport) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m ExecutionReport) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m ExecutionReport) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -1443,8 +1444,8 @@ func (m ExecutionReport) SetOrderCategory(v string) { } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m ExecutionReport) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m ExecutionReport) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //GetAccount gets Account, Tag 1 @@ -4501,8 +4502,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -4663,8 +4664,8 @@ func (m NoContraBrokers) SetContraTrader(v string) { } //SetContraTradeQty sets ContraTradeQty, Tag 437 -func (m NoContraBrokers) SetContraTradeQty(v float64) { - m.Set(field.NewContraTradeQty(v)) +func (m NoContraBrokers) SetContraTradeQty(value decimal.Decimal, scale int32) { + m.Set(field.NewContraTradeQty(value, scale)) } //SetContraTradeTime sets ContraTradeTime, Tag 438 @@ -4979,8 +4980,8 @@ func (m NoContAmts) SetContAmtType(v int) { } //SetContAmtValue sets ContAmtValue, Tag 520 -func (m NoContAmts) SetContAmtValue(v float64) { - m.Set(field.NewContAmtValue(v)) +func (m NoContAmts) SetContAmtValue(value decimal.Decimal, scale int32) { + m.Set(field.NewContAmtValue(value, scale)) } //SetContAmtCurr sets ContAmtCurr, Tag 521 @@ -5125,13 +5126,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -5165,8 +5166,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -5180,13 +5181,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -5225,8 +5226,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -5270,8 +5271,8 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -5305,8 +5306,8 @@ func (m NoLegs) SetLegRefID(v string) { } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegSettlType sets LegSettlType, Tag 587 @@ -5320,13 +5321,13 @@ func (m NoLegs) SetLegSettlDate(v string) { } //SetLegLastPx sets LegLastPx, Tag 637 -func (m NoLegs) SetLegLastPx(v float64) { - m.Set(field.NewLegLastPx(v)) +func (m NoLegs) SetLegLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastPx(value, scale)) } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //SetLegSettlCurrency sets LegSettlCurrency, Tag 675 @@ -5335,18 +5336,18 @@ func (m NoLegs) SetLegSettlCurrency(v string) { } //SetLegLastForwardPoints sets LegLastForwardPoints, Tag 1073 -func (m NoLegs) SetLegLastForwardPoints(v float64) { - m.Set(field.NewLegLastForwardPoints(v)) +func (m NoLegs) SetLegLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastForwardPoints(value, scale)) } //SetLegCalculatedCcyLastQty sets LegCalculatedCcyLastQty, Tag 1074 -func (m NoLegs) SetLegCalculatedCcyLastQty(v float64) { - m.Set(field.NewLegCalculatedCcyLastQty(v)) +func (m NoLegs) SetLegCalculatedCcyLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCalculatedCcyLastQty(value, scale)) } //SetLegGrossTradeAmt sets LegGrossTradeAmt, Tag 1075 -func (m NoLegs) SetLegGrossTradeAmt(v float64) { - m.Set(field.NewLegGrossTradeAmt(v)) +func (m NoLegs) SetLegGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewLegGrossTradeAmt(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -6389,13 +6390,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -6429,8 +6430,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -6444,13 +6445,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -6504,38 +6505,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -6544,8 +6545,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -6554,8 +6555,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -6574,8 +6575,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -6589,13 +6590,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -7680,8 +7681,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/ioi/IOI.generated.go b/fix50/ioi/IOI.generated.go index 945bb6ae2..cf102f343 100644 --- a/fix50/ioi/IOI.generated.go +++ b/fix50/ioi/IOI.generated.go @@ -1,6 +1,7 @@ package ioi import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -100,13 +101,13 @@ func (m IOI) SetIOITransType(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m IOI) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m IOI) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetPrice sets Price, Tag 44 -func (m IOI) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m IOI) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -165,8 +166,8 @@ func (m IOI) SetURLLink(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m IOI) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m IOI) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -185,8 +186,8 @@ func (m IOI) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m IOI) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m IOI) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -205,8 +206,8 @@ func (m IOI) SetNoRoutingIDs(f NoRoutingIDsRepeatingGroup) { } //SetSpread sets Spread, Tag 218 -func (m IOI) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m IOI) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -225,8 +226,8 @@ func (m IOI) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m IOI) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m IOI) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -245,18 +246,18 @@ func (m IOI) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m IOI) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m IOI) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m IOI) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m IOI) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m IOI) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m IOI) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -270,8 +271,8 @@ func (m IOI) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m IOI) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m IOI) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -350,8 +351,8 @@ func (m IOI) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m IOI) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m IOI) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -370,8 +371,8 @@ func (m IOI) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m IOI) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m IOI) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -390,8 +391,8 @@ func (m IOI) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m IOI) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m IOI) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -415,8 +416,8 @@ func (m IOI) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m IOI) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m IOI) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -485,8 +486,8 @@ func (m IOI) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m IOI) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m IOI) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -540,18 +541,18 @@ func (m IOI) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m IOI) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m IOI) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m IOI) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m IOI) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m IOI) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m IOI) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -2211,13 +2212,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2251,8 +2252,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2266,13 +2267,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2311,8 +2312,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3097,13 +3098,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3137,8 +3138,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3152,13 +3153,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3212,38 +3213,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3252,8 +3253,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3262,8 +3263,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3282,8 +3283,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3297,13 +3298,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4264,8 +4265,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/liststatus/ListStatus.generated.go b/fix50/liststatus/ListStatus.generated.go index 0860a343c..2099855b6 100644 --- a/fix50/liststatus/ListStatus.generated.go +++ b/fix50/liststatus/ListStatus.generated.go @@ -1,6 +1,7 @@ package liststatus import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -275,8 +276,8 @@ func (m NoOrders) SetSecondaryClOrdID(v string) { } //SetCumQty sets CumQty, Tag 14 -func (m NoOrders) SetCumQty(v float64) { - m.Set(field.NewCumQty(v)) +func (m NoOrders) SetCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCumQty(value, scale)) } //SetOrdStatus sets OrdStatus, Tag 39 @@ -290,18 +291,18 @@ func (m NoOrders) SetWorkingIndicator(v bool) { } //SetLeavesQty sets LeavesQty, Tag 151 -func (m NoOrders) SetLeavesQty(v float64) { - m.Set(field.NewLeavesQty(v)) +func (m NoOrders) SetLeavesQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLeavesQty(value, scale)) } //SetCxlQty sets CxlQty, Tag 84 -func (m NoOrders) SetCxlQty(v float64) { - m.Set(field.NewCxlQty(v)) +func (m NoOrders) SetCxlQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCxlQty(value, scale)) } //SetAvgPx sets AvgPx, Tag 6 -func (m NoOrders) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m NoOrders) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetOrdRejReason sets OrdRejReason, Tag 103 diff --git a/fix50/liststrikeprice/ListStrikePrice.generated.go b/fix50/liststrikeprice/ListStrikePrice.generated.go index cbda00057..915b8da38 100644 --- a/fix50/liststrikeprice/ListStrikePrice.generated.go +++ b/fix50/liststrikeprice/ListStrikePrice.generated.go @@ -1,6 +1,7 @@ package liststrikeprice import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -225,13 +226,13 @@ func (m NoStrikes) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoStrikes) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoStrikes) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoStrikes) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoStrikes) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -265,8 +266,8 @@ func (m NoStrikes) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoStrikes) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoStrikes) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -280,13 +281,13 @@ func (m NoStrikes) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoStrikes) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoStrikes) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoStrikes) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoStrikes) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -375,18 +376,18 @@ func (m NoStrikes) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoStrikes) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoStrikes) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoStrikes) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoStrikes) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoStrikes) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoStrikes) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1092,8 +1093,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -1425,13 +1426,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1465,8 +1466,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1480,13 +1481,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -1540,38 +1541,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -1580,8 +1581,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -1590,8 +1591,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -1610,8 +1611,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -1625,13 +1626,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -1640,8 +1641,8 @@ func (m NoUnderlyings) SetUnderlyingFXRateCalc(v string) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoUnderlyings) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoUnderlyings) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetClOrdID sets ClOrdID, Tag 11 @@ -1660,8 +1661,8 @@ func (m NoUnderlyings) SetSide(v string) { } //SetPrice sets Price, Tag 44 -func (m NoUnderlyings) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoUnderlyings) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetCurrency sets Currency, Tag 15 diff --git a/fix50/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go b/fix50/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go index 1d3254fdf..dcfcd648c 100644 --- a/fix50/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go +++ b/fix50/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go @@ -1,6 +1,7 @@ package marketdataincrementalrefresh import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -356,13 +357,13 @@ func (m NoMDEntries) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoMDEntries) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoMDEntries) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoMDEntries) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoMDEntries) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -396,8 +397,8 @@ func (m NoMDEntries) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoMDEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoMDEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -411,13 +412,13 @@ func (m NoMDEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoMDEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoMDEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoMDEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoMDEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -506,18 +507,18 @@ func (m NoMDEntries) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoMDEntries) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoMDEntries) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoMDEntries) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoMDEntries) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoMDEntries) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoMDEntries) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -571,8 +572,8 @@ func (m NoMDEntries) SetCorporateAction(v string) { } //SetMDEntryPx sets MDEntryPx, Tag 270 -func (m NoMDEntries) SetMDEntryPx(v float64) { - m.Set(field.NewMDEntryPx(v)) +func (m NoMDEntries) SetMDEntryPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntryPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -581,8 +582,8 @@ func (m NoMDEntries) SetCurrency(v string) { } //SetMDEntrySize sets MDEntrySize, Tag 271 -func (m NoMDEntries) SetMDEntrySize(v float64) { - m.Set(field.NewMDEntrySize(v)) +func (m NoMDEntries) SetMDEntrySize(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntrySize(value, scale)) } //SetMDEntryDate sets MDEntryDate, Tag 272 @@ -661,8 +662,8 @@ func (m NoMDEntries) SetExpireTime(v time.Time) { } //SetMinQty sets MinQty, Tag 110 -func (m NoMDEntries) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NoMDEntries) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetExecInst sets ExecInst, Tag 18 @@ -711,13 +712,13 @@ func (m NoMDEntries) SetScope(v string) { } //SetPriceDelta sets PriceDelta, Tag 811 -func (m NoMDEntries) SetPriceDelta(v float64) { - m.Set(field.NewPriceDelta(v)) +func (m NoMDEntries) SetPriceDelta(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceDelta(value, scale)) } //SetNetChgPrevDay sets NetChgPrevDay, Tag 451 -func (m NoMDEntries) SetNetChgPrevDay(v float64) { - m.Set(field.NewNetChgPrevDay(v)) +func (m NoMDEntries) SetNetChgPrevDay(value decimal.Decimal, scale int32) { + m.Set(field.NewNetChgPrevDay(value, scale)) } //SetText sets Text, Tag 58 @@ -746,18 +747,18 @@ func (m NoMDEntries) SetMDOriginType(v int) { } //SetHighPx sets HighPx, Tag 332 -func (m NoMDEntries) SetHighPx(v float64) { - m.Set(field.NewHighPx(v)) +func (m NoMDEntries) SetHighPx(value decimal.Decimal, scale int32) { + m.Set(field.NewHighPx(value, scale)) } //SetLowPx sets LowPx, Tag 333 -func (m NoMDEntries) SetLowPx(v float64) { - m.Set(field.NewLowPx(v)) +func (m NoMDEntries) SetLowPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLowPx(value, scale)) } //SetTradeVolume sets TradeVolume, Tag 1020 -func (m NoMDEntries) SetTradeVolume(v float64) { - m.Set(field.NewTradeVolume(v)) +func (m NoMDEntries) SetTradeVolume(value decimal.Decimal, scale int32) { + m.Set(field.NewTradeVolume(value, scale)) } //SetSettlType sets SettlType, Tag 63 @@ -786,13 +787,13 @@ func (m NoMDEntries) SetDealingCapacity(v string) { } //SetMDEntrySpotRate sets MDEntrySpotRate, Tag 1026 -func (m NoMDEntries) SetMDEntrySpotRate(v float64) { - m.Set(field.NewMDEntrySpotRate(v)) +func (m NoMDEntries) SetMDEntrySpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntrySpotRate(value, scale)) } //SetMDEntryForwardPoints sets MDEntryForwardPoints, Tag 1027 -func (m NoMDEntries) SetMDEntryForwardPoints(v float64) { - m.Set(field.NewMDEntryForwardPoints(v)) +func (m NoMDEntries) SetMDEntryForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntryForwardPoints(value, scale)) } //SetMDPriceLevel sets MDPriceLevel, Tag 1023 @@ -2129,8 +2130,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2439,13 +2440,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2479,8 +2480,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2494,13 +2495,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2554,38 +2555,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2594,8 +2595,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2604,8 +2605,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2624,8 +2625,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2639,13 +2640,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3671,13 +3672,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3711,8 +3712,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3726,13 +3727,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3771,8 +3772,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 diff --git a/fix50/marketdatarequest/MarketDataRequest.generated.go b/fix50/marketdatarequest/MarketDataRequest.generated.go index c00cbab85..cf01e2a42 100644 --- a/fix50/marketdatarequest/MarketDataRequest.generated.go +++ b/fix50/marketdatarequest/MarketDataRequest.generated.go @@ -1,6 +1,7 @@ package marketdatarequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -371,13 +372,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -411,8 +412,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -426,13 +427,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -521,18 +522,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -596,8 +597,8 @@ func (m NoRelatedSym) SetSettlDate(v string) { } //SetMDEntrySize sets MDEntrySize, Tag 271 -func (m NoRelatedSym) SetMDEntrySize(v float64) { - m.Set(field.NewMDEntrySize(v)) +func (m NoRelatedSym) SetMDEntrySize(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntrySize(value, scale)) } //GetSymbol gets Symbol, Tag 55 @@ -1352,8 +1353,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -1662,13 +1663,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1702,8 +1703,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1717,13 +1718,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -1777,38 +1778,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -1817,8 +1818,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -1827,8 +1828,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -1847,8 +1848,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -1862,13 +1863,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2894,13 +2895,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2934,8 +2935,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2949,13 +2950,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2994,8 +2995,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 diff --git a/fix50/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go b/fix50/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go index ef69fcdaa..24eca78e5 100644 --- a/fix50/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go +++ b/fix50/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go @@ -1,6 +1,7 @@ package marketdatasnapshotfullrefresh import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -106,8 +107,8 @@ func (m MarketDataSnapshotFullRefresh) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m MarketDataSnapshotFullRefresh) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m MarketDataSnapshotFullRefresh) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -126,8 +127,8 @@ func (m MarketDataSnapshotFullRefresh) SetNoRoutingIDs(f NoRoutingIDsRepeatingGr } //SetCouponRate sets CouponRate, Tag 223 -func (m MarketDataSnapshotFullRefresh) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m MarketDataSnapshotFullRefresh) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -146,18 +147,18 @@ func (m MarketDataSnapshotFullRefresh) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m MarketDataSnapshotFullRefresh) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m MarketDataSnapshotFullRefresh) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m MarketDataSnapshotFullRefresh) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m MarketDataSnapshotFullRefresh) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m MarketDataSnapshotFullRefresh) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m MarketDataSnapshotFullRefresh) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -216,8 +217,8 @@ func (m MarketDataSnapshotFullRefresh) SetEncodedSecurityDesc(v string) { } //SetNetChgPrevDay sets NetChgPrevDay, Tag 451 -func (m MarketDataSnapshotFullRefresh) SetNetChgPrevDay(v float64) { - m.Set(field.NewNetChgPrevDay(v)) +func (m MarketDataSnapshotFullRefresh) SetNetChgPrevDay(value decimal.Decimal, scale int32) { + m.Set(field.NewNetChgPrevDay(value, scale)) } //SetNoSecurityAltID sets NoSecurityAltID, Tag 454 @@ -346,18 +347,18 @@ func (m MarketDataSnapshotFullRefresh) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m MarketDataSnapshotFullRefresh) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m MarketDataSnapshotFullRefresh) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m MarketDataSnapshotFullRefresh) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m MarketDataSnapshotFullRefresh) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m MarketDataSnapshotFullRefresh) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m MarketDataSnapshotFullRefresh) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1242,8 +1243,8 @@ func (m NoMDEntries) SetMDEntryType(v string) { } //SetMDEntryPx sets MDEntryPx, Tag 270 -func (m NoMDEntries) SetMDEntryPx(v float64) { - m.Set(field.NewMDEntryPx(v)) +func (m NoMDEntries) SetMDEntryPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntryPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -1252,8 +1253,8 @@ func (m NoMDEntries) SetCurrency(v string) { } //SetMDEntrySize sets MDEntrySize, Tag 271 -func (m NoMDEntries) SetMDEntrySize(v float64) { - m.Set(field.NewMDEntrySize(v)) +func (m NoMDEntries) SetMDEntrySize(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntrySize(value, scale)) } //SetMDEntryDate sets MDEntryDate, Tag 272 @@ -1332,8 +1333,8 @@ func (m NoMDEntries) SetExpireTime(v time.Time) { } //SetMinQty sets MinQty, Tag 110 -func (m NoMDEntries) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NoMDEntries) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetExecInst sets ExecInst, Tag 18 @@ -1382,8 +1383,8 @@ func (m NoMDEntries) SetScope(v string) { } //SetPriceDelta sets PriceDelta, Tag 811 -func (m NoMDEntries) SetPriceDelta(v float64) { - m.Set(field.NewPriceDelta(v)) +func (m NoMDEntries) SetPriceDelta(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceDelta(value, scale)) } //SetText sets Text, Tag 58 @@ -1417,18 +1418,18 @@ func (m NoMDEntries) SetMDOriginType(v int) { } //SetHighPx sets HighPx, Tag 332 -func (m NoMDEntries) SetHighPx(v float64) { - m.Set(field.NewHighPx(v)) +func (m NoMDEntries) SetHighPx(value decimal.Decimal, scale int32) { + m.Set(field.NewHighPx(value, scale)) } //SetLowPx sets LowPx, Tag 333 -func (m NoMDEntries) SetLowPx(v float64) { - m.Set(field.NewLowPx(v)) +func (m NoMDEntries) SetLowPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLowPx(value, scale)) } //SetTradeVolume sets TradeVolume, Tag 1020 -func (m NoMDEntries) SetTradeVolume(v float64) { - m.Set(field.NewTradeVolume(v)) +func (m NoMDEntries) SetTradeVolume(value decimal.Decimal, scale int32) { + m.Set(field.NewTradeVolume(value, scale)) } //SetSettlType sets SettlType, Tag 63 @@ -1457,13 +1458,13 @@ func (m NoMDEntries) SetDealingCapacity(v string) { } //SetMDEntrySpotRate sets MDEntrySpotRate, Tag 1026 -func (m NoMDEntries) SetMDEntrySpotRate(v float64) { - m.Set(field.NewMDEntrySpotRate(v)) +func (m NoMDEntries) SetMDEntrySpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntrySpotRate(value, scale)) } //SetMDEntryForwardPoints sets MDEntryForwardPoints, Tag 1027 -func (m NoMDEntries) SetMDEntryForwardPoints(v float64) { - m.Set(field.NewMDEntryForwardPoints(v)) +func (m NoMDEntries) SetMDEntryForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntryForwardPoints(value, scale)) } //SetMDEntryID sets MDEntryID, Tag 278 @@ -2354,13 +2355,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2394,8 +2395,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2409,13 +2410,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2454,8 +2455,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3147,13 +3148,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3187,8 +3188,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3202,13 +3203,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3262,38 +3263,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3302,8 +3303,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3312,8 +3313,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3332,8 +3333,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3347,13 +3348,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4314,8 +4315,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/massquote/MassQuote.generated.go b/fix50/massquote/MassQuote.generated.go index 0306025f1..91b26f29c 100644 --- a/fix50/massquote/MassQuote.generated.go +++ b/fix50/massquote/MassQuote.generated.go @@ -1,6 +1,7 @@ package massquote import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -77,13 +78,13 @@ func (m MassQuote) SetQuoteReqID(v string) { } //SetDefBidSize sets DefBidSize, Tag 293 -func (m MassQuote) SetDefBidSize(v float64) { - m.Set(field.NewDefBidSize(v)) +func (m MassQuote) SetDefBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewDefBidSize(value, scale)) } //SetDefOfferSize sets DefOfferSize, Tag 294 -func (m MassQuote) SetDefOfferSize(v float64) { - m.Set(field.NewDefOfferSize(v)) +func (m MassQuote) SetDefOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewDefOfferSize(value, scale)) } //SetNoQuoteSets sets NoQuoteSets, Tag 296 @@ -325,13 +326,13 @@ func (m NoQuoteSets) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoQuoteSets) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoQuoteSets) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoQuoteSets) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoQuoteSets) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -365,8 +366,8 @@ func (m NoQuoteSets) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoQuoteSets) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoQuoteSets) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -380,13 +381,13 @@ func (m NoQuoteSets) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoQuoteSets) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoQuoteSets) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoQuoteSets) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoQuoteSets) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -440,38 +441,38 @@ func (m NoQuoteSets) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoQuoteSets) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoQuoteSets) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoQuoteSets) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoQuoteSets) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoQuoteSets) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoQuoteSets) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoQuoteSets) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoQuoteSets) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoQuoteSets) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoQuoteSets) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoQuoteSets) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoQuoteSets) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoQuoteSets) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoQuoteSets) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -480,8 +481,8 @@ func (m NoQuoteSets) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoQuoteSets) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoQuoteSets) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -490,8 +491,8 @@ func (m NoQuoteSets) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoQuoteSets) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoQuoteSets) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -510,8 +511,8 @@ func (m NoQuoteSets) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoQuoteSets) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoQuoteSets) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -525,13 +526,13 @@ func (m NoQuoteSets) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoQuoteSets) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoQuoteSets) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoQuoteSets) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoQuoteSets) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -1615,13 +1616,13 @@ func (m NoQuoteEntries) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoQuoteEntries) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoQuoteEntries) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoQuoteEntries) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoQuoteEntries) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -1655,8 +1656,8 @@ func (m NoQuoteEntries) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoQuoteEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoQuoteEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -1670,13 +1671,13 @@ func (m NoQuoteEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoQuoteEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoQuoteEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoQuoteEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoQuoteEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -1765,18 +1766,18 @@ func (m NoQuoteEntries) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoQuoteEntries) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoQuoteEntries) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoQuoteEntries) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoQuoteEntries) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoQuoteEntries) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoQuoteEntries) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1815,23 +1816,23 @@ func (m NoQuoteEntries) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBidPx sets BidPx, Tag 132 -func (m NoQuoteEntries) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m NoQuoteEntries) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m NoQuoteEntries) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m NoQuoteEntries) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m NoQuoteEntries) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m NoQuoteEntries) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m NoQuoteEntries) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m NoQuoteEntries) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetValidUntilTime sets ValidUntilTime, Tag 62 @@ -1840,43 +1841,43 @@ func (m NoQuoteEntries) SetValidUntilTime(v time.Time) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m NoQuoteEntries) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m NoQuoteEntries) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m NoQuoteEntries) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m NoQuoteEntries) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m NoQuoteEntries) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m NoQuoteEntries) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m NoQuoteEntries) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m NoQuoteEntries) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetMidPx sets MidPx, Tag 631 -func (m NoQuoteEntries) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m NoQuoteEntries) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m NoQuoteEntries) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m NoQuoteEntries) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m NoQuoteEntries) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m NoQuoteEntries) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m NoQuoteEntries) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m NoQuoteEntries) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetTransactTime sets TransactTime, Tag 60 @@ -1910,18 +1911,18 @@ func (m NoQuoteEntries) SetSettlDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoQuoteEntries) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoQuoteEntries) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m NoQuoteEntries) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m NoQuoteEntries) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m NoQuoteEntries) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m NoQuoteEntries) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -2878,8 +2879,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -3188,13 +3189,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3228,8 +3229,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3243,13 +3244,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3288,8 +3289,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 diff --git a/fix50/massquoteacknowledgement/MassQuoteAcknowledgement.generated.go b/fix50/massquoteacknowledgement/MassQuoteAcknowledgement.generated.go index 4908c90cc..e144d08ab 100644 --- a/fix50/massquoteacknowledgement/MassQuoteAcknowledgement.generated.go +++ b/fix50/massquoteacknowledgement/MassQuoteAcknowledgement.generated.go @@ -1,6 +1,7 @@ package massquoteacknowledgement import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -373,13 +374,13 @@ func (m NoQuoteSets) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoQuoteSets) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoQuoteSets) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoQuoteSets) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoQuoteSets) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -413,8 +414,8 @@ func (m NoQuoteSets) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoQuoteSets) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoQuoteSets) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -428,13 +429,13 @@ func (m NoQuoteSets) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoQuoteSets) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoQuoteSets) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoQuoteSets) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoQuoteSets) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -488,38 +489,38 @@ func (m NoQuoteSets) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoQuoteSets) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoQuoteSets) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoQuoteSets) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoQuoteSets) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoQuoteSets) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoQuoteSets) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoQuoteSets) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoQuoteSets) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoQuoteSets) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoQuoteSets) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoQuoteSets) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoQuoteSets) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoQuoteSets) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoQuoteSets) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -528,8 +529,8 @@ func (m NoQuoteSets) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoQuoteSets) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoQuoteSets) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -538,8 +539,8 @@ func (m NoQuoteSets) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoQuoteSets) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoQuoteSets) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -558,8 +559,8 @@ func (m NoQuoteSets) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoQuoteSets) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoQuoteSets) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -573,13 +574,13 @@ func (m NoQuoteSets) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoQuoteSets) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoQuoteSets) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoQuoteSets) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoQuoteSets) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -1647,13 +1648,13 @@ func (m NoQuoteEntries) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoQuoteEntries) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoQuoteEntries) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoQuoteEntries) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoQuoteEntries) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -1687,8 +1688,8 @@ func (m NoQuoteEntries) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoQuoteEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoQuoteEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -1702,13 +1703,13 @@ func (m NoQuoteEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoQuoteEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoQuoteEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoQuoteEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoQuoteEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -1797,18 +1798,18 @@ func (m NoQuoteEntries) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoQuoteEntries) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoQuoteEntries) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoQuoteEntries) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoQuoteEntries) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoQuoteEntries) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoQuoteEntries) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1847,23 +1848,23 @@ func (m NoQuoteEntries) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBidPx sets BidPx, Tag 132 -func (m NoQuoteEntries) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m NoQuoteEntries) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m NoQuoteEntries) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m NoQuoteEntries) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m NoQuoteEntries) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m NoQuoteEntries) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m NoQuoteEntries) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m NoQuoteEntries) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetValidUntilTime sets ValidUntilTime, Tag 62 @@ -1872,43 +1873,43 @@ func (m NoQuoteEntries) SetValidUntilTime(v time.Time) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m NoQuoteEntries) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m NoQuoteEntries) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m NoQuoteEntries) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m NoQuoteEntries) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m NoQuoteEntries) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m NoQuoteEntries) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m NoQuoteEntries) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m NoQuoteEntries) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetMidPx sets MidPx, Tag 631 -func (m NoQuoteEntries) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m NoQuoteEntries) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m NoQuoteEntries) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m NoQuoteEntries) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m NoQuoteEntries) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m NoQuoteEntries) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m NoQuoteEntries) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m NoQuoteEntries) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetTransactTime sets TransactTime, Tag 60 @@ -1942,18 +1943,18 @@ func (m NoQuoteEntries) SetSettlDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoQuoteEntries) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoQuoteEntries) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m NoQuoteEntries) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m NoQuoteEntries) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m NoQuoteEntries) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m NoQuoteEntries) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -2926,8 +2927,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -3236,13 +3237,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3276,8 +3277,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3291,13 +3292,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3336,8 +3337,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 diff --git a/fix50/multilegordercancelreplace/MultilegOrderCancelReplace.generated.go b/fix50/multilegordercancelreplace/MultilegOrderCancelReplace.generated.go index 2f13e841a..4558503a5 100644 --- a/fix50/multilegordercancelreplace/MultilegOrderCancelReplace.generated.go +++ b/fix50/multilegordercancelreplace/MultilegOrderCancelReplace.generated.go @@ -1,6 +1,7 @@ package multilegordercancelreplace import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -76,8 +77,8 @@ func (m MultilegOrderCancelReplace) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m MultilegOrderCancelReplace) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m MultilegOrderCancelReplace) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -116,8 +117,8 @@ func (m MultilegOrderCancelReplace) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m MultilegOrderCancelReplace) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m MultilegOrderCancelReplace) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -131,8 +132,8 @@ func (m MultilegOrderCancelReplace) SetOrigClOrdID(v string) { } //SetPrice sets Price, Tag 44 -func (m MultilegOrderCancelReplace) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m MultilegOrderCancelReplace) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -206,8 +207,8 @@ func (m MultilegOrderCancelReplace) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m MultilegOrderCancelReplace) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m MultilegOrderCancelReplace) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -226,13 +227,13 @@ func (m MultilegOrderCancelReplace) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m MultilegOrderCancelReplace) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m MultilegOrderCancelReplace) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m MultilegOrderCancelReplace) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m MultilegOrderCancelReplace) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -261,13 +262,13 @@ func (m MultilegOrderCancelReplace) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m MultilegOrderCancelReplace) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m MultilegOrderCancelReplace) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m MultilegOrderCancelReplace) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m MultilegOrderCancelReplace) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -286,8 +287,8 @@ func (m MultilegOrderCancelReplace) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m MultilegOrderCancelReplace) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m MultilegOrderCancelReplace) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -306,18 +307,18 @@ func (m MultilegOrderCancelReplace) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m MultilegOrderCancelReplace) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m MultilegOrderCancelReplace) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m MultilegOrderCancelReplace) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m MultilegOrderCancelReplace) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m MultilegOrderCancelReplace) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m MultilegOrderCancelReplace) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -336,13 +337,13 @@ func (m MultilegOrderCancelReplace) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m MultilegOrderCancelReplace) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m MultilegOrderCancelReplace) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m MultilegOrderCancelReplace) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m MultilegOrderCancelReplace) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -351,8 +352,8 @@ func (m MultilegOrderCancelReplace) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m MultilegOrderCancelReplace) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m MultilegOrderCancelReplace) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -421,8 +422,8 @@ func (m MultilegOrderCancelReplace) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m MultilegOrderCancelReplace) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m MultilegOrderCancelReplace) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -466,8 +467,8 @@ func (m MultilegOrderCancelReplace) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m MultilegOrderCancelReplace) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m MultilegOrderCancelReplace) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -516,8 +517,8 @@ func (m MultilegOrderCancelReplace) SetRegistID(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m MultilegOrderCancelReplace) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m MultilegOrderCancelReplace) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -691,8 +692,8 @@ func (m MultilegOrderCancelReplace) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m MultilegOrderCancelReplace) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m MultilegOrderCancelReplace) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetQtyType sets QtyType, Tag 854 @@ -746,18 +747,18 @@ func (m MultilegOrderCancelReplace) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m MultilegOrderCancelReplace) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m MultilegOrderCancelReplace) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m MultilegOrderCancelReplace) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m MultilegOrderCancelReplace) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m MultilegOrderCancelReplace) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m MultilegOrderCancelReplace) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -791,8 +792,8 @@ func (m MultilegOrderCancelReplace) SetInstrmtAssignmentMethod(v string) { } //SetSwapPoints sets SwapPoints, Tag 1069 -func (m MultilegOrderCancelReplace) SetSwapPoints(v float64) { - m.Set(field.NewSwapPoints(v)) +func (m MultilegOrderCancelReplace) SetSwapPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewSwapPoints(value, scale)) } //SetMaturityTime sets MaturityTime, Tag 1079 @@ -801,8 +802,8 @@ func (m MultilegOrderCancelReplace) SetMaturityTime(v string) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m MultilegOrderCancelReplace) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m MultilegOrderCancelReplace) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -816,28 +817,28 @@ func (m MultilegOrderCancelReplace) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m MultilegOrderCancelReplace) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m MultilegOrderCancelReplace) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m MultilegOrderCancelReplace) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m MultilegOrderCancelReplace) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m MultilegOrderCancelReplace) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m MultilegOrderCancelReplace) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m MultilegOrderCancelReplace) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m MultilegOrderCancelReplace) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m MultilegOrderCancelReplace) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m MultilegOrderCancelReplace) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -891,8 +892,8 @@ func (m MultilegOrderCancelReplace) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m MultilegOrderCancelReplace) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m MultilegOrderCancelReplace) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -931,8 +932,8 @@ func (m MultilegOrderCancelReplace) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m MultilegOrderCancelReplace) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m MultilegOrderCancelReplace) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -941,8 +942,8 @@ func (m MultilegOrderCancelReplace) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m MultilegOrderCancelReplace) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m MultilegOrderCancelReplace) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -961,8 +962,8 @@ func (m MultilegOrderCancelReplace) SetExDestinationIDSource(v string) { } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m MultilegOrderCancelReplace) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m MultilegOrderCancelReplace) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //GetAccount gets Account, Tag 1 @@ -2985,8 +2986,8 @@ func (m NoAllocs) SetNoNested3PartyIDs(f NoNested3PartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -3586,13 +3587,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3626,8 +3627,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3641,13 +3642,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3686,8 +3687,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3731,8 +3732,8 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -3771,8 +3772,8 @@ func (m NoLegs) SetLegRefID(v string) { } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegSettlType sets LegSettlType, Tag 587 @@ -3786,13 +3787,13 @@ func (m NoLegs) SetLegSettlDate(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -4567,8 +4568,8 @@ func (m NoLegAllocs) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetLegAllocQty sets LegAllocQty, Tag 673 -func (m NoLegAllocs) SetLegAllocQty(v float64) { - m.Set(field.NewLegAllocQty(v)) +func (m NoLegAllocs) SetLegAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegAllocQty(value, scale)) } //SetLegAllocAcctIDSource sets LegAllocAcctIDSource, Tag 674 @@ -5081,13 +5082,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -5121,8 +5122,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -5136,13 +5137,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -5196,38 +5197,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -5236,8 +5237,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -5246,8 +5247,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -5266,8 +5267,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -5281,13 +5282,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -6248,8 +6249,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/newordercross/NewOrderCross.generated.go b/fix50/newordercross/NewOrderCross.generated.go index b542aa05f..c72f0facd 100644 --- a/fix50/newordercross/NewOrderCross.generated.go +++ b/fix50/newordercross/NewOrderCross.generated.go @@ -1,6 +1,7 @@ package newordercross import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -96,8 +97,8 @@ func (m NewOrderCross) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NewOrderCross) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NewOrderCross) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -141,8 +142,8 @@ func (m NewOrderCross) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m NewOrderCross) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NewOrderCross) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -161,13 +162,13 @@ func (m NewOrderCross) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NewOrderCross) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NewOrderCross) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NewOrderCross) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NewOrderCross) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -186,8 +187,8 @@ func (m NewOrderCross) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NewOrderCross) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NewOrderCross) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -206,8 +207,8 @@ func (m NewOrderCross) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NewOrderCross) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NewOrderCross) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -221,18 +222,18 @@ func (m NewOrderCross) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NewOrderCross) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NewOrderCross) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m NewOrderCross) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m NewOrderCross) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m NewOrderCross) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NewOrderCross) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -251,8 +252,8 @@ func (m NewOrderCross) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m NewOrderCross) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NewOrderCross) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -271,18 +272,18 @@ func (m NewOrderCross) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NewOrderCross) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NewOrderCross) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NewOrderCross) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NewOrderCross) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NewOrderCross) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NewOrderCross) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -296,8 +297,8 @@ func (m NewOrderCross) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NewOrderCross) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NewOrderCross) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -351,8 +352,8 @@ func (m NewOrderCross) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m NewOrderCross) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m NewOrderCross) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -461,8 +462,8 @@ func (m NewOrderCross) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NewOrderCross) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NewOrderCross) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -486,8 +487,8 @@ func (m NewOrderCross) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NewOrderCross) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NewOrderCross) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -581,8 +582,8 @@ func (m NewOrderCross) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m NewOrderCross) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m NewOrderCross) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -631,18 +632,18 @@ func (m NewOrderCross) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NewOrderCross) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NewOrderCross) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NewOrderCross) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NewOrderCross) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NewOrderCross) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NewOrderCross) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -681,8 +682,8 @@ func (m NewOrderCross) SetMaturityTime(v string) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m NewOrderCross) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m NewOrderCross) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -696,28 +697,28 @@ func (m NewOrderCross) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m NewOrderCross) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m NewOrderCross) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m NewOrderCross) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m NewOrderCross) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m NewOrderCross) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m NewOrderCross) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m NewOrderCross) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m NewOrderCross) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m NewOrderCross) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m NewOrderCross) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -766,8 +767,8 @@ func (m NewOrderCross) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m NewOrderCross) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m NewOrderCross) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -806,8 +807,8 @@ func (m NewOrderCross) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m NewOrderCross) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m NewOrderCross) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -816,8 +817,8 @@ func (m NewOrderCross) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m NewOrderCross) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m NewOrderCross) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -841,8 +842,8 @@ func (m NewOrderCross) SetExDestinationIDSource(v string) { } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m NewOrderCross) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m NewOrderCross) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //GetCurrency gets Currency, Tag 15 @@ -2837,18 +2838,18 @@ func (m NoSides) SetQtyType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoSides) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoSides) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoSides) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoSides) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoSides) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoSides) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -2857,13 +2858,13 @@ func (m NoSides) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoSides) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoSides) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCommission sets Commission, Tag 12 -func (m NoSides) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoSides) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -3614,8 +3615,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -3965,13 +3966,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4005,8 +4006,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4020,13 +4021,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4065,8 +4066,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4758,13 +4759,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4798,8 +4799,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4813,13 +4814,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4873,38 +4874,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4913,8 +4914,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4923,8 +4924,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4943,8 +4944,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4958,13 +4959,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -5925,8 +5926,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/neworderlist/NewOrderList.generated.go b/fix50/neworderlist/NewOrderList.generated.go index 91e4b15da..9a47a3cf5 100644 --- a/fix50/neworderlist/NewOrderList.generated.go +++ b/fix50/neworderlist/NewOrderList.generated.go @@ -1,6 +1,7 @@ package neworderlist import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -139,13 +140,13 @@ func (m NewOrderList) SetRegistID(v string) { } //SetAllowableOneSidednessPct sets AllowableOneSidednessPct, Tag 765 -func (m NewOrderList) SetAllowableOneSidednessPct(v float64) { - m.Set(field.NewAllowableOneSidednessPct(v)) +func (m NewOrderList) SetAllowableOneSidednessPct(value decimal.Decimal, scale int32) { + m.Set(field.NewAllowableOneSidednessPct(value, scale)) } //SetAllowableOneSidednessValue sets AllowableOneSidednessValue, Tag 766 -func (m NewOrderList) SetAllowableOneSidednessValue(v float64) { - m.Set(field.NewAllowableOneSidednessValue(v)) +func (m NewOrderList) SetAllowableOneSidednessValue(value decimal.Decimal, scale int32) { + m.Set(field.NewAllowableOneSidednessValue(value, scale)) } //SetAllowableOneSidednessCurr sets AllowableOneSidednessCurr, Tag 767 @@ -501,13 +502,13 @@ func (m NoOrders) SetExecInst(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NoOrders) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NoOrders) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NoOrders) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NoOrders) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -601,13 +602,13 @@ func (m NoOrders) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoOrders) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoOrders) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoOrders) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoOrders) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -641,8 +642,8 @@ func (m NoOrders) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoOrders) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoOrders) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -656,13 +657,13 @@ func (m NoOrders) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoOrders) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoOrders) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoOrders) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoOrders) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -751,18 +752,18 @@ func (m NoOrders) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoOrders) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoOrders) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoOrders) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoOrders) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoOrders) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoOrders) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -801,8 +802,8 @@ func (m NoOrders) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoOrders) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoOrders) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetSide sets Side, Tag 54 @@ -836,18 +837,18 @@ func (m NoOrders) SetQtyType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoOrders) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoOrders) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoOrders) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoOrders) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -856,8 +857,8 @@ func (m NoOrders) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoOrders) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoOrders) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -871,18 +872,18 @@ func (m NoOrders) SetPriceType(v int) { } //SetPrice sets Price, Tag 44 -func (m NoOrders) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoOrders) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetStopPx sets StopPx, Tag 99 -func (m NoOrders) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NoOrders) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m NoOrders) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoOrders) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -901,8 +902,8 @@ func (m NoOrders) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoOrders) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoOrders) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -926,8 +927,8 @@ func (m NoOrders) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoOrders) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoOrders) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -941,8 +942,8 @@ func (m NoOrders) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoOrders) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoOrders) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -1001,8 +1002,8 @@ func (m NoOrders) SetGTBookingInst(v int) { } //SetCommission sets Commission, Tag 12 -func (m NoOrders) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoOrders) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -1071,13 +1072,13 @@ func (m NoOrders) SetSettlDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoOrders) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoOrders) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetPrice2 sets Price2, Tag 640 -func (m NoOrders) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m NoOrders) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetPositionEffect sets PositionEffect, Tag 77 @@ -1091,13 +1092,13 @@ func (m NoOrders) SetCoveredOrUncovered(v int) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NoOrders) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NoOrders) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m NoOrders) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m NoOrders) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetPegMoveType sets PegMoveType, Tag 835 @@ -1156,8 +1157,8 @@ func (m NoOrders) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m NoOrders) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m NoOrders) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetDiscretionMoveType sets DiscretionMoveType, Tag 841 @@ -1196,8 +1197,8 @@ func (m NoOrders) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m NoOrders) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m NoOrders) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetDesignation sets Designation, Tag 494 @@ -1211,8 +1212,8 @@ func (m NoOrders) SetNoStrategyParameters(f NoStrategyParametersRepeatingGroup) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m NoOrders) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m NoOrders) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -1221,8 +1222,8 @@ func (m NoOrders) SetMaxPriceLevels(v int) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m NoOrders) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m NoOrders) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -1236,28 +1237,28 @@ func (m NoOrders) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m NoOrders) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m NoOrders) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m NoOrders) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m NoOrders) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m NoOrders) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m NoOrders) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m NoOrders) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m NoOrders) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m NoOrders) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m NoOrders) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //SetPriceProtectionScope sets PriceProtectionScope, Tag 1092 @@ -1276,8 +1277,8 @@ func (m NoOrders) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m NoOrders) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m NoOrders) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -1316,8 +1317,8 @@ func (m NoOrders) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m NoOrders) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m NoOrders) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -1326,8 +1327,8 @@ func (m NoOrders) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m NoOrders) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m NoOrders) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -3687,8 +3688,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -4070,8 +4071,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4380,13 +4381,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4420,8 +4421,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4435,13 +4436,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4495,38 +4496,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4535,8 +4536,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4545,8 +4546,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4565,8 +4566,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4580,13 +4581,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 diff --git a/fix50/newordermultileg/NewOrderMultileg.generated.go b/fix50/newordermultileg/NewOrderMultileg.generated.go index 6caa23eba..659a18937 100644 --- a/fix50/newordermultileg/NewOrderMultileg.generated.go +++ b/fix50/newordermultileg/NewOrderMultileg.generated.go @@ -1,6 +1,7 @@ package newordermultileg import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -75,8 +76,8 @@ func (m NewOrderMultileg) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m NewOrderMultileg) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NewOrderMultileg) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -110,8 +111,8 @@ func (m NewOrderMultileg) SetIOIID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NewOrderMultileg) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NewOrderMultileg) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -120,8 +121,8 @@ func (m NewOrderMultileg) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NewOrderMultileg) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NewOrderMultileg) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -195,8 +196,8 @@ func (m NewOrderMultileg) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m NewOrderMultileg) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NewOrderMultileg) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -215,13 +216,13 @@ func (m NewOrderMultileg) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NewOrderMultileg) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NewOrderMultileg) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NewOrderMultileg) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NewOrderMultileg) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -250,13 +251,13 @@ func (m NewOrderMultileg) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NewOrderMultileg) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NewOrderMultileg) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NewOrderMultileg) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NewOrderMultileg) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -275,8 +276,8 @@ func (m NewOrderMultileg) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NewOrderMultileg) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NewOrderMultileg) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -295,18 +296,18 @@ func (m NewOrderMultileg) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NewOrderMultileg) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NewOrderMultileg) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m NewOrderMultileg) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m NewOrderMultileg) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NewOrderMultileg) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NewOrderMultileg) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -325,13 +326,13 @@ func (m NewOrderMultileg) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NewOrderMultileg) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NewOrderMultileg) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NewOrderMultileg) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NewOrderMultileg) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -340,8 +341,8 @@ func (m NewOrderMultileg) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NewOrderMultileg) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NewOrderMultileg) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -410,8 +411,8 @@ func (m NewOrderMultileg) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m NewOrderMultileg) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m NewOrderMultileg) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -455,8 +456,8 @@ func (m NewOrderMultileg) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NewOrderMultileg) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NewOrderMultileg) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -505,8 +506,8 @@ func (m NewOrderMultileg) SetRegistID(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NewOrderMultileg) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NewOrderMultileg) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -675,8 +676,8 @@ func (m NewOrderMultileg) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m NewOrderMultileg) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m NewOrderMultileg) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetQtyType sets QtyType, Tag 854 @@ -730,18 +731,18 @@ func (m NewOrderMultileg) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NewOrderMultileg) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NewOrderMultileg) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NewOrderMultileg) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NewOrderMultileg) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NewOrderMultileg) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NewOrderMultileg) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -775,8 +776,8 @@ func (m NewOrderMultileg) SetInstrmtAssignmentMethod(v string) { } //SetSwapPoints sets SwapPoints, Tag 1069 -func (m NewOrderMultileg) SetSwapPoints(v float64) { - m.Set(field.NewSwapPoints(v)) +func (m NewOrderMultileg) SetSwapPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewSwapPoints(value, scale)) } //SetMaturityTime sets MaturityTime, Tag 1079 @@ -795,8 +796,8 @@ func (m NewOrderMultileg) SetRefOrderIDSource(v string) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m NewOrderMultileg) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m NewOrderMultileg) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -810,28 +811,28 @@ func (m NewOrderMultileg) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m NewOrderMultileg) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m NewOrderMultileg) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m NewOrderMultileg) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m NewOrderMultileg) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m NewOrderMultileg) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m NewOrderMultileg) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m NewOrderMultileg) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m NewOrderMultileg) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m NewOrderMultileg) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m NewOrderMultileg) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -885,8 +886,8 @@ func (m NewOrderMultileg) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m NewOrderMultileg) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m NewOrderMultileg) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -925,8 +926,8 @@ func (m NewOrderMultileg) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m NewOrderMultileg) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m NewOrderMultileg) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -935,8 +936,8 @@ func (m NewOrderMultileg) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m NewOrderMultileg) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m NewOrderMultileg) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -955,8 +956,8 @@ func (m NewOrderMultileg) SetExDestinationIDSource(v string) { } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m NewOrderMultileg) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m NewOrderMultileg) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //GetAccount gets Account, Tag 1 @@ -2968,8 +2969,8 @@ func (m NoAllocs) SetNoNested3PartyIDs(f NoNested3PartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -3569,13 +3570,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3609,8 +3610,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3624,13 +3625,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3669,8 +3670,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3714,8 +3715,8 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -3754,8 +3755,8 @@ func (m NoLegs) SetLegRefID(v string) { } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegSettlType sets LegSettlType, Tag 587 @@ -3769,13 +3770,13 @@ func (m NoLegs) SetLegSettlDate(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -4550,8 +4551,8 @@ func (m NoLegAllocs) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetLegAllocQty sets LegAllocQty, Tag 673 -func (m NoLegAllocs) SetLegAllocQty(v float64) { - m.Set(field.NewLegAllocQty(v)) +func (m NoLegAllocs) SetLegAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegAllocQty(value, scale)) } //SetLegAllocAcctIDSource sets LegAllocAcctIDSource, Tag 674 @@ -5064,13 +5065,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -5104,8 +5105,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -5119,13 +5120,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -5179,38 +5180,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -5219,8 +5220,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -5229,8 +5230,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -5249,8 +5250,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -5264,13 +5265,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -6231,8 +6232,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/newordersingle/NewOrderSingle.generated.go b/fix50/newordersingle/NewOrderSingle.generated.go index 7b2d22be0..36e54940b 100644 --- a/fix50/newordersingle/NewOrderSingle.generated.go +++ b/fix50/newordersingle/NewOrderSingle.generated.go @@ -1,6 +1,7 @@ package newordersingle import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -75,8 +76,8 @@ func (m NewOrderSingle) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m NewOrderSingle) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NewOrderSingle) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -110,8 +111,8 @@ func (m NewOrderSingle) SetIOIID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NewOrderSingle) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NewOrderSingle) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -120,8 +121,8 @@ func (m NewOrderSingle) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NewOrderSingle) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NewOrderSingle) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -195,8 +196,8 @@ func (m NewOrderSingle) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m NewOrderSingle) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NewOrderSingle) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -215,13 +216,13 @@ func (m NewOrderSingle) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NewOrderSingle) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NewOrderSingle) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NewOrderSingle) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NewOrderSingle) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -250,13 +251,13 @@ func (m NewOrderSingle) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NewOrderSingle) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NewOrderSingle) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NewOrderSingle) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NewOrderSingle) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -270,8 +271,8 @@ func (m NewOrderSingle) SetEffectiveTime(v time.Time) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NewOrderSingle) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NewOrderSingle) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -285,8 +286,8 @@ func (m NewOrderSingle) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NewOrderSingle) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NewOrderSingle) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -305,18 +306,18 @@ func (m NewOrderSingle) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NewOrderSingle) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NewOrderSingle) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m NewOrderSingle) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m NewOrderSingle) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m NewOrderSingle) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NewOrderSingle) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -335,8 +336,8 @@ func (m NewOrderSingle) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m NewOrderSingle) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NewOrderSingle) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -355,13 +356,13 @@ func (m NewOrderSingle) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NewOrderSingle) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NewOrderSingle) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NewOrderSingle) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NewOrderSingle) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -370,8 +371,8 @@ func (m NewOrderSingle) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NewOrderSingle) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NewOrderSingle) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -385,8 +386,8 @@ func (m NewOrderSingle) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NewOrderSingle) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NewOrderSingle) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -455,8 +456,8 @@ func (m NewOrderSingle) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m NewOrderSingle) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m NewOrderSingle) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -500,8 +501,8 @@ func (m NewOrderSingle) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NewOrderSingle) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NewOrderSingle) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -550,8 +551,8 @@ func (m NewOrderSingle) SetRegistID(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NewOrderSingle) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NewOrderSingle) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -620,8 +621,8 @@ func (m NewOrderSingle) SetClearingFeeIndicator(v string) { } //SetPrice2 sets Price2, Tag 640 -func (m NewOrderSingle) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m NewOrderSingle) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -630,8 +631,8 @@ func (m NewOrderSingle) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NewOrderSingle) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NewOrderSingle) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -655,8 +656,8 @@ func (m NewOrderSingle) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NewOrderSingle) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NewOrderSingle) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -765,8 +766,8 @@ func (m NewOrderSingle) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m NewOrderSingle) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m NewOrderSingle) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetQtyType sets QtyType, Tag 854 @@ -800,8 +801,8 @@ func (m NewOrderSingle) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NewOrderSingle) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NewOrderSingle) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -860,18 +861,18 @@ func (m NewOrderSingle) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NewOrderSingle) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NewOrderSingle) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NewOrderSingle) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NewOrderSingle) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NewOrderSingle) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NewOrderSingle) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -945,8 +946,8 @@ func (m NewOrderSingle) SetRefOrderIDSource(v string) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m NewOrderSingle) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m NewOrderSingle) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -960,28 +961,28 @@ func (m NewOrderSingle) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m NewOrderSingle) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m NewOrderSingle) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m NewOrderSingle) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m NewOrderSingle) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m NewOrderSingle) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m NewOrderSingle) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m NewOrderSingle) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m NewOrderSingle) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m NewOrderSingle) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m NewOrderSingle) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -1035,8 +1036,8 @@ func (m NewOrderSingle) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m NewOrderSingle) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m NewOrderSingle) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -1075,8 +1076,8 @@ func (m NewOrderSingle) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m NewOrderSingle) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m NewOrderSingle) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -1085,8 +1086,8 @@ func (m NewOrderSingle) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m NewOrderSingle) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m NewOrderSingle) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -1105,8 +1106,8 @@ func (m NewOrderSingle) SetExDestinationIDSource(v string) { } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m NewOrderSingle) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m NewOrderSingle) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //GetAccount gets Account, Tag 1 @@ -3449,8 +3450,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -4110,13 +4111,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4150,8 +4151,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4165,13 +4166,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4225,38 +4226,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4265,8 +4266,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4275,8 +4276,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4295,8 +4296,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4310,13 +4311,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -5401,8 +5402,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/news/News.generated.go b/fix50/news/News.generated.go index b7e9651c0..5f4cb9f3e 100644 --- a/fix50/news/News.generated.go +++ b/fix50/news/News.generated.go @@ -1,6 +1,7 @@ package news import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -431,13 +432,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -471,8 +472,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -486,13 +487,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -581,18 +582,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1298,8 +1299,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -1691,13 +1692,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1731,8 +1732,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1746,13 +1747,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1791,8 +1792,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2484,13 +2485,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2524,8 +2525,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2539,13 +2540,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2599,38 +2600,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2639,8 +2640,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2649,8 +2650,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2669,8 +2670,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2684,13 +2685,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 diff --git a/fix50/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go b/fix50/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go index a1331f3db..a8107ed6d 100644 --- a/fix50/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go +++ b/fix50/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go @@ -1,6 +1,7 @@ package ordercancelreplacerequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -76,8 +77,8 @@ func (m OrderCancelReplaceRequest) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m OrderCancelReplaceRequest) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m OrderCancelReplaceRequest) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -111,8 +112,8 @@ func (m OrderCancelReplaceRequest) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m OrderCancelReplaceRequest) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m OrderCancelReplaceRequest) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -126,8 +127,8 @@ func (m OrderCancelReplaceRequest) SetOrigClOrdID(v string) { } //SetPrice sets Price, Tag 44 -func (m OrderCancelReplaceRequest) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m OrderCancelReplaceRequest) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -201,8 +202,8 @@ func (m OrderCancelReplaceRequest) SetNoAllocs(f NoAllocsRepeatingGroup) { } //SetStopPx sets StopPx, Tag 99 -func (m OrderCancelReplaceRequest) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m OrderCancelReplaceRequest) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -221,13 +222,13 @@ func (m OrderCancelReplaceRequest) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m OrderCancelReplaceRequest) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m OrderCancelReplaceRequest) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m OrderCancelReplaceRequest) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m OrderCancelReplaceRequest) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -251,8 +252,8 @@ func (m OrderCancelReplaceRequest) SetExpireTime(v time.Time) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m OrderCancelReplaceRequest) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m OrderCancelReplaceRequest) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -266,8 +267,8 @@ func (m OrderCancelReplaceRequest) SetEffectiveTime(v time.Time) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m OrderCancelReplaceRequest) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m OrderCancelReplaceRequest) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -281,8 +282,8 @@ func (m OrderCancelReplaceRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderCancelReplaceRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderCancelReplaceRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -301,18 +302,18 @@ func (m OrderCancelReplaceRequest) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m OrderCancelReplaceRequest) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m OrderCancelReplaceRequest) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m OrderCancelReplaceRequest) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m OrderCancelReplaceRequest) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m OrderCancelReplaceRequest) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m OrderCancelReplaceRequest) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -331,8 +332,8 @@ func (m OrderCancelReplaceRequest) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderCancelReplaceRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderCancelReplaceRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -351,13 +352,13 @@ func (m OrderCancelReplaceRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderCancelReplaceRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderCancelReplaceRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderCancelReplaceRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderCancelReplaceRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -366,8 +367,8 @@ func (m OrderCancelReplaceRequest) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderCancelReplaceRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderCancelReplaceRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetYieldType sets YieldType, Tag 235 @@ -376,8 +377,8 @@ func (m OrderCancelReplaceRequest) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m OrderCancelReplaceRequest) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m OrderCancelReplaceRequest) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -446,8 +447,8 @@ func (m OrderCancelReplaceRequest) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m OrderCancelReplaceRequest) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m OrderCancelReplaceRequest) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -491,8 +492,8 @@ func (m OrderCancelReplaceRequest) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m OrderCancelReplaceRequest) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m OrderCancelReplaceRequest) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -541,8 +542,8 @@ func (m OrderCancelReplaceRequest) SetRegistID(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m OrderCancelReplaceRequest) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m OrderCancelReplaceRequest) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -616,8 +617,8 @@ func (m OrderCancelReplaceRequest) SetClearingFeeIndicator(v string) { } //SetPrice2 sets Price2, Tag 640 -func (m OrderCancelReplaceRequest) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m OrderCancelReplaceRequest) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -626,8 +627,8 @@ func (m OrderCancelReplaceRequest) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m OrderCancelReplaceRequest) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m OrderCancelReplaceRequest) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -651,8 +652,8 @@ func (m OrderCancelReplaceRequest) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m OrderCancelReplaceRequest) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m OrderCancelReplaceRequest) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -761,8 +762,8 @@ func (m OrderCancelReplaceRequest) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m OrderCancelReplaceRequest) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m OrderCancelReplaceRequest) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetQtyType sets QtyType, Tag 854 @@ -796,8 +797,8 @@ func (m OrderCancelReplaceRequest) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m OrderCancelReplaceRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m OrderCancelReplaceRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -856,18 +857,18 @@ func (m OrderCancelReplaceRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m OrderCancelReplaceRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m OrderCancelReplaceRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m OrderCancelReplaceRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m OrderCancelReplaceRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m OrderCancelReplaceRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m OrderCancelReplaceRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -931,8 +932,8 @@ func (m OrderCancelReplaceRequest) SetMaturityTime(v string) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m OrderCancelReplaceRequest) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m OrderCancelReplaceRequest) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -946,28 +947,28 @@ func (m OrderCancelReplaceRequest) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m OrderCancelReplaceRequest) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m OrderCancelReplaceRequest) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m OrderCancelReplaceRequest) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m OrderCancelReplaceRequest) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m OrderCancelReplaceRequest) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m OrderCancelReplaceRequest) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m OrderCancelReplaceRequest) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m OrderCancelReplaceRequest) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m OrderCancelReplaceRequest) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m OrderCancelReplaceRequest) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -1021,8 +1022,8 @@ func (m OrderCancelReplaceRequest) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m OrderCancelReplaceRequest) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m OrderCancelReplaceRequest) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -1061,8 +1062,8 @@ func (m OrderCancelReplaceRequest) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m OrderCancelReplaceRequest) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m OrderCancelReplaceRequest) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -1071,8 +1072,8 @@ func (m OrderCancelReplaceRequest) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m OrderCancelReplaceRequest) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m OrderCancelReplaceRequest) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -1091,8 +1092,8 @@ func (m OrderCancelReplaceRequest) SetExDestinationIDSource(v string) { } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m OrderCancelReplaceRequest) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m OrderCancelReplaceRequest) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //GetAccount gets Account, Tag 1 @@ -3401,8 +3402,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -4002,13 +4003,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4042,8 +4043,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4057,13 +4058,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4117,38 +4118,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4157,8 +4158,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4167,8 +4168,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4187,8 +4188,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4202,13 +4203,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -5293,8 +5294,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/ordercancelrequest/OrderCancelRequest.generated.go b/fix50/ordercancelrequest/OrderCancelRequest.generated.go index ee355da62..334d11baf 100644 --- a/fix50/ordercancelrequest/OrderCancelRequest.generated.go +++ b/fix50/ordercancelrequest/OrderCancelRequest.generated.go @@ -1,6 +1,7 @@ package ordercancelrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -85,8 +86,8 @@ func (m OrderCancelRequest) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m OrderCancelRequest) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m OrderCancelRequest) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrigClOrdID sets OrigClOrdID, Tag 41 @@ -140,8 +141,8 @@ func (m OrderCancelRequest) SetSecurityDesc(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m OrderCancelRequest) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m OrderCancelRequest) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -155,8 +156,8 @@ func (m OrderCancelRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderCancelRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderCancelRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -170,8 +171,8 @@ func (m OrderCancelRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderCancelRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderCancelRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -190,18 +191,18 @@ func (m OrderCancelRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderCancelRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderCancelRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderCancelRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderCancelRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderCancelRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderCancelRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -280,8 +281,8 @@ func (m OrderCancelRequest) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m OrderCancelRequest) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m OrderCancelRequest) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -300,8 +301,8 @@ func (m OrderCancelRequest) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m OrderCancelRequest) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m OrderCancelRequest) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -390,8 +391,8 @@ func (m OrderCancelRequest) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m OrderCancelRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m OrderCancelRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -445,18 +446,18 @@ func (m OrderCancelRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m OrderCancelRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m OrderCancelRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m OrderCancelRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m OrderCancelRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m OrderCancelRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m OrderCancelRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1739,13 +1740,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1779,8 +1780,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1794,13 +1795,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -1854,38 +1855,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -1894,8 +1895,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -1904,8 +1905,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -1924,8 +1925,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -1939,13 +1940,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2906,8 +2907,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/ordermasscancelreport/OrderMassCancelReport.generated.go b/fix50/ordermasscancelreport/OrderMassCancelReport.generated.go index 49c6c9a2f..c65cc49a1 100644 --- a/fix50/ordermasscancelreport/OrderMassCancelReport.generated.go +++ b/fix50/ordermasscancelreport/OrderMassCancelReport.generated.go @@ -1,6 +1,7 @@ package ordermasscancelreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -134,8 +135,8 @@ func (m OrderMassCancelReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderMassCancelReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderMassCancelReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -149,8 +150,8 @@ func (m OrderMassCancelReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderMassCancelReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderMassCancelReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -169,18 +170,18 @@ func (m OrderMassCancelReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderMassCancelReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderMassCancelReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderMassCancelReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderMassCancelReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderMassCancelReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderMassCancelReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -214,13 +215,13 @@ func (m OrderMassCancelReport) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m OrderMassCancelReport) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m OrderMassCancelReport) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m OrderMassCancelReport) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m OrderMassCancelReport) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -284,8 +285,8 @@ func (m OrderMassCancelReport) SetUnderlyingMaturityMonthYear(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m OrderMassCancelReport) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m OrderMassCancelReport) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -354,13 +355,13 @@ func (m OrderMassCancelReport) SetEncodedUnderlyingSecurityDesc(v string) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m OrderMassCancelReport) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m OrderMassCancelReport) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m OrderMassCancelReport) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m OrderMassCancelReport) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoPartyIDs sets NoPartyIDs, Tag 453 @@ -504,8 +505,8 @@ func (m OrderMassCancelReport) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m OrderMassCancelReport) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m OrderMassCancelReport) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -544,33 +545,33 @@ func (m OrderMassCancelReport) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m OrderMassCancelReport) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m OrderMassCancelReport) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m OrderMassCancelReport) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m OrderMassCancelReport) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m OrderMassCancelReport) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m OrderMassCancelReport) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m OrderMassCancelReport) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m OrderMassCancelReport) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m OrderMassCancelReport) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m OrderMassCancelReport) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m OrderMassCancelReport) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m OrderMassCancelReport) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -599,18 +600,18 @@ func (m OrderMassCancelReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m OrderMassCancelReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m OrderMassCancelReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m OrderMassCancelReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m OrderMassCancelReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m OrderMassCancelReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m OrderMassCancelReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -624,13 +625,13 @@ func (m OrderMassCancelReport) SetNTPositionLimit(v int) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m OrderMassCancelReport) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m OrderMassCancelReport) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m OrderMassCancelReport) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m OrderMassCancelReport) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -669,8 +670,8 @@ func (m OrderMassCancelReport) SetNoInstrumentParties(f NoInstrumentPartiesRepea } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m OrderMassCancelReport) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m OrderMassCancelReport) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetUnderlyingSettlMethod sets UnderlyingSettlMethod, Tag 1039 @@ -679,13 +680,13 @@ func (m OrderMassCancelReport) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m OrderMassCancelReport) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m OrderMassCancelReport) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m OrderMassCancelReport) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m OrderMassCancelReport) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2500,8 +2501,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/ordermasscancelrequest/OrderMassCancelRequest.generated.go b/fix50/ordermasscancelrequest/OrderMassCancelRequest.generated.go index b77365d84..5bb3cbae4 100644 --- a/fix50/ordermasscancelrequest/OrderMassCancelRequest.generated.go +++ b/fix50/ordermasscancelrequest/OrderMassCancelRequest.generated.go @@ -1,6 +1,7 @@ package ordermasscancelrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -124,8 +125,8 @@ func (m OrderMassCancelRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderMassCancelRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderMassCancelRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -139,8 +140,8 @@ func (m OrderMassCancelRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderMassCancelRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderMassCancelRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -159,18 +160,18 @@ func (m OrderMassCancelRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderMassCancelRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderMassCancelRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderMassCancelRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderMassCancelRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderMassCancelRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderMassCancelRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -204,13 +205,13 @@ func (m OrderMassCancelRequest) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m OrderMassCancelRequest) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m OrderMassCancelRequest) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m OrderMassCancelRequest) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m OrderMassCancelRequest) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -274,8 +275,8 @@ func (m OrderMassCancelRequest) SetUnderlyingMaturityMonthYear(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m OrderMassCancelRequest) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m OrderMassCancelRequest) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -344,13 +345,13 @@ func (m OrderMassCancelRequest) SetEncodedUnderlyingSecurityDesc(v string) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m OrderMassCancelRequest) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m OrderMassCancelRequest) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m OrderMassCancelRequest) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m OrderMassCancelRequest) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoPartyIDs sets NoPartyIDs, Tag 453 @@ -474,8 +475,8 @@ func (m OrderMassCancelRequest) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m OrderMassCancelRequest) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m OrderMassCancelRequest) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -514,33 +515,33 @@ func (m OrderMassCancelRequest) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m OrderMassCancelRequest) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m OrderMassCancelRequest) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m OrderMassCancelRequest) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m OrderMassCancelRequest) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m OrderMassCancelRequest) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m OrderMassCancelRequest) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m OrderMassCancelRequest) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m OrderMassCancelRequest) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m OrderMassCancelRequest) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m OrderMassCancelRequest) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m OrderMassCancelRequest) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m OrderMassCancelRequest) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -569,18 +570,18 @@ func (m OrderMassCancelRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m OrderMassCancelRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m OrderMassCancelRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m OrderMassCancelRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m OrderMassCancelRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m OrderMassCancelRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m OrderMassCancelRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -594,13 +595,13 @@ func (m OrderMassCancelRequest) SetNTPositionLimit(v int) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m OrderMassCancelRequest) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m OrderMassCancelRequest) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m OrderMassCancelRequest) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m OrderMassCancelRequest) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -639,8 +640,8 @@ func (m OrderMassCancelRequest) SetNoInstrumentParties(f NoInstrumentPartiesRepe } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m OrderMassCancelRequest) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m OrderMassCancelRequest) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetUnderlyingSettlMethod sets UnderlyingSettlMethod, Tag 1039 @@ -649,13 +650,13 @@ func (m OrderMassCancelRequest) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m OrderMassCancelRequest) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m OrderMassCancelRequest) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m OrderMassCancelRequest) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m OrderMassCancelRequest) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2327,8 +2328,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/ordermassstatusrequest/OrderMassStatusRequest.generated.go b/fix50/ordermassstatusrequest/OrderMassStatusRequest.generated.go index d46e561f8..5751299a1 100644 --- a/fix50/ordermassstatusrequest/OrderMassStatusRequest.generated.go +++ b/fix50/ordermassstatusrequest/OrderMassStatusRequest.generated.go @@ -1,6 +1,7 @@ package ordermassstatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -113,8 +114,8 @@ func (m OrderMassStatusRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderMassStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderMassStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -128,8 +129,8 @@ func (m OrderMassStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderMassStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderMassStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -148,18 +149,18 @@ func (m OrderMassStatusRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderMassStatusRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderMassStatusRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderMassStatusRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderMassStatusRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderMassStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderMassStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -193,13 +194,13 @@ func (m OrderMassStatusRequest) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m OrderMassStatusRequest) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m OrderMassStatusRequest) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m OrderMassStatusRequest) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m OrderMassStatusRequest) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -263,8 +264,8 @@ func (m OrderMassStatusRequest) SetUnderlyingMaturityMonthYear(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m OrderMassStatusRequest) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m OrderMassStatusRequest) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -323,13 +324,13 @@ func (m OrderMassStatusRequest) SetEncodedUnderlyingSecurityDesc(v string) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m OrderMassStatusRequest) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m OrderMassStatusRequest) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m OrderMassStatusRequest) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m OrderMassStatusRequest) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoPartyIDs sets NoPartyIDs, Tag 453 @@ -458,8 +459,8 @@ func (m OrderMassStatusRequest) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m OrderMassStatusRequest) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m OrderMassStatusRequest) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -498,33 +499,33 @@ func (m OrderMassStatusRequest) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m OrderMassStatusRequest) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m OrderMassStatusRequest) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m OrderMassStatusRequest) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m OrderMassStatusRequest) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m OrderMassStatusRequest) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m OrderMassStatusRequest) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m OrderMassStatusRequest) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m OrderMassStatusRequest) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m OrderMassStatusRequest) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m OrderMassStatusRequest) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m OrderMassStatusRequest) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m OrderMassStatusRequest) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -553,18 +554,18 @@ func (m OrderMassStatusRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m OrderMassStatusRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m OrderMassStatusRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m OrderMassStatusRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m OrderMassStatusRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m OrderMassStatusRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m OrderMassStatusRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -578,13 +579,13 @@ func (m OrderMassStatusRequest) SetNTPositionLimit(v int) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m OrderMassStatusRequest) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m OrderMassStatusRequest) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m OrderMassStatusRequest) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m OrderMassStatusRequest) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -623,8 +624,8 @@ func (m OrderMassStatusRequest) SetNoInstrumentParties(f NoInstrumentPartiesRepe } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m OrderMassStatusRequest) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m OrderMassStatusRequest) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetUnderlyingSettlMethod sets UnderlyingSettlMethod, Tag 1039 @@ -633,13 +634,13 @@ func (m OrderMassStatusRequest) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m OrderMassStatusRequest) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m OrderMassStatusRequest) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m OrderMassStatusRequest) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m OrderMassStatusRequest) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2278,8 +2279,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/orderstatusrequest/OrderStatusRequest.generated.go b/fix50/orderstatusrequest/OrderStatusRequest.generated.go index 657a4c050..1118c7b24 100644 --- a/fix50/orderstatusrequest/OrderStatusRequest.generated.go +++ b/fix50/orderstatusrequest/OrderStatusRequest.generated.go @@ -1,6 +1,7 @@ package orderstatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -123,8 +124,8 @@ func (m OrderStatusRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -138,8 +139,8 @@ func (m OrderStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -158,18 +159,18 @@ func (m OrderStatusRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderStatusRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderStatusRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderStatusRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderStatusRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -323,8 +324,8 @@ func (m OrderStatusRequest) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m OrderStatusRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m OrderStatusRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -378,18 +379,18 @@ func (m OrderStatusRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m OrderStatusRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m OrderStatusRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m OrderStatusRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m OrderStatusRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m OrderStatusRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m OrderStatusRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1529,13 +1530,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1569,8 +1570,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1584,13 +1585,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -1644,38 +1645,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -1684,8 +1685,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -1694,8 +1695,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -1714,8 +1715,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -1729,13 +1730,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2696,8 +2697,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/positionmaintenancereport/PositionMaintenanceReport.generated.go b/fix50/positionmaintenancereport/PositionMaintenanceReport.generated.go index fe12b0e91..d0fbad101 100644 --- a/fix50/positionmaintenancereport/PositionMaintenanceReport.generated.go +++ b/fix50/positionmaintenancereport/PositionMaintenanceReport.generated.go @@ -1,6 +1,7 @@ package positionmaintenancereport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -131,8 +132,8 @@ func (m PositionMaintenanceReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m PositionMaintenanceReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m PositionMaintenanceReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -146,8 +147,8 @@ func (m PositionMaintenanceReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m PositionMaintenanceReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m PositionMaintenanceReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -166,18 +167,18 @@ func (m PositionMaintenanceReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m PositionMaintenanceReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m PositionMaintenanceReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m PositionMaintenanceReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m PositionMaintenanceReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m PositionMaintenanceReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m PositionMaintenanceReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -391,8 +392,8 @@ func (m PositionMaintenanceReport) SetSecuritySubType(v string) { } //SetThresholdAmount sets ThresholdAmount, Tag 834 -func (m PositionMaintenanceReport) SetThresholdAmount(v float64) { - m.Set(field.NewThresholdAmount(v)) +func (m PositionMaintenanceReport) SetThresholdAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewThresholdAmount(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -436,18 +437,18 @@ func (m PositionMaintenanceReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m PositionMaintenanceReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m PositionMaintenanceReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m PositionMaintenanceReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m PositionMaintenanceReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m PositionMaintenanceReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m PositionMaintenanceReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1772,13 +1773,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1812,8 +1813,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1827,13 +1828,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1872,8 +1873,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2495,13 +2496,13 @@ func (m NoPositions) SetPosType(v string) { } //SetLongQty sets LongQty, Tag 704 -func (m NoPositions) SetLongQty(v float64) { - m.Set(field.NewLongQty(v)) +func (m NoPositions) SetLongQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLongQty(value, scale)) } //SetShortQty sets ShortQty, Tag 705 -func (m NoPositions) SetShortQty(v float64) { - m.Set(field.NewShortQty(v)) +func (m NoPositions) SetShortQty(value decimal.Decimal, scale int32) { + m.Set(field.NewShortQty(value, scale)) } //SetPosQtyStatus sets PosQtyStatus, Tag 706 @@ -2843,13 +2844,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2883,8 +2884,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2898,13 +2899,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2958,38 +2959,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2998,8 +2999,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3008,8 +3009,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3028,8 +3029,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3043,13 +3044,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4005,8 +4006,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -4086,8 +4087,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/positionmaintenancerequest/PositionMaintenanceRequest.generated.go b/fix50/positionmaintenancerequest/PositionMaintenanceRequest.generated.go index 1210d1643..7dfa0ed6c 100644 --- a/fix50/positionmaintenancerequest/PositionMaintenanceRequest.generated.go +++ b/fix50/positionmaintenancerequest/PositionMaintenanceRequest.generated.go @@ -1,6 +1,7 @@ package positionmaintenancerequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -129,8 +130,8 @@ func (m PositionMaintenanceRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m PositionMaintenanceRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m PositionMaintenanceRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -144,8 +145,8 @@ func (m PositionMaintenanceRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m PositionMaintenanceRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m PositionMaintenanceRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -164,18 +165,18 @@ func (m PositionMaintenanceRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m PositionMaintenanceRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m PositionMaintenanceRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m PositionMaintenanceRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m PositionMaintenanceRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m PositionMaintenanceRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m PositionMaintenanceRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -374,8 +375,8 @@ func (m PositionMaintenanceRequest) SetSecuritySubType(v string) { } //SetThresholdAmount sets ThresholdAmount, Tag 834 -func (m PositionMaintenanceRequest) SetThresholdAmount(v float64) { - m.Set(field.NewThresholdAmount(v)) +func (m PositionMaintenanceRequest) SetThresholdAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewThresholdAmount(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -419,18 +420,18 @@ func (m PositionMaintenanceRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m PositionMaintenanceRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m PositionMaintenanceRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m PositionMaintenanceRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m PositionMaintenanceRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m PositionMaintenanceRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m PositionMaintenanceRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1722,13 +1723,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1762,8 +1763,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1777,13 +1778,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1822,8 +1823,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2445,13 +2446,13 @@ func (m NoPositions) SetPosType(v string) { } //SetLongQty sets LongQty, Tag 704 -func (m NoPositions) SetLongQty(v float64) { - m.Set(field.NewLongQty(v)) +func (m NoPositions) SetLongQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLongQty(value, scale)) } //SetShortQty sets ShortQty, Tag 705 -func (m NoPositions) SetShortQty(v float64) { - m.Set(field.NewShortQty(v)) +func (m NoPositions) SetShortQty(value decimal.Decimal, scale int32) { + m.Set(field.NewShortQty(value, scale)) } //SetPosQtyStatus sets PosQtyStatus, Tag 706 @@ -2793,13 +2794,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2833,8 +2834,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2848,13 +2849,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2908,38 +2909,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2948,8 +2949,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2958,8 +2959,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2978,8 +2979,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2993,13 +2994,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3955,8 +3956,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -4036,8 +4037,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/positionreport/PositionReport.generated.go b/fix50/positionreport/PositionReport.generated.go index def88f386..af9a9e413 100644 --- a/fix50/positionreport/PositionReport.generated.go +++ b/fix50/positionreport/PositionReport.generated.go @@ -1,6 +1,7 @@ package positionreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -123,8 +124,8 @@ func (m PositionReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m PositionReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m PositionReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -138,8 +139,8 @@ func (m PositionReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m PositionReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m PositionReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -158,18 +159,18 @@ func (m PositionReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m PositionReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m PositionReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m PositionReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m PositionReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m PositionReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m PositionReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -363,8 +364,8 @@ func (m PositionReport) SetPosReqResult(v int) { } //SetSettlPrice sets SettlPrice, Tag 730 -func (m PositionReport) SetSettlPrice(v float64) { - m.Set(field.NewSettlPrice(v)) +func (m PositionReport) SetSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlPrice(value, scale)) } //SetSettlPriceType sets SettlPriceType, Tag 731 @@ -373,8 +374,8 @@ func (m PositionReport) SetSettlPriceType(v int) { } //SetPriorSettlPrice sets PriorSettlPrice, Tag 734 -func (m PositionReport) SetPriorSettlPrice(v float64) { - m.Set(field.NewPriorSettlPrice(v)) +func (m PositionReport) SetPriorSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPriorSettlPrice(value, scale)) } //SetDeliveryDate sets DeliveryDate, Tag 743 @@ -433,18 +434,18 @@ func (m PositionReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m PositionReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m PositionReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m PositionReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m PositionReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m PositionReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m PositionReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1724,13 +1725,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1764,8 +1765,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1779,13 +1780,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1824,8 +1825,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2447,13 +2448,13 @@ func (m NoPositions) SetPosType(v string) { } //SetLongQty sets LongQty, Tag 704 -func (m NoPositions) SetLongQty(v float64) { - m.Set(field.NewLongQty(v)) +func (m NoPositions) SetLongQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLongQty(value, scale)) } //SetShortQty sets ShortQty, Tag 705 -func (m NoPositions) SetShortQty(v float64) { - m.Set(field.NewShortQty(v)) +func (m NoPositions) SetShortQty(value decimal.Decimal, scale int32) { + m.Set(field.NewShortQty(value, scale)) } //SetPosQtyStatus sets PosQtyStatus, Tag 706 @@ -2795,13 +2796,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2835,8 +2836,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2850,13 +2851,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2910,38 +2911,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2950,8 +2951,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2960,8 +2961,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2980,8 +2981,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2995,13 +2996,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3010,8 +3011,8 @@ func (m NoUnderlyings) SetUnderlyingFXRateCalc(v string) { } //SetUnderlyingSettlPrice sets UnderlyingSettlPrice, Tag 732 -func (m NoUnderlyings) SetUnderlyingSettlPrice(v float64) { - m.Set(field.NewUnderlyingSettlPrice(v)) +func (m NoUnderlyings) SetUnderlyingSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingSettlPrice(value, scale)) } //SetUnderlyingSettlPriceType sets UnderlyingSettlPriceType, Tag 733 @@ -3025,8 +3026,8 @@ func (m NoUnderlyings) SetNoUnderlyingAmounts(f NoUnderlyingAmountsRepeatingGrou } //SetUnderlyingDeliveryAmount sets UnderlyingDeliveryAmount, Tag 1037 -func (m NoUnderlyings) SetUnderlyingDeliveryAmount(v float64) { - m.Set(field.NewUnderlyingDeliveryAmount(v)) +func (m NoUnderlyings) SetUnderlyingDeliveryAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDeliveryAmount(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -3994,13 +3995,13 @@ type NoUnderlyingAmounts struct { } //SetUnderlyingPayAmount sets UnderlyingPayAmount, Tag 985 -func (m NoUnderlyingAmounts) SetUnderlyingPayAmount(v float64) { - m.Set(field.NewUnderlyingPayAmount(v)) +func (m NoUnderlyingAmounts) SetUnderlyingPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPayAmount(value, scale)) } //SetUnderlyingCollectAmount sets UnderlyingCollectAmount, Tag 986 -func (m NoUnderlyingAmounts) SetUnderlyingCollectAmount(v float64) { - m.Set(field.NewUnderlyingCollectAmount(v)) +func (m NoUnderlyingAmounts) SetUnderlyingCollectAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCollectAmount(value, scale)) } //SetUnderlyingSettlementDate sets UnderlyingSettlementDate, Tag 987 @@ -4114,8 +4115,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -4195,8 +4196,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/quote/Quote.generated.go b/fix50/quote/Quote.generated.go index 0c1e2dfc8..7b54512d6 100644 --- a/fix50/quote/Quote.generated.go +++ b/fix50/quote/Quote.generated.go @@ -1,6 +1,7 @@ package quote import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -67,8 +68,8 @@ func (m Quote) SetAccount(v string) { } //SetCommission sets Commission, Tag 12 -func (m Quote) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m Quote) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -87,8 +88,8 @@ func (m Quote) SetSecurityIDSource(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m Quote) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m Quote) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -167,28 +168,28 @@ func (m Quote) SetQuoteReqID(v string) { } //SetBidPx sets BidPx, Tag 132 -func (m Quote) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m Quote) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m Quote) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m Quote) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m Quote) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m Quote) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m Quote) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m Quote) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m Quote) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m Quote) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -202,28 +203,28 @@ func (m Quote) SetSecurityType(v string) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m Quote) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m Quote) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m Quote) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m Quote) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m Quote) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m Quote) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m Quote) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m Quote) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m Quote) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m Quote) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -237,8 +238,8 @@ func (m Quote) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m Quote) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m Quote) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -252,8 +253,8 @@ func (m Quote) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m Quote) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m Quote) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -272,8 +273,8 @@ func (m Quote) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m Quote) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m Quote) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -292,18 +293,18 @@ func (m Quote) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m Quote) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m Quote) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m Quote) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m Quote) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m Quote) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m Quote) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -317,8 +318,8 @@ func (m Quote) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m Quote) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m Quote) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -407,8 +408,8 @@ func (m Quote) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m Quote) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m Quote) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -427,8 +428,8 @@ func (m Quote) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m Quote) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m Quote) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetOrderCapacity sets OrderCapacity, Tag 528 @@ -472,63 +473,63 @@ func (m Quote) SetTradingSessionSubID(v string) { } //SetMidPx sets MidPx, Tag 631 -func (m Quote) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m Quote) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m Quote) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m Quote) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m Quote) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m Quote) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m Quote) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m Quote) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m Quote) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m Quote) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m Quote) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m Quote) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetMktBidPx sets MktBidPx, Tag 645 -func (m Quote) SetMktBidPx(v float64) { - m.Set(field.NewMktBidPx(v)) +func (m Quote) SetMktBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktBidPx(value, scale)) } //SetMktOfferPx sets MktOfferPx, Tag 646 -func (m Quote) SetMktOfferPx(v float64) { - m.Set(field.NewMktOfferPx(v)) +func (m Quote) SetMktOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktOfferPx(value, scale)) } //SetMinBidSize sets MinBidSize, Tag 647 -func (m Quote) SetMinBidSize(v float64) { - m.Set(field.NewMinBidSize(v)) +func (m Quote) SetMinBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinBidSize(value, scale)) } //SetMinOfferSize sets MinOfferSize, Tag 648 -func (m Quote) SetMinOfferSize(v float64) { - m.Set(field.NewMinOfferSize(v)) +func (m Quote) SetMinOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinOfferSize(value, scale)) } //SetSettlCurrBidFxRate sets SettlCurrBidFxRate, Tag 656 -func (m Quote) SetSettlCurrBidFxRate(v float64) { - m.Set(field.NewSettlCurrBidFxRate(v)) +func (m Quote) SetSettlCurrBidFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrBidFxRate(value, scale)) } //SetSettlCurrOfferFxRate sets SettlCurrOfferFxRate, Tag 657 -func (m Quote) SetSettlCurrOfferFxRate(v float64) { - m.Set(field.NewSettlCurrOfferFxRate(v)) +func (m Quote) SetSettlCurrOfferFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrOfferFxRate(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -537,8 +538,8 @@ func (m Quote) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m Quote) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m Quote) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -567,8 +568,8 @@ func (m Quote) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m Quote) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m Quote) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -637,8 +638,8 @@ func (m Quote) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m Quote) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m Quote) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -692,18 +693,18 @@ func (m Quote) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m Quote) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m Quote) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m Quote) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m Quote) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m Quote) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m Quote) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -737,13 +738,13 @@ func (m Quote) SetInstrmtAssignmentMethod(v string) { } //SetBidSwapPoints sets BidSwapPoints, Tag 1065 -func (m Quote) SetBidSwapPoints(v float64) { - m.Set(field.NewBidSwapPoints(v)) +func (m Quote) SetBidSwapPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSwapPoints(value, scale)) } //SetOfferSwapPoints sets OfferSwapPoints, Tag 1066 -func (m Quote) SetOfferSwapPoints(v float64) { - m.Set(field.NewOfferSwapPoints(v)) +func (m Quote) SetOfferSwapPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSwapPoints(value, scale)) } //SetMaturityTime sets MaturityTime, Tag 1079 @@ -2647,13 +2648,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2687,8 +2688,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2702,13 +2703,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2747,8 +2748,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2792,8 +2793,8 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -2827,13 +2828,13 @@ func (m NoLegs) SetLegPriceType(v int) { } //SetLegBidPx sets LegBidPx, Tag 681 -func (m NoLegs) SetLegBidPx(v float64) { - m.Set(field.NewLegBidPx(v)) +func (m NoLegs) SetLegBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBidPx(value, scale)) } //SetLegOfferPx sets LegOfferPx, Tag 684 -func (m NoLegs) SetLegOfferPx(v float64) { - m.Set(field.NewLegOfferPx(v)) +func (m NoLegs) SetLegOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOfferPx(value, scale)) } //SetLegBenchmarkCurveCurrency sets LegBenchmarkCurveCurrency, Tag 676 @@ -2852,8 +2853,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 @@ -2862,8 +2863,8 @@ func (m NoLegs) SetLegBenchmarkPriceType(v int) { } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //SetLegRefID sets LegRefID, Tag 654 @@ -2872,13 +2873,13 @@ func (m NoLegs) SetLegRefID(v string) { } //SetLegBidForwardPoints sets LegBidForwardPoints, Tag 1067 -func (m NoLegs) SetLegBidForwardPoints(v float64) { - m.Set(field.NewLegBidForwardPoints(v)) +func (m NoLegs) SetLegBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBidForwardPoints(value, scale)) } //SetLegOfferForwardPoints sets LegOfferForwardPoints, Tag 1068 -func (m NoLegs) SetLegOfferForwardPoints(v float64) { - m.Set(field.NewLegOfferForwardPoints(v)) +func (m NoLegs) SetLegOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOfferForwardPoints(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -3943,13 +3944,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3983,8 +3984,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3998,13 +3999,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4058,38 +4059,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4098,8 +4099,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4108,8 +4109,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4128,8 +4129,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4143,13 +4144,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -5154,8 +5155,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/quotecancel/QuoteCancel.generated.go b/fix50/quotecancel/QuoteCancel.generated.go index 19a0e5a85..759691652 100644 --- a/fix50/quotecancel/QuoteCancel.generated.go +++ b/fix50/quotecancel/QuoteCancel.generated.go @@ -1,6 +1,7 @@ package quotecancel import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -320,13 +321,13 @@ func (m NoQuoteEntries) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoQuoteEntries) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoQuoteEntries) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoQuoteEntries) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoQuoteEntries) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -360,8 +361,8 @@ func (m NoQuoteEntries) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoQuoteEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoQuoteEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -375,13 +376,13 @@ func (m NoQuoteEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoQuoteEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoQuoteEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoQuoteEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoQuoteEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -470,18 +471,18 @@ func (m NoQuoteEntries) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoQuoteEntries) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoQuoteEntries) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoQuoteEntries) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoQuoteEntries) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoQuoteEntries) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoQuoteEntries) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -555,8 +556,8 @@ func (m NoQuoteEntries) SetDeliveryType(v int) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NoQuoteEntries) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NoQuoteEntries) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetNoUnderlyings sets NoUnderlyings, Tag 711 @@ -1365,8 +1366,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -1675,13 +1676,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1715,8 +1716,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1730,13 +1731,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -1790,38 +1791,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -1830,8 +1831,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -1840,8 +1841,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -1860,8 +1861,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -1875,13 +1876,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2907,13 +2908,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2947,8 +2948,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2962,13 +2963,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3007,8 +3008,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 diff --git a/fix50/quoterequest/QuoteRequest.generated.go b/fix50/quoterequest/QuoteRequest.generated.go index 7973470f0..98413b944 100644 --- a/fix50/quoterequest/QuoteRequest.generated.go +++ b/fix50/quoterequest/QuoteRequest.generated.go @@ -1,6 +1,7 @@ package quoterequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -271,13 +272,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -311,8 +312,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -326,13 +327,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -421,18 +422,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -506,8 +507,8 @@ func (m NoRelatedSym) SetDeliveryType(v int) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NoRelatedSym) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NoRelatedSym) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetNoUnderlyings sets NoUnderlyings, Tag 711 @@ -516,8 +517,8 @@ func (m NoRelatedSym) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoRelatedSym) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoRelatedSym) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetQuoteRequestType sets QuoteRequestType, Tag 303 @@ -556,18 +557,18 @@ func (m NoRelatedSym) SetQtyType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoRelatedSym) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoRelatedSym) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoRelatedSym) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoRelatedSym) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoRelatedSym) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoRelatedSym) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -576,8 +577,8 @@ func (m NoRelatedSym) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoRelatedSym) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoRelatedSym) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetSettlType sets SettlType, Tag 63 @@ -596,8 +597,8 @@ func (m NoRelatedSym) SetSettlDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoRelatedSym) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoRelatedSym) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -661,8 +662,8 @@ func (m NoRelatedSym) SetTransactTime(v time.Time) { } //SetSpread sets Spread, Tag 218 -func (m NoRelatedSym) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoRelatedSym) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -681,8 +682,8 @@ func (m NoRelatedSym) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoRelatedSym) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoRelatedSym) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -706,13 +707,13 @@ func (m NoRelatedSym) SetPriceType(v int) { } //SetPrice sets Price, Tag 44 -func (m NoRelatedSym) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoRelatedSym) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetPrice2 sets Price2, Tag 640 -func (m NoRelatedSym) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m NoRelatedSym) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetYieldType sets YieldType, Tag 235 @@ -721,8 +722,8 @@ func (m NoRelatedSym) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoRelatedSym) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoRelatedSym) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -736,8 +737,8 @@ func (m NoRelatedSym) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoRelatedSym) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoRelatedSym) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -2055,8 +2056,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2365,13 +2366,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2405,8 +2406,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2420,13 +2421,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2480,38 +2481,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2520,8 +2521,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2530,8 +2531,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2550,8 +2551,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2565,13 +2566,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3657,13 +3658,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3697,8 +3698,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3712,13 +3713,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3757,8 +3758,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3802,8 +3803,8 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -3847,8 +3848,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 @@ -3857,18 +3858,18 @@ func (m NoLegs) SetLegBenchmarkPriceType(v int) { } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegRefID sets LegRefID, Tag 654 diff --git a/fix50/quoterequestreject/QuoteRequestReject.generated.go b/fix50/quoterequestreject/QuoteRequestReject.generated.go index b7d44d877..aa5f43b11 100644 --- a/fix50/quoterequestreject/QuoteRequestReject.generated.go +++ b/fix50/quoterequestreject/QuoteRequestReject.generated.go @@ -1,6 +1,7 @@ package quoterequestreject import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -256,13 +257,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -296,8 +297,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -311,13 +312,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -406,18 +407,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -491,8 +492,8 @@ func (m NoRelatedSym) SetDeliveryType(v int) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NoRelatedSym) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NoRelatedSym) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetNoUnderlyings sets NoUnderlyings, Tag 711 @@ -501,8 +502,8 @@ func (m NoRelatedSym) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoRelatedSym) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoRelatedSym) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetQuoteRequestType sets QuoteRequestType, Tag 303 @@ -541,18 +542,18 @@ func (m NoRelatedSym) SetQtyType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoRelatedSym) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoRelatedSym) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoRelatedSym) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoRelatedSym) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoRelatedSym) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoRelatedSym) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -561,8 +562,8 @@ func (m NoRelatedSym) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoRelatedSym) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoRelatedSym) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetSettlType sets SettlType, Tag 63 @@ -581,8 +582,8 @@ func (m NoRelatedSym) SetSettlDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoRelatedSym) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoRelatedSym) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -641,8 +642,8 @@ func (m NoRelatedSym) SetTransactTime(v time.Time) { } //SetSpread sets Spread, Tag 218 -func (m NoRelatedSym) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoRelatedSym) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -661,8 +662,8 @@ func (m NoRelatedSym) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoRelatedSym) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoRelatedSym) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -686,13 +687,13 @@ func (m NoRelatedSym) SetPriceType(v int) { } //SetPrice sets Price, Tag 44 -func (m NoRelatedSym) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoRelatedSym) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetPrice2 sets Price2, Tag 640 -func (m NoRelatedSym) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m NoRelatedSym) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetYieldType sets YieldType, Tag 235 @@ -701,8 +702,8 @@ func (m NoRelatedSym) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoRelatedSym) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoRelatedSym) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -716,8 +717,8 @@ func (m NoRelatedSym) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoRelatedSym) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoRelatedSym) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -2024,8 +2025,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2334,13 +2335,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2374,8 +2375,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2389,13 +2390,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2449,38 +2450,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2489,8 +2490,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2499,8 +2500,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2519,8 +2520,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2534,13 +2535,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3626,13 +3627,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3666,8 +3667,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3681,13 +3682,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3726,8 +3727,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3771,8 +3772,8 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -3816,8 +3817,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 @@ -3826,18 +3827,18 @@ func (m NoLegs) SetLegBenchmarkPriceType(v int) { } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegRefID sets LegRefID, Tag 654 diff --git a/fix50/quoteresponse/QuoteResponse.generated.go b/fix50/quoteresponse/QuoteResponse.generated.go index 9bc4c2002..690426cb0 100644 --- a/fix50/quoteresponse/QuoteResponse.generated.go +++ b/fix50/quoteresponse/QuoteResponse.generated.go @@ -1,6 +1,7 @@ package quoteresponse import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -73,8 +74,8 @@ func (m QuoteResponse) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m QuoteResponse) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m QuoteResponse) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -98,8 +99,8 @@ func (m QuoteResponse) SetIOIID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m QuoteResponse) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m QuoteResponse) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -108,8 +109,8 @@ func (m QuoteResponse) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m QuoteResponse) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m QuoteResponse) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -178,28 +179,28 @@ func (m QuoteResponse) SetQuoteID(v string) { } //SetBidPx sets BidPx, Tag 132 -func (m QuoteResponse) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m QuoteResponse) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m QuoteResponse) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m QuoteResponse) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m QuoteResponse) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m QuoteResponse) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m QuoteResponse) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m QuoteResponse) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m QuoteResponse) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m QuoteResponse) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -213,28 +214,28 @@ func (m QuoteResponse) SetSecurityType(v string) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m QuoteResponse) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m QuoteResponse) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m QuoteResponse) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m QuoteResponse) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m QuoteResponse) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m QuoteResponse) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m QuoteResponse) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m QuoteResponse) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m QuoteResponse) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m QuoteResponse) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -248,8 +249,8 @@ func (m QuoteResponse) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m QuoteResponse) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m QuoteResponse) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -263,8 +264,8 @@ func (m QuoteResponse) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m QuoteResponse) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m QuoteResponse) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -283,8 +284,8 @@ func (m QuoteResponse) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m QuoteResponse) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m QuoteResponse) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -303,18 +304,18 @@ func (m QuoteResponse) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m QuoteResponse) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m QuoteResponse) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m QuoteResponse) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m QuoteResponse) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m QuoteResponse) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m QuoteResponse) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -328,8 +329,8 @@ func (m QuoteResponse) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m QuoteResponse) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m QuoteResponse) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -413,8 +414,8 @@ func (m QuoteResponse) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m QuoteResponse) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m QuoteResponse) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -433,8 +434,8 @@ func (m QuoteResponse) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m QuoteResponse) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m QuoteResponse) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetOrderCapacity sets OrderCapacity, Tag 528 @@ -478,63 +479,63 @@ func (m QuoteResponse) SetTradingSessionSubID(v string) { } //SetMidPx sets MidPx, Tag 631 -func (m QuoteResponse) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m QuoteResponse) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m QuoteResponse) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m QuoteResponse) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m QuoteResponse) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m QuoteResponse) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m QuoteResponse) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m QuoteResponse) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m QuoteResponse) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m QuoteResponse) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m QuoteResponse) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m QuoteResponse) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetMktBidPx sets MktBidPx, Tag 645 -func (m QuoteResponse) SetMktBidPx(v float64) { - m.Set(field.NewMktBidPx(v)) +func (m QuoteResponse) SetMktBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktBidPx(value, scale)) } //SetMktOfferPx sets MktOfferPx, Tag 646 -func (m QuoteResponse) SetMktOfferPx(v float64) { - m.Set(field.NewMktOfferPx(v)) +func (m QuoteResponse) SetMktOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktOfferPx(value, scale)) } //SetMinBidSize sets MinBidSize, Tag 647 -func (m QuoteResponse) SetMinBidSize(v float64) { - m.Set(field.NewMinBidSize(v)) +func (m QuoteResponse) SetMinBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinBidSize(value, scale)) } //SetMinOfferSize sets MinOfferSize, Tag 648 -func (m QuoteResponse) SetMinOfferSize(v float64) { - m.Set(field.NewMinOfferSize(v)) +func (m QuoteResponse) SetMinOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinOfferSize(value, scale)) } //SetSettlCurrBidFxRate sets SettlCurrBidFxRate, Tag 656 -func (m QuoteResponse) SetSettlCurrBidFxRate(v float64) { - m.Set(field.NewSettlCurrBidFxRate(v)) +func (m QuoteResponse) SetSettlCurrBidFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrBidFxRate(value, scale)) } //SetSettlCurrOfferFxRate sets SettlCurrOfferFxRate, Tag 657 -func (m QuoteResponse) SetSettlCurrOfferFxRate(v float64) { - m.Set(field.NewSettlCurrOfferFxRate(v)) +func (m QuoteResponse) SetSettlCurrOfferFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrOfferFxRate(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -543,8 +544,8 @@ func (m QuoteResponse) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m QuoteResponse) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m QuoteResponse) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -578,8 +579,8 @@ func (m QuoteResponse) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m QuoteResponse) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m QuoteResponse) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -648,8 +649,8 @@ func (m QuoteResponse) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m QuoteResponse) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m QuoteResponse) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -703,18 +704,18 @@ func (m QuoteResponse) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m QuoteResponse) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m QuoteResponse) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m QuoteResponse) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m QuoteResponse) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m QuoteResponse) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m QuoteResponse) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -2648,13 +2649,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2688,8 +2689,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2703,13 +2704,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2748,8 +2749,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2793,8 +2794,8 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -2828,13 +2829,13 @@ func (m NoLegs) SetLegPriceType(v int) { } //SetLegBidPx sets LegBidPx, Tag 681 -func (m NoLegs) SetLegBidPx(v float64) { - m.Set(field.NewLegBidPx(v)) +func (m NoLegs) SetLegBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBidPx(value, scale)) } //SetLegOfferPx sets LegOfferPx, Tag 684 -func (m NoLegs) SetLegOfferPx(v float64) { - m.Set(field.NewLegOfferPx(v)) +func (m NoLegs) SetLegOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOfferPx(value, scale)) } //SetLegBenchmarkCurveCurrency sets LegBenchmarkCurveCurrency, Tag 676 @@ -2853,8 +2854,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 @@ -2863,8 +2864,8 @@ func (m NoLegs) SetLegBenchmarkPriceType(v int) { } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //SetLegRefID sets LegRefID, Tag 654 @@ -2873,13 +2874,13 @@ func (m NoLegs) SetLegRefID(v string) { } //SetLegBidForwardPoints sets LegBidForwardPoints, Tag 1067 -func (m NoLegs) SetLegBidForwardPoints(v float64) { - m.Set(field.NewLegBidForwardPoints(v)) +func (m NoLegs) SetLegBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBidForwardPoints(value, scale)) } //SetLegOfferForwardPoints sets LegOfferForwardPoints, Tag 1068 -func (m NoLegs) SetLegOfferForwardPoints(v float64) { - m.Set(field.NewLegOfferForwardPoints(v)) +func (m NoLegs) SetLegOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOfferForwardPoints(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -3944,13 +3945,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3984,8 +3985,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3999,13 +4000,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4059,38 +4060,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4099,8 +4100,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4109,8 +4110,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4129,8 +4130,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4144,13 +4145,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -5155,8 +5156,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/quotestatusreport/QuoteStatusReport.generated.go b/fix50/quotestatusreport/QuoteStatusReport.generated.go index 7d49095ad..bc6b5889a 100644 --- a/fix50/quotestatusreport/QuoteStatusReport.generated.go +++ b/fix50/quotestatusreport/QuoteStatusReport.generated.go @@ -1,6 +1,7 @@ package quotestatusreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -67,8 +68,8 @@ func (m QuoteStatusReport) SetAccount(v string) { } //SetCommission sets Commission, Tag 12 -func (m QuoteStatusReport) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m QuoteStatusReport) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -87,8 +88,8 @@ func (m QuoteStatusReport) SetSecurityIDSource(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m QuoteStatusReport) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m QuoteStatusReport) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -97,8 +98,8 @@ func (m QuoteStatusReport) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m QuoteStatusReport) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m QuoteStatusReport) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -177,28 +178,28 @@ func (m QuoteStatusReport) SetQuoteReqID(v string) { } //SetBidPx sets BidPx, Tag 132 -func (m QuoteStatusReport) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m QuoteStatusReport) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m QuoteStatusReport) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m QuoteStatusReport) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m QuoteStatusReport) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m QuoteStatusReport) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m QuoteStatusReport) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m QuoteStatusReport) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m QuoteStatusReport) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m QuoteStatusReport) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -212,28 +213,28 @@ func (m QuoteStatusReport) SetSecurityType(v string) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m QuoteStatusReport) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m QuoteStatusReport) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m QuoteStatusReport) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m QuoteStatusReport) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m QuoteStatusReport) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m QuoteStatusReport) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m QuoteStatusReport) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m QuoteStatusReport) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m QuoteStatusReport) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m QuoteStatusReport) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -247,8 +248,8 @@ func (m QuoteStatusReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m QuoteStatusReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m QuoteStatusReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -262,8 +263,8 @@ func (m QuoteStatusReport) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m QuoteStatusReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m QuoteStatusReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -282,8 +283,8 @@ func (m QuoteStatusReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m QuoteStatusReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m QuoteStatusReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -302,18 +303,18 @@ func (m QuoteStatusReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m QuoteStatusReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m QuoteStatusReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m QuoteStatusReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m QuoteStatusReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m QuoteStatusReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m QuoteStatusReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -327,8 +328,8 @@ func (m QuoteStatusReport) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m QuoteStatusReport) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m QuoteStatusReport) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -417,8 +418,8 @@ func (m QuoteStatusReport) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m QuoteStatusReport) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m QuoteStatusReport) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -437,8 +438,8 @@ func (m QuoteStatusReport) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m QuoteStatusReport) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m QuoteStatusReport) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetQuoteType sets QuoteType, Tag 537 @@ -477,53 +478,53 @@ func (m QuoteStatusReport) SetTradingSessionSubID(v string) { } //SetMidPx sets MidPx, Tag 631 -func (m QuoteStatusReport) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m QuoteStatusReport) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m QuoteStatusReport) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m QuoteStatusReport) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m QuoteStatusReport) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m QuoteStatusReport) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m QuoteStatusReport) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m QuoteStatusReport) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m QuoteStatusReport) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m QuoteStatusReport) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m QuoteStatusReport) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m QuoteStatusReport) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetMktBidPx sets MktBidPx, Tag 645 -func (m QuoteStatusReport) SetMktBidPx(v float64) { - m.Set(field.NewMktBidPx(v)) +func (m QuoteStatusReport) SetMktBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktBidPx(value, scale)) } //SetMktOfferPx sets MktOfferPx, Tag 646 -func (m QuoteStatusReport) SetMktOfferPx(v float64) { - m.Set(field.NewMktOfferPx(v)) +func (m QuoteStatusReport) SetMktOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktOfferPx(value, scale)) } //SetMinBidSize sets MinBidSize, Tag 647 -func (m QuoteStatusReport) SetMinBidSize(v float64) { - m.Set(field.NewMinBidSize(v)) +func (m QuoteStatusReport) SetMinBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinBidSize(value, scale)) } //SetMinOfferSize sets MinOfferSize, Tag 648 -func (m QuoteStatusReport) SetMinOfferSize(v float64) { - m.Set(field.NewMinOfferSize(v)) +func (m QuoteStatusReport) SetMinOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinOfferSize(value, scale)) } //SetQuoteStatusReqID sets QuoteStatusReqID, Tag 649 @@ -532,13 +533,13 @@ func (m QuoteStatusReport) SetQuoteStatusReqID(v string) { } //SetSettlCurrBidFxRate sets SettlCurrBidFxRate, Tag 656 -func (m QuoteStatusReport) SetSettlCurrBidFxRate(v float64) { - m.Set(field.NewSettlCurrBidFxRate(v)) +func (m QuoteStatusReport) SetSettlCurrBidFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrBidFxRate(value, scale)) } //SetSettlCurrOfferFxRate sets SettlCurrOfferFxRate, Tag 657 -func (m QuoteStatusReport) SetSettlCurrOfferFxRate(v float64) { - m.Set(field.NewSettlCurrOfferFxRate(v)) +func (m QuoteStatusReport) SetSettlCurrOfferFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrOfferFxRate(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -547,8 +548,8 @@ func (m QuoteStatusReport) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m QuoteStatusReport) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m QuoteStatusReport) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -577,8 +578,8 @@ func (m QuoteStatusReport) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m QuoteStatusReport) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m QuoteStatusReport) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -647,8 +648,8 @@ func (m QuoteStatusReport) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m QuoteStatusReport) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m QuoteStatusReport) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -702,18 +703,18 @@ func (m QuoteStatusReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m QuoteStatusReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m QuoteStatusReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m QuoteStatusReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m QuoteStatusReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m QuoteStatusReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m QuoteStatusReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -2647,13 +2648,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2687,8 +2688,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2702,13 +2703,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2747,8 +2748,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2792,8 +2793,8 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -2822,8 +2823,8 @@ func (m NoLegs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -3767,13 +3768,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3807,8 +3808,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3822,13 +3823,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3882,38 +3883,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3922,8 +3923,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3932,8 +3933,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3952,8 +3953,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3967,13 +3968,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4978,8 +4979,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/quotestatusrequest/QuoteStatusRequest.generated.go b/fix50/quotestatusrequest/QuoteStatusRequest.generated.go index 15e7e8162..3cf650b28 100644 --- a/fix50/quotestatusrequest/QuoteStatusRequest.generated.go +++ b/fix50/quotestatusrequest/QuoteStatusRequest.generated.go @@ -1,6 +1,7 @@ package quotestatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -111,8 +112,8 @@ func (m QuoteStatusRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m QuoteStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m QuoteStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -126,8 +127,8 @@ func (m QuoteStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m QuoteStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m QuoteStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -146,18 +147,18 @@ func (m QuoteStatusRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m QuoteStatusRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m QuoteStatusRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m QuoteStatusRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m QuoteStatusRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m QuoteStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m QuoteStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -326,8 +327,8 @@ func (m QuoteStatusRequest) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m QuoteStatusRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m QuoteStatusRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -381,18 +382,18 @@ func (m QuoteStatusRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m QuoteStatusRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m QuoteStatusRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m QuoteStatusRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m QuoteStatusRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m QuoteStatusRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m QuoteStatusRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1544,13 +1545,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1584,8 +1585,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1599,13 +1600,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1644,8 +1645,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2337,13 +2338,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2377,8 +2378,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2392,13 +2393,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2452,38 +2453,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2492,8 +2493,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2502,8 +2503,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2522,8 +2523,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2537,13 +2538,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3504,8 +3505,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/registrationinstructions/RegistrationInstructions.generated.go b/fix50/registrationinstructions/RegistrationInstructions.generated.go index 99856abd6..3b68e872c 100644 --- a/fix50/registrationinstructions/RegistrationInstructions.generated.go +++ b/fix50/registrationinstructions/RegistrationInstructions.generated.go @@ -1,6 +1,7 @@ package registrationinstructions import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -732,8 +733,8 @@ func (m NoDistribInsts) SetDistribPaymentMethod(v int) { } //SetDistribPercentage sets DistribPercentage, Tag 512 -func (m NoDistribInsts) SetDistribPercentage(v float64) { - m.Set(field.NewDistribPercentage(v)) +func (m NoDistribInsts) SetDistribPercentage(value decimal.Decimal, scale int32) { + m.Set(field.NewDistribPercentage(value, scale)) } //SetCashDistribCurr sets CashDistribCurr, Tag 478 diff --git a/fix50/requestforpositions/RequestForPositions.generated.go b/fix50/requestforpositions/RequestForPositions.generated.go index 1e1c7c9ce..791428b31 100644 --- a/fix50/requestforpositions/RequestForPositions.generated.go +++ b/fix50/requestforpositions/RequestForPositions.generated.go @@ -1,6 +1,7 @@ package requestforpositions import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -130,8 +131,8 @@ func (m RequestForPositions) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m RequestForPositions) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m RequestForPositions) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -145,8 +146,8 @@ func (m RequestForPositions) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m RequestForPositions) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m RequestForPositions) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -165,18 +166,18 @@ func (m RequestForPositions) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m RequestForPositions) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m RequestForPositions) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m RequestForPositions) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m RequestForPositions) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m RequestForPositions) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m RequestForPositions) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -395,18 +396,18 @@ func (m RequestForPositions) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m RequestForPositions) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m RequestForPositions) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m RequestForPositions) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m RequestForPositions) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m RequestForPositions) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m RequestForPositions) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1641,13 +1642,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1681,8 +1682,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1696,13 +1697,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1741,8 +1742,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2434,13 +2435,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2474,8 +2475,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2489,13 +2490,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2549,38 +2550,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2589,8 +2590,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2599,8 +2600,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2619,8 +2620,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2634,13 +2635,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3601,8 +3602,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/requestforpositionsack/RequestForPositionsAck.generated.go b/fix50/requestforpositionsack/RequestForPositionsAck.generated.go index 9282cfccc..a6881744b 100644 --- a/fix50/requestforpositionsack/RequestForPositionsAck.generated.go +++ b/fix50/requestforpositionsack/RequestForPositionsAck.generated.go @@ -1,6 +1,7 @@ package requestforpositionsack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -124,8 +125,8 @@ func (m RequestForPositionsAck) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m RequestForPositionsAck) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m RequestForPositionsAck) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -139,8 +140,8 @@ func (m RequestForPositionsAck) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m RequestForPositionsAck) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m RequestForPositionsAck) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -159,18 +160,18 @@ func (m RequestForPositionsAck) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m RequestForPositionsAck) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m RequestForPositionsAck) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m RequestForPositionsAck) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m RequestForPositionsAck) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m RequestForPositionsAck) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m RequestForPositionsAck) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -409,18 +410,18 @@ func (m RequestForPositionsAck) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m RequestForPositionsAck) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m RequestForPositionsAck) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m RequestForPositionsAck) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m RequestForPositionsAck) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m RequestForPositionsAck) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m RequestForPositionsAck) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1627,13 +1628,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1667,8 +1668,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1682,13 +1683,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1727,8 +1728,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2420,13 +2421,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2460,8 +2461,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2475,13 +2476,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2535,38 +2536,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2575,8 +2576,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2585,8 +2586,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2605,8 +2606,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2620,13 +2621,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3587,8 +3588,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/rfqrequest/RFQRequest.generated.go b/fix50/rfqrequest/RFQRequest.generated.go index 56b0d2454..977f5cdef 100644 --- a/fix50/rfqrequest/RFQRequest.generated.go +++ b/fix50/rfqrequest/RFQRequest.generated.go @@ -1,6 +1,7 @@ package rfqrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -191,13 +192,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -231,8 +232,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -246,13 +247,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -341,18 +342,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -396,8 +397,8 @@ func (m NoRelatedSym) SetNoLegs(f NoLegsRepeatingGroup) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoRelatedSym) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoRelatedSym) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetQuoteRequestType sets QuoteRequestType, Tag 303 @@ -1172,8 +1173,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -1482,13 +1483,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1522,8 +1523,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1537,13 +1538,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -1597,38 +1598,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -1637,8 +1638,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -1647,8 +1648,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -1667,8 +1668,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -1682,13 +1683,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2714,13 +2715,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2754,8 +2755,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2769,13 +2770,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2814,8 +2815,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 diff --git a/fix50/securitydefinition/SecurityDefinition.generated.go b/fix50/securitydefinition/SecurityDefinition.generated.go index 9915d7ee8..6e2d2fe0a 100644 --- a/fix50/securitydefinition/SecurityDefinition.generated.go +++ b/fix50/securitydefinition/SecurityDefinition.generated.go @@ -1,6 +1,7 @@ package securitydefinition import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -111,8 +112,8 @@ func (m SecurityDefinition) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityDefinition) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityDefinition) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -126,8 +127,8 @@ func (m SecurityDefinition) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityDefinition) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityDefinition) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -146,18 +147,18 @@ func (m SecurityDefinition) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityDefinition) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityDefinition) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityDefinition) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityDefinition) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityDefinition) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityDefinition) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -271,13 +272,13 @@ func (m SecurityDefinition) SetNoLegs(f NoLegsRepeatingGroup) { } //SetRoundLot sets RoundLot, Tag 561 -func (m SecurityDefinition) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m SecurityDefinition) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m SecurityDefinition) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m SecurityDefinition) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetTradingSessionSubID sets TradingSessionSubID, Tag 625 @@ -326,8 +327,8 @@ func (m SecurityDefinition) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m SecurityDefinition) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m SecurityDefinition) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -376,18 +377,18 @@ func (m SecurityDefinition) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m SecurityDefinition) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m SecurityDefinition) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m SecurityDefinition) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m SecurityDefinition) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m SecurityDefinition) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m SecurityDefinition) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1376,13 +1377,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1416,8 +1417,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1431,13 +1432,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1476,8 +1477,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2169,13 +2170,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2209,8 +2210,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2224,13 +2225,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2284,38 +2285,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2324,8 +2325,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2334,8 +2335,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2354,8 +2355,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2369,13 +2370,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3326,13 +3327,13 @@ type ClearingBusinessDate struct { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m ClearingBusinessDate) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m ClearingBusinessDate) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m ClearingBusinessDate) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m ClearingBusinessDate) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //GetLegOptionRatio gets LegOptionRatio, Tag 1017 @@ -3396,8 +3397,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/securitydefinitionrequest/SecurityDefinitionRequest.generated.go b/fix50/securitydefinitionrequest/SecurityDefinitionRequest.generated.go index 50feb19be..0ab4e1e29 100644 --- a/fix50/securitydefinitionrequest/SecurityDefinitionRequest.generated.go +++ b/fix50/securitydefinitionrequest/SecurityDefinitionRequest.generated.go @@ -1,6 +1,7 @@ package securitydefinitionrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -113,8 +114,8 @@ func (m SecurityDefinitionRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityDefinitionRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityDefinitionRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -128,8 +129,8 @@ func (m SecurityDefinitionRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityDefinitionRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityDefinitionRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -148,18 +149,18 @@ func (m SecurityDefinitionRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityDefinitionRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityDefinitionRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityDefinitionRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityDefinitionRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityDefinitionRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityDefinitionRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -313,8 +314,8 @@ func (m SecurityDefinitionRequest) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m SecurityDefinitionRequest) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m SecurityDefinitionRequest) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -358,18 +359,18 @@ func (m SecurityDefinitionRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m SecurityDefinitionRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m SecurityDefinitionRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m SecurityDefinitionRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m SecurityDefinitionRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m SecurityDefinitionRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m SecurityDefinitionRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1179,13 +1180,13 @@ type SubscriptionRequestType struct { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m SubscriptionRequestType) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m SubscriptionRequestType) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m SubscriptionRequestType) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m SubscriptionRequestType) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //GetLegOptionRatio gets LegOptionRatio, Tag 1017 @@ -1374,13 +1375,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1414,8 +1415,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1429,13 +1430,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1474,8 +1475,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2167,13 +2168,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2207,8 +2208,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2222,13 +2223,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2282,38 +2283,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2322,8 +2323,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2332,8 +2333,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2352,8 +2353,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2367,13 +2368,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3334,8 +3335,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/securitydefinitionupdatereport/SecurityDefinitionUpdateReport.generated.go b/fix50/securitydefinitionupdatereport/SecurityDefinitionUpdateReport.generated.go index b6da030b2..d1866f012 100644 --- a/fix50/securitydefinitionupdatereport/SecurityDefinitionUpdateReport.generated.go +++ b/fix50/securitydefinitionupdatereport/SecurityDefinitionUpdateReport.generated.go @@ -1,6 +1,7 @@ package securitydefinitionupdatereport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -111,8 +112,8 @@ func (m SecurityDefinitionUpdateReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityDefinitionUpdateReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityDefinitionUpdateReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -126,8 +127,8 @@ func (m SecurityDefinitionUpdateReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityDefinitionUpdateReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityDefinitionUpdateReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -146,18 +147,18 @@ func (m SecurityDefinitionUpdateReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityDefinitionUpdateReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityDefinitionUpdateReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityDefinitionUpdateReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityDefinitionUpdateReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityDefinitionUpdateReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityDefinitionUpdateReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -191,13 +192,13 @@ func (m SecurityDefinitionUpdateReport) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m SecurityDefinitionUpdateReport) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m SecurityDefinitionUpdateReport) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m SecurityDefinitionUpdateReport) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m SecurityDefinitionUpdateReport) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -266,8 +267,8 @@ func (m SecurityDefinitionUpdateReport) SetUnderlyingMaturityMonthYear(v string) } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m SecurityDefinitionUpdateReport) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m SecurityDefinitionUpdateReport) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -351,13 +352,13 @@ func (m SecurityDefinitionUpdateReport) SetEncodedUnderlyingSecurityDesc(v strin } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m SecurityDefinitionUpdateReport) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m SecurityDefinitionUpdateReport) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m SecurityDefinitionUpdateReport) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m SecurityDefinitionUpdateReport) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoSecurityAltID sets NoSecurityAltID, Tag 454 @@ -426,13 +427,13 @@ func (m SecurityDefinitionUpdateReport) SetNoLegs(f NoLegsRepeatingGroup) { } //SetRoundLot sets RoundLot, Tag 561 -func (m SecurityDefinitionUpdateReport) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m SecurityDefinitionUpdateReport) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m SecurityDefinitionUpdateReport) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m SecurityDefinitionUpdateReport) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetUnderlyingCountryOfIssue sets UnderlyingCountryOfIssue, Tag 592 @@ -486,8 +487,8 @@ func (m SecurityDefinitionUpdateReport) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m SecurityDefinitionUpdateReport) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m SecurityDefinitionUpdateReport) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetExpirationCycle sets ExpirationCycle, Tag 827 @@ -531,33 +532,33 @@ func (m SecurityDefinitionUpdateReport) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m SecurityDefinitionUpdateReport) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m SecurityDefinitionUpdateReport) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m SecurityDefinitionUpdateReport) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m SecurityDefinitionUpdateReport) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m SecurityDefinitionUpdateReport) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m SecurityDefinitionUpdateReport) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m SecurityDefinitionUpdateReport) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m SecurityDefinitionUpdateReport) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m SecurityDefinitionUpdateReport) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m SecurityDefinitionUpdateReport) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m SecurityDefinitionUpdateReport) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m SecurityDefinitionUpdateReport) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -591,18 +592,18 @@ func (m SecurityDefinitionUpdateReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m SecurityDefinitionUpdateReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m SecurityDefinitionUpdateReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m SecurityDefinitionUpdateReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m SecurityDefinitionUpdateReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m SecurityDefinitionUpdateReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m SecurityDefinitionUpdateReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -616,13 +617,13 @@ func (m SecurityDefinitionUpdateReport) SetNTPositionLimit(v int) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m SecurityDefinitionUpdateReport) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m SecurityDefinitionUpdateReport) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m SecurityDefinitionUpdateReport) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m SecurityDefinitionUpdateReport) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -666,8 +667,8 @@ func (m SecurityDefinitionUpdateReport) SetNoInstrumentParties(f NoInstrumentPar } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m SecurityDefinitionUpdateReport) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m SecurityDefinitionUpdateReport) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetUnderlyingSettlMethod sets UnderlyingSettlMethod, Tag 1039 @@ -676,13 +677,13 @@ func (m SecurityDefinitionUpdateReport) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m SecurityDefinitionUpdateReport) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m SecurityDefinitionUpdateReport) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m SecurityDefinitionUpdateReport) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m SecurityDefinitionUpdateReport) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2332,13 +2333,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2372,8 +2373,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2387,13 +2388,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2432,8 +2433,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3060,8 +3061,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/securitylist/SecurityList.generated.go b/fix50/securitylist/SecurityList.generated.go index 64eda0e38..94b7c6dad 100644 --- a/fix50/securitylist/SecurityList.generated.go +++ b/fix50/securitylist/SecurityList.generated.go @@ -1,6 +1,7 @@ package securitylist import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -270,13 +271,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -310,8 +311,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -325,13 +326,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -420,18 +421,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -470,8 +471,8 @@ func (m NoRelatedSym) SetDeliveryForm(v int) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m NoRelatedSym) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m NoRelatedSym) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -520,8 +521,8 @@ func (m NoRelatedSym) SetDeliveryType(v int) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NoRelatedSym) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NoRelatedSym) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetNoUnderlyings sets NoUnderlyings, Tag 711 @@ -545,8 +546,8 @@ func (m NoRelatedSym) SetNoLegs(f NoLegsRepeatingGroup) { } //SetSpread sets Spread, Tag 218 -func (m NoRelatedSym) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoRelatedSym) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -565,8 +566,8 @@ func (m NoRelatedSym) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoRelatedSym) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoRelatedSym) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -590,8 +591,8 @@ func (m NoRelatedSym) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoRelatedSym) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoRelatedSym) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -605,8 +606,8 @@ func (m NoRelatedSym) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoRelatedSym) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoRelatedSym) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -615,13 +616,13 @@ func (m NoRelatedSym) SetYieldRedemptionPriceType(v int) { } //SetRoundLot sets RoundLot, Tag 561 -func (m NoRelatedSym) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m NoRelatedSym) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m NoRelatedSym) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m NoRelatedSym) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetTradingSessionID sets TradingSessionID, Tag 336 @@ -1749,8 +1750,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2119,13 +2120,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2159,8 +2160,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2174,13 +2175,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2234,38 +2235,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2274,8 +2275,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2284,8 +2285,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2304,8 +2305,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2319,13 +2320,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3411,13 +3412,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3451,8 +3452,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3466,13 +3467,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3511,8 +3512,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3586,8 +3587,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 diff --git a/fix50/securitylistrequest/SecurityListRequest.generated.go b/fix50/securitylistrequest/SecurityListRequest.generated.go index 39d58a57a..eec450c15 100644 --- a/fix50/securitylistrequest/SecurityListRequest.generated.go +++ b/fix50/securitylistrequest/SecurityListRequest.generated.go @@ -1,6 +1,7 @@ package securitylistrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -113,8 +114,8 @@ func (m SecurityListRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityListRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityListRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -128,8 +129,8 @@ func (m SecurityListRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityListRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityListRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -148,18 +149,18 @@ func (m SecurityListRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityListRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityListRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityListRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityListRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityListRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityListRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -313,8 +314,8 @@ func (m SecurityListRequest) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m SecurityListRequest) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m SecurityListRequest) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -343,8 +344,8 @@ func (m SecurityListRequest) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m SecurityListRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m SecurityListRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -398,18 +399,18 @@ func (m SecurityListRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m SecurityListRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m SecurityListRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m SecurityListRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m SecurityListRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m SecurityListRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m SecurityListRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1441,13 +1442,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1481,8 +1482,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1496,13 +1497,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1541,8 +1542,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2234,13 +2235,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2274,8 +2275,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2289,13 +2290,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2349,38 +2350,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2389,8 +2390,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2399,8 +2400,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2419,8 +2420,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2434,13 +2435,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3401,8 +3402,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/securitylistupdatereport/SecurityListUpdateReport.generated.go b/fix50/securitylistupdatereport/SecurityListUpdateReport.generated.go index 65a604d7a..044dfd990 100644 --- a/fix50/securitylistupdatereport/SecurityListUpdateReport.generated.go +++ b/fix50/securitylistupdatereport/SecurityListUpdateReport.generated.go @@ -1,6 +1,7 @@ package securitylistupdatereport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -302,13 +303,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -342,8 +343,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -357,13 +358,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -452,18 +453,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -502,8 +503,8 @@ func (m NoRelatedSym) SetDeliveryForm(v int) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m NoRelatedSym) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m NoRelatedSym) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -552,8 +553,8 @@ func (m NoRelatedSym) SetDeliveryType(v int) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NoRelatedSym) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NoRelatedSym) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetNoLegs sets NoLegs, Tag 555 @@ -562,8 +563,8 @@ func (m NoRelatedSym) SetNoLegs(f NoLegsRepeatingGroup) { } //SetSpread sets Spread, Tag 218 -func (m NoRelatedSym) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoRelatedSym) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -582,8 +583,8 @@ func (m NoRelatedSym) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoRelatedSym) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoRelatedSym) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -607,8 +608,8 @@ func (m NoRelatedSym) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoRelatedSym) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoRelatedSym) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -622,8 +623,8 @@ func (m NoRelatedSym) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoRelatedSym) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoRelatedSym) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -632,13 +633,13 @@ func (m NoRelatedSym) SetYieldRedemptionPriceType(v int) { } //SetRoundLot sets RoundLot, Tag 561 -func (m NoRelatedSym) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m NoRelatedSym) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m NoRelatedSym) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m NoRelatedSym) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetTradingSessionID sets TradingSessionID, Tag 336 @@ -747,13 +748,13 @@ func (m NoRelatedSym) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoRelatedSym) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoRelatedSym) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoRelatedSym) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoRelatedSym) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -787,8 +788,8 @@ func (m NoRelatedSym) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoRelatedSym) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoRelatedSym) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -802,13 +803,13 @@ func (m NoRelatedSym) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoRelatedSym) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoRelatedSym) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoRelatedSym) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoRelatedSym) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -862,38 +863,38 @@ func (m NoRelatedSym) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoRelatedSym) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoRelatedSym) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoRelatedSym) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoRelatedSym) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoRelatedSym) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoRelatedSym) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoRelatedSym) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoRelatedSym) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoRelatedSym) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoRelatedSym) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoRelatedSym) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoRelatedSym) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoRelatedSym) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoRelatedSym) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -902,8 +903,8 @@ func (m NoRelatedSym) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoRelatedSym) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoRelatedSym) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -912,8 +913,8 @@ func (m NoRelatedSym) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoRelatedSym) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoRelatedSym) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -932,8 +933,8 @@ func (m NoRelatedSym) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoRelatedSym) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoRelatedSym) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -947,13 +948,13 @@ func (m NoRelatedSym) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoRelatedSym) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoRelatedSym) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoRelatedSym) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoRelatedSym) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2695,8 +2696,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -3065,13 +3066,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3105,8 +3106,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3120,13 +3121,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3165,8 +3166,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3240,8 +3241,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 diff --git a/fix50/securitystatus/SecurityStatus.generated.go b/fix50/securitystatus/SecurityStatus.generated.go index 34d5664b4..c14f31a3c 100644 --- a/fix50/securitystatus/SecurityStatus.generated.go +++ b/fix50/securitystatus/SecurityStatus.generated.go @@ -1,6 +1,7 @@ package securitystatus import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -71,8 +72,8 @@ func (m SecurityStatus) SetSecurityIDSource(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m SecurityStatus) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m SecurityStatus) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -121,8 +122,8 @@ func (m SecurityStatus) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityStatus) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityStatus) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -136,8 +137,8 @@ func (m SecurityStatus) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityStatus) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityStatus) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -156,18 +157,18 @@ func (m SecurityStatus) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityStatus) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityStatus) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityStatus) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityStatus) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityStatus) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityStatus) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -226,23 +227,23 @@ func (m SecurityStatus) SetDueToRelated(v bool) { } //SetBuyVolume sets BuyVolume, Tag 330 -func (m SecurityStatus) SetBuyVolume(v float64) { - m.Set(field.NewBuyVolume(v)) +func (m SecurityStatus) SetBuyVolume(value decimal.Decimal, scale int32) { + m.Set(field.NewBuyVolume(value, scale)) } //SetSellVolume sets SellVolume, Tag 331 -func (m SecurityStatus) SetSellVolume(v float64) { - m.Set(field.NewSellVolume(v)) +func (m SecurityStatus) SetSellVolume(value decimal.Decimal, scale int32) { + m.Set(field.NewSellVolume(value, scale)) } //SetHighPx sets HighPx, Tag 332 -func (m SecurityStatus) SetHighPx(v float64) { - m.Set(field.NewHighPx(v)) +func (m SecurityStatus) SetHighPx(value decimal.Decimal, scale int32) { + m.Set(field.NewHighPx(value, scale)) } //SetLowPx sets LowPx, Tag 333 -func (m SecurityStatus) SetLowPx(v float64) { - m.Set(field.NewLowPx(v)) +func (m SecurityStatus) SetLowPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLowPx(value, scale)) } //SetAdjustment sets Adjustment, Tag 334 @@ -366,8 +367,8 @@ func (m SecurityStatus) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m SecurityStatus) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m SecurityStatus) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -411,18 +412,18 @@ func (m SecurityStatus) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m SecurityStatus) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m SecurityStatus) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m SecurityStatus) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m SecurityStatus) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m SecurityStatus) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m SecurityStatus) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -451,8 +452,8 @@ func (m SecurityStatus) SetNoInstrumentParties(f NoInstrumentPartiesRepeatingGro } //SetFirstPx sets FirstPx, Tag 1025 -func (m SecurityStatus) SetFirstPx(v float64) { - m.Set(field.NewFirstPx(v)) +func (m SecurityStatus) SetFirstPx(value decimal.Decimal, scale int32) { + m.Set(field.NewFirstPx(value, scale)) } //SetInstrmtAssignmentMethod sets InstrmtAssignmentMethod, Tag 1049 @@ -1503,13 +1504,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1543,8 +1544,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1558,13 +1559,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1603,8 +1604,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2296,13 +2297,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2336,8 +2337,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2351,13 +2352,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2411,38 +2412,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2451,8 +2452,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2461,8 +2462,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2481,8 +2482,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2496,13 +2497,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3463,8 +3464,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/securitystatusrequest/SecurityStatusRequest.generated.go b/fix50/securitystatusrequest/SecurityStatusRequest.generated.go index e9e7fc0f4..72c510f8f 100644 --- a/fix50/securitystatusrequest/SecurityStatusRequest.generated.go +++ b/fix50/securitystatusrequest/SecurityStatusRequest.generated.go @@ -1,6 +1,7 @@ package securitystatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -108,8 +109,8 @@ func (m SecurityStatusRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -123,8 +124,8 @@ func (m SecurityStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -143,18 +144,18 @@ func (m SecurityStatusRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityStatusRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityStatusRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityStatusRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityStatusRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -288,8 +289,8 @@ func (m SecurityStatusRequest) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m SecurityStatusRequest) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m SecurityStatusRequest) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -333,18 +334,18 @@ func (m SecurityStatusRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m SecurityStatusRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m SecurityStatusRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m SecurityStatusRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m SecurityStatusRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m SecurityStatusRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m SecurityStatusRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1233,13 +1234,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1273,8 +1274,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1288,13 +1289,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1333,8 +1334,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2026,13 +2027,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2066,8 +2067,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2081,13 +2082,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2141,38 +2142,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2181,8 +2182,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2191,8 +2192,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2211,8 +2212,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2226,13 +2227,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3193,8 +3194,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/tradecapturereport/TradeCaptureReport.generated.go b/fix50/tradecapturereport/TradeCaptureReport.generated.go index 18d5e868c..0f5420467 100644 --- a/fix50/tradecapturereport/TradeCaptureReport.generated.go +++ b/fix50/tradecapturereport/TradeCaptureReport.generated.go @@ -1,6 +1,7 @@ package tradecapturereport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -64,8 +65,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m TradeCaptureReport) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m TradeCaptureReport) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetExecID sets ExecID, Tag 17 @@ -84,18 +85,18 @@ func (m TradeCaptureReport) SetLastMkt(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m TradeCaptureReport) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m TradeCaptureReport) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastQty sets LastQty, Tag 32 -func (m TradeCaptureReport) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m TradeCaptureReport) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetOrderQty sets OrderQty, Tag 38 -func (m TradeCaptureReport) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m TradeCaptureReport) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdStatus sets OrdStatus, Tag 39 @@ -154,8 +155,8 @@ func (m TradeCaptureReport) SetExecType(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m TradeCaptureReport) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m TradeCaptureReport) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -164,13 +165,13 @@ func (m TradeCaptureReport) SetSecurityType(v string) { } //SetLastSpotRate sets LastSpotRate, Tag 194 -func (m TradeCaptureReport) SetLastSpotRate(v float64) { - m.Set(field.NewLastSpotRate(v)) +func (m TradeCaptureReport) SetLastSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSpotRate(value, scale)) } //SetLastForwardPoints sets LastForwardPoints, Tag 195 -func (m TradeCaptureReport) SetLastForwardPoints(v float64) { - m.Set(field.NewLastForwardPoints(v)) +func (m TradeCaptureReport) SetLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastForwardPoints(value, scale)) } //SetMaturityMonthYear sets MaturityMonthYear, Tag 200 @@ -179,8 +180,8 @@ func (m TradeCaptureReport) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m TradeCaptureReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m TradeCaptureReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -194,8 +195,8 @@ func (m TradeCaptureReport) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m TradeCaptureReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m TradeCaptureReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -214,8 +215,8 @@ func (m TradeCaptureReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m TradeCaptureReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m TradeCaptureReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -234,18 +235,18 @@ func (m TradeCaptureReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m TradeCaptureReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m TradeCaptureReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m TradeCaptureReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m TradeCaptureReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m TradeCaptureReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m TradeCaptureReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetYieldType sets YieldType, Tag 235 @@ -254,8 +255,8 @@ func (m TradeCaptureReport) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m TradeCaptureReport) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m TradeCaptureReport) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -309,8 +310,8 @@ func (m TradeCaptureReport) SetExecRestatementReason(v int) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m TradeCaptureReport) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m TradeCaptureReport) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -344,8 +345,8 @@ func (m TradeCaptureReport) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m TradeCaptureReport) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m TradeCaptureReport) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -369,8 +370,8 @@ func (m TradeCaptureReport) SetTradeReportTransType(v int) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m TradeCaptureReport) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m TradeCaptureReport) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryExecID sets SecondaryExecID, Tag 527 @@ -429,8 +430,8 @@ func (m TradeCaptureReport) SetMatchType(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m TradeCaptureReport) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m TradeCaptureReport) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -444,8 +445,8 @@ func (m TradeCaptureReport) SetContractSettlMonth(v string) { } //SetLastParPx sets LastParPx, Tag 669 -func (m TradeCaptureReport) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m TradeCaptureReport) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetPool sets Pool, Tag 691 @@ -459,8 +460,8 @@ func (m TradeCaptureReport) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m TradeCaptureReport) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m TradeCaptureReport) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -644,8 +645,8 @@ func (m TradeCaptureReport) SetSecondaryTradeReportRefID(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m TradeCaptureReport) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m TradeCaptureReport) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetLastRptRequested sets LastRptRequested, Tag 912 @@ -709,18 +710,18 @@ func (m TradeCaptureReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m TradeCaptureReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m TradeCaptureReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m TradeCaptureReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m TradeCaptureReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m TradeCaptureReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m TradeCaptureReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -739,8 +740,8 @@ func (m TradeCaptureReport) SetUnderlyingSettlementDate(v string) { } //SetRndPx sets RndPx, Tag 991 -func (m TradeCaptureReport) SetRndPx(v float64) { - m.Set(field.NewRndPx(v)) +func (m TradeCaptureReport) SetRndPx(value decimal.Decimal, scale int32) { + m.Set(field.NewRndPx(value, scale)) } //SetTierCode sets TierCode, Tag 994 @@ -799,13 +800,13 @@ func (m TradeCaptureReport) SetInstrmtAssignmentMethod(v string) { } //SetCalculatedCcyLastQty sets CalculatedCcyLastQty, Tag 1056 -func (m TradeCaptureReport) SetCalculatedCcyLastQty(v float64) { - m.Set(field.NewCalculatedCcyLastQty(v)) +func (m TradeCaptureReport) SetCalculatedCcyLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCalculatedCcyLastQty(value, scale)) } //SetLastSwapPoints sets LastSwapPoints, Tag 1071 -func (m TradeCaptureReport) SetLastSwapPoints(v float64) { - m.Set(field.NewLastSwapPoints(v)) +func (m TradeCaptureReport) SetLastSwapPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSwapPoints(value, scale)) } //SetMaturityTime sets MaturityTime, Tag 1079 @@ -2822,8 +2823,8 @@ func (m NoSides) SetTimeBracket(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoSides) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoSides) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -2852,53 +2853,53 @@ func (m NoSides) SetExDate(v string) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m NoSides) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m NoSides) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m NoSides) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m NoSides) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m NoSides) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m NoSides) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m NoSides) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m NoSides) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m NoSides) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m NoSides) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m NoSides) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m NoSides) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m NoSides) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m NoSides) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m NoSides) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m NoSides) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetNetMoney sets NetMoney, Tag 118 -func (m NoSides) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m NoSides) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoSides) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoSides) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -2907,8 +2908,8 @@ func (m NoSides) SetSettlCurrency(v string) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoSides) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoSides) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -3027,8 +3028,8 @@ func (m NoSides) SetLotType(v string) { } //SetSideGrossTradeAmt sets SideGrossTradeAmt, Tag 1072 -func (m NoSides) SetSideGrossTradeAmt(v float64) { - m.Set(field.NewSideGrossTradeAmt(v)) +func (m NoSides) SetSideGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSideGrossTradeAmt(value, scale)) } //SetAggressorIndicator sets AggressorIndicator, Tag 1057 @@ -4048,8 +4049,8 @@ func (m NoContAmts) SetContAmtType(v int) { } //SetContAmtValue sets ContAmtValue, Tag 520 -func (m NoContAmts) SetContAmtValue(v float64) { - m.Set(field.NewContAmtValue(v)) +func (m NoContAmts) SetContAmtValue(value decimal.Decimal, scale int32) { + m.Set(field.NewContAmtValue(value, scale)) } //SetContAmtCurr sets ContAmtCurr, Tag 521 @@ -4179,8 +4180,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -4296,8 +4297,8 @@ func (m NoAllocs) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetAllocCustomerCapacity sets AllocCustomerCapacity, Tag 993 @@ -4787,13 +4788,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4827,8 +4828,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4842,13 +4843,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4887,8 +4888,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4932,8 +4933,8 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -4967,8 +4968,8 @@ func (m NoLegs) SetLegRefID(v string) { } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegSettlType sets LegSettlType, Tag 587 @@ -4982,8 +4983,8 @@ func (m NoLegs) SetLegSettlDate(v string) { } //SetLegLastPx sets LegLastPx, Tag 637 -func (m NoLegs) SetLegLastPx(v float64) { - m.Set(field.NewLegLastPx(v)) +func (m NoLegs) SetLegLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastPx(value, scale)) } //SetLegReportID sets LegReportID, Tag 990 @@ -4997,18 +4998,18 @@ func (m NoLegs) SetLegSettlCurrency(v string) { } //SetLegLastForwardPoints sets LegLastForwardPoints, Tag 1073 -func (m NoLegs) SetLegLastForwardPoints(v float64) { - m.Set(field.NewLegLastForwardPoints(v)) +func (m NoLegs) SetLegLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastForwardPoints(value, scale)) } //SetLegCalculatedCcyLastQty sets LegCalculatedCcyLastQty, Tag 1074 -func (m NoLegs) SetLegCalculatedCcyLastQty(v float64) { - m.Set(field.NewLegCalculatedCcyLastQty(v)) +func (m NoLegs) SetLegCalculatedCcyLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCalculatedCcyLastQty(value, scale)) } //SetLegGrossTradeAmt sets LegGrossTradeAmt, Tag 1075 -func (m NoLegs) SetLegGrossTradeAmt(v float64) { - m.Set(field.NewLegGrossTradeAmt(v)) +func (m NoLegs) SetLegGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewLegGrossTradeAmt(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -6051,13 +6052,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -6091,8 +6092,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -6106,13 +6107,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -6166,38 +6167,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -6206,8 +6207,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -6216,8 +6217,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -6236,8 +6237,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -6251,13 +6252,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -7213,8 +7214,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -7418,8 +7419,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/tradecapturereportack/TradeCaptureReportAck.generated.go b/fix50/tradecapturereportack/TradeCaptureReportAck.generated.go index e9189754b..0298c942f 100644 --- a/fix50/tradecapturereportack/TradeCaptureReportAck.generated.go +++ b/fix50/tradecapturereportack/TradeCaptureReportAck.generated.go @@ -1,6 +1,7 @@ package tradecapturereportack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -61,8 +62,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m TradeCaptureReportAck) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m TradeCaptureReportAck) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetExecID sets ExecID, Tag 17 @@ -81,13 +82,13 @@ func (m TradeCaptureReportAck) SetLastMkt(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m TradeCaptureReportAck) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m TradeCaptureReportAck) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastQty sets LastQty, Tag 32 -func (m TradeCaptureReportAck) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m TradeCaptureReportAck) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetOrdStatus sets OrdStatus, Tag 39 @@ -156,13 +157,13 @@ func (m TradeCaptureReportAck) SetSecurityType(v string) { } //SetLastSpotRate sets LastSpotRate, Tag 194 -func (m TradeCaptureReportAck) SetLastSpotRate(v float64) { - m.Set(field.NewLastSpotRate(v)) +func (m TradeCaptureReportAck) SetLastSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSpotRate(value, scale)) } //SetLastForwardPoints sets LastForwardPoints, Tag 195 -func (m TradeCaptureReportAck) SetLastForwardPoints(v float64) { - m.Set(field.NewLastForwardPoints(v)) +func (m TradeCaptureReportAck) SetLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastForwardPoints(value, scale)) } //SetMaturityMonthYear sets MaturityMonthYear, Tag 200 @@ -171,8 +172,8 @@ func (m TradeCaptureReportAck) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m TradeCaptureReportAck) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m TradeCaptureReportAck) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -186,8 +187,8 @@ func (m TradeCaptureReportAck) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m TradeCaptureReportAck) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m TradeCaptureReportAck) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -206,18 +207,18 @@ func (m TradeCaptureReportAck) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m TradeCaptureReportAck) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m TradeCaptureReportAck) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m TradeCaptureReportAck) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m TradeCaptureReportAck) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m TradeCaptureReportAck) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m TradeCaptureReportAck) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -276,8 +277,8 @@ func (m TradeCaptureReportAck) SetExecRestatementReason(v int) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m TradeCaptureReportAck) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m TradeCaptureReportAck) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -386,8 +387,8 @@ func (m TradeCaptureReportAck) SetContractSettlMonth(v string) { } //SetLastParPx sets LastParPx, Tag 669 -func (m TradeCaptureReportAck) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m TradeCaptureReportAck) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetPool sets Pool, Tag 691 @@ -581,18 +582,18 @@ func (m TradeCaptureReportAck) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m TradeCaptureReportAck) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m TradeCaptureReportAck) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m TradeCaptureReportAck) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m TradeCaptureReportAck) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m TradeCaptureReportAck) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m TradeCaptureReportAck) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -606,8 +607,8 @@ func (m TradeCaptureReportAck) SetNTPositionLimit(v int) { } //SetRndPx sets RndPx, Tag 991 -func (m TradeCaptureReportAck) SetRndPx(v float64) { - m.Set(field.NewRndPx(v)) +func (m TradeCaptureReportAck) SetRndPx(value decimal.Decimal, scale int32) { + m.Set(field.NewRndPx(value, scale)) } //SetTierCode sets TierCode, Tag 994 @@ -666,13 +667,13 @@ func (m TradeCaptureReportAck) SetInstrmtAssignmentMethod(v string) { } //SetCalculatedCcyLastQty sets CalculatedCcyLastQty, Tag 1056 -func (m TradeCaptureReportAck) SetCalculatedCcyLastQty(v float64) { - m.Set(field.NewCalculatedCcyLastQty(v)) +func (m TradeCaptureReportAck) SetCalculatedCcyLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCalculatedCcyLastQty(value, scale)) } //SetLastSwapPoints sets LastSwapPoints, Tag 1071 -func (m TradeCaptureReportAck) SetLastSwapPoints(v float64) { - m.Set(field.NewLastSwapPoints(v)) +func (m TradeCaptureReportAck) SetLastSwapPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSwapPoints(value, scale)) } //SetMaturityTime sets MaturityTime, Tag 1079 @@ -2371,8 +2372,8 @@ func (m NoSides) SetTimeBracket(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoSides) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoSides) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -2401,53 +2402,53 @@ func (m NoSides) SetExDate(v string) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m NoSides) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m NoSides) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m NoSides) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m NoSides) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m NoSides) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m NoSides) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m NoSides) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m NoSides) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m NoSides) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m NoSides) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m NoSides) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m NoSides) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m NoSides) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m NoSides) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m NoSides) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m NoSides) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetNetMoney sets NetMoney, Tag 118 -func (m NoSides) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m NoSides) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoSides) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoSides) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -2456,8 +2457,8 @@ func (m NoSides) SetSettlCurrency(v string) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoSides) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoSides) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -2521,8 +2522,8 @@ func (m NoSides) SetLotType(v string) { } //SetSideGrossTradeAmt sets SideGrossTradeAmt, Tag 1072 -func (m NoSides) SetSideGrossTradeAmt(v float64) { - m.Set(field.NewSideGrossTradeAmt(v)) +func (m NoSides) SetSideGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSideGrossTradeAmt(value, scale)) } //SetAggressorIndicator sets AggressorIndicator, Tag 1057 @@ -3517,8 +3518,8 @@ func (m NoContAmts) SetContAmtType(v int) { } //SetContAmtValue sets ContAmtValue, Tag 520 -func (m NoContAmts) SetContAmtValue(v float64) { - m.Set(field.NewContAmtValue(v)) +func (m NoContAmts) SetContAmtValue(value decimal.Decimal, scale int32) { + m.Set(field.NewContAmtValue(value, scale)) } //SetContAmtCurr sets ContAmtCurr, Tag 521 @@ -3648,8 +3649,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -3765,8 +3766,8 @@ func (m NoAllocs) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetAllocCustomerCapacity sets AllocCustomerCapacity, Tag 993 @@ -4256,13 +4257,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4296,8 +4297,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4311,13 +4312,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4356,8 +4357,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4401,8 +4402,8 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -4436,8 +4437,8 @@ func (m NoLegs) SetLegRefID(v string) { } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegSettlType sets LegSettlType, Tag 587 @@ -4451,8 +4452,8 @@ func (m NoLegs) SetLegSettlDate(v string) { } //SetLegLastPx sets LegLastPx, Tag 637 -func (m NoLegs) SetLegLastPx(v float64) { - m.Set(field.NewLegLastPx(v)) +func (m NoLegs) SetLegLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastPx(value, scale)) } //SetLegReportID sets LegReportID, Tag 990 @@ -4466,18 +4467,18 @@ func (m NoLegs) SetLegSettlCurrency(v string) { } //SetLegLastForwardPoints sets LegLastForwardPoints, Tag 1073 -func (m NoLegs) SetLegLastForwardPoints(v float64) { - m.Set(field.NewLegLastForwardPoints(v)) +func (m NoLegs) SetLegLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastForwardPoints(value, scale)) } //SetLegCalculatedCcyLastQty sets LegCalculatedCcyLastQty, Tag 1074 -func (m NoLegs) SetLegCalculatedCcyLastQty(v float64) { - m.Set(field.NewLegCalculatedCcyLastQty(v)) +func (m NoLegs) SetLegCalculatedCcyLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCalculatedCcyLastQty(value, scale)) } //SetLegGrossTradeAmt sets LegGrossTradeAmt, Tag 1075 -func (m NoLegs) SetLegGrossTradeAmt(v float64) { - m.Set(field.NewLegGrossTradeAmt(v)) +func (m NoLegs) SetLegGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewLegGrossTradeAmt(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -5520,13 +5521,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -5560,8 +5561,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -5575,13 +5576,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -5635,38 +5636,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -5675,8 +5676,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -5685,8 +5686,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -5705,8 +5706,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -5720,13 +5721,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -6682,8 +6683,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -6887,8 +6888,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/tradecapturereportrequest/TradeCaptureReportRequest.generated.go b/fix50/tradecapturereportrequest/TradeCaptureReportRequest.generated.go index 90bf51639..217c7e0a2 100644 --- a/fix50/tradecapturereportrequest/TradeCaptureReportRequest.generated.go +++ b/fix50/tradecapturereportrequest/TradeCaptureReportRequest.generated.go @@ -1,6 +1,7 @@ package tradecapturereportrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -133,8 +134,8 @@ func (m TradeCaptureReportRequest) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m TradeCaptureReportRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m TradeCaptureReportRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -148,8 +149,8 @@ func (m TradeCaptureReportRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m TradeCaptureReportRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m TradeCaptureReportRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -168,18 +169,18 @@ func (m TradeCaptureReportRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m TradeCaptureReportRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m TradeCaptureReportRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m TradeCaptureReportRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m TradeCaptureReportRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m TradeCaptureReportRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m TradeCaptureReportRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -413,8 +414,8 @@ func (m TradeCaptureReportRequest) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m TradeCaptureReportRequest) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m TradeCaptureReportRequest) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -448,8 +449,8 @@ func (m TradeCaptureReportRequest) SetTrdMatchID(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m TradeCaptureReportRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m TradeCaptureReportRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -508,18 +509,18 @@ func (m TradeCaptureReportRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m TradeCaptureReportRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m TradeCaptureReportRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m TradeCaptureReportRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m TradeCaptureReportRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m TradeCaptureReportRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m TradeCaptureReportRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -2044,13 +2045,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2084,8 +2085,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2099,13 +2100,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2144,8 +2145,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2913,13 +2914,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2953,8 +2954,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2968,13 +2969,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3028,38 +3029,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3068,8 +3069,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3078,8 +3079,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3098,8 +3099,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3113,13 +3114,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4080,8 +4081,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/tradecapturereportrequestack/TradeCaptureReportRequestAck.generated.go b/fix50/tradecapturereportrequestack/TradeCaptureReportRequestAck.generated.go index 7594e2562..3bac073dc 100644 --- a/fix50/tradecapturereportrequestack/TradeCaptureReportRequestAck.generated.go +++ b/fix50/tradecapturereportrequestack/TradeCaptureReportRequestAck.generated.go @@ -1,6 +1,7 @@ package tradecapturereportrequestack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -110,8 +111,8 @@ func (m TradeCaptureReportRequestAck) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m TradeCaptureReportRequestAck) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m TradeCaptureReportRequestAck) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -125,8 +126,8 @@ func (m TradeCaptureReportRequestAck) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m TradeCaptureReportRequestAck) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m TradeCaptureReportRequestAck) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -145,18 +146,18 @@ func (m TradeCaptureReportRequestAck) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m TradeCaptureReportRequestAck) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m TradeCaptureReportRequestAck) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m TradeCaptureReportRequestAck) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m TradeCaptureReportRequestAck) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m TradeCaptureReportRequestAck) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m TradeCaptureReportRequestAck) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -355,18 +356,18 @@ func (m TradeCaptureReportRequestAck) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m TradeCaptureReportRequestAck) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m TradeCaptureReportRequestAck) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m TradeCaptureReportRequestAck) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m TradeCaptureReportRequestAck) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m TradeCaptureReportRequestAck) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m TradeCaptureReportRequestAck) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1378,13 +1379,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1418,8 +1419,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1433,13 +1434,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1478,8 +1479,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2171,13 +2172,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2211,8 +2212,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2226,13 +2227,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2286,38 +2287,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2326,8 +2327,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2336,8 +2337,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2356,8 +2357,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2371,13 +2372,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3338,8 +3339,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50/tradingsessionlist/TradingSessionList.generated.go b/fix50/tradingsessionlist/TradingSessionList.generated.go index 3cc8bfbc3..c428a58ab 100644 --- a/fix50/tradingsessionlist/TradingSessionList.generated.go +++ b/fix50/tradingsessionlist/TradingSessionList.generated.go @@ -1,6 +1,7 @@ package tradingsessionlist import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -164,8 +165,8 @@ func (m NoTradingSessions) SetTradSesEndTime(v time.Time) { } //SetTotalVolumeTraded sets TotalVolumeTraded, Tag 387 -func (m NoTradingSessions) SetTotalVolumeTraded(v float64) { - m.Set(field.NewTotalVolumeTraded(v)) +func (m NoTradingSessions) SetTotalVolumeTraded(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalVolumeTraded(value, scale)) } //SetText sets Text, Tag 58 diff --git a/fix50/tradingsessionstatus/TradingSessionStatus.generated.go b/fix50/tradingsessionstatus/TradingSessionStatus.generated.go index 949128afd..7b9b21dc3 100644 --- a/fix50/tradingsessionstatus/TradingSessionStatus.generated.go +++ b/fix50/tradingsessionstatus/TradingSessionStatus.generated.go @@ -1,6 +1,7 @@ package tradingsessionstatus import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -108,8 +109,8 @@ func (m TradingSessionStatus) SetMaturityMonthYear(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m TradingSessionStatus) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m TradingSessionStatus) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -123,8 +124,8 @@ func (m TradingSessionStatus) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m TradingSessionStatus) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m TradingSessionStatus) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -143,18 +144,18 @@ func (m TradingSessionStatus) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m TradingSessionStatus) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m TradingSessionStatus) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m TradingSessionStatus) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m TradingSessionStatus) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m TradingSessionStatus) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m TradingSessionStatus) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -258,8 +259,8 @@ func (m TradingSessionStatus) SetEncodedText(v string) { } //SetTotalVolumeTraded sets TotalVolumeTraded, Tag 387 -func (m TradingSessionStatus) SetTotalVolumeTraded(v float64) { - m.Set(field.NewTotalVolumeTraded(v)) +func (m TradingSessionStatus) SetTotalVolumeTraded(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalVolumeTraded(value, scale)) } //SetNoSecurityAltID sets NoSecurityAltID, Tag 454 @@ -368,18 +369,18 @@ func (m TradingSessionStatus) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m TradingSessionStatus) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m TradingSessionStatus) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m TradingSessionStatus) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m TradingSessionStatus) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m TradingSessionStatus) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m TradingSessionStatus) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1277,8 +1278,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/adjustedpositionreport/AdjustedPositionReport.generated.go b/fix50sp1/adjustedpositionreport/AdjustedPositionReport.generated.go index 60b14f138..415022f16 100644 --- a/fix50sp1/adjustedpositionreport/AdjustedPositionReport.generated.go +++ b/fix50sp1/adjustedpositionreport/AdjustedPositionReport.generated.go @@ -1,6 +1,7 @@ package adjustedpositionreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -103,13 +104,13 @@ func (m AdjustedPositionReport) SetPosReqType(v int) { } //SetSettlPrice sets SettlPrice, Tag 730 -func (m AdjustedPositionReport) SetSettlPrice(v float64) { - m.Set(field.NewSettlPrice(v)) +func (m AdjustedPositionReport) SetSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlPrice(value, scale)) } //SetPriorSettlPrice sets PriorSettlPrice, Tag 734 -func (m AdjustedPositionReport) SetPriorSettlPrice(v float64) { - m.Set(field.NewPriorSettlPrice(v)) +func (m AdjustedPositionReport) SetPriorSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPriorSettlPrice(value, scale)) } //GetNoRelatedSym gets NoRelatedSym, Tag 146 @@ -306,13 +307,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -346,8 +347,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -361,13 +362,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -456,18 +457,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -506,13 +507,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -541,8 +542,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -556,8 +557,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m NoRelatedSym) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -571,13 +572,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -1493,8 +1494,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -1925,13 +1926,13 @@ func (m NoPositions) SetPosType(v string) { } //SetLongQty sets LongQty, Tag 704 -func (m NoPositions) SetLongQty(v float64) { - m.Set(field.NewLongQty(v)) +func (m NoPositions) SetLongQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLongQty(value, scale)) } //SetShortQty sets ShortQty, Tag 705 -func (m NoPositions) SetShortQty(v float64) { - m.Set(field.NewShortQty(v)) +func (m NoPositions) SetShortQty(value decimal.Decimal, scale int32) { + m.Set(field.NewShortQty(value, scale)) } //SetPosQtyStatus sets PosQtyStatus, Tag 706 diff --git a/fix50sp1/advertisement/Advertisement.generated.go b/fix50sp1/advertisement/Advertisement.generated.go index b909fa3c5..3652c5e40 100644 --- a/fix50sp1/advertisement/Advertisement.generated.go +++ b/fix50sp1/advertisement/Advertisement.generated.go @@ -1,6 +1,7 @@ package advertisement import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -100,8 +101,8 @@ func (m Advertisement) SetLastMkt(v string) { } //SetPrice sets Price, Tag 44 -func (m Advertisement) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m Advertisement) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -110,8 +111,8 @@ func (m Advertisement) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m Advertisement) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m Advertisement) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSymbol sets Symbol, Tag 55 @@ -170,8 +171,8 @@ func (m Advertisement) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m Advertisement) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m Advertisement) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -185,8 +186,8 @@ func (m Advertisement) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m Advertisement) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m Advertisement) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -205,18 +206,18 @@ func (m Advertisement) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m Advertisement) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m Advertisement) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m Advertisement) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m Advertisement) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m Advertisement) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m Advertisement) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -385,18 +386,18 @@ func (m Advertisement) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m Advertisement) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m Advertisement) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m Advertisement) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m Advertisement) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m Advertisement) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m Advertisement) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -435,13 +436,13 @@ func (m Advertisement) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m Advertisement) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m Advertisement) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m Advertisement) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m Advertisement) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -470,8 +471,8 @@ func (m Advertisement) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m Advertisement) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m Advertisement) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -485,8 +486,8 @@ func (m Advertisement) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m Advertisement) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m Advertisement) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -505,13 +506,13 @@ func (m Advertisement) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m Advertisement) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m Advertisement) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m Advertisement) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m Advertisement) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -1698,13 +1699,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1738,8 +1739,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1753,13 +1754,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1798,8 +1799,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -1843,13 +1844,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -1868,8 +1869,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -1878,8 +1879,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -2619,13 +2620,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2659,8 +2660,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2674,13 +2675,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2734,38 +2735,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2774,8 +2775,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2784,8 +2785,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2804,8 +2805,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2819,13 +2820,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2849,8 +2850,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -2859,8 +2860,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -3882,8 +3883,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/allocationinstruction/AllocationInstruction.generated.go b/fix50sp1/allocationinstruction/AllocationInstruction.generated.go index 01d6ff0e7..ee2ba5de7 100644 --- a/fix50sp1/allocationinstruction/AllocationInstruction.generated.go +++ b/fix50sp1/allocationinstruction/AllocationInstruction.generated.go @@ -1,6 +1,7 @@ package allocationinstruction import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -67,8 +68,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m AllocationInstruction) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m AllocationInstruction) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -92,8 +93,8 @@ func (m AllocationInstruction) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m AllocationInstruction) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m AllocationInstruction) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -182,8 +183,8 @@ func (m AllocationInstruction) SetSecurityDesc(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m AllocationInstruction) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m AllocationInstruction) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetNoExecs sets NoExecs, Tag 124 @@ -197,13 +198,13 @@ func (m AllocationInstruction) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m AllocationInstruction) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m AllocationInstruction) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m AllocationInstruction) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m AllocationInstruction) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -232,8 +233,8 @@ func (m AllocationInstruction) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m AllocationInstruction) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m AllocationInstruction) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -247,8 +248,8 @@ func (m AllocationInstruction) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m AllocationInstruction) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m AllocationInstruction) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -267,8 +268,8 @@ func (m AllocationInstruction) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m AllocationInstruction) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m AllocationInstruction) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -287,13 +288,13 @@ func (m AllocationInstruction) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m AllocationInstruction) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m AllocationInstruction) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m AllocationInstruction) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m AllocationInstruction) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -302,8 +303,8 @@ func (m AllocationInstruction) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m AllocationInstruction) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m AllocationInstruction) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -317,18 +318,18 @@ func (m AllocationInstruction) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m AllocationInstruction) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m AllocationInstruction) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m AllocationInstruction) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m AllocationInstruction) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m AllocationInstruction) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m AllocationInstruction) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -382,8 +383,8 @@ func (m AllocationInstruction) SetEncodedText(v string) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m AllocationInstruction) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m AllocationInstruction) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -437,8 +438,8 @@ func (m AllocationInstruction) SetLocaleOfIssue(v string) { } //SetTotalAccruedInterestAmt sets TotalAccruedInterestAmt, Tag 540 -func (m AllocationInstruction) SetTotalAccruedInterestAmt(v float64) { - m.Set(field.NewTotalAccruedInterestAmt(v)) +func (m AllocationInstruction) SetTotalAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalAccruedInterestAmt(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -492,8 +493,8 @@ func (m AllocationInstruction) SetLegalConfirm(v bool) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m AllocationInstruction) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m AllocationInstruction) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -522,8 +523,8 @@ func (m AllocationInstruction) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m AllocationInstruction) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m AllocationInstruction) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -557,8 +558,8 @@ func (m AllocationInstruction) SetClearingBusinessDate(v string) { } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m AllocationInstruction) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m AllocationInstruction) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetNoPosAmt sets NoPosAmt, Tag 753 @@ -632,8 +633,8 @@ func (m AllocationInstruction) SetAllocNoOrdersType(v int) { } //SetAvgParPx sets AvgParPx, Tag 860 -func (m AllocationInstruction) SetAvgParPx(v float64) { - m.Set(field.NewAvgParPx(v)) +func (m AllocationInstruction) SetAvgParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgParPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -642,8 +643,8 @@ func (m AllocationInstruction) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m AllocationInstruction) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m AllocationInstruction) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -682,8 +683,8 @@ func (m AllocationInstruction) SetLastFragment(v bool) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m AllocationInstruction) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m AllocationInstruction) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -722,18 +723,18 @@ func (m AllocationInstruction) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m AllocationInstruction) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m AllocationInstruction) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m AllocationInstruction) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m AllocationInstruction) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m AllocationInstruction) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m AllocationInstruction) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -752,18 +753,18 @@ func (m AllocationInstruction) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m AllocationInstruction) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m AllocationInstruction) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m AllocationInstruction) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m AllocationInstruction) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m AllocationInstruction) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m AllocationInstruction) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -777,8 +778,8 @@ func (m AllocationInstruction) SetNTPositionLimit(v int) { } //SetRndPx sets RndPx, Tag 991 -func (m AllocationInstruction) SetRndPx(v float64) { - m.Set(field.NewRndPx(v)) +func (m AllocationInstruction) SetRndPx(value decimal.Decimal, scale int32) { + m.Set(field.NewRndPx(value, scale)) } //SetUnitOfMeasure sets UnitOfMeasure, Tag 996 @@ -812,13 +813,13 @@ func (m AllocationInstruction) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m AllocationInstruction) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m AllocationInstruction) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m AllocationInstruction) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m AllocationInstruction) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -847,8 +848,8 @@ func (m AllocationInstruction) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m AllocationInstruction) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m AllocationInstruction) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -862,8 +863,8 @@ func (m AllocationInstruction) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m AllocationInstruction) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m AllocationInstruction) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -882,13 +883,13 @@ func (m AllocationInstruction) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m AllocationInstruction) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m AllocationInstruction) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m AllocationInstruction) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m AllocationInstruction) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -2802,18 +2803,18 @@ func (m NoOrders) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrderAvgPx sets OrderAvgPx, Tag 799 -func (m NoOrders) SetOrderAvgPx(v float64) { - m.Set(field.NewOrderAvgPx(v)) +func (m NoOrders) SetOrderAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderAvgPx(value, scale)) } //SetOrderBookingQty sets OrderBookingQty, Tag 800 -func (m NoOrders) SetOrderBookingQty(v float64) { - m.Set(field.NewOrderBookingQty(v)) +func (m NoOrders) SetOrderBookingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderBookingQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 @@ -3113,13 +3114,13 @@ func (m NoAllocs) SetMatchStatus(v string) { } //SetAllocPrice sets AllocPrice, Tag 366 -func (m NoAllocs) SetAllocPrice(v float64) { - m.Set(field.NewAllocPrice(v)) +func (m NoAllocs) SetAllocPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocPrice(value, scale)) } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetIndividualAllocID sets IndividualAllocID, Tag 467 @@ -3163,8 +3164,8 @@ func (m NoAllocs) SetEncodedAllocText(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoAllocs) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoAllocs) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -3183,23 +3184,23 @@ func (m NoAllocs) SetFundRenewWaiv(v string) { } //SetAllocAvgPx sets AllocAvgPx, Tag 153 -func (m NoAllocs) SetAllocAvgPx(v float64) { - m.Set(field.NewAllocAvgPx(v)) +func (m NoAllocs) SetAllocAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAvgPx(value, scale)) } //SetAllocNetMoney sets AllocNetMoney, Tag 154 -func (m NoAllocs) SetAllocNetMoney(v float64) { - m.Set(field.NewAllocNetMoney(v)) +func (m NoAllocs) SetAllocNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoAllocs) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoAllocs) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetAllocSettlCurrAmt sets AllocSettlCurrAmt, Tag 737 -func (m NoAllocs) SetAllocSettlCurrAmt(v float64) { - m.Set(field.NewAllocSettlCurrAmt(v)) +func (m NoAllocs) SetAllocSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -3213,8 +3214,8 @@ func (m NoAllocs) SetAllocSettlCurrency(v string) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoAllocs) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoAllocs) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -3223,13 +3224,13 @@ func (m NoAllocs) SetSettlCurrFxRateCalc(v string) { } //SetAllocAccruedInterestAmt sets AllocAccruedInterestAmt, Tag 742 -func (m NoAllocs) SetAllocAccruedInterestAmt(v float64) { - m.Set(field.NewAllocAccruedInterestAmt(v)) +func (m NoAllocs) SetAllocAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAccruedInterestAmt(value, scale)) } //SetAllocInterestAtMaturity sets AllocInterestAtMaturity, Tag 741 -func (m NoAllocs) SetAllocInterestAtMaturity(v float64) { - m.Set(field.NewAllocInterestAtMaturity(v)) +func (m NoAllocs) SetAllocInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocInterestAtMaturity(value, scale)) } //SetNoMiscFees sets NoMiscFees, Tag 136 @@ -3916,8 +3917,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -4305,8 +4306,8 @@ type NoExecs struct { } //SetLastQty sets LastQty, Tag 32 -func (m NoExecs) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m NoExecs) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetExecID sets ExecID, Tag 17 @@ -4320,13 +4321,13 @@ func (m NoExecs) SetSecondaryExecID(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m NoExecs) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m NoExecs) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastParPx sets LastParPx, Tag 669 -func (m NoExecs) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m NoExecs) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetLastCapacity sets LastCapacity, Tag 29 @@ -4809,13 +4810,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4849,8 +4850,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4864,13 +4865,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4909,8 +4910,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4954,13 +4955,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -4979,8 +4980,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4989,8 +4990,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -5730,13 +5731,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -5770,8 +5771,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -5785,13 +5786,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -5845,38 +5846,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -5885,8 +5886,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -5895,8 +5896,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -5915,8 +5916,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -5930,13 +5931,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -5960,8 +5961,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -5970,8 +5971,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -6988,8 +6989,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -7069,8 +7070,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/allocationinstructionack/AllocationInstructionAck.generated.go b/fix50sp1/allocationinstructionack/AllocationInstructionAck.generated.go index b4fd64f62..2f7717d3a 100644 --- a/fix50sp1/allocationinstructionack/AllocationInstructionAck.generated.go +++ b/fix50sp1/allocationinstructionack/AllocationInstructionAck.generated.go @@ -1,6 +1,7 @@ package allocationinstructionack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -336,8 +337,8 @@ func (m NoAllocs) SetAllocAcctIDSource(v int) { } //SetAllocPrice sets AllocPrice, Tag 366 -func (m NoAllocs) SetAllocPrice(v float64) { - m.Set(field.NewAllocPrice(v)) +func (m NoAllocs) SetAllocPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocPrice(value, scale)) } //SetIndividualAllocID sets IndividualAllocID, Tag 467 @@ -381,8 +382,8 @@ func (m NoAllocs) SetIndividualAllocType(v int) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetNoNestedPartyIDs sets NoNestedPartyIDs, Tag 539 diff --git a/fix50sp1/allocationinstructionalert/AllocationInstructionAlert.generated.go b/fix50sp1/allocationinstructionalert/AllocationInstructionAlert.generated.go index c0eabea72..6dcf8d4a8 100644 --- a/fix50sp1/allocationinstructionalert/AllocationInstructionAlert.generated.go +++ b/fix50sp1/allocationinstructionalert/AllocationInstructionAlert.generated.go @@ -1,6 +1,7 @@ package allocationinstructionalert import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -67,8 +68,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m AllocationInstructionAlert) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m AllocationInstructionAlert) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -92,8 +93,8 @@ func (m AllocationInstructionAlert) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m AllocationInstructionAlert) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m AllocationInstructionAlert) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -182,8 +183,8 @@ func (m AllocationInstructionAlert) SetSecurityDesc(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m AllocationInstructionAlert) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m AllocationInstructionAlert) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetNoExecs sets NoExecs, Tag 124 @@ -197,13 +198,13 @@ func (m AllocationInstructionAlert) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m AllocationInstructionAlert) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m AllocationInstructionAlert) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m AllocationInstructionAlert) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m AllocationInstructionAlert) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -232,8 +233,8 @@ func (m AllocationInstructionAlert) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m AllocationInstructionAlert) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m AllocationInstructionAlert) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -247,8 +248,8 @@ func (m AllocationInstructionAlert) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m AllocationInstructionAlert) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m AllocationInstructionAlert) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -267,8 +268,8 @@ func (m AllocationInstructionAlert) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m AllocationInstructionAlert) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m AllocationInstructionAlert) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -287,13 +288,13 @@ func (m AllocationInstructionAlert) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m AllocationInstructionAlert) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m AllocationInstructionAlert) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m AllocationInstructionAlert) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m AllocationInstructionAlert) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -302,8 +303,8 @@ func (m AllocationInstructionAlert) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m AllocationInstructionAlert) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m AllocationInstructionAlert) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -317,18 +318,18 @@ func (m AllocationInstructionAlert) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m AllocationInstructionAlert) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m AllocationInstructionAlert) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m AllocationInstructionAlert) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m AllocationInstructionAlert) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m AllocationInstructionAlert) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m AllocationInstructionAlert) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -382,8 +383,8 @@ func (m AllocationInstructionAlert) SetEncodedText(v string) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m AllocationInstructionAlert) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m AllocationInstructionAlert) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -437,8 +438,8 @@ func (m AllocationInstructionAlert) SetLocaleOfIssue(v string) { } //SetTotalAccruedInterestAmt sets TotalAccruedInterestAmt, Tag 540 -func (m AllocationInstructionAlert) SetTotalAccruedInterestAmt(v float64) { - m.Set(field.NewTotalAccruedInterestAmt(v)) +func (m AllocationInstructionAlert) SetTotalAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalAccruedInterestAmt(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -492,8 +493,8 @@ func (m AllocationInstructionAlert) SetLegalConfirm(v bool) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m AllocationInstructionAlert) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m AllocationInstructionAlert) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -522,8 +523,8 @@ func (m AllocationInstructionAlert) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m AllocationInstructionAlert) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m AllocationInstructionAlert) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -557,8 +558,8 @@ func (m AllocationInstructionAlert) SetClearingBusinessDate(v string) { } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m AllocationInstructionAlert) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m AllocationInstructionAlert) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetNoPosAmt sets NoPosAmt, Tag 753 @@ -632,8 +633,8 @@ func (m AllocationInstructionAlert) SetAllocNoOrdersType(v int) { } //SetAvgParPx sets AvgParPx, Tag 860 -func (m AllocationInstructionAlert) SetAvgParPx(v float64) { - m.Set(field.NewAvgParPx(v)) +func (m AllocationInstructionAlert) SetAvgParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgParPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -642,8 +643,8 @@ func (m AllocationInstructionAlert) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m AllocationInstructionAlert) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m AllocationInstructionAlert) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -682,8 +683,8 @@ func (m AllocationInstructionAlert) SetLastFragment(v bool) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m AllocationInstructionAlert) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m AllocationInstructionAlert) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -722,18 +723,18 @@ func (m AllocationInstructionAlert) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m AllocationInstructionAlert) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m AllocationInstructionAlert) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m AllocationInstructionAlert) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m AllocationInstructionAlert) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m AllocationInstructionAlert) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m AllocationInstructionAlert) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -752,18 +753,18 @@ func (m AllocationInstructionAlert) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m AllocationInstructionAlert) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m AllocationInstructionAlert) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m AllocationInstructionAlert) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m AllocationInstructionAlert) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m AllocationInstructionAlert) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m AllocationInstructionAlert) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -777,8 +778,8 @@ func (m AllocationInstructionAlert) SetNTPositionLimit(v int) { } //SetRndPx sets RndPx, Tag 991 -func (m AllocationInstructionAlert) SetRndPx(v float64) { - m.Set(field.NewRndPx(v)) +func (m AllocationInstructionAlert) SetRndPx(value decimal.Decimal, scale int32) { + m.Set(field.NewRndPx(value, scale)) } //SetUnitOfMeasure sets UnitOfMeasure, Tag 996 @@ -812,13 +813,13 @@ func (m AllocationInstructionAlert) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m AllocationInstructionAlert) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m AllocationInstructionAlert) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m AllocationInstructionAlert) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m AllocationInstructionAlert) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -847,8 +848,8 @@ func (m AllocationInstructionAlert) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m AllocationInstructionAlert) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m AllocationInstructionAlert) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -862,8 +863,8 @@ func (m AllocationInstructionAlert) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m AllocationInstructionAlert) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m AllocationInstructionAlert) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -882,13 +883,13 @@ func (m AllocationInstructionAlert) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m AllocationInstructionAlert) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m AllocationInstructionAlert) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m AllocationInstructionAlert) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m AllocationInstructionAlert) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -2802,18 +2803,18 @@ func (m NoOrders) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrderAvgPx sets OrderAvgPx, Tag 799 -func (m NoOrders) SetOrderAvgPx(v float64) { - m.Set(field.NewOrderAvgPx(v)) +func (m NoOrders) SetOrderAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderAvgPx(value, scale)) } //SetOrderBookingQty sets OrderBookingQty, Tag 800 -func (m NoOrders) SetOrderBookingQty(v float64) { - m.Set(field.NewOrderBookingQty(v)) +func (m NoOrders) SetOrderBookingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderBookingQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 @@ -3113,13 +3114,13 @@ func (m NoAllocs) SetMatchStatus(v string) { } //SetAllocPrice sets AllocPrice, Tag 366 -func (m NoAllocs) SetAllocPrice(v float64) { - m.Set(field.NewAllocPrice(v)) +func (m NoAllocs) SetAllocPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocPrice(value, scale)) } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetIndividualAllocID sets IndividualAllocID, Tag 467 @@ -3163,8 +3164,8 @@ func (m NoAllocs) SetEncodedAllocText(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoAllocs) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoAllocs) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -3183,23 +3184,23 @@ func (m NoAllocs) SetFundRenewWaiv(v string) { } //SetAllocAvgPx sets AllocAvgPx, Tag 153 -func (m NoAllocs) SetAllocAvgPx(v float64) { - m.Set(field.NewAllocAvgPx(v)) +func (m NoAllocs) SetAllocAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAvgPx(value, scale)) } //SetAllocNetMoney sets AllocNetMoney, Tag 154 -func (m NoAllocs) SetAllocNetMoney(v float64) { - m.Set(field.NewAllocNetMoney(v)) +func (m NoAllocs) SetAllocNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoAllocs) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoAllocs) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetAllocSettlCurrAmt sets AllocSettlCurrAmt, Tag 737 -func (m NoAllocs) SetAllocSettlCurrAmt(v float64) { - m.Set(field.NewAllocSettlCurrAmt(v)) +func (m NoAllocs) SetAllocSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -3213,8 +3214,8 @@ func (m NoAllocs) SetAllocSettlCurrency(v string) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoAllocs) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoAllocs) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -3223,13 +3224,13 @@ func (m NoAllocs) SetSettlCurrFxRateCalc(v string) { } //SetAllocAccruedInterestAmt sets AllocAccruedInterestAmt, Tag 742 -func (m NoAllocs) SetAllocAccruedInterestAmt(v float64) { - m.Set(field.NewAllocAccruedInterestAmt(v)) +func (m NoAllocs) SetAllocAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAccruedInterestAmt(value, scale)) } //SetAllocInterestAtMaturity sets AllocInterestAtMaturity, Tag 741 -func (m NoAllocs) SetAllocInterestAtMaturity(v float64) { - m.Set(field.NewAllocInterestAtMaturity(v)) +func (m NoAllocs) SetAllocInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocInterestAtMaturity(value, scale)) } //SetNoMiscFees sets NoMiscFees, Tag 136 @@ -3916,8 +3917,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -4305,8 +4306,8 @@ type NoExecs struct { } //SetLastQty sets LastQty, Tag 32 -func (m NoExecs) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m NoExecs) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetExecID sets ExecID, Tag 17 @@ -4320,13 +4321,13 @@ func (m NoExecs) SetSecondaryExecID(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m NoExecs) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m NoExecs) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastParPx sets LastParPx, Tag 669 -func (m NoExecs) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m NoExecs) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetLastCapacity sets LastCapacity, Tag 29 @@ -4809,13 +4810,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4849,8 +4850,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4864,13 +4865,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4909,8 +4910,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4954,13 +4955,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -4979,8 +4980,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4989,8 +4990,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -5730,13 +5731,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -5770,8 +5771,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -5785,13 +5786,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -5845,38 +5846,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -5885,8 +5886,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -5895,8 +5896,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -5915,8 +5916,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -5930,13 +5931,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -5960,8 +5961,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -5970,8 +5971,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -6988,8 +6989,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -7069,8 +7070,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/allocationreport/AllocationReport.generated.go b/fix50sp1/allocationreport/AllocationReport.generated.go index 36812a5b6..71b37567d 100644 --- a/fix50sp1/allocationreport/AllocationReport.generated.go +++ b/fix50sp1/allocationreport/AllocationReport.generated.go @@ -1,6 +1,7 @@ package allocationreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -69,8 +70,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m AllocationReport) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m AllocationReport) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -94,8 +95,8 @@ func (m AllocationReport) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m AllocationReport) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m AllocationReport) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -194,8 +195,8 @@ func (m AllocationReport) SetSecurityDesc(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m AllocationReport) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m AllocationReport) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetNoExecs sets NoExecs, Tag 124 @@ -209,13 +210,13 @@ func (m AllocationReport) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m AllocationReport) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m AllocationReport) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m AllocationReport) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m AllocationReport) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -244,8 +245,8 @@ func (m AllocationReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m AllocationReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m AllocationReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -259,8 +260,8 @@ func (m AllocationReport) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m AllocationReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m AllocationReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -279,8 +280,8 @@ func (m AllocationReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m AllocationReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m AllocationReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -299,13 +300,13 @@ func (m AllocationReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m AllocationReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m AllocationReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m AllocationReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m AllocationReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -314,8 +315,8 @@ func (m AllocationReport) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m AllocationReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m AllocationReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -329,18 +330,18 @@ func (m AllocationReport) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m AllocationReport) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m AllocationReport) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m AllocationReport) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m AllocationReport) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m AllocationReport) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m AllocationReport) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -394,8 +395,8 @@ func (m AllocationReport) SetEncodedText(v string) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m AllocationReport) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m AllocationReport) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -449,8 +450,8 @@ func (m AllocationReport) SetLocaleOfIssue(v string) { } //SetTotalAccruedInterestAmt sets TotalAccruedInterestAmt, Tag 540 -func (m AllocationReport) SetTotalAccruedInterestAmt(v float64) { - m.Set(field.NewTotalAccruedInterestAmt(v)) +func (m AllocationReport) SetTotalAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalAccruedInterestAmt(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -504,8 +505,8 @@ func (m AllocationReport) SetLegalConfirm(v bool) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m AllocationReport) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m AllocationReport) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -534,8 +535,8 @@ func (m AllocationReport) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m AllocationReport) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m AllocationReport) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -569,8 +570,8 @@ func (m AllocationReport) SetClearingBusinessDate(v string) { } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m AllocationReport) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m AllocationReport) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetNoPosAmt sets NoPosAmt, Tag 753 @@ -659,8 +660,8 @@ func (m AllocationReport) SetAllocNoOrdersType(v int) { } //SetAvgParPx sets AvgParPx, Tag 860 -func (m AllocationReport) SetAvgParPx(v float64) { - m.Set(field.NewAvgParPx(v)) +func (m AllocationReport) SetAvgParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgParPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -669,8 +670,8 @@ func (m AllocationReport) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m AllocationReport) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m AllocationReport) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -709,8 +710,8 @@ func (m AllocationReport) SetLastFragment(v bool) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m AllocationReport) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m AllocationReport) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -749,18 +750,18 @@ func (m AllocationReport) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m AllocationReport) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m AllocationReport) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m AllocationReport) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m AllocationReport) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m AllocationReport) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m AllocationReport) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -779,18 +780,18 @@ func (m AllocationReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m AllocationReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m AllocationReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m AllocationReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m AllocationReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m AllocationReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m AllocationReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -804,8 +805,8 @@ func (m AllocationReport) SetNTPositionLimit(v int) { } //SetRndPx sets RndPx, Tag 991 -func (m AllocationReport) SetRndPx(v float64) { - m.Set(field.NewRndPx(v)) +func (m AllocationReport) SetRndPx(value decimal.Decimal, scale int32) { + m.Set(field.NewRndPx(value, scale)) } //SetUnitOfMeasure sets UnitOfMeasure, Tag 996 @@ -839,13 +840,13 @@ func (m AllocationReport) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m AllocationReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m AllocationReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m AllocationReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m AllocationReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -874,8 +875,8 @@ func (m AllocationReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m AllocationReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m AllocationReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -889,8 +890,8 @@ func (m AllocationReport) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m AllocationReport) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m AllocationReport) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -909,13 +910,13 @@ func (m AllocationReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m AllocationReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m AllocationReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m AllocationReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m AllocationReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -2884,18 +2885,18 @@ func (m NoOrders) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrderAvgPx sets OrderAvgPx, Tag 799 -func (m NoOrders) SetOrderAvgPx(v float64) { - m.Set(field.NewOrderAvgPx(v)) +func (m NoOrders) SetOrderAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderAvgPx(value, scale)) } //SetOrderBookingQty sets OrderBookingQty, Tag 800 -func (m NoOrders) SetOrderBookingQty(v float64) { - m.Set(field.NewOrderBookingQty(v)) +func (m NoOrders) SetOrderBookingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderBookingQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 @@ -3195,13 +3196,13 @@ func (m NoAllocs) SetMatchStatus(v string) { } //SetAllocPrice sets AllocPrice, Tag 366 -func (m NoAllocs) SetAllocPrice(v float64) { - m.Set(field.NewAllocPrice(v)) +func (m NoAllocs) SetAllocPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocPrice(value, scale)) } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetIndividualAllocID sets IndividualAllocID, Tag 467 @@ -3245,8 +3246,8 @@ func (m NoAllocs) SetEncodedAllocText(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoAllocs) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoAllocs) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -3265,23 +3266,23 @@ func (m NoAllocs) SetFundRenewWaiv(v string) { } //SetAllocAvgPx sets AllocAvgPx, Tag 153 -func (m NoAllocs) SetAllocAvgPx(v float64) { - m.Set(field.NewAllocAvgPx(v)) +func (m NoAllocs) SetAllocAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAvgPx(value, scale)) } //SetAllocNetMoney sets AllocNetMoney, Tag 154 -func (m NoAllocs) SetAllocNetMoney(v float64) { - m.Set(field.NewAllocNetMoney(v)) +func (m NoAllocs) SetAllocNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoAllocs) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoAllocs) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetAllocSettlCurrAmt sets AllocSettlCurrAmt, Tag 737 -func (m NoAllocs) SetAllocSettlCurrAmt(v float64) { - m.Set(field.NewAllocSettlCurrAmt(v)) +func (m NoAllocs) SetAllocSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -3295,8 +3296,8 @@ func (m NoAllocs) SetAllocSettlCurrency(v string) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoAllocs) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoAllocs) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -3305,13 +3306,13 @@ func (m NoAllocs) SetSettlCurrFxRateCalc(v string) { } //SetAllocAccruedInterestAmt sets AllocAccruedInterestAmt, Tag 742 -func (m NoAllocs) SetAllocAccruedInterestAmt(v float64) { - m.Set(field.NewAllocAccruedInterestAmt(v)) +func (m NoAllocs) SetAllocAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAccruedInterestAmt(value, scale)) } //SetAllocInterestAtMaturity sets AllocInterestAtMaturity, Tag 741 -func (m NoAllocs) SetAllocInterestAtMaturity(v float64) { - m.Set(field.NewAllocInterestAtMaturity(v)) +func (m NoAllocs) SetAllocInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocInterestAtMaturity(value, scale)) } //SetNoMiscFees sets NoMiscFees, Tag 136 @@ -3998,8 +3999,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -4387,8 +4388,8 @@ type NoExecs struct { } //SetLastQty sets LastQty, Tag 32 -func (m NoExecs) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m NoExecs) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetExecID sets ExecID, Tag 17 @@ -4402,13 +4403,13 @@ func (m NoExecs) SetSecondaryExecID(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m NoExecs) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m NoExecs) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastParPx sets LastParPx, Tag 669 -func (m NoExecs) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m NoExecs) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetLastCapacity sets LastCapacity, Tag 29 @@ -4891,13 +4892,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4931,8 +4932,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4946,13 +4947,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4991,8 +4992,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -5036,13 +5037,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -5061,8 +5062,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -5071,8 +5072,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -5812,13 +5813,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -5852,8 +5853,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -5867,13 +5868,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -5927,38 +5928,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -5967,8 +5968,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -5977,8 +5978,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -5997,8 +5998,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -6012,13 +6013,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -6042,8 +6043,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -6052,8 +6053,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -7070,8 +7071,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -7151,8 +7152,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/allocationreportack/AllocationReportAck.generated.go b/fix50sp1/allocationreportack/AllocationReportAck.generated.go index dd212659f..8384e18ff 100644 --- a/fix50sp1/allocationreportack/AllocationReportAck.generated.go +++ b/fix50sp1/allocationreportack/AllocationReportAck.generated.go @@ -1,6 +1,7 @@ package allocationreportack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -63,8 +64,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetQuantity sets Quantity, Tag 53 -func (m AllocationReportAck) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m AllocationReportAck) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetText sets Text, Tag 58 @@ -416,8 +417,8 @@ func (m NoAllocs) SetAllocAcctIDSource(v int) { } //SetAllocPrice sets AllocPrice, Tag 366 -func (m NoAllocs) SetAllocPrice(v float64) { - m.Set(field.NewAllocPrice(v)) +func (m NoAllocs) SetAllocPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocPrice(value, scale)) } //SetIndividualAllocID sets IndividualAllocID, Tag 467 @@ -461,8 +462,8 @@ func (m NoAllocs) SetIndividualAllocType(v int) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetNoNestedPartyIDs sets NoNestedPartyIDs, Tag 539 diff --git a/fix50sp1/assignmentreport/AssignmentReport.generated.go b/fix50sp1/assignmentreport/AssignmentReport.generated.go index 366d899fe..f4645291d 100644 --- a/fix50sp1/assignmentreport/AssignmentReport.generated.go +++ b/fix50sp1/assignmentreport/AssignmentReport.generated.go @@ -1,6 +1,7 @@ package assignmentreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -123,8 +124,8 @@ func (m AssignmentReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m AssignmentReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m AssignmentReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -138,8 +139,8 @@ func (m AssignmentReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m AssignmentReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m AssignmentReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -158,18 +159,18 @@ func (m AssignmentReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m AssignmentReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m AssignmentReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m AssignmentReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m AssignmentReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m AssignmentReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m AssignmentReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -313,8 +314,8 @@ func (m AssignmentReport) SetSettlSessSubID(v string) { } //SetSettlPrice sets SettlPrice, Tag 730 -func (m AssignmentReport) SetSettlPrice(v float64) { - m.Set(field.NewSettlPrice(v)) +func (m AssignmentReport) SetSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlPrice(value, scale)) } //SetSettlPriceType sets SettlPriceType, Tag 731 @@ -323,13 +324,13 @@ func (m AssignmentReport) SetSettlPriceType(v int) { } //SetUnderlyingSettlPrice sets UnderlyingSettlPrice, Tag 732 -func (m AssignmentReport) SetUnderlyingSettlPrice(v float64) { - m.Set(field.NewUnderlyingSettlPrice(v)) +func (m AssignmentReport) SetUnderlyingSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingSettlPrice(value, scale)) } //SetPriorSettlPrice sets PriorSettlPrice, Tag 734 -func (m AssignmentReport) SetPriorSettlPrice(v float64) { - m.Set(field.NewPriorSettlPrice(v)) +func (m AssignmentReport) SetPriorSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPriorSettlPrice(value, scale)) } //SetAssignmentMethod sets AssignmentMethod, Tag 744 @@ -338,13 +339,13 @@ func (m AssignmentReport) SetAssignmentMethod(v string) { } //SetAssignmentUnit sets AssignmentUnit, Tag 745 -func (m AssignmentReport) SetAssignmentUnit(v float64) { - m.Set(field.NewAssignmentUnit(v)) +func (m AssignmentReport) SetAssignmentUnit(value decimal.Decimal, scale int32) { + m.Set(field.NewAssignmentUnit(value, scale)) } //SetOpenInterest sets OpenInterest, Tag 746 -func (m AssignmentReport) SetOpenInterest(v float64) { - m.Set(field.NewOpenInterest(v)) +func (m AssignmentReport) SetOpenInterest(value decimal.Decimal, scale int32) { + m.Set(field.NewOpenInterest(value, scale)) } //SetExerciseMethod sets ExerciseMethod, Tag 747 @@ -373,8 +374,8 @@ func (m AssignmentReport) SetAsgnRptID(v string) { } //SetThresholdAmount sets ThresholdAmount, Tag 834 -func (m AssignmentReport) SetThresholdAmount(v float64) { - m.Set(field.NewThresholdAmount(v)) +func (m AssignmentReport) SetThresholdAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewThresholdAmount(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -423,18 +424,18 @@ func (m AssignmentReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m AssignmentReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m AssignmentReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m AssignmentReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m AssignmentReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m AssignmentReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m AssignmentReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -473,13 +474,13 @@ func (m AssignmentReport) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m AssignmentReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m AssignmentReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m AssignmentReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m AssignmentReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -518,8 +519,8 @@ func (m AssignmentReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m AssignmentReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m AssignmentReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -533,8 +534,8 @@ func (m AssignmentReport) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m AssignmentReport) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m AssignmentReport) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -553,13 +554,13 @@ func (m AssignmentReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m AssignmentReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m AssignmentReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m AssignmentReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m AssignmentReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -2044,13 +2045,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2084,8 +2085,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2099,13 +2100,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2144,8 +2145,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2189,13 +2190,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2214,8 +2215,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2224,8 +2225,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -2895,13 +2896,13 @@ func (m NoPositions) SetPosType(v string) { } //SetLongQty sets LongQty, Tag 704 -func (m NoPositions) SetLongQty(v float64) { - m.Set(field.NewLongQty(v)) +func (m NoPositions) SetLongQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLongQty(value, scale)) } //SetShortQty sets ShortQty, Tag 705 -func (m NoPositions) SetShortQty(v float64) { - m.Set(field.NewShortQty(v)) +func (m NoPositions) SetShortQty(value decimal.Decimal, scale int32) { + m.Set(field.NewShortQty(value, scale)) } //SetPosQtyStatus sets PosQtyStatus, Tag 706 @@ -3243,13 +3244,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3283,8 +3284,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3298,13 +3299,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3358,38 +3359,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3398,8 +3399,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3408,8 +3409,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3428,8 +3429,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3443,13 +3444,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3473,8 +3474,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3483,8 +3484,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4501,8 +4502,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -4582,8 +4583,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/bidrequest/BidRequest.generated.go b/fix50sp1/bidrequest/BidRequest.generated.go index 0ecbadbe7..6cb3e171a 100644 --- a/fix50sp1/bidrequest/BidRequest.generated.go +++ b/fix50sp1/bidrequest/BidRequest.generated.go @@ -1,6 +1,7 @@ package bidrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -132,13 +133,13 @@ func (m BidRequest) SetNumTickets(v int) { } //SetSideValue1 sets SideValue1, Tag 396 -func (m BidRequest) SetSideValue1(v float64) { - m.Set(field.NewSideValue1(v)) +func (m BidRequest) SetSideValue1(value decimal.Decimal, scale int32) { + m.Set(field.NewSideValue1(value, scale)) } //SetSideValue2 sets SideValue2, Tag 397 -func (m BidRequest) SetSideValue2(v float64) { - m.Set(field.NewSideValue2(v)) +func (m BidRequest) SetSideValue2(value decimal.Decimal, scale int32) { + m.Set(field.NewSideValue2(value, scale)) } //SetNoBidDescriptors sets NoBidDescriptors, Tag 398 @@ -152,8 +153,8 @@ func (m BidRequest) SetLiquidityIndType(v int) { } //SetWtAverageLiquidity sets WtAverageLiquidity, Tag 410 -func (m BidRequest) SetWtAverageLiquidity(v float64) { - m.Set(field.NewWtAverageLiquidity(v)) +func (m BidRequest) SetWtAverageLiquidity(value decimal.Decimal, scale int32) { + m.Set(field.NewWtAverageLiquidity(value, scale)) } //SetExchangeForPhysical sets ExchangeForPhysical, Tag 411 @@ -162,13 +163,13 @@ func (m BidRequest) SetExchangeForPhysical(v bool) { } //SetOutMainCntryUIndex sets OutMainCntryUIndex, Tag 412 -func (m BidRequest) SetOutMainCntryUIndex(v float64) { - m.Set(field.NewOutMainCntryUIndex(v)) +func (m BidRequest) SetOutMainCntryUIndex(value decimal.Decimal, scale int32) { + m.Set(field.NewOutMainCntryUIndex(value, scale)) } //SetCrossPercent sets CrossPercent, Tag 413 -func (m BidRequest) SetCrossPercent(v float64) { - m.Set(field.NewCrossPercent(v)) +func (m BidRequest) SetCrossPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewCrossPercent(value, scale)) } //SetProgRptReqs sets ProgRptReqs, Tag 414 @@ -553,8 +554,8 @@ func (m NoBidDescriptors) SetSideValueInd(v int) { } //SetLiquidityValue sets LiquidityValue, Tag 404 -func (m NoBidDescriptors) SetLiquidityValue(v float64) { - m.Set(field.NewLiquidityValue(v)) +func (m NoBidDescriptors) SetLiquidityValue(value decimal.Decimal, scale int32) { + m.Set(field.NewLiquidityValue(value, scale)) } //SetLiquidityNumSecurities sets LiquidityNumSecurities, Tag 441 @@ -563,33 +564,33 @@ func (m NoBidDescriptors) SetLiquidityNumSecurities(v int) { } //SetLiquidityPctLow sets LiquidityPctLow, Tag 402 -func (m NoBidDescriptors) SetLiquidityPctLow(v float64) { - m.Set(field.NewLiquidityPctLow(v)) +func (m NoBidDescriptors) SetLiquidityPctLow(value decimal.Decimal, scale int32) { + m.Set(field.NewLiquidityPctLow(value, scale)) } //SetLiquidityPctHigh sets LiquidityPctHigh, Tag 403 -func (m NoBidDescriptors) SetLiquidityPctHigh(v float64) { - m.Set(field.NewLiquidityPctHigh(v)) +func (m NoBidDescriptors) SetLiquidityPctHigh(value decimal.Decimal, scale int32) { + m.Set(field.NewLiquidityPctHigh(value, scale)) } //SetEFPTrackingError sets EFPTrackingError, Tag 405 -func (m NoBidDescriptors) SetEFPTrackingError(v float64) { - m.Set(field.NewEFPTrackingError(v)) +func (m NoBidDescriptors) SetEFPTrackingError(value decimal.Decimal, scale int32) { + m.Set(field.NewEFPTrackingError(value, scale)) } //SetFairValue sets FairValue, Tag 406 -func (m NoBidDescriptors) SetFairValue(v float64) { - m.Set(field.NewFairValue(v)) +func (m NoBidDescriptors) SetFairValue(value decimal.Decimal, scale int32) { + m.Set(field.NewFairValue(value, scale)) } //SetOutsideIndexPct sets OutsideIndexPct, Tag 407 -func (m NoBidDescriptors) SetOutsideIndexPct(v float64) { - m.Set(field.NewOutsideIndexPct(v)) +func (m NoBidDescriptors) SetOutsideIndexPct(value decimal.Decimal, scale int32) { + m.Set(field.NewOutsideIndexPct(value, scale)) } //SetValueOfFutures sets ValueOfFutures, Tag 408 -func (m NoBidDescriptors) SetValueOfFutures(v float64) { - m.Set(field.NewValueOfFutures(v)) +func (m NoBidDescriptors) SetValueOfFutures(value decimal.Decimal, scale int32) { + m.Set(field.NewValueOfFutures(value, scale)) } //GetBidDescriptorType gets BidDescriptorType, Tag 399 diff --git a/fix50sp1/bidresponse/BidResponse.generated.go b/fix50sp1/bidresponse/BidResponse.generated.go index 0a005d9c9..24485297c 100644 --- a/fix50sp1/bidresponse/BidResponse.generated.go +++ b/fix50sp1/bidresponse/BidResponse.generated.go @@ -1,6 +1,7 @@ package bidresponse import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -115,8 +116,8 @@ type NoBidComponents struct { } //SetCommission sets Commission, Tag 12 -func (m NoBidComponents) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoBidComponents) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -150,8 +151,8 @@ func (m NoBidComponents) SetSide(v string) { } //SetPrice sets Price, Tag 44 -func (m NoBidComponents) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoBidComponents) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -160,8 +161,8 @@ func (m NoBidComponents) SetPriceType(v int) { } //SetFairValue sets FairValue, Tag 406 -func (m NoBidComponents) SetFairValue(v float64) { - m.Set(field.NewFairValue(v)) +func (m NoBidComponents) SetFairValue(value decimal.Decimal, scale int32) { + m.Set(field.NewFairValue(value, scale)) } //SetNetGrossInd sets NetGrossInd, Tag 430 diff --git a/fix50sp1/collateralassignment/CollateralAssignment.generated.go b/fix50sp1/collateralassignment/CollateralAssignment.generated.go index 546a5e5cb..d632f9b22 100644 --- a/fix50sp1/collateralassignment/CollateralAssignment.generated.go +++ b/fix50sp1/collateralassignment/CollateralAssignment.generated.go @@ -1,6 +1,7 @@ package collateralassignment import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -90,8 +91,8 @@ func (m CollateralAssignment) SetOrderID(v string) { } //SetPrice sets Price, Tag 44 -func (m CollateralAssignment) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CollateralAssignment) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -100,8 +101,8 @@ func (m CollateralAssignment) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralAssignment) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralAssignment) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -165,8 +166,8 @@ func (m CollateralAssignment) SetNoMiscFees(f NoMiscFeesRepeatingGroup) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m CollateralAssignment) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m CollateralAssignment) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -210,8 +211,8 @@ func (m CollateralAssignment) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralAssignment) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralAssignment) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -225,8 +226,8 @@ func (m CollateralAssignment) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m CollateralAssignment) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CollateralAssignment) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -245,8 +246,8 @@ func (m CollateralAssignment) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralAssignment) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralAssignment) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -265,18 +266,18 @@ func (m CollateralAssignment) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralAssignment) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralAssignment) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralAssignment) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralAssignment) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralAssignment) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralAssignment) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -405,8 +406,8 @@ func (m CollateralAssignment) SetTradingSessionSubID(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CollateralAssignment) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CollateralAssignment) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -515,23 +516,23 @@ func (m CollateralAssignment) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralAssignment) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralAssignment) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetMarginExcess sets MarginExcess, Tag 899 -func (m CollateralAssignment) SetMarginExcess(v float64) { - m.Set(field.NewMarginExcess(v)) +func (m CollateralAssignment) SetMarginExcess(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginExcess(value, scale)) } //SetTotalNetValue sets TotalNetValue, Tag 900 -func (m CollateralAssignment) SetTotalNetValue(v float64) { - m.Set(field.NewTotalNetValue(v)) +func (m CollateralAssignment) SetTotalNetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalNetValue(value, scale)) } //SetCashOutstanding sets CashOutstanding, Tag 901 -func (m CollateralAssignment) SetCashOutstanding(v float64) { - m.Set(field.NewCashOutstanding(v)) +func (m CollateralAssignment) SetCashOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOutstanding(value, scale)) } //SetCollAsgnID sets CollAsgnID, Tag 902 @@ -585,18 +586,18 @@ func (m CollateralAssignment) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m CollateralAssignment) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m CollateralAssignment) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m CollateralAssignment) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m CollateralAssignment) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m CollateralAssignment) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m CollateralAssignment) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -615,18 +616,18 @@ func (m CollateralAssignment) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CollateralAssignment) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CollateralAssignment) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CollateralAssignment) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CollateralAssignment) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CollateralAssignment) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CollateralAssignment) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -665,13 +666,13 @@ func (m CollateralAssignment) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m CollateralAssignment) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m CollateralAssignment) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m CollateralAssignment) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m CollateralAssignment) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -700,8 +701,8 @@ func (m CollateralAssignment) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m CollateralAssignment) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m CollateralAssignment) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -715,8 +716,8 @@ func (m CollateralAssignment) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m CollateralAssignment) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m CollateralAssignment) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -735,13 +736,13 @@ func (m CollateralAssignment) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m CollateralAssignment) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m CollateralAssignment) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m CollateralAssignment) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m CollateralAssignment) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -2580,8 +2581,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -3020,13 +3021,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3060,8 +3061,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3075,13 +3076,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3120,8 +3121,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3165,13 +3166,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3190,8 +3191,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3200,8 +3201,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -3941,13 +3942,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3981,8 +3982,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3996,13 +3997,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4056,38 +4057,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4096,8 +4097,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4106,8 +4107,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4126,8 +4127,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4141,13 +4142,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4171,8 +4172,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4181,8 +4182,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetCollAction sets CollAction, Tag 944 @@ -5344,8 +5345,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/collateralinquiry/CollateralInquiry.generated.go b/fix50sp1/collateralinquiry/CollateralInquiry.generated.go index 13c7e9929..943c0fadc 100644 --- a/fix50sp1/collateralinquiry/CollateralInquiry.generated.go +++ b/fix50sp1/collateralinquiry/CollateralInquiry.generated.go @@ -1,6 +1,7 @@ package collateralinquiry import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -86,8 +87,8 @@ func (m CollateralInquiry) SetOrderID(v string) { } //SetPrice sets Price, Tag 44 -func (m CollateralInquiry) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CollateralInquiry) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -96,8 +97,8 @@ func (m CollateralInquiry) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralInquiry) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralInquiry) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -146,8 +147,8 @@ func (m CollateralInquiry) SetNoExecs(f NoExecsRepeatingGroup) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m CollateralInquiry) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m CollateralInquiry) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -191,8 +192,8 @@ func (m CollateralInquiry) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralInquiry) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralInquiry) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -206,8 +207,8 @@ func (m CollateralInquiry) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m CollateralInquiry) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CollateralInquiry) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -226,8 +227,8 @@ func (m CollateralInquiry) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralInquiry) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralInquiry) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -246,18 +247,18 @@ func (m CollateralInquiry) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralInquiry) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralInquiry) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralInquiry) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralInquiry) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralInquiry) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralInquiry) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -391,8 +392,8 @@ func (m CollateralInquiry) SetTradingSessionSubID(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CollateralInquiry) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CollateralInquiry) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -501,23 +502,23 @@ func (m CollateralInquiry) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralInquiry) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralInquiry) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetMarginExcess sets MarginExcess, Tag 899 -func (m CollateralInquiry) SetMarginExcess(v float64) { - m.Set(field.NewMarginExcess(v)) +func (m CollateralInquiry) SetMarginExcess(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginExcess(value, scale)) } //SetTotalNetValue sets TotalNetValue, Tag 900 -func (m CollateralInquiry) SetTotalNetValue(v float64) { - m.Set(field.NewTotalNetValue(v)) +func (m CollateralInquiry) SetTotalNetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalNetValue(value, scale)) } //SetCashOutstanding sets CashOutstanding, Tag 901 -func (m CollateralInquiry) SetCashOutstanding(v float64) { - m.Set(field.NewCashOutstanding(v)) +func (m CollateralInquiry) SetCashOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOutstanding(value, scale)) } //SetCollInquiryID sets CollInquiryID, Tag 909 @@ -561,18 +562,18 @@ func (m CollateralInquiry) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m CollateralInquiry) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m CollateralInquiry) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m CollateralInquiry) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m CollateralInquiry) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m CollateralInquiry) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m CollateralInquiry) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetNoCollInquiryQualifier sets NoCollInquiryQualifier, Tag 938 @@ -596,18 +597,18 @@ func (m CollateralInquiry) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CollateralInquiry) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CollateralInquiry) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CollateralInquiry) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CollateralInquiry) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CollateralInquiry) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CollateralInquiry) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -646,13 +647,13 @@ func (m CollateralInquiry) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m CollateralInquiry) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m CollateralInquiry) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m CollateralInquiry) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m CollateralInquiry) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -681,8 +682,8 @@ func (m CollateralInquiry) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m CollateralInquiry) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m CollateralInquiry) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -696,8 +697,8 @@ func (m CollateralInquiry) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m CollateralInquiry) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m CollateralInquiry) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -716,13 +717,13 @@ func (m CollateralInquiry) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m CollateralInquiry) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m CollateralInquiry) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m CollateralInquiry) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m CollateralInquiry) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -2876,13 +2877,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2916,8 +2917,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2931,13 +2932,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2976,8 +2977,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3021,13 +3022,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3046,8 +3047,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3056,8 +3057,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -3797,13 +3798,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3837,8 +3838,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3852,13 +3853,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3912,38 +3913,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3952,8 +3953,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3962,8 +3963,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3982,8 +3983,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3997,13 +3998,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4027,8 +4028,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4037,8 +4038,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -5184,8 +5185,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/collateralinquiryack/CollateralInquiryAck.generated.go b/fix50sp1/collateralinquiryack/CollateralInquiryAck.generated.go index abf12833b..f2d73ab4b 100644 --- a/fix50sp1/collateralinquiryack/CollateralInquiryAck.generated.go +++ b/fix50sp1/collateralinquiryack/CollateralInquiryAck.generated.go @@ -1,6 +1,7 @@ package collateralinquiryack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -93,8 +94,8 @@ func (m CollateralInquiryAck) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralInquiryAck) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralInquiryAck) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSymbol sets Symbol, Tag 55 @@ -153,8 +154,8 @@ func (m CollateralInquiryAck) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralInquiryAck) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralInquiryAck) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -168,8 +169,8 @@ func (m CollateralInquiryAck) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralInquiryAck) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralInquiryAck) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -188,18 +189,18 @@ func (m CollateralInquiryAck) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralInquiryAck) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralInquiryAck) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralInquiryAck) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralInquiryAck) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralInquiryAck) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralInquiryAck) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -403,8 +404,8 @@ func (m CollateralInquiryAck) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralInquiryAck) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralInquiryAck) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetCollInquiryID sets CollInquiryID, Tag 909 @@ -483,18 +484,18 @@ func (m CollateralInquiryAck) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CollateralInquiryAck) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CollateralInquiryAck) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CollateralInquiryAck) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CollateralInquiryAck) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CollateralInquiryAck) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CollateralInquiryAck) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -533,13 +534,13 @@ func (m CollateralInquiryAck) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m CollateralInquiryAck) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m CollateralInquiryAck) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m CollateralInquiryAck) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m CollateralInquiryAck) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -568,8 +569,8 @@ func (m CollateralInquiryAck) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m CollateralInquiryAck) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m CollateralInquiryAck) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -583,8 +584,8 @@ func (m CollateralInquiryAck) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m CollateralInquiryAck) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m CollateralInquiryAck) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -603,13 +604,13 @@ func (m CollateralInquiryAck) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m CollateralInquiryAck) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m CollateralInquiryAck) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m CollateralInquiryAck) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m CollateralInquiryAck) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -2217,13 +2218,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2257,8 +2258,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2272,13 +2273,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2317,8 +2318,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2362,13 +2363,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2387,8 +2388,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2397,8 +2398,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -3138,13 +3139,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3178,8 +3179,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3193,13 +3194,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3253,38 +3254,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3293,8 +3294,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3303,8 +3304,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3323,8 +3324,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3338,13 +3339,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3368,8 +3369,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3378,8 +3379,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4401,8 +4402,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/collateralreport/CollateralReport.generated.go b/fix50sp1/collateralreport/CollateralReport.generated.go index 16884e73c..05ae42a2c 100644 --- a/fix50sp1/collateralreport/CollateralReport.generated.go +++ b/fix50sp1/collateralreport/CollateralReport.generated.go @@ -1,6 +1,7 @@ package collateralreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -88,8 +89,8 @@ func (m CollateralReport) SetOrderID(v string) { } //SetPrice sets Price, Tag 44 -func (m CollateralReport) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CollateralReport) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -98,8 +99,8 @@ func (m CollateralReport) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralReport) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralReport) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -158,8 +159,8 @@ func (m CollateralReport) SetNoMiscFees(f NoMiscFeesRepeatingGroup) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m CollateralReport) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m CollateralReport) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -203,8 +204,8 @@ func (m CollateralReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -218,8 +219,8 @@ func (m CollateralReport) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m CollateralReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CollateralReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -238,8 +239,8 @@ func (m CollateralReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -258,18 +259,18 @@ func (m CollateralReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -403,8 +404,8 @@ func (m CollateralReport) SetTradingSessionSubID(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CollateralReport) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CollateralReport) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -503,23 +504,23 @@ func (m CollateralReport) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralReport) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralReport) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetMarginExcess sets MarginExcess, Tag 899 -func (m CollateralReport) SetMarginExcess(v float64) { - m.Set(field.NewMarginExcess(v)) +func (m CollateralReport) SetMarginExcess(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginExcess(value, scale)) } //SetTotalNetValue sets TotalNetValue, Tag 900 -func (m CollateralReport) SetTotalNetValue(v float64) { - m.Set(field.NewTotalNetValue(v)) +func (m CollateralReport) SetTotalNetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalNetValue(value, scale)) } //SetCashOutstanding sets CashOutstanding, Tag 901 -func (m CollateralReport) SetCashOutstanding(v float64) { - m.Set(field.NewCashOutstanding(v)) +func (m CollateralReport) SetCashOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOutstanding(value, scale)) } //SetCollRptID sets CollRptID, Tag 908 @@ -583,18 +584,18 @@ func (m CollateralReport) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m CollateralReport) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m CollateralReport) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m CollateralReport) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m CollateralReport) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m CollateralReport) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m CollateralReport) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -613,18 +614,18 @@ func (m CollateralReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CollateralReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CollateralReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CollateralReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CollateralReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CollateralReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CollateralReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -668,13 +669,13 @@ func (m CollateralReport) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m CollateralReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m CollateralReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m CollateralReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m CollateralReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -703,8 +704,8 @@ func (m CollateralReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m CollateralReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m CollateralReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -718,8 +719,8 @@ func (m CollateralReport) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m CollateralReport) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m CollateralReport) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -738,13 +739,13 @@ func (m CollateralReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m CollateralReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m CollateralReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m CollateralReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m CollateralReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -2594,8 +2595,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -3034,13 +3035,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3074,8 +3075,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3089,13 +3090,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3134,8 +3135,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3179,13 +3180,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3204,8 +3205,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3214,8 +3215,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -3955,13 +3956,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3995,8 +3996,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4010,13 +4011,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4070,38 +4071,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4110,8 +4111,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4120,8 +4121,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4140,8 +4141,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4155,13 +4156,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4185,8 +4186,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4195,8 +4196,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -5342,8 +5343,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/collateralrequest/CollateralRequest.generated.go b/fix50sp1/collateralrequest/CollateralRequest.generated.go index 708602240..d73e9ccaa 100644 --- a/fix50sp1/collateralrequest/CollateralRequest.generated.go +++ b/fix50sp1/collateralrequest/CollateralRequest.generated.go @@ -1,6 +1,7 @@ package collateralrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -89,8 +90,8 @@ func (m CollateralRequest) SetOrderID(v string) { } //SetPrice sets Price, Tag 44 -func (m CollateralRequest) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CollateralRequest) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -99,8 +100,8 @@ func (m CollateralRequest) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralRequest) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralRequest) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -159,8 +160,8 @@ func (m CollateralRequest) SetNoMiscFees(f NoMiscFeesRepeatingGroup) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m CollateralRequest) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m CollateralRequest) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -184,8 +185,8 @@ func (m CollateralRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -199,8 +200,8 @@ func (m CollateralRequest) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m CollateralRequest) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CollateralRequest) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -219,8 +220,8 @@ func (m CollateralRequest) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -239,18 +240,18 @@ func (m CollateralRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -379,8 +380,8 @@ func (m CollateralRequest) SetTradingSessionSubID(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CollateralRequest) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CollateralRequest) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -489,23 +490,23 @@ func (m CollateralRequest) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetMarginExcess sets MarginExcess, Tag 899 -func (m CollateralRequest) SetMarginExcess(v float64) { - m.Set(field.NewMarginExcess(v)) +func (m CollateralRequest) SetMarginExcess(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginExcess(value, scale)) } //SetTotalNetValue sets TotalNetValue, Tag 900 -func (m CollateralRequest) SetTotalNetValue(v float64) { - m.Set(field.NewTotalNetValue(v)) +func (m CollateralRequest) SetTotalNetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalNetValue(value, scale)) } //SetCashOutstanding sets CashOutstanding, Tag 901 -func (m CollateralRequest) SetCashOutstanding(v float64) { - m.Set(field.NewCashOutstanding(v)) +func (m CollateralRequest) SetCashOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOutstanding(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -544,18 +545,18 @@ func (m CollateralRequest) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m CollateralRequest) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m CollateralRequest) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m CollateralRequest) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m CollateralRequest) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m CollateralRequest) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m CollateralRequest) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -574,18 +575,18 @@ func (m CollateralRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CollateralRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CollateralRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CollateralRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CollateralRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CollateralRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CollateralRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -624,13 +625,13 @@ func (m CollateralRequest) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m CollateralRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m CollateralRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m CollateralRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m CollateralRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -659,8 +660,8 @@ func (m CollateralRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m CollateralRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m CollateralRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -674,8 +675,8 @@ func (m CollateralRequest) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m CollateralRequest) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m CollateralRequest) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -694,13 +695,13 @@ func (m CollateralRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m CollateralRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m CollateralRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m CollateralRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m CollateralRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -2220,8 +2221,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -2660,13 +2661,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2700,8 +2701,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2715,13 +2716,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2760,8 +2761,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2805,13 +2806,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2830,8 +2831,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2840,8 +2841,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -3581,13 +3582,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3621,8 +3622,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3636,13 +3637,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3696,38 +3697,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3736,8 +3737,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3746,8 +3747,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3766,8 +3767,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3781,13 +3782,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3811,8 +3812,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3821,8 +3822,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetCollAction sets CollAction, Tag 944 @@ -4984,8 +4985,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/collateralresponse/CollateralResponse.generated.go b/fix50sp1/collateralresponse/CollateralResponse.generated.go index ab972332f..047f2adce 100644 --- a/fix50sp1/collateralresponse/CollateralResponse.generated.go +++ b/fix50sp1/collateralresponse/CollateralResponse.generated.go @@ -1,6 +1,7 @@ package collateralresponse import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -89,8 +90,8 @@ func (m CollateralResponse) SetOrderID(v string) { } //SetPrice sets Price, Tag 44 -func (m CollateralResponse) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CollateralResponse) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -99,8 +100,8 @@ func (m CollateralResponse) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralResponse) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralResponse) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -154,8 +155,8 @@ func (m CollateralResponse) SetNoMiscFees(f NoMiscFeesRepeatingGroup) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m CollateralResponse) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m CollateralResponse) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -179,8 +180,8 @@ func (m CollateralResponse) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralResponse) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralResponse) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -194,8 +195,8 @@ func (m CollateralResponse) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m CollateralResponse) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CollateralResponse) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -214,8 +215,8 @@ func (m CollateralResponse) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralResponse) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralResponse) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -234,18 +235,18 @@ func (m CollateralResponse) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralResponse) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralResponse) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralResponse) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralResponse) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralResponse) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralResponse) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -369,8 +370,8 @@ func (m CollateralResponse) SetAccountType(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CollateralResponse) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CollateralResponse) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -469,23 +470,23 @@ func (m CollateralResponse) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralResponse) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralResponse) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetMarginExcess sets MarginExcess, Tag 899 -func (m CollateralResponse) SetMarginExcess(v float64) { - m.Set(field.NewMarginExcess(v)) +func (m CollateralResponse) SetMarginExcess(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginExcess(value, scale)) } //SetTotalNetValue sets TotalNetValue, Tag 900 -func (m CollateralResponse) SetTotalNetValue(v float64) { - m.Set(field.NewTotalNetValue(v)) +func (m CollateralResponse) SetTotalNetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalNetValue(value, scale)) } //SetCashOutstanding sets CashOutstanding, Tag 901 -func (m CollateralResponse) SetCashOutstanding(v float64) { - m.Set(field.NewCashOutstanding(v)) +func (m CollateralResponse) SetCashOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOutstanding(value, scale)) } //SetCollAsgnID sets CollAsgnID, Tag 902 @@ -549,18 +550,18 @@ func (m CollateralResponse) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m CollateralResponse) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m CollateralResponse) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m CollateralResponse) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m CollateralResponse) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m CollateralResponse) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m CollateralResponse) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -579,18 +580,18 @@ func (m CollateralResponse) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CollateralResponse) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CollateralResponse) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CollateralResponse) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CollateralResponse) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CollateralResponse) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CollateralResponse) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -634,13 +635,13 @@ func (m CollateralResponse) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m CollateralResponse) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m CollateralResponse) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m CollateralResponse) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m CollateralResponse) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -669,8 +670,8 @@ func (m CollateralResponse) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m CollateralResponse) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m CollateralResponse) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -684,8 +685,8 @@ func (m CollateralResponse) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m CollateralResponse) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m CollateralResponse) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -704,13 +705,13 @@ func (m CollateralResponse) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m CollateralResponse) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m CollateralResponse) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m CollateralResponse) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m CollateralResponse) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -2252,8 +2253,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -2692,13 +2693,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2732,8 +2733,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2747,13 +2748,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2792,8 +2793,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2837,13 +2838,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2862,8 +2863,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2872,8 +2873,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -3613,13 +3614,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3653,8 +3654,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3668,13 +3669,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3728,38 +3729,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3768,8 +3769,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3778,8 +3779,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3798,8 +3799,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3813,13 +3814,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3843,8 +3844,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3853,8 +3854,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetCollAction sets CollAction, Tag 944 @@ -5016,8 +5017,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/confirmation/Confirmation.generated.go b/fix50sp1/confirmation/Confirmation.generated.go index 037d9f6fa..56c9ae4dd 100644 --- a/fix50sp1/confirmation/Confirmation.generated.go +++ b/fix50sp1/confirmation/Confirmation.generated.go @@ -1,6 +1,7 @@ package confirmation import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -73,13 +74,13 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m Confirmation) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m Confirmation) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCommission sets Commission, Tag 12 -func (m Confirmation) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m Confirmation) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -168,8 +169,8 @@ func (m Confirmation) SetAllocAccount(v string) { } //SetAllocQty sets AllocQty, Tag 80 -func (m Confirmation) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m Confirmation) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetProcessCode sets ProcessCode, Tag 81 @@ -193,13 +194,13 @@ func (m Confirmation) SetSecurityDesc(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m Confirmation) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m Confirmation) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m Confirmation) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m Confirmation) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -213,8 +214,8 @@ func (m Confirmation) SetNoMiscFees(f NoMiscFeesRepeatingGroup) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m Confirmation) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m Confirmation) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -228,13 +229,13 @@ func (m Confirmation) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m Confirmation) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m Confirmation) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m Confirmation) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m Confirmation) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -273,8 +274,8 @@ func (m Confirmation) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m Confirmation) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m Confirmation) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -288,8 +289,8 @@ func (m Confirmation) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m Confirmation) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m Confirmation) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -308,8 +309,8 @@ func (m Confirmation) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m Confirmation) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m Confirmation) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -328,13 +329,13 @@ func (m Confirmation) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m Confirmation) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m Confirmation) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m Confirmation) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m Confirmation) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetExDate sets ExDate, Tag 230 @@ -343,8 +344,8 @@ func (m Confirmation) SetExDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m Confirmation) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m Confirmation) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -358,18 +359,18 @@ func (m Confirmation) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m Confirmation) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m Confirmation) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m Confirmation) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m Confirmation) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m Confirmation) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m Confirmation) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -418,8 +419,8 @@ func (m Confirmation) SetEncodedText(v string) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m Confirmation) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m Confirmation) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -503,8 +504,8 @@ func (m Confirmation) SetAllocAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m Confirmation) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m Confirmation) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -548,8 +549,8 @@ func (m Confirmation) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m Confirmation) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m Confirmation) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -573,8 +574,8 @@ func (m Confirmation) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m Confirmation) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m Confirmation) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetBenchmarkSecurityIDSource sets BenchmarkSecurityIDSource, Tag 761 @@ -628,8 +629,8 @@ func (m Confirmation) SetQtyType(v int) { } //SetSharedCommission sets SharedCommission, Tag 858 -func (m Confirmation) SetSharedCommission(v float64) { - m.Set(field.NewSharedCommission(v)) +func (m Confirmation) SetSharedCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewSharedCommission(value, scale)) } //SetConfirmReqID sets ConfirmReqID, Tag 859 @@ -638,13 +639,13 @@ func (m Confirmation) SetConfirmReqID(v string) { } //SetAvgParPx sets AvgParPx, Tag 860 -func (m Confirmation) SetAvgParPx(v float64) { - m.Set(field.NewAvgParPx(v)) +func (m Confirmation) SetAvgParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgParPx(value, scale)) } //SetReportedPx sets ReportedPx, Tag 861 -func (m Confirmation) SetReportedPx(v float64) { - m.Set(field.NewReportedPx(v)) +func (m Confirmation) SetReportedPx(value decimal.Decimal, scale int32) { + m.Set(field.NewReportedPx(value, scale)) } //SetNoCapacities sets NoCapacities, Tag 862 @@ -658,8 +659,8 @@ func (m Confirmation) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m Confirmation) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m Confirmation) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -688,13 +689,13 @@ func (m Confirmation) SetCPRegType(v string) { } //SetMaturityNetMoney sets MaturityNetMoney, Tag 890 -func (m Confirmation) SetMaturityNetMoney(v float64) { - m.Set(field.NewMaturityNetMoney(v)) +func (m Confirmation) SetMaturityNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewMaturityNetMoney(value, scale)) } //SetMarginRatio sets MarginRatio, Tag 898 -func (m Confirmation) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m Confirmation) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -733,18 +734,18 @@ func (m Confirmation) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m Confirmation) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m Confirmation) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m Confirmation) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m Confirmation) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m Confirmation) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m Confirmation) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -763,18 +764,18 @@ func (m Confirmation) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m Confirmation) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m Confirmation) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m Confirmation) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m Confirmation) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m Confirmation) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m Confirmation) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -813,13 +814,13 @@ func (m Confirmation) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m Confirmation) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m Confirmation) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m Confirmation) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m Confirmation) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -848,8 +849,8 @@ func (m Confirmation) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m Confirmation) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m Confirmation) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -863,8 +864,8 @@ func (m Confirmation) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m Confirmation) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m Confirmation) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -883,13 +884,13 @@ func (m Confirmation) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m Confirmation) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m Confirmation) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m Confirmation) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m Confirmation) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -2793,18 +2794,18 @@ func (m NoOrders) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrderAvgPx sets OrderAvgPx, Tag 799 -func (m NoOrders) SetOrderAvgPx(v float64) { - m.Set(field.NewOrderAvgPx(v)) +func (m NoOrders) SetOrderAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderAvgPx(value, scale)) } //SetOrderBookingQty sets OrderBookingQty, Tag 800 -func (m NoOrders) SetOrderBookingQty(v float64) { - m.Set(field.NewOrderBookingQty(v)) +func (m NoOrders) SetOrderBookingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderBookingQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 @@ -3319,8 +3320,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -3759,13 +3760,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3799,8 +3800,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3814,13 +3815,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3859,8 +3860,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3904,13 +3905,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3929,8 +3930,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3939,8 +3940,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -4680,13 +4681,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4720,8 +4721,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4735,13 +4736,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4795,38 +4796,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4835,8 +4836,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4845,8 +4846,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4865,8 +4866,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4880,13 +4881,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4910,8 +4911,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4920,8 +4921,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -6067,8 +6068,8 @@ func (m NoCapacities) SetOrderRestrictions(v string) { } //SetOrderCapacityQty sets OrderCapacityQty, Tag 863 -func (m NoCapacities) SetOrderCapacityQty(v float64) { - m.Set(field.NewOrderCapacityQty(v)) +func (m NoCapacities) SetOrderCapacityQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderCapacityQty(value, scale)) } //GetOrderCapacity gets OrderCapacity, Tag 528 @@ -6143,8 +6144,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/confirmationrequest/ConfirmationRequest.generated.go b/fix50sp1/confirmationrequest/ConfirmationRequest.generated.go index 5507cffb7..6b7bdc939 100644 --- a/fix50sp1/confirmationrequest/ConfirmationRequest.generated.go +++ b/fix50sp1/confirmationrequest/ConfirmationRequest.generated.go @@ -1,6 +1,7 @@ package confirmationrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -308,18 +309,18 @@ func (m NoOrders) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrderAvgPx sets OrderAvgPx, Tag 799 -func (m NoOrders) SetOrderAvgPx(v float64) { - m.Set(field.NewOrderAvgPx(v)) +func (m NoOrders) SetOrderAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderAvgPx(value, scale)) } //SetOrderBookingQty sets OrderBookingQty, Tag 800 -func (m NoOrders) SetOrderBookingQty(v float64) { - m.Set(field.NewOrderBookingQty(v)) +func (m NoOrders) SetOrderBookingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderBookingQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 diff --git a/fix50sp1/contraryintentionreport/ContraryIntentionReport.generated.go b/fix50sp1/contraryintentionreport/ContraryIntentionReport.generated.go index 59ff5a8f4..ee0961295 100644 --- a/fix50sp1/contraryintentionreport/ContraryIntentionReport.generated.go +++ b/fix50sp1/contraryintentionreport/ContraryIntentionReport.generated.go @@ -1,6 +1,7 @@ package contraryintentionreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -118,8 +119,8 @@ func (m ContraryIntentionReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m ContraryIntentionReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m ContraryIntentionReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -133,8 +134,8 @@ func (m ContraryIntentionReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m ContraryIntentionReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m ContraryIntentionReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -153,18 +154,18 @@ func (m ContraryIntentionReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m ContraryIntentionReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m ContraryIntentionReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m ContraryIntentionReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m ContraryIntentionReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m ContraryIntentionReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m ContraryIntentionReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -323,18 +324,18 @@ func (m ContraryIntentionReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m ContraryIntentionReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m ContraryIntentionReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m ContraryIntentionReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m ContraryIntentionReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m ContraryIntentionReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m ContraryIntentionReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -393,13 +394,13 @@ func (m ContraryIntentionReport) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m ContraryIntentionReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m ContraryIntentionReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m ContraryIntentionReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m ContraryIntentionReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -438,8 +439,8 @@ func (m ContraryIntentionReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m ContraryIntentionReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m ContraryIntentionReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -453,8 +454,8 @@ func (m ContraryIntentionReport) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m ContraryIntentionReport) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m ContraryIntentionReport) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -473,13 +474,13 @@ func (m ContraryIntentionReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m ContraryIntentionReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m ContraryIntentionReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m ContraryIntentionReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m ContraryIntentionReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -1786,13 +1787,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1826,8 +1827,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1841,13 +1842,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -1901,38 +1902,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -1941,8 +1942,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -1951,8 +1952,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -1971,8 +1972,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -1986,13 +1987,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2016,8 +2017,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -2026,8 +2027,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -3049,8 +3050,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -3152,8 +3153,8 @@ func (m NoExpiration) SetExpirationQtyType(v int) { } //SetExpQty sets ExpQty, Tag 983 -func (m NoExpiration) SetExpQty(v float64) { - m.Set(field.NewExpQty(v)) +func (m NoExpiration) SetExpQty(value decimal.Decimal, scale int32) { + m.Set(field.NewExpQty(value, scale)) } //GetExpirationQtyType gets ExpirationQtyType, Tag 982 diff --git a/fix50sp1/crossordercancelreplacerequest/CrossOrderCancelReplaceRequest.generated.go b/fix50sp1/crossordercancelreplacerequest/CrossOrderCancelReplaceRequest.generated.go index cebd54f05..1f6387c28 100644 --- a/fix50sp1/crossordercancelreplacerequest/CrossOrderCancelReplaceRequest.generated.go +++ b/fix50sp1/crossordercancelreplacerequest/CrossOrderCancelReplaceRequest.generated.go @@ -1,6 +1,7 @@ package crossordercancelreplacerequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -102,8 +103,8 @@ func (m CrossOrderCancelReplaceRequest) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m CrossOrderCancelReplaceRequest) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -147,8 +148,8 @@ func (m CrossOrderCancelReplaceRequest) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m CrossOrderCancelReplaceRequest) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m CrossOrderCancelReplaceRequest) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -167,13 +168,13 @@ func (m CrossOrderCancelReplaceRequest) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m CrossOrderCancelReplaceRequest) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m CrossOrderCancelReplaceRequest) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m CrossOrderCancelReplaceRequest) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m CrossOrderCancelReplaceRequest) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -192,8 +193,8 @@ func (m CrossOrderCancelReplaceRequest) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m CrossOrderCancelReplaceRequest) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m CrossOrderCancelReplaceRequest) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -217,8 +218,8 @@ func (m CrossOrderCancelReplaceRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CrossOrderCancelReplaceRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CrossOrderCancelReplaceRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -232,18 +233,18 @@ func (m CrossOrderCancelReplaceRequest) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m CrossOrderCancelReplaceRequest) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m CrossOrderCancelReplaceRequest) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m CrossOrderCancelReplaceRequest) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m CrossOrderCancelReplaceRequest) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m CrossOrderCancelReplaceRequest) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CrossOrderCancelReplaceRequest) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -262,8 +263,8 @@ func (m CrossOrderCancelReplaceRequest) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CrossOrderCancelReplaceRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CrossOrderCancelReplaceRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -282,18 +283,18 @@ func (m CrossOrderCancelReplaceRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CrossOrderCancelReplaceRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CrossOrderCancelReplaceRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CrossOrderCancelReplaceRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CrossOrderCancelReplaceRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CrossOrderCancelReplaceRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CrossOrderCancelReplaceRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -307,8 +308,8 @@ func (m CrossOrderCancelReplaceRequest) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m CrossOrderCancelReplaceRequest) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m CrossOrderCancelReplaceRequest) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -362,8 +363,8 @@ func (m CrossOrderCancelReplaceRequest) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m CrossOrderCancelReplaceRequest) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m CrossOrderCancelReplaceRequest) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -477,8 +478,8 @@ func (m CrossOrderCancelReplaceRequest) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CrossOrderCancelReplaceRequest) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -502,8 +503,8 @@ func (m CrossOrderCancelReplaceRequest) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m CrossOrderCancelReplaceRequest) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -597,8 +598,8 @@ func (m CrossOrderCancelReplaceRequest) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m CrossOrderCancelReplaceRequest) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m CrossOrderCancelReplaceRequest) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -652,18 +653,18 @@ func (m CrossOrderCancelReplaceRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CrossOrderCancelReplaceRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CrossOrderCancelReplaceRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CrossOrderCancelReplaceRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CrossOrderCancelReplaceRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CrossOrderCancelReplaceRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CrossOrderCancelReplaceRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -702,8 +703,8 @@ func (m CrossOrderCancelReplaceRequest) SetMaturityTime(v string) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m CrossOrderCancelReplaceRequest) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m CrossOrderCancelReplaceRequest) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -717,28 +718,28 @@ func (m CrossOrderCancelReplaceRequest) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m CrossOrderCancelReplaceRequest) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m CrossOrderCancelReplaceRequest) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m CrossOrderCancelReplaceRequest) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m CrossOrderCancelReplaceRequest) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m CrossOrderCancelReplaceRequest) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m CrossOrderCancelReplaceRequest) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m CrossOrderCancelReplaceRequest) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m CrossOrderCancelReplaceRequest) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m CrossOrderCancelReplaceRequest) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m CrossOrderCancelReplaceRequest) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -787,8 +788,8 @@ func (m CrossOrderCancelReplaceRequest) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m CrossOrderCancelReplaceRequest) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -827,8 +828,8 @@ func (m CrossOrderCancelReplaceRequest) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m CrossOrderCancelReplaceRequest) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -837,8 +838,8 @@ func (m CrossOrderCancelReplaceRequest) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m CrossOrderCancelReplaceRequest) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m CrossOrderCancelReplaceRequest) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -862,18 +863,18 @@ func (m CrossOrderCancelReplaceRequest) SetExDestinationIDSource(v string) { } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m CrossOrderCancelReplaceRequest) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m CrossOrderCancelReplaceRequest) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m CrossOrderCancelReplaceRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m CrossOrderCancelReplaceRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m CrossOrderCancelReplaceRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m CrossOrderCancelReplaceRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -902,8 +903,8 @@ func (m CrossOrderCancelReplaceRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m CrossOrderCancelReplaceRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m CrossOrderCancelReplaceRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -917,8 +918,8 @@ func (m CrossOrderCancelReplaceRequest) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m CrossOrderCancelReplaceRequest) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m CrossOrderCancelReplaceRequest) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -937,13 +938,13 @@ func (m CrossOrderCancelReplaceRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m CrossOrderCancelReplaceRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m CrossOrderCancelReplaceRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -3206,18 +3207,18 @@ func (m NoSides) SetQtyType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoSides) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoSides) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoSides) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoSides) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoSides) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoSides) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -3226,13 +3227,13 @@ func (m NoSides) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoSides) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoSides) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCommission sets Commission, Tag 12 -func (m NoSides) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoSides) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -3999,8 +4000,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -4350,13 +4351,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4390,8 +4391,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4405,13 +4406,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4450,8 +4451,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4495,13 +4496,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -4520,8 +4521,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4530,8 +4531,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -5271,13 +5272,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -5311,8 +5312,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -5326,13 +5327,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -5386,38 +5387,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -5426,8 +5427,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -5436,8 +5437,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -5456,8 +5457,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -5471,13 +5472,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -5501,8 +5502,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -5511,8 +5512,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -6534,8 +6535,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/crossordercancelrequest/CrossOrderCancelRequest.generated.go b/fix50sp1/crossordercancelrequest/CrossOrderCancelRequest.generated.go index fbfb25075..80d2bf746 100644 --- a/fix50sp1/crossordercancelrequest/CrossOrderCancelRequest.generated.go +++ b/fix50sp1/crossordercancelrequest/CrossOrderCancelRequest.generated.go @@ -1,6 +1,7 @@ package crossordercancelrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -121,8 +122,8 @@ func (m CrossOrderCancelRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CrossOrderCancelRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CrossOrderCancelRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -136,8 +137,8 @@ func (m CrossOrderCancelRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CrossOrderCancelRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CrossOrderCancelRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -156,18 +157,18 @@ func (m CrossOrderCancelRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CrossOrderCancelRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CrossOrderCancelRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CrossOrderCancelRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CrossOrderCancelRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CrossOrderCancelRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CrossOrderCancelRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -341,18 +342,18 @@ func (m CrossOrderCancelRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CrossOrderCancelRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CrossOrderCancelRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CrossOrderCancelRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CrossOrderCancelRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CrossOrderCancelRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CrossOrderCancelRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -396,13 +397,13 @@ func (m CrossOrderCancelRequest) SetNoRootPartyIDs(f NoRootPartyIDsRepeatingGrou } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m CrossOrderCancelRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m CrossOrderCancelRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m CrossOrderCancelRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m CrossOrderCancelRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -431,8 +432,8 @@ func (m CrossOrderCancelRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m CrossOrderCancelRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m CrossOrderCancelRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -446,8 +447,8 @@ func (m CrossOrderCancelRequest) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m CrossOrderCancelRequest) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m CrossOrderCancelRequest) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -466,13 +467,13 @@ func (m CrossOrderCancelRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m CrossOrderCancelRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m CrossOrderCancelRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m CrossOrderCancelRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m CrossOrderCancelRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -1543,18 +1544,18 @@ func (m NoSides) SetTradeDate(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoSides) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoSides) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoSides) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoSides) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoSides) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoSides) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -1563,8 +1564,8 @@ func (m NoSides) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoSides) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoSides) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetComplianceID sets ComplianceID, Tag 376 @@ -2043,13 +2044,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2083,8 +2084,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2098,13 +2099,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2143,8 +2144,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2188,13 +2189,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2213,8 +2214,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2223,8 +2224,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -2964,13 +2965,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3004,8 +3005,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3019,13 +3020,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3079,38 +3080,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3119,8 +3120,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3129,8 +3130,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3149,8 +3150,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3164,13 +3165,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3194,8 +3195,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3204,8 +3205,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4227,8 +4228,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/derivativesecuritylist/DerivativeSecurityList.generated.go b/fix50sp1/derivativesecuritylist/DerivativeSecurityList.generated.go index 39b5a4d93..2fce4d67a 100644 --- a/fix50sp1/derivativesecuritylist/DerivativeSecurityList.generated.go +++ b/fix50sp1/derivativesecuritylist/DerivativeSecurityList.generated.go @@ -1,6 +1,7 @@ package derivativesecuritylist import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -87,13 +88,13 @@ func (m DerivativeSecurityList) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m DerivativeSecurityList) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m DerivativeSecurityList) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m DerivativeSecurityList) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m DerivativeSecurityList) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -157,8 +158,8 @@ func (m DerivativeSecurityList) SetUnderlyingPutOrCall(v int) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m DerivativeSecurityList) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m DerivativeSecurityList) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -207,13 +208,13 @@ func (m DerivativeSecurityList) SetTotNoRelatedSym(v int) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m DerivativeSecurityList) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m DerivativeSecurityList) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m DerivativeSecurityList) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m DerivativeSecurityList) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoUnderlyingSecurityAltID sets NoUnderlyingSecurityAltID, Tag 457 @@ -267,8 +268,8 @@ func (m DerivativeSecurityList) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m DerivativeSecurityList) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m DerivativeSecurityList) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingCPProgram sets UnderlyingCPProgram, Tag 877 @@ -282,33 +283,33 @@ func (m DerivativeSecurityList) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m DerivativeSecurityList) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m DerivativeSecurityList) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m DerivativeSecurityList) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m DerivativeSecurityList) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m DerivativeSecurityList) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m DerivativeSecurityList) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m DerivativeSecurityList) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m DerivativeSecurityList) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m DerivativeSecurityList) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m DerivativeSecurityList) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m DerivativeSecurityList) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m DerivativeSecurityList) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -327,13 +328,13 @@ func (m DerivativeSecurityList) SetUnderlyingStrikeCurrency(v string) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m DerivativeSecurityList) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m DerivativeSecurityList) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m DerivativeSecurityList) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m DerivativeSecurityList) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -357,8 +358,8 @@ func (m DerivativeSecurityList) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m DerivativeSecurityList) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m DerivativeSecurityList) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetUnderlyingSettlMethod sets UnderlyingSettlMethod, Tag 1039 @@ -367,13 +368,13 @@ func (m DerivativeSecurityList) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m DerivativeSecurityList) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m DerivativeSecurityList) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m DerivativeSecurityList) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m DerivativeSecurityList) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -427,8 +428,8 @@ func (m DerivativeSecurityList) SetNoDerivativeSecurityAltID(f NoDerivativeSecur } //SetDerivativeOptPayAmount sets DerivativeOptPayAmount, Tag 1225 -func (m DerivativeSecurityList) SetDerivativeOptPayAmount(v float64) { - m.Set(field.NewDerivativeOptPayAmount(v)) +func (m DerivativeSecurityList) SetDerivativeOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeOptPayAmount(value, scale)) } //SetDerivativeProductComplex sets DerivativeProductComplex, Tag 1228 @@ -517,8 +518,8 @@ func (m DerivativeSecurityList) SetDerivativeLocaleOfIssue(v string) { } //SetDerivativeStrikePrice sets DerivativeStrikePrice, Tag 1261 -func (m DerivativeSecurityList) SetDerivativeStrikePrice(v float64) { - m.Set(field.NewDerivativeStrikePrice(v)) +func (m DerivativeSecurityList) SetDerivativeStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeStrikePrice(value, scale)) } //SetDerivativeStrikeCurrency sets DerivativeStrikeCurrency, Tag 1262 @@ -527,13 +528,13 @@ func (m DerivativeSecurityList) SetDerivativeStrikeCurrency(v string) { } //SetDerivativeStrikeMultiplier sets DerivativeStrikeMultiplier, Tag 1263 -func (m DerivativeSecurityList) SetDerivativeStrikeMultiplier(v float64) { - m.Set(field.NewDerivativeStrikeMultiplier(v)) +func (m DerivativeSecurityList) SetDerivativeStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeStrikeMultiplier(value, scale)) } //SetDerivativeStrikeValue sets DerivativeStrikeValue, Tag 1264 -func (m DerivativeSecurityList) SetDerivativeStrikeValue(v float64) { - m.Set(field.NewDerivativeStrikeValue(v)) +func (m DerivativeSecurityList) SetDerivativeStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeStrikeValue(value, scale)) } //SetDerivativeOptAttribute sets DerivativeOptAttribute, Tag 1265 @@ -542,18 +543,18 @@ func (m DerivativeSecurityList) SetDerivativeOptAttribute(v string) { } //SetDerivativeContractMultiplier sets DerivativeContractMultiplier, Tag 1266 -func (m DerivativeSecurityList) SetDerivativeContractMultiplier(v float64) { - m.Set(field.NewDerivativeContractMultiplier(v)) +func (m DerivativeSecurityList) SetDerivativeContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeContractMultiplier(value, scale)) } //SetDerivativeMinPriceIncrement sets DerivativeMinPriceIncrement, Tag 1267 -func (m DerivativeSecurityList) SetDerivativeMinPriceIncrement(v float64) { - m.Set(field.NewDerivativeMinPriceIncrement(v)) +func (m DerivativeSecurityList) SetDerivativeMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeMinPriceIncrement(value, scale)) } //SetDerivativeMinPriceIncrementAmount sets DerivativeMinPriceIncrementAmount, Tag 1268 -func (m DerivativeSecurityList) SetDerivativeMinPriceIncrementAmount(v float64) { - m.Set(field.NewDerivativeMinPriceIncrementAmount(v)) +func (m DerivativeSecurityList) SetDerivativeMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeMinPriceIncrementAmount(value, scale)) } //SetDerivativeUnitOfMeasure sets DerivativeUnitOfMeasure, Tag 1269 @@ -562,8 +563,8 @@ func (m DerivativeSecurityList) SetDerivativeUnitOfMeasure(v string) { } //SetDerivativeUnitOfMeasureQty sets DerivativeUnitOfMeasureQty, Tag 1270 -func (m DerivativeSecurityList) SetDerivativeUnitOfMeasureQty(v float64) { - m.Set(field.NewDerivativeUnitOfMeasureQty(v)) +func (m DerivativeSecurityList) SetDerivativeUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeUnitOfMeasureQty(value, scale)) } //SetDerivativeTimeUnit sets DerivativeTimeUnit, Tag 1271 @@ -672,8 +673,8 @@ func (m DerivativeSecurityList) SetDerivativePriceUnitOfMeasure(v string) { } //SetDerivativePriceUnitOfMeasureQty sets DerivativePriceUnitOfMeasureQty, Tag 1316 -func (m DerivativeSecurityList) SetDerivativePriceUnitOfMeasureQty(v float64) { - m.Set(field.NewDerivativePriceUnitOfMeasureQty(v)) +func (m DerivativeSecurityList) SetDerivativePriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativePriceUnitOfMeasureQty(value, scale)) } //SetDerivativeSettlMethod sets DerivativeSettlMethod, Tag 1317 @@ -697,13 +698,13 @@ func (m DerivativeSecurityList) SetDerivativeListMethod(v int) { } //SetDerivativeCapPrice sets DerivativeCapPrice, Tag 1321 -func (m DerivativeSecurityList) SetDerivativeCapPrice(v float64) { - m.Set(field.NewDerivativeCapPrice(v)) +func (m DerivativeSecurityList) SetDerivativeCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeCapPrice(value, scale)) } //SetDerivativeFloorPrice sets DerivativeFloorPrice, Tag 1322 -func (m DerivativeSecurityList) SetDerivativeFloorPrice(v float64) { - m.Set(field.NewDerivativeFloorPrice(v)) +func (m DerivativeSecurityList) SetDerivativeFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeFloorPrice(value, scale)) } //SetDerivativePutOrCall sets DerivativePutOrCall, Tag 1323 @@ -727,8 +728,8 @@ func (m DerivativeSecurityList) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m DerivativeSecurityList) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m DerivativeSecurityList) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -737,8 +738,8 @@ func (m DerivativeSecurityList) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m DerivativeSecurityList) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m DerivativeSecurityList) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetNoRelatedSym gets NoRelatedSym, Tag 146 @@ -2327,13 +2328,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -2367,8 +2368,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -2382,13 +2383,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -2477,18 +2478,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -2527,13 +2528,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -2562,8 +2563,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -2577,8 +2578,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m NoRelatedSym) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -2592,13 +2593,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -2632,8 +2633,8 @@ func (m NoRelatedSym) SetDeliveryForm(v int) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m NoRelatedSym) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m NoRelatedSym) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -2667,18 +2668,18 @@ func (m NoRelatedSym) SetSecondaryPriceLimitType(v int) { } //SetSecondaryLowLimitPrice sets SecondaryLowLimitPrice, Tag 1221 -func (m NoRelatedSym) SetSecondaryLowLimitPrice(v float64) { - m.Set(field.NewSecondaryLowLimitPrice(v)) +func (m NoRelatedSym) SetSecondaryLowLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryLowLimitPrice(value, scale)) } //SetSecondaryHighLimitPrice sets SecondaryHighLimitPrice, Tag 1230 -func (m NoRelatedSym) SetSecondaryHighLimitPrice(v float64) { - m.Set(field.NewSecondaryHighLimitPrice(v)) +func (m NoRelatedSym) SetSecondaryHighLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryHighLimitPrice(value, scale)) } //SetSecondaryTradingReferencePrice sets SecondaryTradingReferencePrice, Tag 1240 -func (m NoRelatedSym) SetSecondaryTradingReferencePrice(v float64) { - m.Set(field.NewSecondaryTradingReferencePrice(v)) +func (m NoRelatedSym) SetSecondaryTradingReferencePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryTradingReferencePrice(value, scale)) } //SetCorporateAction sets CorporateAction, Tag 292 @@ -3724,8 +3725,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4110,13 +4111,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4150,8 +4151,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4165,13 +4166,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4210,8 +4211,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4255,13 +4256,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -4280,8 +4281,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4290,8 +4291,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -5327,8 +5328,8 @@ func (m NoDerivativeEvents) SetDerivativeEventTime(v time.Time) { } //SetDerivativeEventPx sets DerivativeEventPx, Tag 1290 -func (m NoDerivativeEvents) SetDerivativeEventPx(v float64) { - m.Set(field.NewDerivativeEventPx(v)) +func (m NoDerivativeEvents) SetDerivativeEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeEventPx(value, scale)) } //SetDerivativeEventText sets DerivativeEventText, Tag 1291 @@ -5598,18 +5599,18 @@ func (m NoMarketSegments) SetPriceLimitType(v int) { } //SetLowLimitPrice sets LowLimitPrice, Tag 1148 -func (m NoMarketSegments) SetLowLimitPrice(v float64) { - m.Set(field.NewLowLimitPrice(v)) +func (m NoMarketSegments) SetLowLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLowLimitPrice(value, scale)) } //SetHighLimitPrice sets HighLimitPrice, Tag 1149 -func (m NoMarketSegments) SetHighLimitPrice(v float64) { - m.Set(field.NewHighLimitPrice(v)) +func (m NoMarketSegments) SetHighLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewHighLimitPrice(value, scale)) } //SetTradingReferencePrice sets TradingReferencePrice, Tag 1150 -func (m NoMarketSegments) SetTradingReferencePrice(v float64) { - m.Set(field.NewTradingReferencePrice(v)) +func (m NoMarketSegments) SetTradingReferencePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTradingReferencePrice(value, scale)) } //SetExpirationCycle sets ExpirationCycle, Tag 827 @@ -5618,18 +5619,18 @@ func (m NoMarketSegments) SetExpirationCycle(v int) { } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m NoMarketSegments) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m NoMarketSegments) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetMaxTradeVol sets MaxTradeVol, Tag 1140 -func (m NoMarketSegments) SetMaxTradeVol(v float64) { - m.Set(field.NewMaxTradeVol(v)) +func (m NoMarketSegments) SetMaxTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxTradeVol(value, scale)) } //SetMaxPriceVariation sets MaxPriceVariation, Tag 1143 -func (m NoMarketSegments) SetMaxPriceVariation(v float64) { - m.Set(field.NewMaxPriceVariation(v)) +func (m NoMarketSegments) SetMaxPriceVariation(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxPriceVariation(value, scale)) } //SetImpliedMarketIndicator sets ImpliedMarketIndicator, Tag 1144 @@ -5643,8 +5644,8 @@ func (m NoMarketSegments) SetTradingCurrency(v string) { } //SetRoundLot sets RoundLot, Tag 561 -func (m NoMarketSegments) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m NoMarketSegments) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMultilegModel sets MultilegModel, Tag 1377 @@ -5919,18 +5920,18 @@ type NoTickRules struct { } //SetStartTickPriceRange sets StartTickPriceRange, Tag 1206 -func (m NoTickRules) SetStartTickPriceRange(v float64) { - m.Set(field.NewStartTickPriceRange(v)) +func (m NoTickRules) SetStartTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartTickPriceRange(value, scale)) } //SetEndTickPriceRange sets EndTickPriceRange, Tag 1207 -func (m NoTickRules) SetEndTickPriceRange(v float64) { - m.Set(field.NewEndTickPriceRange(v)) +func (m NoTickRules) SetEndTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndTickPriceRange(value, scale)) } //SetTickIncrement sets TickIncrement, Tag 1208 -func (m NoTickRules) SetTickIncrement(v float64) { - m.Set(field.NewTickIncrement(v)) +func (m NoTickRules) SetTickIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewTickIncrement(value, scale)) } //SetTickRuleType sets TickRuleType, Tag 1209 @@ -6016,8 +6017,8 @@ func (m NoLotTypeRules) SetLotType(v string) { } //SetMinLotSize sets MinLotSize, Tag 1231 -func (m NoLotTypeRules) SetMinLotSize(v float64) { - m.Set(field.NewMinLotSize(v)) +func (m NoLotTypeRules) SetMinLotSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinLotSize(value, scale)) } //GetLotType gets LotType, Tag 1093 @@ -6549,18 +6550,18 @@ func (m NoStrikeRules) SetStrikeRuleID(v string) { } //SetStartStrikePxRange sets StartStrikePxRange, Tag 1202 -func (m NoStrikeRules) SetStartStrikePxRange(v float64) { - m.Set(field.NewStartStrikePxRange(v)) +func (m NoStrikeRules) SetStartStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartStrikePxRange(value, scale)) } //SetEndStrikePxRange sets EndStrikePxRange, Tag 1203 -func (m NoStrikeRules) SetEndStrikePxRange(v float64) { - m.Set(field.NewEndStrikePxRange(v)) +func (m NoStrikeRules) SetEndStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndStrikePxRange(value, scale)) } //SetStrikeIncrement sets StrikeIncrement, Tag 1204 -func (m NoStrikeRules) SetStrikeIncrement(v float64) { - m.Set(field.NewStrikeIncrement(v)) +func (m NoStrikeRules) SetStrikeIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeIncrement(value, scale)) } //SetStrikeExerciseStyle sets StrikeExerciseStyle, Tag 1304 diff --git a/fix50sp1/derivativesecuritylistrequest/DerivativeSecurityListRequest.generated.go b/fix50sp1/derivativesecuritylistrequest/DerivativeSecurityListRequest.generated.go index 882924a29..a2b1be654 100644 --- a/fix50sp1/derivativesecuritylistrequest/DerivativeSecurityListRequest.generated.go +++ b/fix50sp1/derivativesecuritylistrequest/DerivativeSecurityListRequest.generated.go @@ -1,6 +1,7 @@ package derivativesecuritylistrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -93,13 +94,13 @@ func (m DerivativeSecurityListRequest) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m DerivativeSecurityListRequest) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m DerivativeSecurityListRequest) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -168,8 +169,8 @@ func (m DerivativeSecurityListRequest) SetUnderlyingPutOrCall(v int) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m DerivativeSecurityListRequest) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -223,13 +224,13 @@ func (m DerivativeSecurityListRequest) SetEncodedUnderlyingSecurityDesc(v string } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m DerivativeSecurityListRequest) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m DerivativeSecurityListRequest) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoUnderlyingSecurityAltID sets NoUnderlyingSecurityAltID, Tag 457 @@ -293,8 +294,8 @@ func (m DerivativeSecurityListRequest) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m DerivativeSecurityListRequest) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingCPProgram sets UnderlyingCPProgram, Tag 877 @@ -308,33 +309,33 @@ func (m DerivativeSecurityListRequest) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m DerivativeSecurityListRequest) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m DerivativeSecurityListRequest) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m DerivativeSecurityListRequest) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m DerivativeSecurityListRequest) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m DerivativeSecurityListRequest) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m DerivativeSecurityListRequest) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -348,13 +349,13 @@ func (m DerivativeSecurityListRequest) SetUnderlyingStrikeCurrency(v string) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m DerivativeSecurityListRequest) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m DerivativeSecurityListRequest) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -378,8 +379,8 @@ func (m DerivativeSecurityListRequest) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m DerivativeSecurityListRequest) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetUnderlyingSettlMethod sets UnderlyingSettlMethod, Tag 1039 @@ -388,13 +389,13 @@ func (m DerivativeSecurityListRequest) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m DerivativeSecurityListRequest) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m DerivativeSecurityListRequest) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -438,8 +439,8 @@ func (m DerivativeSecurityListRequest) SetNoDerivativeSecurityAltID(f NoDerivati } //SetDerivativeOptPayAmount sets DerivativeOptPayAmount, Tag 1225 -func (m DerivativeSecurityListRequest) SetDerivativeOptPayAmount(v float64) { - m.Set(field.NewDerivativeOptPayAmount(v)) +func (m DerivativeSecurityListRequest) SetDerivativeOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeOptPayAmount(value, scale)) } //SetDerivativeProductComplex sets DerivativeProductComplex, Tag 1228 @@ -528,8 +529,8 @@ func (m DerivativeSecurityListRequest) SetDerivativeLocaleOfIssue(v string) { } //SetDerivativeStrikePrice sets DerivativeStrikePrice, Tag 1261 -func (m DerivativeSecurityListRequest) SetDerivativeStrikePrice(v float64) { - m.Set(field.NewDerivativeStrikePrice(v)) +func (m DerivativeSecurityListRequest) SetDerivativeStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeStrikePrice(value, scale)) } //SetDerivativeStrikeCurrency sets DerivativeStrikeCurrency, Tag 1262 @@ -538,13 +539,13 @@ func (m DerivativeSecurityListRequest) SetDerivativeStrikeCurrency(v string) { } //SetDerivativeStrikeMultiplier sets DerivativeStrikeMultiplier, Tag 1263 -func (m DerivativeSecurityListRequest) SetDerivativeStrikeMultiplier(v float64) { - m.Set(field.NewDerivativeStrikeMultiplier(v)) +func (m DerivativeSecurityListRequest) SetDerivativeStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeStrikeMultiplier(value, scale)) } //SetDerivativeStrikeValue sets DerivativeStrikeValue, Tag 1264 -func (m DerivativeSecurityListRequest) SetDerivativeStrikeValue(v float64) { - m.Set(field.NewDerivativeStrikeValue(v)) +func (m DerivativeSecurityListRequest) SetDerivativeStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeStrikeValue(value, scale)) } //SetDerivativeOptAttribute sets DerivativeOptAttribute, Tag 1265 @@ -553,18 +554,18 @@ func (m DerivativeSecurityListRequest) SetDerivativeOptAttribute(v string) { } //SetDerivativeContractMultiplier sets DerivativeContractMultiplier, Tag 1266 -func (m DerivativeSecurityListRequest) SetDerivativeContractMultiplier(v float64) { - m.Set(field.NewDerivativeContractMultiplier(v)) +func (m DerivativeSecurityListRequest) SetDerivativeContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeContractMultiplier(value, scale)) } //SetDerivativeMinPriceIncrement sets DerivativeMinPriceIncrement, Tag 1267 -func (m DerivativeSecurityListRequest) SetDerivativeMinPriceIncrement(v float64) { - m.Set(field.NewDerivativeMinPriceIncrement(v)) +func (m DerivativeSecurityListRequest) SetDerivativeMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeMinPriceIncrement(value, scale)) } //SetDerivativeMinPriceIncrementAmount sets DerivativeMinPriceIncrementAmount, Tag 1268 -func (m DerivativeSecurityListRequest) SetDerivativeMinPriceIncrementAmount(v float64) { - m.Set(field.NewDerivativeMinPriceIncrementAmount(v)) +func (m DerivativeSecurityListRequest) SetDerivativeMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeMinPriceIncrementAmount(value, scale)) } //SetDerivativeUnitOfMeasure sets DerivativeUnitOfMeasure, Tag 1269 @@ -573,8 +574,8 @@ func (m DerivativeSecurityListRequest) SetDerivativeUnitOfMeasure(v string) { } //SetDerivativeUnitOfMeasureQty sets DerivativeUnitOfMeasureQty, Tag 1270 -func (m DerivativeSecurityListRequest) SetDerivativeUnitOfMeasureQty(v float64) { - m.Set(field.NewDerivativeUnitOfMeasureQty(v)) +func (m DerivativeSecurityListRequest) SetDerivativeUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeUnitOfMeasureQty(value, scale)) } //SetDerivativeTimeUnit sets DerivativeTimeUnit, Tag 1271 @@ -683,8 +684,8 @@ func (m DerivativeSecurityListRequest) SetDerivativePriceUnitOfMeasure(v string) } //SetDerivativePriceUnitOfMeasureQty sets DerivativePriceUnitOfMeasureQty, Tag 1316 -func (m DerivativeSecurityListRequest) SetDerivativePriceUnitOfMeasureQty(v float64) { - m.Set(field.NewDerivativePriceUnitOfMeasureQty(v)) +func (m DerivativeSecurityListRequest) SetDerivativePriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativePriceUnitOfMeasureQty(value, scale)) } //SetDerivativeSettlMethod sets DerivativeSettlMethod, Tag 1317 @@ -708,13 +709,13 @@ func (m DerivativeSecurityListRequest) SetDerivativeListMethod(v int) { } //SetDerivativeCapPrice sets DerivativeCapPrice, Tag 1321 -func (m DerivativeSecurityListRequest) SetDerivativeCapPrice(v float64) { - m.Set(field.NewDerivativeCapPrice(v)) +func (m DerivativeSecurityListRequest) SetDerivativeCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeCapPrice(value, scale)) } //SetDerivativeFloorPrice sets DerivativeFloorPrice, Tag 1322 -func (m DerivativeSecurityListRequest) SetDerivativeFloorPrice(v float64) { - m.Set(field.NewDerivativeFloorPrice(v)) +func (m DerivativeSecurityListRequest) SetDerivativeFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeFloorPrice(value, scale)) } //SetDerivativePutOrCall sets DerivativePutOrCall, Tag 1323 @@ -728,8 +729,8 @@ func (m DerivativeSecurityListRequest) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m DerivativeSecurityListRequest) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -738,8 +739,8 @@ func (m DerivativeSecurityListRequest) SetUnderlyingPriceUnitOfMeasure(v string) } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m DerivativeSecurityListRequest) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetCurrency gets Currency, Tag 15 @@ -2598,8 +2599,8 @@ func (m NoDerivativeEvents) SetDerivativeEventTime(v time.Time) { } //SetDerivativeEventPx sets DerivativeEventPx, Tag 1290 -func (m NoDerivativeEvents) SetDerivativeEventPx(v float64) { - m.Set(field.NewDerivativeEventPx(v)) +func (m NoDerivativeEvents) SetDerivativeEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeEventPx(value, scale)) } //SetDerivativeEventText sets DerivativeEventText, Tag 1291 diff --git a/fix50sp1/derivativesecuritylistupdatereport/DerivativeSecurityListUpdateReport.generated.go b/fix50sp1/derivativesecuritylistupdatereport/DerivativeSecurityListUpdateReport.generated.go index abd9e4461..181ec7d0e 100644 --- a/fix50sp1/derivativesecuritylistupdatereport/DerivativeSecurityListUpdateReport.generated.go +++ b/fix50sp1/derivativesecuritylistupdatereport/DerivativeSecurityListUpdateReport.generated.go @@ -1,6 +1,7 @@ package derivativesecuritylistupdatereport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -86,13 +87,13 @@ func (m DerivativeSecurityListUpdateReport) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -156,8 +157,8 @@ func (m DerivativeSecurityListUpdateReport) SetUnderlyingPutOrCall(v int) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -206,13 +207,13 @@ func (m DerivativeSecurityListUpdateReport) SetTotNoRelatedSym(v int) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoUnderlyingSecurityAltID sets NoUnderlyingSecurityAltID, Tag 457 @@ -266,8 +267,8 @@ func (m DerivativeSecurityListUpdateReport) SetUnderlyingSecuritySubType(v strin } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingCPProgram sets UnderlyingCPProgram, Tag 877 @@ -281,33 +282,33 @@ func (m DerivativeSecurityListUpdateReport) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -326,13 +327,13 @@ func (m DerivativeSecurityListUpdateReport) SetUnderlyingStrikeCurrency(v string } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -361,8 +362,8 @@ func (m DerivativeSecurityListUpdateReport) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetUnderlyingSettlMethod sets UnderlyingSettlMethod, Tag 1039 @@ -371,13 +372,13 @@ func (m DerivativeSecurityListUpdateReport) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -431,8 +432,8 @@ func (m DerivativeSecurityListUpdateReport) SetNoDerivativeSecurityAltID(f NoDer } //SetDerivativeOptPayAmount sets DerivativeOptPayAmount, Tag 1225 -func (m DerivativeSecurityListUpdateReport) SetDerivativeOptPayAmount(v float64) { - m.Set(field.NewDerivativeOptPayAmount(v)) +func (m DerivativeSecurityListUpdateReport) SetDerivativeOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeOptPayAmount(value, scale)) } //SetDerivativeProductComplex sets DerivativeProductComplex, Tag 1228 @@ -521,8 +522,8 @@ func (m DerivativeSecurityListUpdateReport) SetDerivativeLocaleOfIssue(v string) } //SetDerivativeStrikePrice sets DerivativeStrikePrice, Tag 1261 -func (m DerivativeSecurityListUpdateReport) SetDerivativeStrikePrice(v float64) { - m.Set(field.NewDerivativeStrikePrice(v)) +func (m DerivativeSecurityListUpdateReport) SetDerivativeStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeStrikePrice(value, scale)) } //SetDerivativeStrikeCurrency sets DerivativeStrikeCurrency, Tag 1262 @@ -531,13 +532,13 @@ func (m DerivativeSecurityListUpdateReport) SetDerivativeStrikeCurrency(v string } //SetDerivativeStrikeMultiplier sets DerivativeStrikeMultiplier, Tag 1263 -func (m DerivativeSecurityListUpdateReport) SetDerivativeStrikeMultiplier(v float64) { - m.Set(field.NewDerivativeStrikeMultiplier(v)) +func (m DerivativeSecurityListUpdateReport) SetDerivativeStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeStrikeMultiplier(value, scale)) } //SetDerivativeStrikeValue sets DerivativeStrikeValue, Tag 1264 -func (m DerivativeSecurityListUpdateReport) SetDerivativeStrikeValue(v float64) { - m.Set(field.NewDerivativeStrikeValue(v)) +func (m DerivativeSecurityListUpdateReport) SetDerivativeStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeStrikeValue(value, scale)) } //SetDerivativeOptAttribute sets DerivativeOptAttribute, Tag 1265 @@ -546,18 +547,18 @@ func (m DerivativeSecurityListUpdateReport) SetDerivativeOptAttribute(v string) } //SetDerivativeContractMultiplier sets DerivativeContractMultiplier, Tag 1266 -func (m DerivativeSecurityListUpdateReport) SetDerivativeContractMultiplier(v float64) { - m.Set(field.NewDerivativeContractMultiplier(v)) +func (m DerivativeSecurityListUpdateReport) SetDerivativeContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeContractMultiplier(value, scale)) } //SetDerivativeMinPriceIncrement sets DerivativeMinPriceIncrement, Tag 1267 -func (m DerivativeSecurityListUpdateReport) SetDerivativeMinPriceIncrement(v float64) { - m.Set(field.NewDerivativeMinPriceIncrement(v)) +func (m DerivativeSecurityListUpdateReport) SetDerivativeMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeMinPriceIncrement(value, scale)) } //SetDerivativeMinPriceIncrementAmount sets DerivativeMinPriceIncrementAmount, Tag 1268 -func (m DerivativeSecurityListUpdateReport) SetDerivativeMinPriceIncrementAmount(v float64) { - m.Set(field.NewDerivativeMinPriceIncrementAmount(v)) +func (m DerivativeSecurityListUpdateReport) SetDerivativeMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeMinPriceIncrementAmount(value, scale)) } //SetDerivativeUnitOfMeasure sets DerivativeUnitOfMeasure, Tag 1269 @@ -566,8 +567,8 @@ func (m DerivativeSecurityListUpdateReport) SetDerivativeUnitOfMeasure(v string) } //SetDerivativeUnitOfMeasureQty sets DerivativeUnitOfMeasureQty, Tag 1270 -func (m DerivativeSecurityListUpdateReport) SetDerivativeUnitOfMeasureQty(v float64) { - m.Set(field.NewDerivativeUnitOfMeasureQty(v)) +func (m DerivativeSecurityListUpdateReport) SetDerivativeUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeUnitOfMeasureQty(value, scale)) } //SetDerivativeTimeUnit sets DerivativeTimeUnit, Tag 1271 @@ -676,8 +677,8 @@ func (m DerivativeSecurityListUpdateReport) SetDerivativePriceUnitOfMeasure(v st } //SetDerivativePriceUnitOfMeasureQty sets DerivativePriceUnitOfMeasureQty, Tag 1316 -func (m DerivativeSecurityListUpdateReport) SetDerivativePriceUnitOfMeasureQty(v float64) { - m.Set(field.NewDerivativePriceUnitOfMeasureQty(v)) +func (m DerivativeSecurityListUpdateReport) SetDerivativePriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativePriceUnitOfMeasureQty(value, scale)) } //SetDerivativeSettlMethod sets DerivativeSettlMethod, Tag 1317 @@ -701,13 +702,13 @@ func (m DerivativeSecurityListUpdateReport) SetDerivativeListMethod(v int) { } //SetDerivativeCapPrice sets DerivativeCapPrice, Tag 1321 -func (m DerivativeSecurityListUpdateReport) SetDerivativeCapPrice(v float64) { - m.Set(field.NewDerivativeCapPrice(v)) +func (m DerivativeSecurityListUpdateReport) SetDerivativeCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeCapPrice(value, scale)) } //SetDerivativeFloorPrice sets DerivativeFloorPrice, Tag 1322 -func (m DerivativeSecurityListUpdateReport) SetDerivativeFloorPrice(v float64) { - m.Set(field.NewDerivativeFloorPrice(v)) +func (m DerivativeSecurityListUpdateReport) SetDerivativeFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeFloorPrice(value, scale)) } //SetDerivativePutOrCall sets DerivativePutOrCall, Tag 1323 @@ -731,8 +732,8 @@ func (m DerivativeSecurityListUpdateReport) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -741,8 +742,8 @@ func (m DerivativeSecurityListUpdateReport) SetUnderlyingPriceUnitOfMeasure(v st } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetNoRelatedSym gets NoRelatedSym, Tag 146 @@ -2347,13 +2348,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -2387,8 +2388,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -2402,13 +2403,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -2497,18 +2498,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -2547,13 +2548,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -2582,8 +2583,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -2597,8 +2598,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m NoRelatedSym) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -2612,13 +2613,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -2647,8 +2648,8 @@ func (m NoRelatedSym) SetDeliveryForm(v int) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m NoRelatedSym) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m NoRelatedSym) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -2662,18 +2663,18 @@ func (m NoRelatedSym) SetSecondaryPriceLimitType(v int) { } //SetSecondaryLowLimitPrice sets SecondaryLowLimitPrice, Tag 1221 -func (m NoRelatedSym) SetSecondaryLowLimitPrice(v float64) { - m.Set(field.NewSecondaryLowLimitPrice(v)) +func (m NoRelatedSym) SetSecondaryLowLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryLowLimitPrice(value, scale)) } //SetSecondaryHighLimitPrice sets SecondaryHighLimitPrice, Tag 1230 -func (m NoRelatedSym) SetSecondaryHighLimitPrice(v float64) { - m.Set(field.NewSecondaryHighLimitPrice(v)) +func (m NoRelatedSym) SetSecondaryHighLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryHighLimitPrice(value, scale)) } //SetSecondaryTradingReferencePrice sets SecondaryTradingReferencePrice, Tag 1240 -func (m NoRelatedSym) SetSecondaryTradingReferencePrice(v float64) { - m.Set(field.NewSecondaryTradingReferencePrice(v)) +func (m NoRelatedSym) SetSecondaryTradingReferencePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryTradingReferencePrice(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -3755,8 +3756,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4141,13 +4142,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4181,8 +4182,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4196,13 +4197,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4241,8 +4242,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4286,13 +4287,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -4311,8 +4312,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4321,8 +4322,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -5358,8 +5359,8 @@ func (m NoDerivativeEvents) SetDerivativeEventTime(v time.Time) { } //SetDerivativeEventPx sets DerivativeEventPx, Tag 1290 -func (m NoDerivativeEvents) SetDerivativeEventPx(v float64) { - m.Set(field.NewDerivativeEventPx(v)) +func (m NoDerivativeEvents) SetDerivativeEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeEventPx(value, scale)) } //SetDerivativeEventText sets DerivativeEventText, Tag 1291 @@ -5629,18 +5630,18 @@ func (m NoMarketSegments) SetPriceLimitType(v int) { } //SetLowLimitPrice sets LowLimitPrice, Tag 1148 -func (m NoMarketSegments) SetLowLimitPrice(v float64) { - m.Set(field.NewLowLimitPrice(v)) +func (m NoMarketSegments) SetLowLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLowLimitPrice(value, scale)) } //SetHighLimitPrice sets HighLimitPrice, Tag 1149 -func (m NoMarketSegments) SetHighLimitPrice(v float64) { - m.Set(field.NewHighLimitPrice(v)) +func (m NoMarketSegments) SetHighLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewHighLimitPrice(value, scale)) } //SetTradingReferencePrice sets TradingReferencePrice, Tag 1150 -func (m NoMarketSegments) SetTradingReferencePrice(v float64) { - m.Set(field.NewTradingReferencePrice(v)) +func (m NoMarketSegments) SetTradingReferencePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTradingReferencePrice(value, scale)) } //SetExpirationCycle sets ExpirationCycle, Tag 827 @@ -5649,18 +5650,18 @@ func (m NoMarketSegments) SetExpirationCycle(v int) { } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m NoMarketSegments) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m NoMarketSegments) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetMaxTradeVol sets MaxTradeVol, Tag 1140 -func (m NoMarketSegments) SetMaxTradeVol(v float64) { - m.Set(field.NewMaxTradeVol(v)) +func (m NoMarketSegments) SetMaxTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxTradeVol(value, scale)) } //SetMaxPriceVariation sets MaxPriceVariation, Tag 1143 -func (m NoMarketSegments) SetMaxPriceVariation(v float64) { - m.Set(field.NewMaxPriceVariation(v)) +func (m NoMarketSegments) SetMaxPriceVariation(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxPriceVariation(value, scale)) } //SetImpliedMarketIndicator sets ImpliedMarketIndicator, Tag 1144 @@ -5674,8 +5675,8 @@ func (m NoMarketSegments) SetTradingCurrency(v string) { } //SetRoundLot sets RoundLot, Tag 561 -func (m NoMarketSegments) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m NoMarketSegments) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMultilegModel sets MultilegModel, Tag 1377 @@ -5950,18 +5951,18 @@ type NoTickRules struct { } //SetStartTickPriceRange sets StartTickPriceRange, Tag 1206 -func (m NoTickRules) SetStartTickPriceRange(v float64) { - m.Set(field.NewStartTickPriceRange(v)) +func (m NoTickRules) SetStartTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartTickPriceRange(value, scale)) } //SetEndTickPriceRange sets EndTickPriceRange, Tag 1207 -func (m NoTickRules) SetEndTickPriceRange(v float64) { - m.Set(field.NewEndTickPriceRange(v)) +func (m NoTickRules) SetEndTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndTickPriceRange(value, scale)) } //SetTickIncrement sets TickIncrement, Tag 1208 -func (m NoTickRules) SetTickIncrement(v float64) { - m.Set(field.NewTickIncrement(v)) +func (m NoTickRules) SetTickIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewTickIncrement(value, scale)) } //SetTickRuleType sets TickRuleType, Tag 1209 @@ -6047,8 +6048,8 @@ func (m NoLotTypeRules) SetLotType(v string) { } //SetMinLotSize sets MinLotSize, Tag 1231 -func (m NoLotTypeRules) SetMinLotSize(v float64) { - m.Set(field.NewMinLotSize(v)) +func (m NoLotTypeRules) SetMinLotSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinLotSize(value, scale)) } //GetLotType gets LotType, Tag 1093 @@ -6580,18 +6581,18 @@ func (m NoStrikeRules) SetStrikeRuleID(v string) { } //SetStartStrikePxRange sets StartStrikePxRange, Tag 1202 -func (m NoStrikeRules) SetStartStrikePxRange(v float64) { - m.Set(field.NewStartStrikePxRange(v)) +func (m NoStrikeRules) SetStartStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartStrikePxRange(value, scale)) } //SetEndStrikePxRange sets EndStrikePxRange, Tag 1203 -func (m NoStrikeRules) SetEndStrikePxRange(v float64) { - m.Set(field.NewEndStrikePxRange(v)) +func (m NoStrikeRules) SetEndStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndStrikePxRange(value, scale)) } //SetStrikeIncrement sets StrikeIncrement, Tag 1204 -func (m NoStrikeRules) SetStrikeIncrement(v float64) { - m.Set(field.NewStrikeIncrement(v)) +func (m NoStrikeRules) SetStrikeIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeIncrement(value, scale)) } //SetStrikeExerciseStyle sets StrikeExerciseStyle, Tag 1304 diff --git a/fix50sp1/dontknowtrade/DontKnowTrade.generated.go b/fix50sp1/dontknowtrade/DontKnowTrade.generated.go index 78fb3b920..743763c06 100644 --- a/fix50sp1/dontknowtrade/DontKnowTrade.generated.go +++ b/fix50sp1/dontknowtrade/DontKnowTrade.generated.go @@ -1,6 +1,7 @@ package dontknowtrade import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -75,13 +76,13 @@ func (m DontKnowTrade) SetSecurityIDSource(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m DontKnowTrade) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m DontKnowTrade) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastQty sets LastQty, Tag 32 -func (m DontKnowTrade) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m DontKnowTrade) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetOrderID sets OrderID, Tag 37 @@ -90,8 +91,8 @@ func (m DontKnowTrade) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m DontKnowTrade) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m DontKnowTrade) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -135,8 +136,8 @@ func (m DontKnowTrade) SetDKReason(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m DontKnowTrade) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m DontKnowTrade) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -160,8 +161,8 @@ func (m DontKnowTrade) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m DontKnowTrade) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m DontKnowTrade) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -175,8 +176,8 @@ func (m DontKnowTrade) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m DontKnowTrade) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m DontKnowTrade) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -195,18 +196,18 @@ func (m DontKnowTrade) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m DontKnowTrade) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m DontKnowTrade) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m DontKnowTrade) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m DontKnowTrade) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m DontKnowTrade) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m DontKnowTrade) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -275,8 +276,8 @@ func (m DontKnowTrade) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m DontKnowTrade) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m DontKnowTrade) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -295,8 +296,8 @@ func (m DontKnowTrade) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m DontKnowTrade) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m DontKnowTrade) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -375,18 +376,18 @@ func (m DontKnowTrade) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m DontKnowTrade) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m DontKnowTrade) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m DontKnowTrade) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m DontKnowTrade) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m DontKnowTrade) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m DontKnowTrade) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -425,13 +426,13 @@ func (m DontKnowTrade) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m DontKnowTrade) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m DontKnowTrade) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m DontKnowTrade) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m DontKnowTrade) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -460,8 +461,8 @@ func (m DontKnowTrade) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m DontKnowTrade) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m DontKnowTrade) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -475,8 +476,8 @@ func (m DontKnowTrade) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m DontKnowTrade) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m DontKnowTrade) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -495,13 +496,13 @@ func (m DontKnowTrade) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m DontKnowTrade) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m DontKnowTrade) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m DontKnowTrade) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m DontKnowTrade) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -1666,13 +1667,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1706,8 +1707,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1721,13 +1722,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1766,8 +1767,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -1811,13 +1812,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -1836,8 +1837,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -1846,8 +1847,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -2587,13 +2588,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2627,8 +2628,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2642,13 +2643,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2702,38 +2703,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2742,8 +2743,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2752,8 +2753,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2772,8 +2773,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2787,13 +2788,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2817,8 +2818,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -2827,8 +2828,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -3850,8 +3851,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/email/Email.generated.go b/fix50sp1/email/Email.generated.go index 3d29f5053..76e46708b 100644 --- a/fix50sp1/email/Email.generated.go +++ b/fix50sp1/email/Email.generated.go @@ -1,6 +1,7 @@ package email import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -465,13 +466,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -505,8 +506,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -520,13 +521,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -615,18 +616,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -665,13 +666,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -700,8 +701,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -715,8 +716,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m NoRelatedSym) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -730,13 +731,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -1652,8 +1653,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2061,13 +2062,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2101,8 +2102,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2116,13 +2117,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2161,8 +2162,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2206,13 +2207,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2231,8 +2232,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2241,8 +2242,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -2982,13 +2983,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3022,8 +3023,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3037,13 +3038,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3097,38 +3098,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3137,8 +3138,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3147,8 +3148,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3167,8 +3168,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3182,13 +3183,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3212,8 +3213,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3222,8 +3223,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 diff --git a/fix50sp1/executionacknowledgement/ExecutionAcknowledgement.generated.go b/fix50sp1/executionacknowledgement/ExecutionAcknowledgement.generated.go index 75b901a25..07783dcdd 100644 --- a/fix50sp1/executionacknowledgement/ExecutionAcknowledgement.generated.go +++ b/fix50sp1/executionacknowledgement/ExecutionAcknowledgement.generated.go @@ -1,6 +1,7 @@ package executionacknowledgement import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -65,8 +66,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m ExecutionAcknowledgement) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m ExecutionAcknowledgement) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetClOrdID sets ClOrdID, Tag 11 @@ -75,8 +76,8 @@ func (m ExecutionAcknowledgement) SetClOrdID(v string) { } //SetCumQty sets CumQty, Tag 14 -func (m ExecutionAcknowledgement) SetCumQty(v float64) { - m.Set(field.NewCumQty(v)) +func (m ExecutionAcknowledgement) SetCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCumQty(value, scale)) } //SetExecID sets ExecID, Tag 17 @@ -90,13 +91,13 @@ func (m ExecutionAcknowledgement) SetSecurityIDSource(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m ExecutionAcknowledgement) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m ExecutionAcknowledgement) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastQty sets LastQty, Tag 32 -func (m ExecutionAcknowledgement) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m ExecutionAcknowledgement) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetOrderID sets OrderID, Tag 37 @@ -105,8 +106,8 @@ func (m ExecutionAcknowledgement) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m ExecutionAcknowledgement) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m ExecutionAcknowledgement) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -150,8 +151,8 @@ func (m ExecutionAcknowledgement) SetDKReason(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m ExecutionAcknowledgement) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m ExecutionAcknowledgement) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -175,8 +176,8 @@ func (m ExecutionAcknowledgement) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m ExecutionAcknowledgement) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m ExecutionAcknowledgement) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -190,8 +191,8 @@ func (m ExecutionAcknowledgement) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m ExecutionAcknowledgement) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m ExecutionAcknowledgement) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -210,18 +211,18 @@ func (m ExecutionAcknowledgement) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m ExecutionAcknowledgement) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m ExecutionAcknowledgement) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m ExecutionAcknowledgement) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m ExecutionAcknowledgement) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m ExecutionAcknowledgement) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m ExecutionAcknowledgement) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -295,8 +296,8 @@ func (m ExecutionAcknowledgement) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m ExecutionAcknowledgement) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m ExecutionAcknowledgement) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -315,8 +316,8 @@ func (m ExecutionAcknowledgement) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m ExecutionAcknowledgement) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m ExecutionAcknowledgement) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -340,8 +341,8 @@ func (m ExecutionAcknowledgement) SetContractSettlMonth(v string) { } //SetLastParPx sets LastParPx, Tag 669 -func (m ExecutionAcknowledgement) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m ExecutionAcknowledgement) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetPool sets Pool, Tag 691 @@ -400,18 +401,18 @@ func (m ExecutionAcknowledgement) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m ExecutionAcknowledgement) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m ExecutionAcknowledgement) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m ExecutionAcknowledgement) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m ExecutionAcknowledgement) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m ExecutionAcknowledgement) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m ExecutionAcknowledgement) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -455,13 +456,13 @@ func (m ExecutionAcknowledgement) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m ExecutionAcknowledgement) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m ExecutionAcknowledgement) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m ExecutionAcknowledgement) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m ExecutionAcknowledgement) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -490,8 +491,8 @@ func (m ExecutionAcknowledgement) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m ExecutionAcknowledgement) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m ExecutionAcknowledgement) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -505,8 +506,8 @@ func (m ExecutionAcknowledgement) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m ExecutionAcknowledgement) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m ExecutionAcknowledgement) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -525,13 +526,13 @@ func (m ExecutionAcknowledgement) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m ExecutionAcknowledgement) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m ExecutionAcknowledgement) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m ExecutionAcknowledgement) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m ExecutionAcknowledgement) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -1762,13 +1763,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1802,8 +1803,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1817,13 +1818,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1862,8 +1863,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -1907,13 +1908,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -1932,8 +1933,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -1942,8 +1943,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -2683,13 +2684,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2723,8 +2724,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2738,13 +2739,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2798,38 +2799,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2838,8 +2839,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2848,8 +2849,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2868,8 +2869,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2883,13 +2884,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2913,8 +2914,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -2923,8 +2924,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -3946,8 +3947,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/executionreport/ExecutionReport.generated.go b/fix50sp1/executionreport/ExecutionReport.generated.go index 8475df257..685732c00 100644 --- a/fix50sp1/executionreport/ExecutionReport.generated.go +++ b/fix50sp1/executionreport/ExecutionReport.generated.go @@ -1,6 +1,7 @@ package executionreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -73,8 +74,8 @@ func (m ExecutionReport) SetAccount(v string) { } //SetAvgPx sets AvgPx, Tag 6 -func (m ExecutionReport) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m ExecutionReport) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetClOrdID sets ClOrdID, Tag 11 @@ -83,8 +84,8 @@ func (m ExecutionReport) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m ExecutionReport) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m ExecutionReport) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -93,8 +94,8 @@ func (m ExecutionReport) SetCommType(v string) { } //SetCumQty sets CumQty, Tag 14 -func (m ExecutionReport) SetCumQty(v float64) { - m.Set(field.NewCumQty(v)) +func (m ExecutionReport) SetCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCumQty(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -138,13 +139,13 @@ func (m ExecutionReport) SetLastMkt(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m ExecutionReport) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m ExecutionReport) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastQty sets LastQty, Tag 32 -func (m ExecutionReport) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m ExecutionReport) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetOrderID sets OrderID, Tag 37 @@ -153,8 +154,8 @@ func (m ExecutionReport) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m ExecutionReport) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m ExecutionReport) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdStatus sets OrdStatus, Tag 39 @@ -173,8 +174,8 @@ func (m ExecutionReport) SetOrigClOrdID(v string) { } //SetPrice sets Price, Tag 44 -func (m ExecutionReport) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m ExecutionReport) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -248,8 +249,8 @@ func (m ExecutionReport) SetNoAllocs(f NoAllocsRepeatingGroup) { } //SetStopPx sets StopPx, Tag 99 -func (m ExecutionReport) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m ExecutionReport) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetOrdRejReason sets OrdRejReason, Tag 103 @@ -268,13 +269,13 @@ func (m ExecutionReport) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m ExecutionReport) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m ExecutionReport) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m ExecutionReport) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m ExecutionReport) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetReportToExch sets ReportToExch, Tag 113 @@ -283,13 +284,13 @@ func (m ExecutionReport) SetReportToExch(v bool) { } //SetNetMoney sets NetMoney, Tag 118 -func (m ExecutionReport) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m ExecutionReport) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m ExecutionReport) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m ExecutionReport) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -313,18 +314,18 @@ func (m ExecutionReport) SetExecType(v string) { } //SetLeavesQty sets LeavesQty, Tag 151 -func (m ExecutionReport) SetLeavesQty(v float64) { - m.Set(field.NewLeavesQty(v)) +func (m ExecutionReport) SetLeavesQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLeavesQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m ExecutionReport) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m ExecutionReport) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m ExecutionReport) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m ExecutionReport) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -338,13 +339,13 @@ func (m ExecutionReport) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m ExecutionReport) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m ExecutionReport) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m ExecutionReport) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m ExecutionReport) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -358,8 +359,8 @@ func (m ExecutionReport) SetEffectiveTime(v time.Time) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m ExecutionReport) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m ExecutionReport) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -368,13 +369,13 @@ func (m ExecutionReport) SetSettlDate2(v string) { } //SetLastSpotRate sets LastSpotRate, Tag 194 -func (m ExecutionReport) SetLastSpotRate(v float64) { - m.Set(field.NewLastSpotRate(v)) +func (m ExecutionReport) SetLastSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSpotRate(value, scale)) } //SetLastForwardPoints sets LastForwardPoints, Tag 195 -func (m ExecutionReport) SetLastForwardPoints(v float64) { - m.Set(field.NewLastForwardPoints(v)) +func (m ExecutionReport) SetLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastForwardPoints(value, scale)) } //SetSecondaryOrderID sets SecondaryOrderID, Tag 198 @@ -393,8 +394,8 @@ func (m ExecutionReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m ExecutionReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m ExecutionReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -408,18 +409,18 @@ func (m ExecutionReport) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m ExecutionReport) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m ExecutionReport) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m ExecutionReport) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m ExecutionReport) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m ExecutionReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m ExecutionReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -438,8 +439,8 @@ func (m ExecutionReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m ExecutionReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m ExecutionReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -458,13 +459,13 @@ func (m ExecutionReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m ExecutionReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m ExecutionReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m ExecutionReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m ExecutionReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -478,8 +479,8 @@ func (m ExecutionReport) SetExDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m ExecutionReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m ExecutionReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -493,18 +494,18 @@ func (m ExecutionReport) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m ExecutionReport) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m ExecutionReport) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m ExecutionReport) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m ExecutionReport) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m ExecutionReport) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m ExecutionReport) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -533,8 +534,8 @@ func (m ExecutionReport) SetBasisFeatureDate(v string) { } //SetBasisFeaturePrice sets BasisFeaturePrice, Tag 260 -func (m ExecutionReport) SetBasisFeaturePrice(v float64) { - m.Set(field.NewBasisFeaturePrice(v)) +func (m ExecutionReport) SetBasisFeaturePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBasisFeaturePrice(value, scale)) } //SetTradingSessionID sets TradingSessionID, Tag 336 @@ -588,8 +589,8 @@ func (m ExecutionReport) SetExecRestatementReason(v int) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m ExecutionReport) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m ExecutionReport) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetNoContraBrokers sets NoContraBrokers, Tag 382 @@ -603,8 +604,8 @@ func (m ExecutionReport) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m ExecutionReport) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m ExecutionReport) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -613,18 +614,18 @@ func (m ExecutionReport) SetPriceType(v int) { } //SetDayOrderQty sets DayOrderQty, Tag 424 -func (m ExecutionReport) SetDayOrderQty(v float64) { - m.Set(field.NewDayOrderQty(v)) +func (m ExecutionReport) SetDayOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDayOrderQty(value, scale)) } //SetDayCumQty sets DayCumQty, Tag 425 -func (m ExecutionReport) SetDayCumQty(v float64) { - m.Set(field.NewDayCumQty(v)) +func (m ExecutionReport) SetDayCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDayCumQty(value, scale)) } //SetDayAvgPx sets DayAvgPx, Tag 426 -func (m ExecutionReport) SetDayAvgPx(v float64) { - m.Set(field.NewDayAvgPx(v)) +func (m ExecutionReport) SetDayAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewDayAvgPx(value, scale)) } //SetGTBookingInst sets GTBookingInst, Tag 427 @@ -668,8 +669,8 @@ func (m ExecutionReport) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m ExecutionReport) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m ExecutionReport) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -713,8 +714,8 @@ func (m ExecutionReport) SetExecPriceType(v string) { } //SetExecPriceAdjustment sets ExecPriceAdjustment, Tag 485 -func (m ExecutionReport) SetExecPriceAdjustment(v float64) { - m.Set(field.NewExecPriceAdjustment(v)) +func (m ExecutionReport) SetExecPriceAdjustment(value decimal.Decimal, scale int32) { + m.Set(field.NewExecPriceAdjustment(value, scale)) } //SetDesignation sets Designation, Tag 494 @@ -738,8 +739,8 @@ func (m ExecutionReport) SetExecValuationPoint(v time.Time) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m ExecutionReport) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m ExecutionReport) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetNoContAmts sets NoContAmts, Tag 518 @@ -863,23 +864,23 @@ func (m ExecutionReport) SetPriorityIndicator(v int) { } //SetPriceImprovement sets PriceImprovement, Tag 639 -func (m ExecutionReport) SetPriceImprovement(v float64) { - m.Set(field.NewPriceImprovement(v)) +func (m ExecutionReport) SetPriceImprovement(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceImprovement(value, scale)) } //SetLastForwardPoints2 sets LastForwardPoints2, Tag 641 -func (m ExecutionReport) SetLastForwardPoints2(v float64) { - m.Set(field.NewLastForwardPoints2(v)) +func (m ExecutionReport) SetLastForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewLastForwardPoints2(value, scale)) } //SetUnderlyingLastPx sets UnderlyingLastPx, Tag 651 -func (m ExecutionReport) SetUnderlyingLastPx(v float64) { - m.Set(field.NewUnderlyingLastPx(v)) +func (m ExecutionReport) SetUnderlyingLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingLastPx(value, scale)) } //SetUnderlyingLastQty sets UnderlyingLastQty, Tag 652 -func (m ExecutionReport) SetUnderlyingLastQty(v float64) { - m.Set(field.NewUnderlyingLastQty(v)) +func (m ExecutionReport) SetUnderlyingLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingLastQty(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -888,8 +889,8 @@ func (m ExecutionReport) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m ExecutionReport) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m ExecutionReport) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -903,8 +904,8 @@ func (m ExecutionReport) SetContractSettlMonth(v string) { } //SetLastParPx sets LastParPx, Tag 669 -func (m ExecutionReport) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m ExecutionReport) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetPool sets Pool, Tag 691 @@ -923,8 +924,8 @@ func (m ExecutionReport) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m ExecutionReport) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m ExecutionReport) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -948,8 +949,8 @@ func (m ExecutionReport) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m ExecutionReport) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m ExecutionReport) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetBenchmarkSecurityIDSource sets BenchmarkSecurityIDSource, Tag 761 @@ -988,8 +989,8 @@ func (m ExecutionReport) SetCopyMsgIndicator(v bool) { } //SetPriceDelta sets PriceDelta, Tag 811 -func (m ExecutionReport) SetPriceDelta(v float64) { - m.Set(field.NewPriceDelta(v)) +func (m ExecutionReport) SetPriceDelta(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceDelta(value, scale)) } //SetPegMoveType sets PegMoveType, Tag 835 @@ -1013,8 +1014,8 @@ func (m ExecutionReport) SetPegRoundDirection(v int) { } //SetPeggedPrice sets PeggedPrice, Tag 839 -func (m ExecutionReport) SetPeggedPrice(v float64) { - m.Set(field.NewPeggedPrice(v)) +func (m ExecutionReport) SetPeggedPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPeggedPrice(value, scale)) } //SetPegScope sets PegScope, Tag 840 @@ -1043,8 +1044,8 @@ func (m ExecutionReport) SetDiscretionRoundDirection(v int) { } //SetDiscretionPrice sets DiscretionPrice, Tag 845 -func (m ExecutionReport) SetDiscretionPrice(v float64) { - m.Set(field.NewDiscretionPrice(v)) +func (m ExecutionReport) SetDiscretionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionPrice(value, scale)) } //SetDiscretionScope sets DiscretionScope, Tag 846 @@ -1063,13 +1064,13 @@ func (m ExecutionReport) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m ExecutionReport) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m ExecutionReport) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetTargetStrategyPerformance sets TargetStrategyPerformance, Tag 850 -func (m ExecutionReport) SetTargetStrategyPerformance(v float64) { - m.Set(field.NewTargetStrategyPerformance(v)) +func (m ExecutionReport) SetTargetStrategyPerformance(value decimal.Decimal, scale int32) { + m.Set(field.NewTargetStrategyPerformance(value, scale)) } //SetLastLiquidityInd sets LastLiquidityInd, Tag 851 @@ -1118,8 +1119,8 @@ func (m ExecutionReport) SetLastFragment(v bool) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m ExecutionReport) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m ExecutionReport) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetTotNumReports sets TotNumReports, Tag 911 @@ -1168,18 +1169,18 @@ func (m ExecutionReport) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m ExecutionReport) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m ExecutionReport) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m ExecutionReport) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m ExecutionReport) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m ExecutionReport) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m ExecutionReport) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetTimeBracket sets TimeBracket, Tag 943 @@ -1213,18 +1214,18 @@ func (m ExecutionReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m ExecutionReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m ExecutionReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m ExecutionReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m ExecutionReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m ExecutionReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m ExecutionReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1283,8 +1284,8 @@ func (m ExecutionReport) SetInstrmtAssignmentMethod(v string) { } //SetCalculatedCcyLastQty sets CalculatedCcyLastQty, Tag 1056 -func (m ExecutionReport) SetCalculatedCcyLastQty(v float64) { - m.Set(field.NewCalculatedCcyLastQty(v)) +func (m ExecutionReport) SetCalculatedCcyLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCalculatedCcyLastQty(value, scale)) } //SetAggressorIndicator sets AggressorIndicator, Tag 1057 @@ -1293,8 +1294,8 @@ func (m ExecutionReport) SetAggressorIndicator(v bool) { } //SetLastSwapPoints sets LastSwapPoints, Tag 1071 -func (m ExecutionReport) SetLastSwapPoints(v float64) { - m.Set(field.NewLastSwapPoints(v)) +func (m ExecutionReport) SetLastSwapPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSwapPoints(value, scale)) } //SetMaturityTime sets MaturityTime, Tag 1079 @@ -1303,8 +1304,8 @@ func (m ExecutionReport) SetMaturityTime(v string) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m ExecutionReport) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m ExecutionReport) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -1318,28 +1319,28 @@ func (m ExecutionReport) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m ExecutionReport) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m ExecutionReport) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m ExecutionReport) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m ExecutionReport) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m ExecutionReport) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m ExecutionReport) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m ExecutionReport) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m ExecutionReport) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m ExecutionReport) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m ExecutionReport) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -1368,8 +1369,8 @@ func (m ExecutionReport) SetPegPriceType(v int) { } //SetPeggedRefPrice sets PeggedRefPrice, Tag 1095 -func (m ExecutionReport) SetPeggedRefPrice(v float64) { - m.Set(field.NewPeggedRefPrice(v)) +func (m ExecutionReport) SetPeggedRefPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPeggedRefPrice(value, scale)) } //SetPegSecurityIDSource sets PegSecurityIDSource, Tag 1096 @@ -1403,8 +1404,8 @@ func (m ExecutionReport) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m ExecutionReport) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m ExecutionReport) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -1443,8 +1444,8 @@ func (m ExecutionReport) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m ExecutionReport) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m ExecutionReport) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -1453,8 +1454,8 @@ func (m ExecutionReport) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m ExecutionReport) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m ExecutionReport) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -1473,18 +1474,18 @@ func (m ExecutionReport) SetOrderCategory(v string) { } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m ExecutionReport) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m ExecutionReport) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m ExecutionReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m ExecutionReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m ExecutionReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m ExecutionReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -1518,18 +1519,18 @@ func (m ExecutionReport) SetSecurityXMLSchema(v string) { } //SetVolatility sets Volatility, Tag 1188 -func (m ExecutionReport) SetVolatility(v float64) { - m.Set(field.NewVolatility(v)) +func (m ExecutionReport) SetVolatility(value decimal.Decimal, scale int32) { + m.Set(field.NewVolatility(value, scale)) } //SetTimeToExpiration sets TimeToExpiration, Tag 1189 -func (m ExecutionReport) SetTimeToExpiration(v float64) { - m.Set(field.NewTimeToExpiration(v)) +func (m ExecutionReport) SetTimeToExpiration(value decimal.Decimal, scale int32) { + m.Set(field.NewTimeToExpiration(value, scale)) } //SetRiskFreeRate sets RiskFreeRate, Tag 1190 -func (m ExecutionReport) SetRiskFreeRate(v float64) { - m.Set(field.NewRiskFreeRate(v)) +func (m ExecutionReport) SetRiskFreeRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRiskFreeRate(value, scale)) } //SetPriceUnitOfMeasure sets PriceUnitOfMeasure, Tag 1191 @@ -1538,8 +1539,8 @@ func (m ExecutionReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m ExecutionReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m ExecutionReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -1553,8 +1554,8 @@ func (m ExecutionReport) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m ExecutionReport) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m ExecutionReport) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -1573,13 +1574,13 @@ func (m ExecutionReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m ExecutionReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m ExecutionReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m ExecutionReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m ExecutionReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -1618,8 +1619,8 @@ func (m ExecutionReport) SetNoFills(f NoFillsRepeatingGroup) { } //SetDividendYield sets DividendYield, Tag 1380 -func (m ExecutionReport) SetDividendYield(v float64) { - m.Set(field.NewDividendYield(v)) +func (m ExecutionReport) SetDividendYield(value decimal.Decimal, scale int32) { + m.Set(field.NewDividendYield(value, scale)) } //GetAccount gets Account, Tag 1 @@ -5088,8 +5089,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -5341,8 +5342,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -5503,8 +5504,8 @@ func (m NoContraBrokers) SetContraTrader(v string) { } //SetContraTradeQty sets ContraTradeQty, Tag 437 -func (m NoContraBrokers) SetContraTradeQty(v float64) { - m.Set(field.NewContraTradeQty(v)) +func (m NoContraBrokers) SetContraTradeQty(value decimal.Decimal, scale int32) { + m.Set(field.NewContraTradeQty(value, scale)) } //SetContraTradeTime sets ContraTradeTime, Tag 438 @@ -5819,8 +5820,8 @@ func (m NoContAmts) SetContAmtType(v int) { } //SetContAmtValue sets ContAmtValue, Tag 520 -func (m NoContAmts) SetContAmtValue(v float64) { - m.Set(field.NewContAmtValue(v)) +func (m NoContAmts) SetContAmtValue(value decimal.Decimal, scale int32) { + m.Set(field.NewContAmtValue(value, scale)) } //SetContAmtCurr sets ContAmtCurr, Tag 521 @@ -5965,13 +5966,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -6005,8 +6006,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -6020,13 +6021,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -6065,8 +6066,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -6110,13 +6111,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -6135,8 +6136,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -6145,13 +6146,13 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -6190,13 +6191,13 @@ func (m NoLegs) SetLegSettlDate(v string) { } //SetLegLastPx sets LegLastPx, Tag 637 -func (m NoLegs) SetLegLastPx(v float64) { - m.Set(field.NewLegLastPx(v)) +func (m NoLegs) SetLegLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastPx(value, scale)) } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //SetLegSettlCurrency sets LegSettlCurrency, Tag 675 @@ -6205,18 +6206,18 @@ func (m NoLegs) SetLegSettlCurrency(v string) { } //SetLegLastForwardPoints sets LegLastForwardPoints, Tag 1073 -func (m NoLegs) SetLegLastForwardPoints(v float64) { - m.Set(field.NewLegLastForwardPoints(v)) +func (m NoLegs) SetLegLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastForwardPoints(value, scale)) } //SetLegCalculatedCcyLastQty sets LegCalculatedCcyLastQty, Tag 1074 -func (m NoLegs) SetLegCalculatedCcyLastQty(v float64) { - m.Set(field.NewLegCalculatedCcyLastQty(v)) +func (m NoLegs) SetLegCalculatedCcyLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCalculatedCcyLastQty(value, scale)) } //SetLegGrossTradeAmt sets LegGrossTradeAmt, Tag 1075 -func (m NoLegs) SetLegGrossTradeAmt(v float64) { - m.Set(field.NewLegGrossTradeAmt(v)) +func (m NoLegs) SetLegGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewLegGrossTradeAmt(value, scale)) } //SetNoNested3PartyIDs sets NoNested3PartyIDs, Tag 948 @@ -6235,18 +6236,18 @@ func (m NoLegs) SetNoLegAllocs(f NoLegAllocsRepeatingGroup) { } //SetLegVolatility sets LegVolatility, Tag 1379 -func (m NoLegs) SetLegVolatility(v float64) { - m.Set(field.NewLegVolatility(v)) +func (m NoLegs) SetLegVolatility(value decimal.Decimal, scale int32) { + m.Set(field.NewLegVolatility(value, scale)) } //SetLegDividendYield sets LegDividendYield, Tag 1381 -func (m NoLegs) SetLegDividendYield(v float64) { - m.Set(field.NewLegDividendYield(v)) +func (m NoLegs) SetLegDividendYield(value decimal.Decimal, scale int32) { + m.Set(field.NewLegDividendYield(value, scale)) } //SetLegCurrencyRatio sets LegCurrencyRatio, Tag 1383 -func (m NoLegs) SetLegCurrencyRatio(v float64) { - m.Set(field.NewLegCurrencyRatio(v)) +func (m NoLegs) SetLegCurrencyRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCurrencyRatio(value, scale)) } //SetLegExecInst sets LegExecInst, Tag 1384 @@ -6255,8 +6256,8 @@ func (m NoLegs) SetLegExecInst(v string) { } //SetLegLastQty sets LegLastQty, Tag 1418 -func (m NoLegs) SetLegLastQty(v float64) { - m.Set(field.NewLegLastQty(v)) +func (m NoLegs) SetLegLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -7366,8 +7367,8 @@ func (m NoLegAllocs) SetLegIndividualAllocID(v string) { } //SetLegAllocQty sets LegAllocQty, Tag 673 -func (m NoLegAllocs) SetLegAllocQty(v float64) { - m.Set(field.NewLegAllocQty(v)) +func (m NoLegAllocs) SetLegAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegAllocQty(value, scale)) } //SetLegAllocAcctIDSource sets LegAllocAcctIDSource, Tag 674 @@ -7732,13 +7733,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -7772,8 +7773,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -7787,13 +7788,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -7847,38 +7848,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -7887,8 +7888,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -7897,8 +7898,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -7917,8 +7918,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -7932,13 +7933,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -7962,8 +7963,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -7972,8 +7973,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -9119,8 +9120,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -9451,13 +9452,13 @@ func (m NoFills) SetFillExecID(v string) { } //SetFillPx sets FillPx, Tag 1364 -func (m NoFills) SetFillPx(v float64) { - m.Set(field.NewFillPx(v)) +func (m NoFills) SetFillPx(value decimal.Decimal, scale int32) { + m.Set(field.NewFillPx(value, scale)) } //SetFillQty sets FillQty, Tag 1365 -func (m NoFills) SetFillQty(v float64) { - m.Set(field.NewFillQty(v)) +func (m NoFills) SetFillQty(value decimal.Decimal, scale int32) { + m.Set(field.NewFillQty(value, scale)) } //SetNoNested4PartyIDs sets NoNested4PartyIDs, Tag 1414 diff --git a/fix50sp1/ioi/IOI.generated.go b/fix50sp1/ioi/IOI.generated.go index abe71b1fe..1cba87122 100644 --- a/fix50sp1/ioi/IOI.generated.go +++ b/fix50sp1/ioi/IOI.generated.go @@ -1,6 +1,7 @@ package ioi import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -100,13 +101,13 @@ func (m IOI) SetIOITransType(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m IOI) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m IOI) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetPrice sets Price, Tag 44 -func (m IOI) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m IOI) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -165,8 +166,8 @@ func (m IOI) SetURLLink(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m IOI) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m IOI) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -190,8 +191,8 @@ func (m IOI) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m IOI) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m IOI) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -210,8 +211,8 @@ func (m IOI) SetNoRoutingIDs(f NoRoutingIDsRepeatingGroup) { } //SetSpread sets Spread, Tag 218 -func (m IOI) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m IOI) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -230,8 +231,8 @@ func (m IOI) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m IOI) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m IOI) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -250,18 +251,18 @@ func (m IOI) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m IOI) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m IOI) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m IOI) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m IOI) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m IOI) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m IOI) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -275,8 +276,8 @@ func (m IOI) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m IOI) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m IOI) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -355,8 +356,8 @@ func (m IOI) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m IOI) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m IOI) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -375,8 +376,8 @@ func (m IOI) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m IOI) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m IOI) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -395,8 +396,8 @@ func (m IOI) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m IOI) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m IOI) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -420,8 +421,8 @@ func (m IOI) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m IOI) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m IOI) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -490,8 +491,8 @@ func (m IOI) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m IOI) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m IOI) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -545,18 +546,18 @@ func (m IOI) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m IOI) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m IOI) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m IOI) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m IOI) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m IOI) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m IOI) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -595,13 +596,13 @@ func (m IOI) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m IOI) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m IOI) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m IOI) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m IOI) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -640,8 +641,8 @@ func (m IOI) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m IOI) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m IOI) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -655,8 +656,8 @@ func (m IOI) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m IOI) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m IOI) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -675,13 +676,13 @@ func (m IOI) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m IOI) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m IOI) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m IOI) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m IOI) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -2595,13 +2596,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2635,8 +2636,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2650,13 +2651,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2695,8 +2696,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2740,13 +2741,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2765,8 +2766,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2775,8 +2776,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegIOIQty sets LegIOIQty, Tag 682 @@ -3609,13 +3610,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3649,8 +3650,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3664,13 +3665,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3724,38 +3725,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3764,8 +3765,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3774,8 +3775,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3794,8 +3795,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3809,13 +3810,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3839,8 +3840,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3849,8 +3850,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4872,8 +4873,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/liststatus/ListStatus.generated.go b/fix50sp1/liststatus/ListStatus.generated.go index 1fdeafc06..b78bdf1c0 100644 --- a/fix50sp1/liststatus/ListStatus.generated.go +++ b/fix50sp1/liststatus/ListStatus.generated.go @@ -1,6 +1,7 @@ package liststatus import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -307,8 +308,8 @@ func (m NoOrders) SetSecondaryClOrdID(v string) { } //SetCumQty sets CumQty, Tag 14 -func (m NoOrders) SetCumQty(v float64) { - m.Set(field.NewCumQty(v)) +func (m NoOrders) SetCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCumQty(value, scale)) } //SetOrdStatus sets OrdStatus, Tag 39 @@ -322,18 +323,18 @@ func (m NoOrders) SetWorkingIndicator(v bool) { } //SetLeavesQty sets LeavesQty, Tag 151 -func (m NoOrders) SetLeavesQty(v float64) { - m.Set(field.NewLeavesQty(v)) +func (m NoOrders) SetLeavesQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLeavesQty(value, scale)) } //SetCxlQty sets CxlQty, Tag 84 -func (m NoOrders) SetCxlQty(v float64) { - m.Set(field.NewCxlQty(v)) +func (m NoOrders) SetCxlQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCxlQty(value, scale)) } //SetAvgPx sets AvgPx, Tag 6 -func (m NoOrders) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m NoOrders) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetOrdRejReason sets OrdRejReason, Tag 103 diff --git a/fix50sp1/liststrikeprice/ListStrikePrice.generated.go b/fix50sp1/liststrikeprice/ListStrikePrice.generated.go index 260ccae50..d999f5c2e 100644 --- a/fix50sp1/liststrikeprice/ListStrikePrice.generated.go +++ b/fix50sp1/liststrikeprice/ListStrikePrice.generated.go @@ -1,6 +1,7 @@ package liststrikeprice import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -208,13 +209,13 @@ func (m NoStrikes) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoStrikes) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoStrikes) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoStrikes) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoStrikes) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -248,8 +249,8 @@ func (m NoStrikes) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoStrikes) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoStrikes) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -263,13 +264,13 @@ func (m NoStrikes) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoStrikes) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoStrikes) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoStrikes) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoStrikes) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -358,18 +359,18 @@ func (m NoStrikes) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoStrikes) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoStrikes) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoStrikes) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoStrikes) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoStrikes) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoStrikes) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -408,13 +409,13 @@ func (m NoStrikes) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoStrikes) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoStrikes) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoStrikes) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoStrikes) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -443,8 +444,8 @@ func (m NoStrikes) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoStrikes) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoStrikes) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -458,8 +459,8 @@ func (m NoStrikes) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m NoStrikes) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m NoStrikes) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -473,13 +474,13 @@ func (m NoStrikes) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoStrikes) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoStrikes) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoStrikes) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoStrikes) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -508,8 +509,8 @@ func (m NoStrikes) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoStrikes) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoStrikes) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetClOrdID sets ClOrdID, Tag 11 @@ -528,8 +529,8 @@ func (m NoStrikes) SetSide(v string) { } //SetPrice sets Price, Tag 44 -func (m NoStrikes) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoStrikes) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -1556,8 +1557,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -1882,13 +1883,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1922,8 +1923,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1937,13 +1938,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -1997,38 +1998,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2037,8 +2038,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2047,8 +2048,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2067,8 +2068,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2082,13 +2083,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2112,8 +2113,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -2122,8 +2123,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 diff --git a/fix50sp1/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go b/fix50sp1/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go index c91509953..e6d739ce4 100644 --- a/fix50sp1/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go +++ b/fix50sp1/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go @@ -1,6 +1,7 @@ package marketdataincrementalrefresh import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -420,13 +421,13 @@ func (m NoMDEntries) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoMDEntries) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoMDEntries) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoMDEntries) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoMDEntries) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -460,8 +461,8 @@ func (m NoMDEntries) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoMDEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoMDEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -475,13 +476,13 @@ func (m NoMDEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoMDEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoMDEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoMDEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoMDEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -570,18 +571,18 @@ func (m NoMDEntries) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoMDEntries) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoMDEntries) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoMDEntries) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoMDEntries) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoMDEntries) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoMDEntries) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -620,13 +621,13 @@ func (m NoMDEntries) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoMDEntries) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoMDEntries) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoMDEntries) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoMDEntries) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -655,8 +656,8 @@ func (m NoMDEntries) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoMDEntries) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoMDEntries) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -670,8 +671,8 @@ func (m NoMDEntries) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m NoMDEntries) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m NoMDEntries) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -685,13 +686,13 @@ func (m NoMDEntries) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoMDEntries) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoMDEntries) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoMDEntries) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoMDEntries) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -735,8 +736,8 @@ func (m NoMDEntries) SetCorporateAction(v string) { } //SetMDEntryPx sets MDEntryPx, Tag 270 -func (m NoMDEntries) SetMDEntryPx(v float64) { - m.Set(field.NewMDEntryPx(v)) +func (m NoMDEntries) SetMDEntryPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntryPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -745,8 +746,8 @@ func (m NoMDEntries) SetCurrency(v string) { } //SetMDEntrySize sets MDEntrySize, Tag 271 -func (m NoMDEntries) SetMDEntrySize(v float64) { - m.Set(field.NewMDEntrySize(v)) +func (m NoMDEntries) SetMDEntrySize(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntrySize(value, scale)) } //SetMDEntryDate sets MDEntryDate, Tag 272 @@ -825,8 +826,8 @@ func (m NoMDEntries) SetExpireTime(v time.Time) { } //SetMinQty sets MinQty, Tag 110 -func (m NoMDEntries) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NoMDEntries) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetExecInst sets ExecInst, Tag 18 @@ -875,13 +876,13 @@ func (m NoMDEntries) SetScope(v string) { } //SetPriceDelta sets PriceDelta, Tag 811 -func (m NoMDEntries) SetPriceDelta(v float64) { - m.Set(field.NewPriceDelta(v)) +func (m NoMDEntries) SetPriceDelta(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceDelta(value, scale)) } //SetNetChgPrevDay sets NetChgPrevDay, Tag 451 -func (m NoMDEntries) SetNetChgPrevDay(v float64) { - m.Set(field.NewNetChgPrevDay(v)) +func (m NoMDEntries) SetNetChgPrevDay(value decimal.Decimal, scale int32) { + m.Set(field.NewNetChgPrevDay(value, scale)) } //SetText sets Text, Tag 58 @@ -910,18 +911,18 @@ func (m NoMDEntries) SetMDOriginType(v int) { } //SetHighPx sets HighPx, Tag 332 -func (m NoMDEntries) SetHighPx(v float64) { - m.Set(field.NewHighPx(v)) +func (m NoMDEntries) SetHighPx(value decimal.Decimal, scale int32) { + m.Set(field.NewHighPx(value, scale)) } //SetLowPx sets LowPx, Tag 333 -func (m NoMDEntries) SetLowPx(v float64) { - m.Set(field.NewLowPx(v)) +func (m NoMDEntries) SetLowPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLowPx(value, scale)) } //SetTradeVolume sets TradeVolume, Tag 1020 -func (m NoMDEntries) SetTradeVolume(v float64) { - m.Set(field.NewTradeVolume(v)) +func (m NoMDEntries) SetTradeVolume(value decimal.Decimal, scale int32) { + m.Set(field.NewTradeVolume(value, scale)) } //SetSettlType sets SettlType, Tag 63 @@ -950,13 +951,13 @@ func (m NoMDEntries) SetDealingCapacity(v string) { } //SetMDEntrySpotRate sets MDEntrySpotRate, Tag 1026 -func (m NoMDEntries) SetMDEntrySpotRate(v float64) { - m.Set(field.NewMDEntrySpotRate(v)) +func (m NoMDEntries) SetMDEntrySpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntrySpotRate(value, scale)) } //SetMDEntryForwardPoints sets MDEntryForwardPoints, Tag 1027 -func (m NoMDEntries) SetMDEntryForwardPoints(v float64) { - m.Set(field.NewMDEntryForwardPoints(v)) +func (m NoMDEntries) SetMDEntryForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntryForwardPoints(value, scale)) } //SetMDPriceLevel sets MDPriceLevel, Tag 1023 @@ -1000,8 +1001,8 @@ func (m NoMDEntries) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoMDEntries) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoMDEntries) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -1015,8 +1016,8 @@ func (m NoMDEntries) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoMDEntries) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoMDEntries) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -1025,8 +1026,8 @@ func (m NoMDEntries) SetYieldRedemptionPriceType(v int) { } //SetSpread sets Spread, Tag 218 -func (m NoMDEntries) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoMDEntries) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -1045,8 +1046,8 @@ func (m NoMDEntries) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoMDEntries) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoMDEntries) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -2947,8 +2948,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -3273,13 +3274,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3313,8 +3314,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3328,13 +3329,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3388,38 +3389,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3428,8 +3429,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3438,8 +3439,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3458,8 +3459,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3473,13 +3474,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3503,8 +3504,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3513,8 +3514,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4601,13 +4602,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4641,8 +4642,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4656,13 +4657,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4701,8 +4702,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4746,13 +4747,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -4771,8 +4772,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4781,8 +4782,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -5605,8 +5606,8 @@ func (m NoOfSecSizes) SetMDSecSizeType(v int) { } //SetMDSecSize sets MDSecSize, Tag 1179 -func (m NoOfSecSizes) SetMDSecSize(v float64) { - m.Set(field.NewMDSecSize(v)) +func (m NoOfSecSizes) SetMDSecSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMDSecSize(value, scale)) } //GetMDSecSizeType gets MDSecSizeType, Tag 1178 diff --git a/fix50sp1/marketdatarequest/MarketDataRequest.generated.go b/fix50sp1/marketdatarequest/MarketDataRequest.generated.go index 1b7df19c3..3c7e84681 100644 --- a/fix50sp1/marketdatarequest/MarketDataRequest.generated.go +++ b/fix50sp1/marketdatarequest/MarketDataRequest.generated.go @@ -1,6 +1,7 @@ package marketdatarequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -388,13 +389,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -428,8 +429,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -443,13 +444,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -538,18 +539,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -588,13 +589,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -623,8 +624,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -638,8 +639,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m NoRelatedSym) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -653,13 +654,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -713,8 +714,8 @@ func (m NoRelatedSym) SetSettlDate(v string) { } //SetMDEntrySize sets MDEntrySize, Tag 271 -func (m NoRelatedSym) SetMDEntrySize(v float64) { - m.Set(field.NewMDEntrySize(v)) +func (m NoRelatedSym) SetMDEntrySize(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntrySize(value, scale)) } //GetSymbol gets Symbol, Tag 55 @@ -1689,8 +1690,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2015,13 +2016,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2055,8 +2056,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2070,13 +2071,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2130,38 +2131,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2170,8 +2171,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2180,8 +2181,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2200,8 +2201,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2215,13 +2216,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2245,8 +2246,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -2255,8 +2256,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -3343,13 +3344,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3383,8 +3384,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3398,13 +3399,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3443,8 +3444,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3488,13 +3489,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3513,8 +3514,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3523,8 +3524,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 diff --git a/fix50sp1/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go b/fix50sp1/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go index 2b9d736ce..cd4dd5571 100644 --- a/fix50sp1/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go +++ b/fix50sp1/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go @@ -1,6 +1,7 @@ package marketdatasnapshotfullrefresh import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -111,8 +112,8 @@ func (m MarketDataSnapshotFullRefresh) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m MarketDataSnapshotFullRefresh) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m MarketDataSnapshotFullRefresh) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -131,8 +132,8 @@ func (m MarketDataSnapshotFullRefresh) SetNoRoutingIDs(f NoRoutingIDsRepeatingGr } //SetCouponRate sets CouponRate, Tag 223 -func (m MarketDataSnapshotFullRefresh) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m MarketDataSnapshotFullRefresh) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -151,18 +152,18 @@ func (m MarketDataSnapshotFullRefresh) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m MarketDataSnapshotFullRefresh) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m MarketDataSnapshotFullRefresh) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m MarketDataSnapshotFullRefresh) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m MarketDataSnapshotFullRefresh) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m MarketDataSnapshotFullRefresh) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m MarketDataSnapshotFullRefresh) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -226,8 +227,8 @@ func (m MarketDataSnapshotFullRefresh) SetEncodedSecurityDesc(v string) { } //SetNetChgPrevDay sets NetChgPrevDay, Tag 451 -func (m MarketDataSnapshotFullRefresh) SetNetChgPrevDay(v float64) { - m.Set(field.NewNetChgPrevDay(v)) +func (m MarketDataSnapshotFullRefresh) SetNetChgPrevDay(value decimal.Decimal, scale int32) { + m.Set(field.NewNetChgPrevDay(value, scale)) } //SetNoSecurityAltID sets NoSecurityAltID, Tag 454 @@ -361,18 +362,18 @@ func (m MarketDataSnapshotFullRefresh) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m MarketDataSnapshotFullRefresh) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m MarketDataSnapshotFullRefresh) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m MarketDataSnapshotFullRefresh) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m MarketDataSnapshotFullRefresh) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m MarketDataSnapshotFullRefresh) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m MarketDataSnapshotFullRefresh) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -421,13 +422,13 @@ func (m MarketDataSnapshotFullRefresh) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m MarketDataSnapshotFullRefresh) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m MarketDataSnapshotFullRefresh) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m MarketDataSnapshotFullRefresh) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m MarketDataSnapshotFullRefresh) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -476,8 +477,8 @@ func (m MarketDataSnapshotFullRefresh) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m MarketDataSnapshotFullRefresh) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m MarketDataSnapshotFullRefresh) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -491,8 +492,8 @@ func (m MarketDataSnapshotFullRefresh) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m MarketDataSnapshotFullRefresh) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m MarketDataSnapshotFullRefresh) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -511,13 +512,13 @@ func (m MarketDataSnapshotFullRefresh) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m MarketDataSnapshotFullRefresh) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m MarketDataSnapshotFullRefresh) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m MarketDataSnapshotFullRefresh) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m MarketDataSnapshotFullRefresh) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -1690,8 +1691,8 @@ func (m NoMDEntries) SetMDEntryType(v string) { } //SetMDEntryPx sets MDEntryPx, Tag 270 -func (m NoMDEntries) SetMDEntryPx(v float64) { - m.Set(field.NewMDEntryPx(v)) +func (m NoMDEntries) SetMDEntryPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntryPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -1700,8 +1701,8 @@ func (m NoMDEntries) SetCurrency(v string) { } //SetMDEntrySize sets MDEntrySize, Tag 271 -func (m NoMDEntries) SetMDEntrySize(v float64) { - m.Set(field.NewMDEntrySize(v)) +func (m NoMDEntries) SetMDEntrySize(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntrySize(value, scale)) } //SetMDEntryDate sets MDEntryDate, Tag 272 @@ -1780,8 +1781,8 @@ func (m NoMDEntries) SetExpireTime(v time.Time) { } //SetMinQty sets MinQty, Tag 110 -func (m NoMDEntries) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NoMDEntries) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetExecInst sets ExecInst, Tag 18 @@ -1830,8 +1831,8 @@ func (m NoMDEntries) SetScope(v string) { } //SetPriceDelta sets PriceDelta, Tag 811 -func (m NoMDEntries) SetPriceDelta(v float64) { - m.Set(field.NewPriceDelta(v)) +func (m NoMDEntries) SetPriceDelta(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceDelta(value, scale)) } //SetText sets Text, Tag 58 @@ -1865,18 +1866,18 @@ func (m NoMDEntries) SetMDOriginType(v int) { } //SetHighPx sets HighPx, Tag 332 -func (m NoMDEntries) SetHighPx(v float64) { - m.Set(field.NewHighPx(v)) +func (m NoMDEntries) SetHighPx(value decimal.Decimal, scale int32) { + m.Set(field.NewHighPx(value, scale)) } //SetLowPx sets LowPx, Tag 333 -func (m NoMDEntries) SetLowPx(v float64) { - m.Set(field.NewLowPx(v)) +func (m NoMDEntries) SetLowPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLowPx(value, scale)) } //SetTradeVolume sets TradeVolume, Tag 1020 -func (m NoMDEntries) SetTradeVolume(v float64) { - m.Set(field.NewTradeVolume(v)) +func (m NoMDEntries) SetTradeVolume(value decimal.Decimal, scale int32) { + m.Set(field.NewTradeVolume(value, scale)) } //SetSettlType sets SettlType, Tag 63 @@ -1905,13 +1906,13 @@ func (m NoMDEntries) SetDealingCapacity(v string) { } //SetMDEntrySpotRate sets MDEntrySpotRate, Tag 1026 -func (m NoMDEntries) SetMDEntrySpotRate(v float64) { - m.Set(field.NewMDEntrySpotRate(v)) +func (m NoMDEntries) SetMDEntrySpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntrySpotRate(value, scale)) } //SetMDEntryForwardPoints sets MDEntryForwardPoints, Tag 1027 -func (m NoMDEntries) SetMDEntryForwardPoints(v float64) { - m.Set(field.NewMDEntryForwardPoints(v)) +func (m NoMDEntries) SetMDEntryForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntryForwardPoints(value, scale)) } //SetMDEntryID sets MDEntryID, Tag 278 @@ -1945,8 +1946,8 @@ func (m NoMDEntries) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoMDEntries) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoMDEntries) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -1960,8 +1961,8 @@ func (m NoMDEntries) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoMDEntries) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoMDEntries) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -1970,8 +1971,8 @@ func (m NoMDEntries) SetYieldRedemptionPriceType(v int) { } //SetSpread sets Spread, Tag 218 -func (m NoMDEntries) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoMDEntries) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -1990,8 +1991,8 @@ func (m NoMDEntries) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoMDEntries) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoMDEntries) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -2954,8 +2955,8 @@ func (m NoOfSecSizes) SetMDSecSizeType(v int) { } //SetMDSecSize sets MDSecSize, Tag 1179 -func (m NoOfSecSizes) SetMDSecSize(v float64) { - m.Set(field.NewMDSecSize(v)) +func (m NoOfSecSizes) SetMDSecSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMDSecSize(value, scale)) } //GetMDSecSizeType gets MDSecSizeType, Tag 1178 @@ -3167,13 +3168,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3207,8 +3208,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3222,13 +3223,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3267,8 +3268,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3312,13 +3313,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3337,8 +3338,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3347,8 +3348,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -4088,13 +4089,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4128,8 +4129,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4143,13 +4144,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4203,38 +4204,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4243,8 +4244,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4253,8 +4254,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4273,8 +4274,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4288,13 +4289,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4318,8 +4319,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4328,8 +4329,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -5351,8 +5352,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/marketdefinition/MarketDefinition.generated.go b/fix50sp1/marketdefinition/MarketDefinition.generated.go index fec0e3fce..9dd1da7ab 100644 --- a/fix50sp1/marketdefinition/MarketDefinition.generated.go +++ b/fix50sp1/marketdefinition/MarketDefinition.generated.go @@ -1,6 +1,7 @@ package marketdefinition import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -93,13 +94,13 @@ func (m MarketDefinition) SetPriceType(v int) { } //SetRoundLot sets RoundLot, Tag 561 -func (m MarketDefinition) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m MarketDefinition) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m MarketDefinition) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m MarketDefinition) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetExpirationCycle sets ExpirationCycle, Tag 827 @@ -108,13 +109,13 @@ func (m MarketDefinition) SetExpirationCycle(v int) { } //SetMaxTradeVol sets MaxTradeVol, Tag 1140 -func (m MarketDefinition) SetMaxTradeVol(v float64) { - m.Set(field.NewMaxTradeVol(v)) +func (m MarketDefinition) SetMaxTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxTradeVol(value, scale)) } //SetMaxPriceVariation sets MaxPriceVariation, Tag 1143 -func (m MarketDefinition) SetMaxPriceVariation(v float64) { - m.Set(field.NewMaxPriceVariation(v)) +func (m MarketDefinition) SetMaxPriceVariation(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxPriceVariation(value, scale)) } //SetImpliedMarketIndicator sets ImpliedMarketIndicator, Tag 1144 @@ -123,18 +124,18 @@ func (m MarketDefinition) SetImpliedMarketIndicator(v int) { } //SetLowLimitPrice sets LowLimitPrice, Tag 1148 -func (m MarketDefinition) SetLowLimitPrice(v float64) { - m.Set(field.NewLowLimitPrice(v)) +func (m MarketDefinition) SetLowLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLowLimitPrice(value, scale)) } //SetHighLimitPrice sets HighLimitPrice, Tag 1149 -func (m MarketDefinition) SetHighLimitPrice(v float64) { - m.Set(field.NewHighLimitPrice(v)) +func (m MarketDefinition) SetHighLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewHighLimitPrice(value, scale)) } //SetTradingReferencePrice sets TradingReferencePrice, Tag 1150 -func (m MarketDefinition) SetTradingReferencePrice(v float64) { - m.Set(field.NewTradingReferencePrice(v)) +func (m MarketDefinition) SetTradingReferencePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTradingReferencePrice(value, scale)) } //SetApplID sets ApplID, Tag 1180 @@ -649,18 +650,18 @@ type NoTickRules struct { } //SetStartTickPriceRange sets StartTickPriceRange, Tag 1206 -func (m NoTickRules) SetStartTickPriceRange(v float64) { - m.Set(field.NewStartTickPriceRange(v)) +func (m NoTickRules) SetStartTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartTickPriceRange(value, scale)) } //SetEndTickPriceRange sets EndTickPriceRange, Tag 1207 -func (m NoTickRules) SetEndTickPriceRange(v float64) { - m.Set(field.NewEndTickPriceRange(v)) +func (m NoTickRules) SetEndTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndTickPriceRange(value, scale)) } //SetTickIncrement sets TickIncrement, Tag 1208 -func (m NoTickRules) SetTickIncrement(v float64) { - m.Set(field.NewTickIncrement(v)) +func (m NoTickRules) SetTickIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewTickIncrement(value, scale)) } //SetTickRuleType sets TickRuleType, Tag 1209 @@ -790,8 +791,8 @@ func (m NoLotTypeRules) SetLotType(v string) { } //SetMinLotSize sets MinLotSize, Tag 1231 -func (m NoLotTypeRules) SetMinLotSize(v float64) { - m.Set(field.NewMinLotSize(v)) +func (m NoLotTypeRules) SetMinLotSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinLotSize(value, scale)) } //GetLotType gets LotType, Tag 1093 diff --git a/fix50sp1/marketdefinitionupdatereport/MarketDefinitionUpdateReport.generated.go b/fix50sp1/marketdefinitionupdatereport/MarketDefinitionUpdateReport.generated.go index 5fddfc843..a5b759b26 100644 --- a/fix50sp1/marketdefinitionupdatereport/MarketDefinitionUpdateReport.generated.go +++ b/fix50sp1/marketdefinitionupdatereport/MarketDefinitionUpdateReport.generated.go @@ -1,6 +1,7 @@ package marketdefinitionupdatereport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -93,13 +94,13 @@ func (m MarketDefinitionUpdateReport) SetPriceType(v int) { } //SetRoundLot sets RoundLot, Tag 561 -func (m MarketDefinitionUpdateReport) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m MarketDefinitionUpdateReport) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m MarketDefinitionUpdateReport) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m MarketDefinitionUpdateReport) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetExpirationCycle sets ExpirationCycle, Tag 827 @@ -108,13 +109,13 @@ func (m MarketDefinitionUpdateReport) SetExpirationCycle(v int) { } //SetMaxTradeVol sets MaxTradeVol, Tag 1140 -func (m MarketDefinitionUpdateReport) SetMaxTradeVol(v float64) { - m.Set(field.NewMaxTradeVol(v)) +func (m MarketDefinitionUpdateReport) SetMaxTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxTradeVol(value, scale)) } //SetMaxPriceVariation sets MaxPriceVariation, Tag 1143 -func (m MarketDefinitionUpdateReport) SetMaxPriceVariation(v float64) { - m.Set(field.NewMaxPriceVariation(v)) +func (m MarketDefinitionUpdateReport) SetMaxPriceVariation(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxPriceVariation(value, scale)) } //SetImpliedMarketIndicator sets ImpliedMarketIndicator, Tag 1144 @@ -123,18 +124,18 @@ func (m MarketDefinitionUpdateReport) SetImpliedMarketIndicator(v int) { } //SetLowLimitPrice sets LowLimitPrice, Tag 1148 -func (m MarketDefinitionUpdateReport) SetLowLimitPrice(v float64) { - m.Set(field.NewLowLimitPrice(v)) +func (m MarketDefinitionUpdateReport) SetLowLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLowLimitPrice(value, scale)) } //SetHighLimitPrice sets HighLimitPrice, Tag 1149 -func (m MarketDefinitionUpdateReport) SetHighLimitPrice(v float64) { - m.Set(field.NewHighLimitPrice(v)) +func (m MarketDefinitionUpdateReport) SetHighLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewHighLimitPrice(value, scale)) } //SetTradingReferencePrice sets TradingReferencePrice, Tag 1150 -func (m MarketDefinitionUpdateReport) SetTradingReferencePrice(v float64) { - m.Set(field.NewTradingReferencePrice(v)) +func (m MarketDefinitionUpdateReport) SetTradingReferencePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTradingReferencePrice(value, scale)) } //SetApplID sets ApplID, Tag 1180 @@ -665,18 +666,18 @@ type NoTickRules struct { } //SetStartTickPriceRange sets StartTickPriceRange, Tag 1206 -func (m NoTickRules) SetStartTickPriceRange(v float64) { - m.Set(field.NewStartTickPriceRange(v)) +func (m NoTickRules) SetStartTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartTickPriceRange(value, scale)) } //SetEndTickPriceRange sets EndTickPriceRange, Tag 1207 -func (m NoTickRules) SetEndTickPriceRange(v float64) { - m.Set(field.NewEndTickPriceRange(v)) +func (m NoTickRules) SetEndTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndTickPriceRange(value, scale)) } //SetTickIncrement sets TickIncrement, Tag 1208 -func (m NoTickRules) SetTickIncrement(v float64) { - m.Set(field.NewTickIncrement(v)) +func (m NoTickRules) SetTickIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewTickIncrement(value, scale)) } //SetTickRuleType sets TickRuleType, Tag 1209 @@ -806,8 +807,8 @@ func (m NoLotTypeRules) SetLotType(v string) { } //SetMinLotSize sets MinLotSize, Tag 1231 -func (m NoLotTypeRules) SetMinLotSize(v float64) { - m.Set(field.NewMinLotSize(v)) +func (m NoLotTypeRules) SetMinLotSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinLotSize(value, scale)) } //GetLotType gets LotType, Tag 1093 diff --git a/fix50sp1/massquote/MassQuote.generated.go b/fix50sp1/massquote/MassQuote.generated.go index 8542c10e0..3b2d2730a 100644 --- a/fix50sp1/massquote/MassQuote.generated.go +++ b/fix50sp1/massquote/MassQuote.generated.go @@ -1,6 +1,7 @@ package massquote import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -77,13 +78,13 @@ func (m MassQuote) SetQuoteReqID(v string) { } //SetDefBidSize sets DefBidSize, Tag 293 -func (m MassQuote) SetDefBidSize(v float64) { - m.Set(field.NewDefBidSize(v)) +func (m MassQuote) SetDefBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewDefBidSize(value, scale)) } //SetDefOfferSize sets DefOfferSize, Tag 294 -func (m MassQuote) SetDefOfferSize(v float64) { - m.Set(field.NewDefOfferSize(v)) +func (m MassQuote) SetDefOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewDefOfferSize(value, scale)) } //SetNoQuoteSets sets NoQuoteSets, Tag 296 @@ -325,13 +326,13 @@ func (m NoQuoteSets) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoQuoteSets) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoQuoteSets) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoQuoteSets) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoQuoteSets) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -365,8 +366,8 @@ func (m NoQuoteSets) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoQuoteSets) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoQuoteSets) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -380,13 +381,13 @@ func (m NoQuoteSets) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoQuoteSets) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoQuoteSets) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoQuoteSets) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoQuoteSets) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -440,38 +441,38 @@ func (m NoQuoteSets) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoQuoteSets) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoQuoteSets) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoQuoteSets) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoQuoteSets) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoQuoteSets) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoQuoteSets) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoQuoteSets) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoQuoteSets) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoQuoteSets) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoQuoteSets) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoQuoteSets) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoQuoteSets) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoQuoteSets) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoQuoteSets) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -480,8 +481,8 @@ func (m NoQuoteSets) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoQuoteSets) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoQuoteSets) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -490,8 +491,8 @@ func (m NoQuoteSets) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoQuoteSets) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoQuoteSets) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -510,8 +511,8 @@ func (m NoQuoteSets) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoQuoteSets) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoQuoteSets) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -525,13 +526,13 @@ func (m NoQuoteSets) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoQuoteSets) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoQuoteSets) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoQuoteSets) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoQuoteSets) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -555,8 +556,8 @@ func (m NoQuoteSets) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoQuoteSets) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoQuoteSets) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -565,8 +566,8 @@ func (m NoQuoteSets) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoQuoteSets) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoQuoteSets) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetQuoteSetValidUntilTime sets QuoteSetValidUntilTime, Tag 367 @@ -1711,13 +1712,13 @@ func (m NoQuoteEntries) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoQuoteEntries) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoQuoteEntries) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoQuoteEntries) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoQuoteEntries) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -1751,8 +1752,8 @@ func (m NoQuoteEntries) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoQuoteEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoQuoteEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -1766,13 +1767,13 @@ func (m NoQuoteEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoQuoteEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoQuoteEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoQuoteEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoQuoteEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -1861,18 +1862,18 @@ func (m NoQuoteEntries) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoQuoteEntries) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoQuoteEntries) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoQuoteEntries) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoQuoteEntries) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoQuoteEntries) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoQuoteEntries) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1911,13 +1912,13 @@ func (m NoQuoteEntries) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoQuoteEntries) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoQuoteEntries) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoQuoteEntries) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoQuoteEntries) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -1946,8 +1947,8 @@ func (m NoQuoteEntries) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoQuoteEntries) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoQuoteEntries) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -1961,8 +1962,8 @@ func (m NoQuoteEntries) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m NoQuoteEntries) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m NoQuoteEntries) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -1976,13 +1977,13 @@ func (m NoQuoteEntries) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoQuoteEntries) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoQuoteEntries) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoQuoteEntries) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoQuoteEntries) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -2011,23 +2012,23 @@ func (m NoQuoteEntries) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBidPx sets BidPx, Tag 132 -func (m NoQuoteEntries) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m NoQuoteEntries) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m NoQuoteEntries) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m NoQuoteEntries) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m NoQuoteEntries) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m NoQuoteEntries) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m NoQuoteEntries) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m NoQuoteEntries) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetValidUntilTime sets ValidUntilTime, Tag 62 @@ -2036,43 +2037,43 @@ func (m NoQuoteEntries) SetValidUntilTime(v time.Time) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m NoQuoteEntries) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m NoQuoteEntries) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m NoQuoteEntries) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m NoQuoteEntries) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m NoQuoteEntries) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m NoQuoteEntries) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m NoQuoteEntries) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m NoQuoteEntries) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetMidPx sets MidPx, Tag 631 -func (m NoQuoteEntries) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m NoQuoteEntries) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m NoQuoteEntries) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m NoQuoteEntries) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m NoQuoteEntries) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m NoQuoteEntries) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m NoQuoteEntries) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m NoQuoteEntries) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetTransactTime sets TransactTime, Tag 60 @@ -2106,18 +2107,18 @@ func (m NoQuoteEntries) SetSettlDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoQuoteEntries) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoQuoteEntries) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m NoQuoteEntries) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m NoQuoteEntries) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m NoQuoteEntries) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m NoQuoteEntries) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -3294,8 +3295,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -3620,13 +3621,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3660,8 +3661,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3675,13 +3676,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3720,8 +3721,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3765,13 +3766,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3790,8 +3791,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3800,8 +3801,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 diff --git a/fix50sp1/massquoteacknowledgement/MassQuoteAcknowledgement.generated.go b/fix50sp1/massquoteacknowledgement/MassQuoteAcknowledgement.generated.go index 3ed854c51..15ef0a053 100644 --- a/fix50sp1/massquoteacknowledgement/MassQuoteAcknowledgement.generated.go +++ b/fix50sp1/massquoteacknowledgement/MassQuoteAcknowledgement.generated.go @@ -1,6 +1,7 @@ package massquoteacknowledgement import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -389,13 +390,13 @@ func (m NoQuoteSets) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoQuoteSets) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoQuoteSets) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoQuoteSets) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoQuoteSets) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -429,8 +430,8 @@ func (m NoQuoteSets) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoQuoteSets) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoQuoteSets) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -444,13 +445,13 @@ func (m NoQuoteSets) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoQuoteSets) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoQuoteSets) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoQuoteSets) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoQuoteSets) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -504,38 +505,38 @@ func (m NoQuoteSets) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoQuoteSets) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoQuoteSets) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoQuoteSets) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoQuoteSets) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoQuoteSets) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoQuoteSets) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoQuoteSets) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoQuoteSets) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoQuoteSets) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoQuoteSets) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoQuoteSets) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoQuoteSets) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoQuoteSets) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoQuoteSets) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -544,8 +545,8 @@ func (m NoQuoteSets) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoQuoteSets) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoQuoteSets) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -554,8 +555,8 @@ func (m NoQuoteSets) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoQuoteSets) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoQuoteSets) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -574,8 +575,8 @@ func (m NoQuoteSets) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoQuoteSets) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoQuoteSets) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -589,13 +590,13 @@ func (m NoQuoteSets) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoQuoteSets) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoQuoteSets) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoQuoteSets) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoQuoteSets) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -619,8 +620,8 @@ func (m NoQuoteSets) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoQuoteSets) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoQuoteSets) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -629,8 +630,8 @@ func (m NoQuoteSets) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoQuoteSets) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoQuoteSets) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetTotNoQuoteEntries sets TotNoQuoteEntries, Tag 304 @@ -1807,13 +1808,13 @@ func (m NoQuoteEntries) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoQuoteEntries) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoQuoteEntries) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoQuoteEntries) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoQuoteEntries) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -1847,8 +1848,8 @@ func (m NoQuoteEntries) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoQuoteEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoQuoteEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -1862,13 +1863,13 @@ func (m NoQuoteEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoQuoteEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoQuoteEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoQuoteEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoQuoteEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -1957,18 +1958,18 @@ func (m NoQuoteEntries) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoQuoteEntries) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoQuoteEntries) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoQuoteEntries) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoQuoteEntries) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoQuoteEntries) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoQuoteEntries) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -2007,13 +2008,13 @@ func (m NoQuoteEntries) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoQuoteEntries) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoQuoteEntries) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoQuoteEntries) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoQuoteEntries) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -2042,8 +2043,8 @@ func (m NoQuoteEntries) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoQuoteEntries) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoQuoteEntries) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -2057,8 +2058,8 @@ func (m NoQuoteEntries) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m NoQuoteEntries) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m NoQuoteEntries) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -2072,13 +2073,13 @@ func (m NoQuoteEntries) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoQuoteEntries) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoQuoteEntries) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoQuoteEntries) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoQuoteEntries) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -2107,23 +2108,23 @@ func (m NoQuoteEntries) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBidPx sets BidPx, Tag 132 -func (m NoQuoteEntries) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m NoQuoteEntries) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m NoQuoteEntries) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m NoQuoteEntries) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m NoQuoteEntries) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m NoQuoteEntries) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m NoQuoteEntries) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m NoQuoteEntries) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetValidUntilTime sets ValidUntilTime, Tag 62 @@ -2132,43 +2133,43 @@ func (m NoQuoteEntries) SetValidUntilTime(v time.Time) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m NoQuoteEntries) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m NoQuoteEntries) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m NoQuoteEntries) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m NoQuoteEntries) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m NoQuoteEntries) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m NoQuoteEntries) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m NoQuoteEntries) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m NoQuoteEntries) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetMidPx sets MidPx, Tag 631 -func (m NoQuoteEntries) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m NoQuoteEntries) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m NoQuoteEntries) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m NoQuoteEntries) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m NoQuoteEntries) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m NoQuoteEntries) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m NoQuoteEntries) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m NoQuoteEntries) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetTransactTime sets TransactTime, Tag 60 @@ -2202,18 +2203,18 @@ func (m NoQuoteEntries) SetSettlDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoQuoteEntries) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoQuoteEntries) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m NoQuoteEntries) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m NoQuoteEntries) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m NoQuoteEntries) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m NoQuoteEntries) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -3422,8 +3423,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -3748,13 +3749,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3788,8 +3789,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3803,13 +3804,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3848,8 +3849,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3893,13 +3894,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3918,8 +3919,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3928,8 +3929,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 diff --git a/fix50sp1/multilegordercancelreplace/MultilegOrderCancelReplace.generated.go b/fix50sp1/multilegordercancelreplace/MultilegOrderCancelReplace.generated.go index 832e02911..d2b51a0f8 100644 --- a/fix50sp1/multilegordercancelreplace/MultilegOrderCancelReplace.generated.go +++ b/fix50sp1/multilegordercancelreplace/MultilegOrderCancelReplace.generated.go @@ -1,6 +1,7 @@ package multilegordercancelreplace import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -74,8 +75,8 @@ func (m MultilegOrderCancelReplace) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m MultilegOrderCancelReplace) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m MultilegOrderCancelReplace) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -114,8 +115,8 @@ func (m MultilegOrderCancelReplace) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m MultilegOrderCancelReplace) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m MultilegOrderCancelReplace) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -129,8 +130,8 @@ func (m MultilegOrderCancelReplace) SetOrigClOrdID(v string) { } //SetPrice sets Price, Tag 44 -func (m MultilegOrderCancelReplace) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m MultilegOrderCancelReplace) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -204,8 +205,8 @@ func (m MultilegOrderCancelReplace) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m MultilegOrderCancelReplace) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m MultilegOrderCancelReplace) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -224,13 +225,13 @@ func (m MultilegOrderCancelReplace) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m MultilegOrderCancelReplace) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m MultilegOrderCancelReplace) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m MultilegOrderCancelReplace) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m MultilegOrderCancelReplace) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -259,13 +260,13 @@ func (m MultilegOrderCancelReplace) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m MultilegOrderCancelReplace) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m MultilegOrderCancelReplace) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m MultilegOrderCancelReplace) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m MultilegOrderCancelReplace) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -289,8 +290,8 @@ func (m MultilegOrderCancelReplace) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m MultilegOrderCancelReplace) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m MultilegOrderCancelReplace) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -309,18 +310,18 @@ func (m MultilegOrderCancelReplace) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m MultilegOrderCancelReplace) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m MultilegOrderCancelReplace) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m MultilegOrderCancelReplace) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m MultilegOrderCancelReplace) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m MultilegOrderCancelReplace) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m MultilegOrderCancelReplace) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -339,13 +340,13 @@ func (m MultilegOrderCancelReplace) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m MultilegOrderCancelReplace) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m MultilegOrderCancelReplace) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m MultilegOrderCancelReplace) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m MultilegOrderCancelReplace) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -354,8 +355,8 @@ func (m MultilegOrderCancelReplace) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m MultilegOrderCancelReplace) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m MultilegOrderCancelReplace) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -424,8 +425,8 @@ func (m MultilegOrderCancelReplace) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m MultilegOrderCancelReplace) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m MultilegOrderCancelReplace) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -469,8 +470,8 @@ func (m MultilegOrderCancelReplace) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m MultilegOrderCancelReplace) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m MultilegOrderCancelReplace) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -519,8 +520,8 @@ func (m MultilegOrderCancelReplace) SetRegistID(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m MultilegOrderCancelReplace) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m MultilegOrderCancelReplace) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -694,8 +695,8 @@ func (m MultilegOrderCancelReplace) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m MultilegOrderCancelReplace) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m MultilegOrderCancelReplace) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetQtyType sets QtyType, Tag 854 @@ -749,18 +750,18 @@ func (m MultilegOrderCancelReplace) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m MultilegOrderCancelReplace) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m MultilegOrderCancelReplace) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m MultilegOrderCancelReplace) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m MultilegOrderCancelReplace) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m MultilegOrderCancelReplace) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m MultilegOrderCancelReplace) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -794,8 +795,8 @@ func (m MultilegOrderCancelReplace) SetInstrmtAssignmentMethod(v string) { } //SetSwapPoints sets SwapPoints, Tag 1069 -func (m MultilegOrderCancelReplace) SetSwapPoints(v float64) { - m.Set(field.NewSwapPoints(v)) +func (m MultilegOrderCancelReplace) SetSwapPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewSwapPoints(value, scale)) } //SetMaturityTime sets MaturityTime, Tag 1079 @@ -804,8 +805,8 @@ func (m MultilegOrderCancelReplace) SetMaturityTime(v string) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m MultilegOrderCancelReplace) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m MultilegOrderCancelReplace) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -819,28 +820,28 @@ func (m MultilegOrderCancelReplace) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m MultilegOrderCancelReplace) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m MultilegOrderCancelReplace) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m MultilegOrderCancelReplace) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m MultilegOrderCancelReplace) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m MultilegOrderCancelReplace) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m MultilegOrderCancelReplace) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m MultilegOrderCancelReplace) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m MultilegOrderCancelReplace) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m MultilegOrderCancelReplace) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m MultilegOrderCancelReplace) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -894,8 +895,8 @@ func (m MultilegOrderCancelReplace) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m MultilegOrderCancelReplace) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m MultilegOrderCancelReplace) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -934,8 +935,8 @@ func (m MultilegOrderCancelReplace) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m MultilegOrderCancelReplace) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m MultilegOrderCancelReplace) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -944,8 +945,8 @@ func (m MultilegOrderCancelReplace) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m MultilegOrderCancelReplace) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m MultilegOrderCancelReplace) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -964,18 +965,18 @@ func (m MultilegOrderCancelReplace) SetExDestinationIDSource(v string) { } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m MultilegOrderCancelReplace) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m MultilegOrderCancelReplace) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m MultilegOrderCancelReplace) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m MultilegOrderCancelReplace) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m MultilegOrderCancelReplace) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m MultilegOrderCancelReplace) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -999,8 +1000,8 @@ func (m MultilegOrderCancelReplace) SetSecurityXMLSchema(v string) { } //SetRiskFreeRate sets RiskFreeRate, Tag 1190 -func (m MultilegOrderCancelReplace) SetRiskFreeRate(v float64) { - m.Set(field.NewRiskFreeRate(v)) +func (m MultilegOrderCancelReplace) SetRiskFreeRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRiskFreeRate(value, scale)) } //SetPriceUnitOfMeasure sets PriceUnitOfMeasure, Tag 1191 @@ -1009,8 +1010,8 @@ func (m MultilegOrderCancelReplace) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m MultilegOrderCancelReplace) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m MultilegOrderCancelReplace) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -1024,8 +1025,8 @@ func (m MultilegOrderCancelReplace) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m MultilegOrderCancelReplace) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m MultilegOrderCancelReplace) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -1044,13 +1045,13 @@ func (m MultilegOrderCancelReplace) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m MultilegOrderCancelReplace) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m MultilegOrderCancelReplace) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m MultilegOrderCancelReplace) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m MultilegOrderCancelReplace) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -3351,8 +3352,8 @@ func (m NoAllocs) SetNoNested3PartyIDs(f NoNested3PartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -3952,13 +3953,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3992,8 +3993,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4007,13 +4008,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4052,8 +4053,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4097,13 +4098,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -4122,8 +4123,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4132,13 +4133,13 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -4187,8 +4188,8 @@ func (m NoLegs) SetLegSettlDate(v string) { } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //SetLegAllocID sets LegAllocID, Tag 1366 @@ -4197,18 +4198,18 @@ func (m NoLegs) SetLegAllocID(v string) { } //SetLegVolatility sets LegVolatility, Tag 1379 -func (m NoLegs) SetLegVolatility(v float64) { - m.Set(field.NewLegVolatility(v)) +func (m NoLegs) SetLegVolatility(value decimal.Decimal, scale int32) { + m.Set(field.NewLegVolatility(value, scale)) } //SetLegDividendYield sets LegDividendYield, Tag 1381 -func (m NoLegs) SetLegDividendYield(v float64) { - m.Set(field.NewLegDividendYield(v)) +func (m NoLegs) SetLegDividendYield(value decimal.Decimal, scale int32) { + m.Set(field.NewLegDividendYield(value, scale)) } //SetLegCurrencyRatio sets LegCurrencyRatio, Tag 1383 -func (m NoLegs) SetLegCurrencyRatio(v float64) { - m.Set(field.NewLegCurrencyRatio(v)) +func (m NoLegs) SetLegCurrencyRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCurrencyRatio(value, scale)) } //SetLegExecInst sets LegExecInst, Tag 1384 @@ -5120,8 +5121,8 @@ func (m NoLegAllocs) SetLegIndividualAllocID(v string) { } //SetLegAllocQty sets LegAllocQty, Tag 673 -func (m NoLegAllocs) SetLegAllocQty(v float64) { - m.Set(field.NewLegAllocQty(v)) +func (m NoLegAllocs) SetLegAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegAllocQty(value, scale)) } //SetLegAllocAcctIDSource sets LegAllocAcctIDSource, Tag 674 @@ -5639,13 +5640,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -5679,8 +5680,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -5694,13 +5695,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -5754,38 +5755,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -5794,8 +5795,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -5804,8 +5805,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -5824,8 +5825,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -5839,13 +5840,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -5869,8 +5870,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -5879,8 +5880,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -6902,8 +6903,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/newordercross/NewOrderCross.generated.go b/fix50sp1/newordercross/NewOrderCross.generated.go index d74f63598..04f124024 100644 --- a/fix50sp1/newordercross/NewOrderCross.generated.go +++ b/fix50sp1/newordercross/NewOrderCross.generated.go @@ -1,6 +1,7 @@ package newordercross import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -96,8 +97,8 @@ func (m NewOrderCross) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NewOrderCross) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NewOrderCross) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -141,8 +142,8 @@ func (m NewOrderCross) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m NewOrderCross) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NewOrderCross) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -161,13 +162,13 @@ func (m NewOrderCross) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NewOrderCross) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NewOrderCross) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NewOrderCross) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NewOrderCross) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -186,8 +187,8 @@ func (m NewOrderCross) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NewOrderCross) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NewOrderCross) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -211,8 +212,8 @@ func (m NewOrderCross) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NewOrderCross) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NewOrderCross) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -226,18 +227,18 @@ func (m NewOrderCross) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NewOrderCross) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NewOrderCross) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m NewOrderCross) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m NewOrderCross) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m NewOrderCross) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NewOrderCross) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -256,8 +257,8 @@ func (m NewOrderCross) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m NewOrderCross) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NewOrderCross) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -276,18 +277,18 @@ func (m NewOrderCross) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NewOrderCross) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NewOrderCross) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NewOrderCross) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NewOrderCross) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NewOrderCross) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NewOrderCross) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -301,8 +302,8 @@ func (m NewOrderCross) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NewOrderCross) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NewOrderCross) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -356,8 +357,8 @@ func (m NewOrderCross) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m NewOrderCross) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m NewOrderCross) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -466,8 +467,8 @@ func (m NewOrderCross) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NewOrderCross) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NewOrderCross) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -491,8 +492,8 @@ func (m NewOrderCross) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NewOrderCross) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NewOrderCross) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -586,8 +587,8 @@ func (m NewOrderCross) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m NewOrderCross) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m NewOrderCross) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -636,18 +637,18 @@ func (m NewOrderCross) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NewOrderCross) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NewOrderCross) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NewOrderCross) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NewOrderCross) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NewOrderCross) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NewOrderCross) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -686,8 +687,8 @@ func (m NewOrderCross) SetMaturityTime(v string) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m NewOrderCross) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m NewOrderCross) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -701,28 +702,28 @@ func (m NewOrderCross) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m NewOrderCross) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m NewOrderCross) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m NewOrderCross) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m NewOrderCross) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m NewOrderCross) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m NewOrderCross) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m NewOrderCross) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m NewOrderCross) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m NewOrderCross) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m NewOrderCross) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -771,8 +772,8 @@ func (m NewOrderCross) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m NewOrderCross) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m NewOrderCross) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -811,8 +812,8 @@ func (m NewOrderCross) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m NewOrderCross) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m NewOrderCross) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -821,8 +822,8 @@ func (m NewOrderCross) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m NewOrderCross) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m NewOrderCross) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -846,18 +847,18 @@ func (m NewOrderCross) SetExDestinationIDSource(v string) { } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m NewOrderCross) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m NewOrderCross) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NewOrderCross) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NewOrderCross) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NewOrderCross) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NewOrderCross) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -886,8 +887,8 @@ func (m NewOrderCross) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NewOrderCross) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NewOrderCross) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -901,8 +902,8 @@ func (m NewOrderCross) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m NewOrderCross) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m NewOrderCross) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -921,13 +922,13 @@ func (m NewOrderCross) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NewOrderCross) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NewOrderCross) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NewOrderCross) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NewOrderCross) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -3157,18 +3158,18 @@ func (m NoSides) SetQtyType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoSides) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoSides) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoSides) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoSides) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoSides) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoSides) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -3177,13 +3178,13 @@ func (m NoSides) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoSides) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoSides) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCommission sets Commission, Tag 12 -func (m NoSides) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoSides) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -3950,8 +3951,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -4301,13 +4302,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4341,8 +4342,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4356,13 +4357,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4401,8 +4402,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4446,13 +4447,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -4471,8 +4472,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4481,8 +4482,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -5222,13 +5223,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -5262,8 +5263,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -5277,13 +5278,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -5337,38 +5338,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -5377,8 +5378,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -5387,8 +5388,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -5407,8 +5408,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -5422,13 +5423,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -5452,8 +5453,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -5462,8 +5463,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -6485,8 +6486,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/neworderlist/NewOrderList.generated.go b/fix50sp1/neworderlist/NewOrderList.generated.go index 4922b7ce2..e1bec6857 100644 --- a/fix50sp1/neworderlist/NewOrderList.generated.go +++ b/fix50sp1/neworderlist/NewOrderList.generated.go @@ -1,6 +1,7 @@ package neworderlist import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -139,13 +140,13 @@ func (m NewOrderList) SetRegistID(v string) { } //SetAllowableOneSidednessPct sets AllowableOneSidednessPct, Tag 765 -func (m NewOrderList) SetAllowableOneSidednessPct(v float64) { - m.Set(field.NewAllowableOneSidednessPct(v)) +func (m NewOrderList) SetAllowableOneSidednessPct(value decimal.Decimal, scale int32) { + m.Set(field.NewAllowableOneSidednessPct(value, scale)) } //SetAllowableOneSidednessValue sets AllowableOneSidednessValue, Tag 766 -func (m NewOrderList) SetAllowableOneSidednessValue(v float64) { - m.Set(field.NewAllowableOneSidednessValue(v)) +func (m NewOrderList) SetAllowableOneSidednessValue(value decimal.Decimal, scale int32) { + m.Set(field.NewAllowableOneSidednessValue(value, scale)) } //SetAllowableOneSidednessCurr sets AllowableOneSidednessCurr, Tag 767 @@ -517,13 +518,13 @@ func (m NoOrders) SetExecInst(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NoOrders) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NoOrders) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NoOrders) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NoOrders) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -617,13 +618,13 @@ func (m NoOrders) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoOrders) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoOrders) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoOrders) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoOrders) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -657,8 +658,8 @@ func (m NoOrders) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoOrders) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoOrders) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -672,13 +673,13 @@ func (m NoOrders) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoOrders) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoOrders) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoOrders) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoOrders) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -767,18 +768,18 @@ func (m NoOrders) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoOrders) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoOrders) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoOrders) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoOrders) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoOrders) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoOrders) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -817,13 +818,13 @@ func (m NoOrders) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoOrders) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoOrders) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoOrders) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoOrders) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -852,8 +853,8 @@ func (m NoOrders) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoOrders) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoOrders) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -867,8 +868,8 @@ func (m NoOrders) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m NoOrders) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m NoOrders) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -882,13 +883,13 @@ func (m NoOrders) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoOrders) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoOrders) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoOrders) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoOrders) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -917,8 +918,8 @@ func (m NoOrders) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoOrders) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoOrders) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetSide sets Side, Tag 54 @@ -952,18 +953,18 @@ func (m NoOrders) SetQtyType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoOrders) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoOrders) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoOrders) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoOrders) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -972,8 +973,8 @@ func (m NoOrders) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoOrders) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoOrders) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -987,18 +988,18 @@ func (m NoOrders) SetPriceType(v int) { } //SetPrice sets Price, Tag 44 -func (m NoOrders) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoOrders) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetStopPx sets StopPx, Tag 99 -func (m NoOrders) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NoOrders) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m NoOrders) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoOrders) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -1017,8 +1018,8 @@ func (m NoOrders) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoOrders) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoOrders) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -1042,8 +1043,8 @@ func (m NoOrders) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoOrders) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoOrders) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -1057,8 +1058,8 @@ func (m NoOrders) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoOrders) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoOrders) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -1117,8 +1118,8 @@ func (m NoOrders) SetGTBookingInst(v int) { } //SetCommission sets Commission, Tag 12 -func (m NoOrders) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoOrders) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -1187,13 +1188,13 @@ func (m NoOrders) SetSettlDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoOrders) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoOrders) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetPrice2 sets Price2, Tag 640 -func (m NoOrders) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m NoOrders) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetPositionEffect sets PositionEffect, Tag 77 @@ -1207,13 +1208,13 @@ func (m NoOrders) SetCoveredOrUncovered(v int) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NoOrders) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NoOrders) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m NoOrders) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m NoOrders) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetPegMoveType sets PegMoveType, Tag 835 @@ -1272,8 +1273,8 @@ func (m NoOrders) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m NoOrders) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m NoOrders) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetDiscretionMoveType sets DiscretionMoveType, Tag 841 @@ -1312,8 +1313,8 @@ func (m NoOrders) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m NoOrders) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m NoOrders) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetDesignation sets Designation, Tag 494 @@ -1327,8 +1328,8 @@ func (m NoOrders) SetNoStrategyParameters(f NoStrategyParametersRepeatingGroup) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m NoOrders) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m NoOrders) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -1337,8 +1338,8 @@ func (m NoOrders) SetMaxPriceLevels(v int) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m NoOrders) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m NoOrders) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -1352,28 +1353,28 @@ func (m NoOrders) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m NoOrders) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m NoOrders) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m NoOrders) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m NoOrders) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m NoOrders) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m NoOrders) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m NoOrders) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m NoOrders) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m NoOrders) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m NoOrders) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //SetPriceProtectionScope sets PriceProtectionScope, Tag 1092 @@ -1392,8 +1393,8 @@ func (m NoOrders) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m NoOrders) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m NoOrders) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -1432,8 +1433,8 @@ func (m NoOrders) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m NoOrders) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m NoOrders) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -1442,8 +1443,8 @@ func (m NoOrders) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m NoOrders) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m NoOrders) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -4023,8 +4024,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -4406,8 +4407,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4732,13 +4733,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4772,8 +4773,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4787,13 +4788,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4847,38 +4848,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4887,8 +4888,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4897,8 +4898,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4917,8 +4918,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4932,13 +4933,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4962,8 +4963,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4972,8 +4973,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 diff --git a/fix50sp1/newordermultileg/NewOrderMultileg.generated.go b/fix50sp1/newordermultileg/NewOrderMultileg.generated.go index 66d098891..83875bf15 100644 --- a/fix50sp1/newordermultileg/NewOrderMultileg.generated.go +++ b/fix50sp1/newordermultileg/NewOrderMultileg.generated.go @@ -1,6 +1,7 @@ package newordermultileg import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -75,8 +76,8 @@ func (m NewOrderMultileg) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m NewOrderMultileg) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NewOrderMultileg) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -110,8 +111,8 @@ func (m NewOrderMultileg) SetIOIID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NewOrderMultileg) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NewOrderMultileg) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -120,8 +121,8 @@ func (m NewOrderMultileg) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NewOrderMultileg) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NewOrderMultileg) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -195,8 +196,8 @@ func (m NewOrderMultileg) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m NewOrderMultileg) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NewOrderMultileg) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -215,13 +216,13 @@ func (m NewOrderMultileg) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NewOrderMultileg) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NewOrderMultileg) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NewOrderMultileg) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NewOrderMultileg) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -250,13 +251,13 @@ func (m NewOrderMultileg) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NewOrderMultileg) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NewOrderMultileg) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NewOrderMultileg) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NewOrderMultileg) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -280,8 +281,8 @@ func (m NewOrderMultileg) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NewOrderMultileg) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NewOrderMultileg) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -300,18 +301,18 @@ func (m NewOrderMultileg) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NewOrderMultileg) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NewOrderMultileg) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m NewOrderMultileg) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m NewOrderMultileg) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NewOrderMultileg) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NewOrderMultileg) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -330,13 +331,13 @@ func (m NewOrderMultileg) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NewOrderMultileg) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NewOrderMultileg) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NewOrderMultileg) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NewOrderMultileg) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -345,8 +346,8 @@ func (m NewOrderMultileg) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NewOrderMultileg) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NewOrderMultileg) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -415,8 +416,8 @@ func (m NewOrderMultileg) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m NewOrderMultileg) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m NewOrderMultileg) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -460,8 +461,8 @@ func (m NewOrderMultileg) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NewOrderMultileg) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NewOrderMultileg) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -510,8 +511,8 @@ func (m NewOrderMultileg) SetRegistID(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NewOrderMultileg) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NewOrderMultileg) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -680,8 +681,8 @@ func (m NewOrderMultileg) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m NewOrderMultileg) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m NewOrderMultileg) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetQtyType sets QtyType, Tag 854 @@ -735,18 +736,18 @@ func (m NewOrderMultileg) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NewOrderMultileg) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NewOrderMultileg) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NewOrderMultileg) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NewOrderMultileg) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NewOrderMultileg) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NewOrderMultileg) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -780,8 +781,8 @@ func (m NewOrderMultileg) SetInstrmtAssignmentMethod(v string) { } //SetSwapPoints sets SwapPoints, Tag 1069 -func (m NewOrderMultileg) SetSwapPoints(v float64) { - m.Set(field.NewSwapPoints(v)) +func (m NewOrderMultileg) SetSwapPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewSwapPoints(value, scale)) } //SetMaturityTime sets MaturityTime, Tag 1079 @@ -800,8 +801,8 @@ func (m NewOrderMultileg) SetRefOrderIDSource(v string) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m NewOrderMultileg) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m NewOrderMultileg) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -815,28 +816,28 @@ func (m NewOrderMultileg) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m NewOrderMultileg) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m NewOrderMultileg) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m NewOrderMultileg) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m NewOrderMultileg) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m NewOrderMultileg) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m NewOrderMultileg) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m NewOrderMultileg) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m NewOrderMultileg) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m NewOrderMultileg) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m NewOrderMultileg) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -890,8 +891,8 @@ func (m NewOrderMultileg) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m NewOrderMultileg) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m NewOrderMultileg) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -930,8 +931,8 @@ func (m NewOrderMultileg) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m NewOrderMultileg) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m NewOrderMultileg) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -940,8 +941,8 @@ func (m NewOrderMultileg) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m NewOrderMultileg) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m NewOrderMultileg) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -960,18 +961,18 @@ func (m NewOrderMultileg) SetExDestinationIDSource(v string) { } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m NewOrderMultileg) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m NewOrderMultileg) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NewOrderMultileg) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NewOrderMultileg) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NewOrderMultileg) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NewOrderMultileg) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -995,8 +996,8 @@ func (m NewOrderMultileg) SetSecurityXMLSchema(v string) { } //SetRiskFreeRate sets RiskFreeRate, Tag 1190 -func (m NewOrderMultileg) SetRiskFreeRate(v float64) { - m.Set(field.NewRiskFreeRate(v)) +func (m NewOrderMultileg) SetRiskFreeRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRiskFreeRate(value, scale)) } //SetPriceUnitOfMeasure sets PriceUnitOfMeasure, Tag 1191 @@ -1005,8 +1006,8 @@ func (m NewOrderMultileg) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NewOrderMultileg) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NewOrderMultileg) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -1020,8 +1021,8 @@ func (m NewOrderMultileg) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m NewOrderMultileg) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m NewOrderMultileg) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -1040,13 +1041,13 @@ func (m NewOrderMultileg) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NewOrderMultileg) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NewOrderMultileg) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NewOrderMultileg) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NewOrderMultileg) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -3336,8 +3337,8 @@ func (m NoAllocs) SetNoNested3PartyIDs(f NoNested3PartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -3937,13 +3938,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3977,8 +3978,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3992,13 +3993,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4037,8 +4038,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4082,13 +4083,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -4107,8 +4108,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4117,13 +4118,13 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -4172,8 +4173,8 @@ func (m NoLegs) SetLegSettlDate(v string) { } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //SetLegAllocID sets LegAllocID, Tag 1366 @@ -4182,18 +4183,18 @@ func (m NoLegs) SetLegAllocID(v string) { } //SetLegVolatility sets LegVolatility, Tag 1379 -func (m NoLegs) SetLegVolatility(v float64) { - m.Set(field.NewLegVolatility(v)) +func (m NoLegs) SetLegVolatility(value decimal.Decimal, scale int32) { + m.Set(field.NewLegVolatility(value, scale)) } //SetLegDividendYield sets LegDividendYield, Tag 1381 -func (m NoLegs) SetLegDividendYield(v float64) { - m.Set(field.NewLegDividendYield(v)) +func (m NoLegs) SetLegDividendYield(value decimal.Decimal, scale int32) { + m.Set(field.NewLegDividendYield(value, scale)) } //SetLegCurrencyRatio sets LegCurrencyRatio, Tag 1383 -func (m NoLegs) SetLegCurrencyRatio(v float64) { - m.Set(field.NewLegCurrencyRatio(v)) +func (m NoLegs) SetLegCurrencyRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCurrencyRatio(value, scale)) } //SetLegExecInst sets LegExecInst, Tag 1384 @@ -5105,8 +5106,8 @@ func (m NoLegAllocs) SetLegIndividualAllocID(v string) { } //SetLegAllocQty sets LegAllocQty, Tag 673 -func (m NoLegAllocs) SetLegAllocQty(v float64) { - m.Set(field.NewLegAllocQty(v)) +func (m NoLegAllocs) SetLegAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegAllocQty(value, scale)) } //SetLegAllocAcctIDSource sets LegAllocAcctIDSource, Tag 674 @@ -5624,13 +5625,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -5664,8 +5665,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -5679,13 +5680,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -5739,38 +5740,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -5779,8 +5780,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -5789,8 +5790,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -5809,8 +5810,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -5824,13 +5825,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -5854,8 +5855,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -5864,8 +5865,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -6887,8 +6888,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/newordersingle/NewOrderSingle.generated.go b/fix50sp1/newordersingle/NewOrderSingle.generated.go index 06f5791f2..1a4638f4c 100644 --- a/fix50sp1/newordersingle/NewOrderSingle.generated.go +++ b/fix50sp1/newordersingle/NewOrderSingle.generated.go @@ -1,6 +1,7 @@ package newordersingle import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -75,8 +76,8 @@ func (m NewOrderSingle) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m NewOrderSingle) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NewOrderSingle) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -110,8 +111,8 @@ func (m NewOrderSingle) SetIOIID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NewOrderSingle) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NewOrderSingle) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -120,8 +121,8 @@ func (m NewOrderSingle) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NewOrderSingle) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NewOrderSingle) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -195,8 +196,8 @@ func (m NewOrderSingle) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m NewOrderSingle) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NewOrderSingle) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -215,13 +216,13 @@ func (m NewOrderSingle) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NewOrderSingle) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NewOrderSingle) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NewOrderSingle) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NewOrderSingle) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -250,13 +251,13 @@ func (m NewOrderSingle) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NewOrderSingle) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NewOrderSingle) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NewOrderSingle) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NewOrderSingle) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -270,8 +271,8 @@ func (m NewOrderSingle) SetEffectiveTime(v time.Time) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NewOrderSingle) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NewOrderSingle) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -290,8 +291,8 @@ func (m NewOrderSingle) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NewOrderSingle) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NewOrderSingle) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -310,18 +311,18 @@ func (m NewOrderSingle) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NewOrderSingle) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NewOrderSingle) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m NewOrderSingle) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m NewOrderSingle) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m NewOrderSingle) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NewOrderSingle) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -340,8 +341,8 @@ func (m NewOrderSingle) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m NewOrderSingle) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NewOrderSingle) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -360,13 +361,13 @@ func (m NewOrderSingle) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NewOrderSingle) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NewOrderSingle) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NewOrderSingle) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NewOrderSingle) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -375,8 +376,8 @@ func (m NewOrderSingle) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NewOrderSingle) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NewOrderSingle) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -390,8 +391,8 @@ func (m NewOrderSingle) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NewOrderSingle) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NewOrderSingle) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -460,8 +461,8 @@ func (m NewOrderSingle) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m NewOrderSingle) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m NewOrderSingle) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -505,8 +506,8 @@ func (m NewOrderSingle) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NewOrderSingle) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NewOrderSingle) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -555,8 +556,8 @@ func (m NewOrderSingle) SetRegistID(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NewOrderSingle) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NewOrderSingle) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -625,8 +626,8 @@ func (m NewOrderSingle) SetClearingFeeIndicator(v string) { } //SetPrice2 sets Price2, Tag 640 -func (m NewOrderSingle) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m NewOrderSingle) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -635,8 +636,8 @@ func (m NewOrderSingle) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NewOrderSingle) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NewOrderSingle) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -660,8 +661,8 @@ func (m NewOrderSingle) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NewOrderSingle) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NewOrderSingle) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -770,8 +771,8 @@ func (m NewOrderSingle) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m NewOrderSingle) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m NewOrderSingle) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetQtyType sets QtyType, Tag 854 @@ -805,8 +806,8 @@ func (m NewOrderSingle) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NewOrderSingle) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NewOrderSingle) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -865,18 +866,18 @@ func (m NewOrderSingle) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NewOrderSingle) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NewOrderSingle) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NewOrderSingle) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NewOrderSingle) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NewOrderSingle) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NewOrderSingle) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -950,8 +951,8 @@ func (m NewOrderSingle) SetRefOrderIDSource(v string) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m NewOrderSingle) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m NewOrderSingle) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -965,28 +966,28 @@ func (m NewOrderSingle) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m NewOrderSingle) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m NewOrderSingle) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m NewOrderSingle) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m NewOrderSingle) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m NewOrderSingle) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m NewOrderSingle) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m NewOrderSingle) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m NewOrderSingle) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m NewOrderSingle) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m NewOrderSingle) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -1040,8 +1041,8 @@ func (m NewOrderSingle) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m NewOrderSingle) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m NewOrderSingle) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -1080,8 +1081,8 @@ func (m NewOrderSingle) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m NewOrderSingle) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m NewOrderSingle) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -1090,8 +1091,8 @@ func (m NewOrderSingle) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m NewOrderSingle) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m NewOrderSingle) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -1110,18 +1111,18 @@ func (m NewOrderSingle) SetExDestinationIDSource(v string) { } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m NewOrderSingle) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m NewOrderSingle) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NewOrderSingle) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NewOrderSingle) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NewOrderSingle) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NewOrderSingle) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -1150,8 +1151,8 @@ func (m NewOrderSingle) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NewOrderSingle) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NewOrderSingle) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -1165,8 +1166,8 @@ func (m NewOrderSingle) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m NewOrderSingle) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m NewOrderSingle) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -1185,13 +1186,13 @@ func (m NewOrderSingle) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NewOrderSingle) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NewOrderSingle) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NewOrderSingle) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NewOrderSingle) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -3769,8 +3770,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -4430,13 +4431,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4470,8 +4471,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4485,13 +4486,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4545,38 +4546,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4585,8 +4586,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4595,8 +4596,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4615,8 +4616,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4630,13 +4631,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4660,8 +4661,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4670,8 +4671,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -5817,8 +5818,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/news/News.generated.go b/fix50sp1/news/News.generated.go index 8df6bdfa1..4785f540c 100644 --- a/fix50sp1/news/News.generated.go +++ b/fix50sp1/news/News.generated.go @@ -1,6 +1,7 @@ package news import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -495,13 +496,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -535,8 +536,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -550,13 +551,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -645,18 +646,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -695,13 +696,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -730,8 +731,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -745,8 +746,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m NoRelatedSym) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -760,13 +761,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -1682,8 +1683,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2091,13 +2092,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2131,8 +2132,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2146,13 +2147,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2191,8 +2192,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2236,13 +2237,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2261,8 +2262,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2271,8 +2272,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -3012,13 +3013,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3052,8 +3053,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3067,13 +3068,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3127,38 +3128,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3167,8 +3168,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3177,8 +3178,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3197,8 +3198,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3212,13 +3213,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3242,8 +3243,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3252,8 +3253,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 diff --git a/fix50sp1/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go b/fix50sp1/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go index 5e488e4a3..496992352 100644 --- a/fix50sp1/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go +++ b/fix50sp1/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go @@ -1,6 +1,7 @@ package ordercancelreplacerequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -75,8 +76,8 @@ func (m OrderCancelReplaceRequest) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m OrderCancelReplaceRequest) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m OrderCancelReplaceRequest) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -110,8 +111,8 @@ func (m OrderCancelReplaceRequest) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m OrderCancelReplaceRequest) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m OrderCancelReplaceRequest) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -125,8 +126,8 @@ func (m OrderCancelReplaceRequest) SetOrigClOrdID(v string) { } //SetPrice sets Price, Tag 44 -func (m OrderCancelReplaceRequest) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m OrderCancelReplaceRequest) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -200,8 +201,8 @@ func (m OrderCancelReplaceRequest) SetNoAllocs(f NoAllocsRepeatingGroup) { } //SetStopPx sets StopPx, Tag 99 -func (m OrderCancelReplaceRequest) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m OrderCancelReplaceRequest) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -220,13 +221,13 @@ func (m OrderCancelReplaceRequest) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m OrderCancelReplaceRequest) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m OrderCancelReplaceRequest) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m OrderCancelReplaceRequest) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m OrderCancelReplaceRequest) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -250,8 +251,8 @@ func (m OrderCancelReplaceRequest) SetExpireTime(v time.Time) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m OrderCancelReplaceRequest) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m OrderCancelReplaceRequest) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -265,8 +266,8 @@ func (m OrderCancelReplaceRequest) SetEffectiveTime(v time.Time) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m OrderCancelReplaceRequest) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m OrderCancelReplaceRequest) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -285,8 +286,8 @@ func (m OrderCancelReplaceRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderCancelReplaceRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderCancelReplaceRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -305,18 +306,18 @@ func (m OrderCancelReplaceRequest) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m OrderCancelReplaceRequest) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m OrderCancelReplaceRequest) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m OrderCancelReplaceRequest) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m OrderCancelReplaceRequest) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m OrderCancelReplaceRequest) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m OrderCancelReplaceRequest) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -335,8 +336,8 @@ func (m OrderCancelReplaceRequest) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderCancelReplaceRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderCancelReplaceRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -355,13 +356,13 @@ func (m OrderCancelReplaceRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderCancelReplaceRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderCancelReplaceRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderCancelReplaceRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderCancelReplaceRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -370,8 +371,8 @@ func (m OrderCancelReplaceRequest) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderCancelReplaceRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderCancelReplaceRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetYieldType sets YieldType, Tag 235 @@ -380,8 +381,8 @@ func (m OrderCancelReplaceRequest) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m OrderCancelReplaceRequest) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m OrderCancelReplaceRequest) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -450,8 +451,8 @@ func (m OrderCancelReplaceRequest) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m OrderCancelReplaceRequest) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m OrderCancelReplaceRequest) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -495,8 +496,8 @@ func (m OrderCancelReplaceRequest) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m OrderCancelReplaceRequest) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m OrderCancelReplaceRequest) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -545,8 +546,8 @@ func (m OrderCancelReplaceRequest) SetRegistID(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m OrderCancelReplaceRequest) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m OrderCancelReplaceRequest) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -620,8 +621,8 @@ func (m OrderCancelReplaceRequest) SetClearingFeeIndicator(v string) { } //SetPrice2 sets Price2, Tag 640 -func (m OrderCancelReplaceRequest) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m OrderCancelReplaceRequest) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -630,8 +631,8 @@ func (m OrderCancelReplaceRequest) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m OrderCancelReplaceRequest) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m OrderCancelReplaceRequest) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -655,8 +656,8 @@ func (m OrderCancelReplaceRequest) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m OrderCancelReplaceRequest) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m OrderCancelReplaceRequest) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -765,8 +766,8 @@ func (m OrderCancelReplaceRequest) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m OrderCancelReplaceRequest) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m OrderCancelReplaceRequest) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetQtyType sets QtyType, Tag 854 @@ -800,8 +801,8 @@ func (m OrderCancelReplaceRequest) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m OrderCancelReplaceRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m OrderCancelReplaceRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -860,18 +861,18 @@ func (m OrderCancelReplaceRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m OrderCancelReplaceRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m OrderCancelReplaceRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m OrderCancelReplaceRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m OrderCancelReplaceRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m OrderCancelReplaceRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m OrderCancelReplaceRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -935,8 +936,8 @@ func (m OrderCancelReplaceRequest) SetMaturityTime(v string) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m OrderCancelReplaceRequest) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m OrderCancelReplaceRequest) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -950,28 +951,28 @@ func (m OrderCancelReplaceRequest) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m OrderCancelReplaceRequest) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m OrderCancelReplaceRequest) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m OrderCancelReplaceRequest) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m OrderCancelReplaceRequest) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m OrderCancelReplaceRequest) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m OrderCancelReplaceRequest) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m OrderCancelReplaceRequest) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m OrderCancelReplaceRequest) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m OrderCancelReplaceRequest) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m OrderCancelReplaceRequest) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -1025,8 +1026,8 @@ func (m OrderCancelReplaceRequest) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m OrderCancelReplaceRequest) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m OrderCancelReplaceRequest) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -1065,8 +1066,8 @@ func (m OrderCancelReplaceRequest) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m OrderCancelReplaceRequest) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m OrderCancelReplaceRequest) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -1075,8 +1076,8 @@ func (m OrderCancelReplaceRequest) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m OrderCancelReplaceRequest) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m OrderCancelReplaceRequest) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -1095,18 +1096,18 @@ func (m OrderCancelReplaceRequest) SetExDestinationIDSource(v string) { } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m OrderCancelReplaceRequest) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m OrderCancelReplaceRequest) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m OrderCancelReplaceRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m OrderCancelReplaceRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m OrderCancelReplaceRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m OrderCancelReplaceRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -1135,8 +1136,8 @@ func (m OrderCancelReplaceRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m OrderCancelReplaceRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m OrderCancelReplaceRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -1150,8 +1151,8 @@ func (m OrderCancelReplaceRequest) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m OrderCancelReplaceRequest) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m OrderCancelReplaceRequest) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -1170,13 +1171,13 @@ func (m OrderCancelReplaceRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m OrderCancelReplaceRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m OrderCancelReplaceRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m OrderCancelReplaceRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m OrderCancelReplaceRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -3720,8 +3721,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -4321,13 +4322,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4361,8 +4362,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4376,13 +4377,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4436,38 +4437,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4476,8 +4477,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4486,8 +4487,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4506,8 +4507,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4521,13 +4522,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4551,8 +4552,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4561,8 +4562,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -5708,8 +5709,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/ordercancelrequest/OrderCancelRequest.generated.go b/fix50sp1/ordercancelrequest/OrderCancelRequest.generated.go index 031bcf4b4..48fe82e3a 100644 --- a/fix50sp1/ordercancelrequest/OrderCancelRequest.generated.go +++ b/fix50sp1/ordercancelrequest/OrderCancelRequest.generated.go @@ -1,6 +1,7 @@ package ordercancelrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -84,8 +85,8 @@ func (m OrderCancelRequest) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m OrderCancelRequest) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m OrderCancelRequest) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrigClOrdID sets OrigClOrdID, Tag 41 @@ -139,8 +140,8 @@ func (m OrderCancelRequest) SetSecurityDesc(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m OrderCancelRequest) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m OrderCancelRequest) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -159,8 +160,8 @@ func (m OrderCancelRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderCancelRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderCancelRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -174,8 +175,8 @@ func (m OrderCancelRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderCancelRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderCancelRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -194,18 +195,18 @@ func (m OrderCancelRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderCancelRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderCancelRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderCancelRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderCancelRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderCancelRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderCancelRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -284,8 +285,8 @@ func (m OrderCancelRequest) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m OrderCancelRequest) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m OrderCancelRequest) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -304,8 +305,8 @@ func (m OrderCancelRequest) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m OrderCancelRequest) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m OrderCancelRequest) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -394,8 +395,8 @@ func (m OrderCancelRequest) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m OrderCancelRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m OrderCancelRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -449,18 +450,18 @@ func (m OrderCancelRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m OrderCancelRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m OrderCancelRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m OrderCancelRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m OrderCancelRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m OrderCancelRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m OrderCancelRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -499,13 +500,13 @@ func (m OrderCancelRequest) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m OrderCancelRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m OrderCancelRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m OrderCancelRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m OrderCancelRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -534,8 +535,8 @@ func (m OrderCancelRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m OrderCancelRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m OrderCancelRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -549,8 +550,8 @@ func (m OrderCancelRequest) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m OrderCancelRequest) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m OrderCancelRequest) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -569,13 +570,13 @@ func (m OrderCancelRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m OrderCancelRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m OrderCancelRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m OrderCancelRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m OrderCancelRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -2058,13 +2059,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2098,8 +2099,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2113,13 +2114,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2173,38 +2174,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2213,8 +2214,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2223,8 +2224,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2243,8 +2244,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2258,13 +2259,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2288,8 +2289,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -2298,8 +2299,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -3321,8 +3322,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/ordermassactionreport/OrderMassActionReport.generated.go b/fix50sp1/ordermassactionreport/OrderMassActionReport.generated.go index 967415c67..86a46f188 100644 --- a/fix50sp1/ordermassactionreport/OrderMassActionReport.generated.go +++ b/fix50sp1/ordermassactionreport/OrderMassActionReport.generated.go @@ -1,6 +1,7 @@ package ordermassactionreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -130,8 +131,8 @@ func (m OrderMassActionReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderMassActionReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderMassActionReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -145,8 +146,8 @@ func (m OrderMassActionReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderMassActionReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderMassActionReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -165,18 +166,18 @@ func (m OrderMassActionReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderMassActionReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderMassActionReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderMassActionReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderMassActionReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderMassActionReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderMassActionReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -210,13 +211,13 @@ func (m OrderMassActionReport) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m OrderMassActionReport) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m OrderMassActionReport) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m OrderMassActionReport) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m OrderMassActionReport) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -285,8 +286,8 @@ func (m OrderMassActionReport) SetUnderlyingPutOrCall(v int) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m OrderMassActionReport) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m OrderMassActionReport) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -355,13 +356,13 @@ func (m OrderMassActionReport) SetEncodedUnderlyingSecurityDesc(v string) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m OrderMassActionReport) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m OrderMassActionReport) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m OrderMassActionReport) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m OrderMassActionReport) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoPartyIDs sets NoPartyIDs, Tag 453 @@ -490,8 +491,8 @@ func (m OrderMassActionReport) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m OrderMassActionReport) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m OrderMassActionReport) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -530,33 +531,33 @@ func (m OrderMassActionReport) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m OrderMassActionReport) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m OrderMassActionReport) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m OrderMassActionReport) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m OrderMassActionReport) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m OrderMassActionReport) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m OrderMassActionReport) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m OrderMassActionReport) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m OrderMassActionReport) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m OrderMassActionReport) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m OrderMassActionReport) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m OrderMassActionReport) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m OrderMassActionReport) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -585,18 +586,18 @@ func (m OrderMassActionReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m OrderMassActionReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m OrderMassActionReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m OrderMassActionReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m OrderMassActionReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m OrderMassActionReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m OrderMassActionReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -610,13 +611,13 @@ func (m OrderMassActionReport) SetNTPositionLimit(v int) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m OrderMassActionReport) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m OrderMassActionReport) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m OrderMassActionReport) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m OrderMassActionReport) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -655,8 +656,8 @@ func (m OrderMassActionReport) SetNoInstrumentParties(f NoInstrumentPartiesRepea } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m OrderMassActionReport) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m OrderMassActionReport) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetUnderlyingSettlMethod sets UnderlyingSettlMethod, Tag 1039 @@ -665,13 +666,13 @@ func (m OrderMassActionReport) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m OrderMassActionReport) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m OrderMassActionReport) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m OrderMassActionReport) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m OrderMassActionReport) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -695,13 +696,13 @@ func (m OrderMassActionReport) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m OrderMassActionReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m OrderMassActionReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m OrderMassActionReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m OrderMassActionReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -730,8 +731,8 @@ func (m OrderMassActionReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m OrderMassActionReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m OrderMassActionReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -745,8 +746,8 @@ func (m OrderMassActionReport) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m OrderMassActionReport) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m OrderMassActionReport) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -765,13 +766,13 @@ func (m OrderMassActionReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m OrderMassActionReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m OrderMassActionReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m OrderMassActionReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m OrderMassActionReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetUnderlyingMaturityTime sets UnderlyingMaturityTime, Tag 1213 @@ -840,8 +841,8 @@ func (m OrderMassActionReport) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m OrderMassActionReport) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m OrderMassActionReport) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -850,8 +851,8 @@ func (m OrderMassActionReport) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m OrderMassActionReport) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m OrderMassActionReport) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 @@ -2966,8 +2967,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/ordermassactionrequest/OrderMassActionRequest.generated.go b/fix50sp1/ordermassactionrequest/OrderMassActionRequest.generated.go index 2d7bc3f4d..06d94b650 100644 --- a/fix50sp1/ordermassactionrequest/OrderMassActionRequest.generated.go +++ b/fix50sp1/ordermassactionrequest/OrderMassActionRequest.generated.go @@ -1,6 +1,7 @@ package ordermassactionrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -130,8 +131,8 @@ func (m OrderMassActionRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderMassActionRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderMassActionRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -145,8 +146,8 @@ func (m OrderMassActionRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderMassActionRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderMassActionRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -165,18 +166,18 @@ func (m OrderMassActionRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderMassActionRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderMassActionRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderMassActionRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderMassActionRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderMassActionRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderMassActionRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -210,13 +211,13 @@ func (m OrderMassActionRequest) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m OrderMassActionRequest) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m OrderMassActionRequest) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m OrderMassActionRequest) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m OrderMassActionRequest) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -285,8 +286,8 @@ func (m OrderMassActionRequest) SetUnderlyingPutOrCall(v int) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m OrderMassActionRequest) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m OrderMassActionRequest) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -355,13 +356,13 @@ func (m OrderMassActionRequest) SetEncodedUnderlyingSecurityDesc(v string) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m OrderMassActionRequest) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m OrderMassActionRequest) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m OrderMassActionRequest) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m OrderMassActionRequest) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoPartyIDs sets NoPartyIDs, Tag 453 @@ -480,8 +481,8 @@ func (m OrderMassActionRequest) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m OrderMassActionRequest) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m OrderMassActionRequest) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -520,33 +521,33 @@ func (m OrderMassActionRequest) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m OrderMassActionRequest) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m OrderMassActionRequest) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m OrderMassActionRequest) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m OrderMassActionRequest) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m OrderMassActionRequest) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m OrderMassActionRequest) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m OrderMassActionRequest) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m OrderMassActionRequest) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m OrderMassActionRequest) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m OrderMassActionRequest) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m OrderMassActionRequest) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m OrderMassActionRequest) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -575,18 +576,18 @@ func (m OrderMassActionRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m OrderMassActionRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m OrderMassActionRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m OrderMassActionRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m OrderMassActionRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m OrderMassActionRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m OrderMassActionRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -600,13 +601,13 @@ func (m OrderMassActionRequest) SetNTPositionLimit(v int) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m OrderMassActionRequest) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m OrderMassActionRequest) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m OrderMassActionRequest) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m OrderMassActionRequest) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -645,8 +646,8 @@ func (m OrderMassActionRequest) SetNoInstrumentParties(f NoInstrumentPartiesRepe } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m OrderMassActionRequest) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m OrderMassActionRequest) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetUnderlyingSettlMethod sets UnderlyingSettlMethod, Tag 1039 @@ -655,13 +656,13 @@ func (m OrderMassActionRequest) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m OrderMassActionRequest) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m OrderMassActionRequest) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m OrderMassActionRequest) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m OrderMassActionRequest) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -685,13 +686,13 @@ func (m OrderMassActionRequest) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m OrderMassActionRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m OrderMassActionRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m OrderMassActionRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m OrderMassActionRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -720,8 +721,8 @@ func (m OrderMassActionRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m OrderMassActionRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m OrderMassActionRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -735,8 +736,8 @@ func (m OrderMassActionRequest) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m OrderMassActionRequest) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m OrderMassActionRequest) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -755,13 +756,13 @@ func (m OrderMassActionRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m OrderMassActionRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m OrderMassActionRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m OrderMassActionRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m OrderMassActionRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetUnderlyingMaturityTime sets UnderlyingMaturityTime, Tag 1213 @@ -810,8 +811,8 @@ func (m OrderMassActionRequest) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m OrderMassActionRequest) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m OrderMassActionRequest) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -820,8 +821,8 @@ func (m OrderMassActionRequest) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m OrderMassActionRequest) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m OrderMassActionRequest) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 @@ -2792,8 +2793,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/ordermasscancelreport/OrderMassCancelReport.generated.go b/fix50sp1/ordermasscancelreport/OrderMassCancelReport.generated.go index 2dff39dd3..cbfe2b5f3 100644 --- a/fix50sp1/ordermasscancelreport/OrderMassCancelReport.generated.go +++ b/fix50sp1/ordermasscancelreport/OrderMassCancelReport.generated.go @@ -1,6 +1,7 @@ package ordermasscancelreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -140,8 +141,8 @@ func (m OrderMassCancelReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderMassCancelReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderMassCancelReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -155,8 +156,8 @@ func (m OrderMassCancelReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderMassCancelReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderMassCancelReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -175,18 +176,18 @@ func (m OrderMassCancelReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderMassCancelReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderMassCancelReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderMassCancelReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderMassCancelReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderMassCancelReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderMassCancelReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -220,13 +221,13 @@ func (m OrderMassCancelReport) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m OrderMassCancelReport) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m OrderMassCancelReport) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m OrderMassCancelReport) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m OrderMassCancelReport) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -295,8 +296,8 @@ func (m OrderMassCancelReport) SetUnderlyingPutOrCall(v int) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m OrderMassCancelReport) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m OrderMassCancelReport) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -365,13 +366,13 @@ func (m OrderMassCancelReport) SetEncodedUnderlyingSecurityDesc(v string) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m OrderMassCancelReport) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m OrderMassCancelReport) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m OrderMassCancelReport) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m OrderMassCancelReport) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoPartyIDs sets NoPartyIDs, Tag 453 @@ -515,8 +516,8 @@ func (m OrderMassCancelReport) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m OrderMassCancelReport) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m OrderMassCancelReport) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -555,33 +556,33 @@ func (m OrderMassCancelReport) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m OrderMassCancelReport) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m OrderMassCancelReport) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m OrderMassCancelReport) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m OrderMassCancelReport) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m OrderMassCancelReport) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m OrderMassCancelReport) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m OrderMassCancelReport) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m OrderMassCancelReport) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m OrderMassCancelReport) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m OrderMassCancelReport) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m OrderMassCancelReport) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m OrderMassCancelReport) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -610,18 +611,18 @@ func (m OrderMassCancelReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m OrderMassCancelReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m OrderMassCancelReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m OrderMassCancelReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m OrderMassCancelReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m OrderMassCancelReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m OrderMassCancelReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -635,13 +636,13 @@ func (m OrderMassCancelReport) SetNTPositionLimit(v int) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m OrderMassCancelReport) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m OrderMassCancelReport) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m OrderMassCancelReport) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m OrderMassCancelReport) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -680,8 +681,8 @@ func (m OrderMassCancelReport) SetNoInstrumentParties(f NoInstrumentPartiesRepea } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m OrderMassCancelReport) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m OrderMassCancelReport) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetUnderlyingSettlMethod sets UnderlyingSettlMethod, Tag 1039 @@ -690,13 +691,13 @@ func (m OrderMassCancelReport) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m OrderMassCancelReport) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m OrderMassCancelReport) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m OrderMassCancelReport) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m OrderMassCancelReport) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -720,13 +721,13 @@ func (m OrderMassCancelReport) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m OrderMassCancelReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m OrderMassCancelReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m OrderMassCancelReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m OrderMassCancelReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -755,8 +756,8 @@ func (m OrderMassCancelReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m OrderMassCancelReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m OrderMassCancelReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -770,8 +771,8 @@ func (m OrderMassCancelReport) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m OrderMassCancelReport) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m OrderMassCancelReport) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -790,13 +791,13 @@ func (m OrderMassCancelReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m OrderMassCancelReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m OrderMassCancelReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m OrderMassCancelReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m OrderMassCancelReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetUnderlyingMaturityTime sets UnderlyingMaturityTime, Tag 1213 @@ -845,8 +846,8 @@ func (m OrderMassCancelReport) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m OrderMassCancelReport) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m OrderMassCancelReport) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -855,8 +856,8 @@ func (m OrderMassCancelReport) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m OrderMassCancelReport) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m OrderMassCancelReport) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 @@ -2982,8 +2983,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/ordermasscancelrequest/OrderMassCancelRequest.generated.go b/fix50sp1/ordermasscancelrequest/OrderMassCancelRequest.generated.go index 683b234a7..f4ac00708 100644 --- a/fix50sp1/ordermasscancelrequest/OrderMassCancelRequest.generated.go +++ b/fix50sp1/ordermasscancelrequest/OrderMassCancelRequest.generated.go @@ -1,6 +1,7 @@ package ordermasscancelrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -129,8 +130,8 @@ func (m OrderMassCancelRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderMassCancelRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderMassCancelRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -144,8 +145,8 @@ func (m OrderMassCancelRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderMassCancelRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderMassCancelRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -164,18 +165,18 @@ func (m OrderMassCancelRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderMassCancelRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderMassCancelRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderMassCancelRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderMassCancelRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderMassCancelRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderMassCancelRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -209,13 +210,13 @@ func (m OrderMassCancelRequest) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m OrderMassCancelRequest) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m OrderMassCancelRequest) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m OrderMassCancelRequest) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m OrderMassCancelRequest) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -284,8 +285,8 @@ func (m OrderMassCancelRequest) SetUnderlyingPutOrCall(v int) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m OrderMassCancelRequest) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m OrderMassCancelRequest) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -354,13 +355,13 @@ func (m OrderMassCancelRequest) SetEncodedUnderlyingSecurityDesc(v string) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m OrderMassCancelRequest) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m OrderMassCancelRequest) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m OrderMassCancelRequest) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m OrderMassCancelRequest) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoPartyIDs sets NoPartyIDs, Tag 453 @@ -484,8 +485,8 @@ func (m OrderMassCancelRequest) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m OrderMassCancelRequest) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m OrderMassCancelRequest) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -524,33 +525,33 @@ func (m OrderMassCancelRequest) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m OrderMassCancelRequest) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m OrderMassCancelRequest) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m OrderMassCancelRequest) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m OrderMassCancelRequest) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m OrderMassCancelRequest) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m OrderMassCancelRequest) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m OrderMassCancelRequest) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m OrderMassCancelRequest) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m OrderMassCancelRequest) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m OrderMassCancelRequest) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m OrderMassCancelRequest) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m OrderMassCancelRequest) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -579,18 +580,18 @@ func (m OrderMassCancelRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m OrderMassCancelRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m OrderMassCancelRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m OrderMassCancelRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m OrderMassCancelRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m OrderMassCancelRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m OrderMassCancelRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -604,13 +605,13 @@ func (m OrderMassCancelRequest) SetNTPositionLimit(v int) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m OrderMassCancelRequest) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m OrderMassCancelRequest) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m OrderMassCancelRequest) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m OrderMassCancelRequest) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -649,8 +650,8 @@ func (m OrderMassCancelRequest) SetNoInstrumentParties(f NoInstrumentPartiesRepe } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m OrderMassCancelRequest) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m OrderMassCancelRequest) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetUnderlyingSettlMethod sets UnderlyingSettlMethod, Tag 1039 @@ -659,13 +660,13 @@ func (m OrderMassCancelRequest) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m OrderMassCancelRequest) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m OrderMassCancelRequest) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m OrderMassCancelRequest) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m OrderMassCancelRequest) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -689,13 +690,13 @@ func (m OrderMassCancelRequest) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m OrderMassCancelRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m OrderMassCancelRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m OrderMassCancelRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m OrderMassCancelRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -724,8 +725,8 @@ func (m OrderMassCancelRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m OrderMassCancelRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m OrderMassCancelRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -739,8 +740,8 @@ func (m OrderMassCancelRequest) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m OrderMassCancelRequest) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m OrderMassCancelRequest) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -759,13 +760,13 @@ func (m OrderMassCancelRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m OrderMassCancelRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m OrderMassCancelRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m OrderMassCancelRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m OrderMassCancelRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetUnderlyingMaturityTime sets UnderlyingMaturityTime, Tag 1213 @@ -804,8 +805,8 @@ func (m OrderMassCancelRequest) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m OrderMassCancelRequest) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m OrderMassCancelRequest) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -814,8 +815,8 @@ func (m OrderMassCancelRequest) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m OrderMassCancelRequest) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m OrderMassCancelRequest) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 @@ -2775,8 +2776,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/ordermassstatusrequest/OrderMassStatusRequest.generated.go b/fix50sp1/ordermassstatusrequest/OrderMassStatusRequest.generated.go index 89fdf53fc..56ff3719d 100644 --- a/fix50sp1/ordermassstatusrequest/OrderMassStatusRequest.generated.go +++ b/fix50sp1/ordermassstatusrequest/OrderMassStatusRequest.generated.go @@ -1,6 +1,7 @@ package ordermassstatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -118,8 +119,8 @@ func (m OrderMassStatusRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderMassStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderMassStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -133,8 +134,8 @@ func (m OrderMassStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderMassStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderMassStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -153,18 +154,18 @@ func (m OrderMassStatusRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderMassStatusRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderMassStatusRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderMassStatusRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderMassStatusRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderMassStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderMassStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -198,13 +199,13 @@ func (m OrderMassStatusRequest) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m OrderMassStatusRequest) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m OrderMassStatusRequest) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m OrderMassStatusRequest) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m OrderMassStatusRequest) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -273,8 +274,8 @@ func (m OrderMassStatusRequest) SetUnderlyingPutOrCall(v int) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m OrderMassStatusRequest) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m OrderMassStatusRequest) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -333,13 +334,13 @@ func (m OrderMassStatusRequest) SetEncodedUnderlyingSecurityDesc(v string) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m OrderMassStatusRequest) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m OrderMassStatusRequest) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m OrderMassStatusRequest) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m OrderMassStatusRequest) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoPartyIDs sets NoPartyIDs, Tag 453 @@ -468,8 +469,8 @@ func (m OrderMassStatusRequest) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m OrderMassStatusRequest) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m OrderMassStatusRequest) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -508,33 +509,33 @@ func (m OrderMassStatusRequest) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m OrderMassStatusRequest) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m OrderMassStatusRequest) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m OrderMassStatusRequest) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m OrderMassStatusRequest) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m OrderMassStatusRequest) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m OrderMassStatusRequest) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m OrderMassStatusRequest) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m OrderMassStatusRequest) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m OrderMassStatusRequest) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m OrderMassStatusRequest) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m OrderMassStatusRequest) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m OrderMassStatusRequest) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -563,18 +564,18 @@ func (m OrderMassStatusRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m OrderMassStatusRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m OrderMassStatusRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m OrderMassStatusRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m OrderMassStatusRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m OrderMassStatusRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m OrderMassStatusRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -588,13 +589,13 @@ func (m OrderMassStatusRequest) SetNTPositionLimit(v int) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m OrderMassStatusRequest) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m OrderMassStatusRequest) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m OrderMassStatusRequest) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m OrderMassStatusRequest) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -633,8 +634,8 @@ func (m OrderMassStatusRequest) SetNoInstrumentParties(f NoInstrumentPartiesRepe } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m OrderMassStatusRequest) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m OrderMassStatusRequest) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetUnderlyingSettlMethod sets UnderlyingSettlMethod, Tag 1039 @@ -643,13 +644,13 @@ func (m OrderMassStatusRequest) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m OrderMassStatusRequest) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m OrderMassStatusRequest) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m OrderMassStatusRequest) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m OrderMassStatusRequest) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -673,13 +674,13 @@ func (m OrderMassStatusRequest) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m OrderMassStatusRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m OrderMassStatusRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m OrderMassStatusRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m OrderMassStatusRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -708,8 +709,8 @@ func (m OrderMassStatusRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m OrderMassStatusRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m OrderMassStatusRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -723,8 +724,8 @@ func (m OrderMassStatusRequest) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m OrderMassStatusRequest) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m OrderMassStatusRequest) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -743,13 +744,13 @@ func (m OrderMassStatusRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m OrderMassStatusRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m OrderMassStatusRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m OrderMassStatusRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m OrderMassStatusRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetUnderlyingMaturityTime sets UnderlyingMaturityTime, Tag 1213 @@ -778,8 +779,8 @@ func (m OrderMassStatusRequest) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m OrderMassStatusRequest) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m OrderMassStatusRequest) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -788,8 +789,8 @@ func (m OrderMassStatusRequest) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m OrderMassStatusRequest) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m OrderMassStatusRequest) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetAccount gets Account, Tag 1 @@ -2694,8 +2695,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/orderstatusrequest/OrderStatusRequest.generated.go b/fix50sp1/orderstatusrequest/OrderStatusRequest.generated.go index bfe5254f8..4b32f55c7 100644 --- a/fix50sp1/orderstatusrequest/OrderStatusRequest.generated.go +++ b/fix50sp1/orderstatusrequest/OrderStatusRequest.generated.go @@ -1,6 +1,7 @@ package orderstatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -127,8 +128,8 @@ func (m OrderStatusRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -142,8 +143,8 @@ func (m OrderStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -162,18 +163,18 @@ func (m OrderStatusRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderStatusRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderStatusRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderStatusRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderStatusRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -327,8 +328,8 @@ func (m OrderStatusRequest) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m OrderStatusRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m OrderStatusRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -382,18 +383,18 @@ func (m OrderStatusRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m OrderStatusRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m OrderStatusRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m OrderStatusRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m OrderStatusRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m OrderStatusRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m OrderStatusRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -432,13 +433,13 @@ func (m OrderStatusRequest) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m OrderStatusRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m OrderStatusRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m OrderStatusRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m OrderStatusRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -467,8 +468,8 @@ func (m OrderStatusRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m OrderStatusRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m OrderStatusRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -482,8 +483,8 @@ func (m OrderStatusRequest) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m OrderStatusRequest) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m OrderStatusRequest) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -502,13 +503,13 @@ func (m OrderStatusRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m OrderStatusRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m OrderStatusRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m OrderStatusRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m OrderStatusRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -1848,13 +1849,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1888,8 +1889,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1903,13 +1904,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -1963,38 +1964,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2003,8 +2004,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2013,8 +2014,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2033,8 +2034,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2048,13 +2049,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2078,8 +2079,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -2088,8 +2089,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -3111,8 +3112,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/positionmaintenancereport/PositionMaintenanceReport.generated.go b/fix50sp1/positionmaintenancereport/PositionMaintenanceReport.generated.go index 09ae8b89f..b809a0356 100644 --- a/fix50sp1/positionmaintenancereport/PositionMaintenanceReport.generated.go +++ b/fix50sp1/positionmaintenancereport/PositionMaintenanceReport.generated.go @@ -1,6 +1,7 @@ package positionmaintenancereport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -136,8 +137,8 @@ func (m PositionMaintenanceReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m PositionMaintenanceReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m PositionMaintenanceReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -151,8 +152,8 @@ func (m PositionMaintenanceReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m PositionMaintenanceReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m PositionMaintenanceReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -171,18 +172,18 @@ func (m PositionMaintenanceReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m PositionMaintenanceReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m PositionMaintenanceReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m PositionMaintenanceReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m PositionMaintenanceReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m PositionMaintenanceReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m PositionMaintenanceReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -396,8 +397,8 @@ func (m PositionMaintenanceReport) SetSecuritySubType(v string) { } //SetThresholdAmount sets ThresholdAmount, Tag 834 -func (m PositionMaintenanceReport) SetThresholdAmount(v float64) { - m.Set(field.NewThresholdAmount(v)) +func (m PositionMaintenanceReport) SetThresholdAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewThresholdAmount(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -441,18 +442,18 @@ func (m PositionMaintenanceReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m PositionMaintenanceReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m PositionMaintenanceReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m PositionMaintenanceReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m PositionMaintenanceReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m PositionMaintenanceReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m PositionMaintenanceReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -491,13 +492,13 @@ func (m PositionMaintenanceReport) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m PositionMaintenanceReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m PositionMaintenanceReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m PositionMaintenanceReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m PositionMaintenanceReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -526,8 +527,8 @@ func (m PositionMaintenanceReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m PositionMaintenanceReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m PositionMaintenanceReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -541,8 +542,8 @@ func (m PositionMaintenanceReport) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m PositionMaintenanceReport) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m PositionMaintenanceReport) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -561,13 +562,13 @@ func (m PositionMaintenanceReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m PositionMaintenanceReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m PositionMaintenanceReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m PositionMaintenanceReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m PositionMaintenanceReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -2092,13 +2093,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2132,8 +2133,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2147,13 +2148,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2192,8 +2193,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2237,13 +2238,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2262,8 +2263,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2272,8 +2273,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -2943,13 +2944,13 @@ func (m NoPositions) SetPosType(v string) { } //SetLongQty sets LongQty, Tag 704 -func (m NoPositions) SetLongQty(v float64) { - m.Set(field.NewLongQty(v)) +func (m NoPositions) SetLongQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLongQty(value, scale)) } //SetShortQty sets ShortQty, Tag 705 -func (m NoPositions) SetShortQty(v float64) { - m.Set(field.NewShortQty(v)) +func (m NoPositions) SetShortQty(value decimal.Decimal, scale int32) { + m.Set(field.NewShortQty(value, scale)) } //SetPosQtyStatus sets PosQtyStatus, Tag 706 @@ -3291,13 +3292,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3331,8 +3332,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3346,13 +3347,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3406,38 +3407,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3446,8 +3447,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3456,8 +3457,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3476,8 +3477,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3491,13 +3492,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3521,8 +3522,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3531,8 +3532,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4549,8 +4550,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -4630,8 +4631,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/positionmaintenancerequest/PositionMaintenanceRequest.generated.go b/fix50sp1/positionmaintenancerequest/PositionMaintenanceRequest.generated.go index a41235d80..23dfd54d7 100644 --- a/fix50sp1/positionmaintenancerequest/PositionMaintenanceRequest.generated.go +++ b/fix50sp1/positionmaintenancerequest/PositionMaintenanceRequest.generated.go @@ -1,6 +1,7 @@ package positionmaintenancerequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -134,8 +135,8 @@ func (m PositionMaintenanceRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m PositionMaintenanceRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m PositionMaintenanceRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -149,8 +150,8 @@ func (m PositionMaintenanceRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m PositionMaintenanceRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m PositionMaintenanceRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -169,18 +170,18 @@ func (m PositionMaintenanceRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m PositionMaintenanceRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m PositionMaintenanceRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m PositionMaintenanceRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m PositionMaintenanceRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m PositionMaintenanceRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m PositionMaintenanceRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -379,8 +380,8 @@ func (m PositionMaintenanceRequest) SetSecuritySubType(v string) { } //SetThresholdAmount sets ThresholdAmount, Tag 834 -func (m PositionMaintenanceRequest) SetThresholdAmount(v float64) { - m.Set(field.NewThresholdAmount(v)) +func (m PositionMaintenanceRequest) SetThresholdAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewThresholdAmount(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -424,18 +425,18 @@ func (m PositionMaintenanceRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m PositionMaintenanceRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m PositionMaintenanceRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m PositionMaintenanceRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m PositionMaintenanceRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m PositionMaintenanceRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m PositionMaintenanceRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -474,13 +475,13 @@ func (m PositionMaintenanceRequest) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m PositionMaintenanceRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m PositionMaintenanceRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m PositionMaintenanceRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m PositionMaintenanceRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -509,8 +510,8 @@ func (m PositionMaintenanceRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m PositionMaintenanceRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m PositionMaintenanceRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -524,8 +525,8 @@ func (m PositionMaintenanceRequest) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m PositionMaintenanceRequest) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m PositionMaintenanceRequest) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -544,13 +545,13 @@ func (m PositionMaintenanceRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m PositionMaintenanceRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m PositionMaintenanceRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m PositionMaintenanceRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m PositionMaintenanceRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -2042,13 +2043,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2082,8 +2083,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2097,13 +2098,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2142,8 +2143,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2187,13 +2188,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2212,8 +2213,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2222,8 +2223,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -2893,13 +2894,13 @@ func (m NoPositions) SetPosType(v string) { } //SetLongQty sets LongQty, Tag 704 -func (m NoPositions) SetLongQty(v float64) { - m.Set(field.NewLongQty(v)) +func (m NoPositions) SetLongQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLongQty(value, scale)) } //SetShortQty sets ShortQty, Tag 705 -func (m NoPositions) SetShortQty(v float64) { - m.Set(field.NewShortQty(v)) +func (m NoPositions) SetShortQty(value decimal.Decimal, scale int32) { + m.Set(field.NewShortQty(value, scale)) } //SetPosQtyStatus sets PosQtyStatus, Tag 706 @@ -3241,13 +3242,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3281,8 +3282,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3296,13 +3297,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3356,38 +3357,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3396,8 +3397,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3406,8 +3407,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3426,8 +3427,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3441,13 +3442,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3471,8 +3472,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3481,8 +3482,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4499,8 +4500,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -4580,8 +4581,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/positionreport/PositionReport.generated.go b/fix50sp1/positionreport/PositionReport.generated.go index 310138a48..c18c1a2ba 100644 --- a/fix50sp1/positionreport/PositionReport.generated.go +++ b/fix50sp1/positionreport/PositionReport.generated.go @@ -1,6 +1,7 @@ package positionreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -128,8 +129,8 @@ func (m PositionReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m PositionReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m PositionReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -143,8 +144,8 @@ func (m PositionReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m PositionReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m PositionReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -163,18 +164,18 @@ func (m PositionReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m PositionReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m PositionReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m PositionReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m PositionReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m PositionReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m PositionReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -368,8 +369,8 @@ func (m PositionReport) SetPosReqResult(v int) { } //SetSettlPrice sets SettlPrice, Tag 730 -func (m PositionReport) SetSettlPrice(v float64) { - m.Set(field.NewSettlPrice(v)) +func (m PositionReport) SetSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlPrice(value, scale)) } //SetSettlPriceType sets SettlPriceType, Tag 731 @@ -378,8 +379,8 @@ func (m PositionReport) SetSettlPriceType(v int) { } //SetPriorSettlPrice sets PriorSettlPrice, Tag 734 -func (m PositionReport) SetPriorSettlPrice(v float64) { - m.Set(field.NewPriorSettlPrice(v)) +func (m PositionReport) SetPriorSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPriorSettlPrice(value, scale)) } //SetDeliveryDate sets DeliveryDate, Tag 743 @@ -438,18 +439,18 @@ func (m PositionReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m PositionReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m PositionReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m PositionReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m PositionReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m PositionReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m PositionReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -493,13 +494,13 @@ func (m PositionReport) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m PositionReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m PositionReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m PositionReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m PositionReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -538,8 +539,8 @@ func (m PositionReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m PositionReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m PositionReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -553,8 +554,8 @@ func (m PositionReport) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m PositionReport) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m PositionReport) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -573,13 +574,13 @@ func (m PositionReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m PositionReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m PositionReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m PositionReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m PositionReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -2108,13 +2109,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2148,8 +2149,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2163,13 +2164,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2208,8 +2209,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2253,13 +2254,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2278,8 +2279,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2288,8 +2289,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -2959,13 +2960,13 @@ func (m NoPositions) SetPosType(v string) { } //SetLongQty sets LongQty, Tag 704 -func (m NoPositions) SetLongQty(v float64) { - m.Set(field.NewLongQty(v)) +func (m NoPositions) SetLongQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLongQty(value, scale)) } //SetShortQty sets ShortQty, Tag 705 -func (m NoPositions) SetShortQty(v float64) { - m.Set(field.NewShortQty(v)) +func (m NoPositions) SetShortQty(value decimal.Decimal, scale int32) { + m.Set(field.NewShortQty(value, scale)) } //SetPosQtyStatus sets PosQtyStatus, Tag 706 @@ -3307,13 +3308,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3347,8 +3348,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3362,13 +3363,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3422,38 +3423,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3462,8 +3463,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3472,8 +3473,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3492,8 +3493,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3507,13 +3508,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3537,8 +3538,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3547,13 +3548,13 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingSettlPrice sets UnderlyingSettlPrice, Tag 732 -func (m NoUnderlyings) SetUnderlyingSettlPrice(v float64) { - m.Set(field.NewUnderlyingSettlPrice(v)) +func (m NoUnderlyings) SetUnderlyingSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingSettlPrice(value, scale)) } //SetUnderlyingSettlPriceType sets UnderlyingSettlPriceType, Tag 733 @@ -3567,8 +3568,8 @@ func (m NoUnderlyings) SetNoUnderlyingAmounts(f NoUnderlyingAmountsRepeatingGrou } //SetUnderlyingDeliveryAmount sets UnderlyingDeliveryAmount, Tag 1037 -func (m NoUnderlyings) SetUnderlyingDeliveryAmount(v float64) { - m.Set(field.NewUnderlyingDeliveryAmount(v)) +func (m NoUnderlyings) SetUnderlyingDeliveryAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDeliveryAmount(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4602,13 +4603,13 @@ type NoUnderlyingAmounts struct { } //SetUnderlyingPayAmount sets UnderlyingPayAmount, Tag 985 -func (m NoUnderlyingAmounts) SetUnderlyingPayAmount(v float64) { - m.Set(field.NewUnderlyingPayAmount(v)) +func (m NoUnderlyingAmounts) SetUnderlyingPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPayAmount(value, scale)) } //SetUnderlyingCollectAmount sets UnderlyingCollectAmount, Tag 986 -func (m NoUnderlyingAmounts) SetUnderlyingCollectAmount(v float64) { - m.Set(field.NewUnderlyingCollectAmount(v)) +func (m NoUnderlyingAmounts) SetUnderlyingCollectAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCollectAmount(value, scale)) } //SetUnderlyingSettlementDate sets UnderlyingSettlementDate, Tag 987 @@ -4722,8 +4723,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -4803,8 +4804,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/quote/Quote.generated.go b/fix50sp1/quote/Quote.generated.go index ca0b107b8..8d67ccfdf 100644 --- a/fix50sp1/quote/Quote.generated.go +++ b/fix50sp1/quote/Quote.generated.go @@ -1,6 +1,7 @@ package quote import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -67,8 +68,8 @@ func (m Quote) SetAccount(v string) { } //SetCommission sets Commission, Tag 12 -func (m Quote) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m Quote) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -87,8 +88,8 @@ func (m Quote) SetSecurityIDSource(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m Quote) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m Quote) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -157,8 +158,8 @@ func (m Quote) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m Quote) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m Quote) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetQuoteID sets QuoteID, Tag 117 @@ -172,28 +173,28 @@ func (m Quote) SetQuoteReqID(v string) { } //SetBidPx sets BidPx, Tag 132 -func (m Quote) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m Quote) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m Quote) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m Quote) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m Quote) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m Quote) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m Quote) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m Quote) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m Quote) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m Quote) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -207,28 +208,28 @@ func (m Quote) SetSecurityType(v string) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m Quote) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m Quote) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m Quote) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m Quote) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m Quote) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m Quote) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m Quote) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m Quote) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m Quote) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m Quote) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -247,8 +248,8 @@ func (m Quote) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m Quote) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m Quote) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -262,8 +263,8 @@ func (m Quote) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m Quote) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m Quote) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -282,8 +283,8 @@ func (m Quote) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m Quote) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m Quote) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -302,18 +303,18 @@ func (m Quote) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m Quote) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m Quote) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m Quote) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m Quote) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m Quote) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m Quote) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -327,8 +328,8 @@ func (m Quote) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m Quote) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m Quote) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -417,8 +418,8 @@ func (m Quote) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m Quote) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m Quote) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -437,8 +438,8 @@ func (m Quote) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m Quote) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m Quote) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetOrderCapacity sets OrderCapacity, Tag 528 @@ -482,63 +483,63 @@ func (m Quote) SetTradingSessionSubID(v string) { } //SetMidPx sets MidPx, Tag 631 -func (m Quote) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m Quote) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m Quote) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m Quote) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m Quote) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m Quote) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m Quote) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m Quote) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m Quote) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m Quote) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m Quote) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m Quote) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetMktBidPx sets MktBidPx, Tag 645 -func (m Quote) SetMktBidPx(v float64) { - m.Set(field.NewMktBidPx(v)) +func (m Quote) SetMktBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktBidPx(value, scale)) } //SetMktOfferPx sets MktOfferPx, Tag 646 -func (m Quote) SetMktOfferPx(v float64) { - m.Set(field.NewMktOfferPx(v)) +func (m Quote) SetMktOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktOfferPx(value, scale)) } //SetMinBidSize sets MinBidSize, Tag 647 -func (m Quote) SetMinBidSize(v float64) { - m.Set(field.NewMinBidSize(v)) +func (m Quote) SetMinBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinBidSize(value, scale)) } //SetMinOfferSize sets MinOfferSize, Tag 648 -func (m Quote) SetMinOfferSize(v float64) { - m.Set(field.NewMinOfferSize(v)) +func (m Quote) SetMinOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinOfferSize(value, scale)) } //SetSettlCurrBidFxRate sets SettlCurrBidFxRate, Tag 656 -func (m Quote) SetSettlCurrBidFxRate(v float64) { - m.Set(field.NewSettlCurrBidFxRate(v)) +func (m Quote) SetSettlCurrBidFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrBidFxRate(value, scale)) } //SetSettlCurrOfferFxRate sets SettlCurrOfferFxRate, Tag 657 -func (m Quote) SetSettlCurrOfferFxRate(v float64) { - m.Set(field.NewSettlCurrOfferFxRate(v)) +func (m Quote) SetSettlCurrOfferFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrOfferFxRate(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -547,8 +548,8 @@ func (m Quote) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m Quote) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m Quote) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -577,8 +578,8 @@ func (m Quote) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m Quote) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m Quote) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -647,8 +648,8 @@ func (m Quote) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m Quote) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m Quote) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -702,18 +703,18 @@ func (m Quote) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m Quote) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m Quote) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m Quote) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m Quote) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m Quote) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m Quote) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -747,13 +748,13 @@ func (m Quote) SetInstrmtAssignmentMethod(v string) { } //SetBidSwapPoints sets BidSwapPoints, Tag 1065 -func (m Quote) SetBidSwapPoints(v float64) { - m.Set(field.NewBidSwapPoints(v)) +func (m Quote) SetBidSwapPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSwapPoints(value, scale)) } //SetOfferSwapPoints sets OfferSwapPoints, Tag 1066 -func (m Quote) SetOfferSwapPoints(v float64) { - m.Set(field.NewOfferSwapPoints(v)) +func (m Quote) SetOfferSwapPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSwapPoints(value, scale)) } //SetMaturityTime sets MaturityTime, Tag 1079 @@ -767,13 +768,13 @@ func (m Quote) SetExDestinationIDSource(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m Quote) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m Quote) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m Quote) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m Quote) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -812,8 +813,8 @@ func (m Quote) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m Quote) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m Quote) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -827,8 +828,8 @@ func (m Quote) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m Quote) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m Quote) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -847,13 +848,13 @@ func (m Quote) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m Quote) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m Quote) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m Quote) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m Quote) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -3015,13 +3016,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3055,8 +3056,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3070,13 +3071,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3115,8 +3116,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3160,13 +3161,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3185,8 +3186,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3195,13 +3196,13 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -3235,13 +3236,13 @@ func (m NoLegs) SetLegPriceType(v int) { } //SetLegBidPx sets LegBidPx, Tag 681 -func (m NoLegs) SetLegBidPx(v float64) { - m.Set(field.NewLegBidPx(v)) +func (m NoLegs) SetLegBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBidPx(value, scale)) } //SetLegOfferPx sets LegOfferPx, Tag 684 -func (m NoLegs) SetLegOfferPx(v float64) { - m.Set(field.NewLegOfferPx(v)) +func (m NoLegs) SetLegOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOfferPx(value, scale)) } //SetLegBenchmarkCurveCurrency sets LegBenchmarkCurveCurrency, Tag 676 @@ -3260,8 +3261,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 @@ -3270,8 +3271,8 @@ func (m NoLegs) SetLegBenchmarkPriceType(v int) { } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //SetLegRefID sets LegRefID, Tag 654 @@ -3280,13 +3281,13 @@ func (m NoLegs) SetLegRefID(v string) { } //SetLegBidForwardPoints sets LegBidForwardPoints, Tag 1067 -func (m NoLegs) SetLegBidForwardPoints(v float64) { - m.Set(field.NewLegBidForwardPoints(v)) +func (m NoLegs) SetLegBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBidForwardPoints(value, scale)) } //SetLegOfferForwardPoints sets LegOfferForwardPoints, Tag 1068 -func (m NoLegs) SetLegOfferForwardPoints(v float64) { - m.Set(field.NewLegOfferForwardPoints(v)) +func (m NoLegs) SetLegOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOfferForwardPoints(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -4439,13 +4440,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4479,8 +4480,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4494,13 +4495,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4554,38 +4555,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4594,8 +4595,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4604,8 +4605,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4624,8 +4625,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4639,13 +4640,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4669,8 +4670,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4679,8 +4680,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -5746,8 +5747,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/quotecancel/QuoteCancel.generated.go b/fix50sp1/quotecancel/QuoteCancel.generated.go index e9c3da786..8e25b783b 100644 --- a/fix50sp1/quotecancel/QuoteCancel.generated.go +++ b/fix50sp1/quotecancel/QuoteCancel.generated.go @@ -1,6 +1,7 @@ package quotecancel import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -336,13 +337,13 @@ func (m NoQuoteEntries) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoQuoteEntries) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoQuoteEntries) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoQuoteEntries) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoQuoteEntries) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -376,8 +377,8 @@ func (m NoQuoteEntries) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoQuoteEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoQuoteEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -391,13 +392,13 @@ func (m NoQuoteEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoQuoteEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoQuoteEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoQuoteEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoQuoteEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -486,18 +487,18 @@ func (m NoQuoteEntries) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoQuoteEntries) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoQuoteEntries) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoQuoteEntries) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoQuoteEntries) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoQuoteEntries) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoQuoteEntries) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -536,13 +537,13 @@ func (m NoQuoteEntries) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoQuoteEntries) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoQuoteEntries) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoQuoteEntries) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoQuoteEntries) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -571,8 +572,8 @@ func (m NoQuoteEntries) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoQuoteEntries) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoQuoteEntries) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -586,8 +587,8 @@ func (m NoQuoteEntries) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m NoQuoteEntries) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m NoQuoteEntries) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -601,13 +602,13 @@ func (m NoQuoteEntries) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoQuoteEntries) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoQuoteEntries) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoQuoteEntries) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoQuoteEntries) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -671,8 +672,8 @@ func (m NoQuoteEntries) SetDeliveryType(v int) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NoQuoteEntries) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NoQuoteEntries) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetNoUnderlyings sets NoUnderlyings, Tag 711 @@ -1701,8 +1702,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2027,13 +2028,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2067,8 +2068,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2082,13 +2083,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2142,38 +2143,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2182,8 +2183,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2192,8 +2193,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2212,8 +2213,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2227,13 +2228,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2257,8 +2258,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -2267,8 +2268,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -3355,13 +3356,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3395,8 +3396,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3410,13 +3411,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3455,8 +3456,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3500,13 +3501,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3525,8 +3526,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3535,8 +3536,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 diff --git a/fix50sp1/quoterequest/QuoteRequest.generated.go b/fix50sp1/quoterequest/QuoteRequest.generated.go index 8c7334d8f..2971c3dae 100644 --- a/fix50sp1/quoterequest/QuoteRequest.generated.go +++ b/fix50sp1/quoterequest/QuoteRequest.generated.go @@ -1,6 +1,7 @@ package quoterequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -336,13 +337,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -376,8 +377,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -391,13 +392,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -486,18 +487,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -536,13 +537,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -571,8 +572,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -586,8 +587,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m NoRelatedSym) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -601,13 +602,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -671,8 +672,8 @@ func (m NoRelatedSym) SetDeliveryType(v int) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NoRelatedSym) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NoRelatedSym) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetNoUnderlyings sets NoUnderlyings, Tag 711 @@ -681,8 +682,8 @@ func (m NoRelatedSym) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoRelatedSym) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoRelatedSym) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetQuoteRequestType sets QuoteRequestType, Tag 303 @@ -721,18 +722,18 @@ func (m NoRelatedSym) SetQtyType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoRelatedSym) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoRelatedSym) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoRelatedSym) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoRelatedSym) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoRelatedSym) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoRelatedSym) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -741,8 +742,8 @@ func (m NoRelatedSym) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoRelatedSym) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoRelatedSym) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetSettlType sets SettlType, Tag 63 @@ -761,8 +762,8 @@ func (m NoRelatedSym) SetSettlDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoRelatedSym) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoRelatedSym) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -826,8 +827,8 @@ func (m NoRelatedSym) SetTransactTime(v time.Time) { } //SetSpread sets Spread, Tag 218 -func (m NoRelatedSym) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoRelatedSym) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -846,8 +847,8 @@ func (m NoRelatedSym) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoRelatedSym) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoRelatedSym) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -871,13 +872,13 @@ func (m NoRelatedSym) SetPriceType(v int) { } //SetPrice sets Price, Tag 44 -func (m NoRelatedSym) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoRelatedSym) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetPrice2 sets Price2, Tag 640 -func (m NoRelatedSym) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m NoRelatedSym) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetYieldType sets YieldType, Tag 235 @@ -886,8 +887,8 @@ func (m NoRelatedSym) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoRelatedSym) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoRelatedSym) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -901,8 +902,8 @@ func (m NoRelatedSym) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoRelatedSym) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoRelatedSym) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -916,8 +917,8 @@ func (m NoRelatedSym) SetNoPartyIDs(f NoPartyIDsRepeatingGroup) { } //SetMinQty sets MinQty, Tag 110 -func (m NoRelatedSym) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NoRelatedSym) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //GetSymbol gets Symbol, Tag 55 @@ -2456,8 +2457,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2782,13 +2783,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2822,8 +2823,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2837,13 +2838,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2897,38 +2898,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2937,8 +2938,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2947,8 +2948,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2967,8 +2968,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2982,13 +2983,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3012,8 +3013,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3022,8 +3023,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4170,13 +4171,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4210,8 +4211,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4225,13 +4226,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4270,8 +4271,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4315,13 +4316,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -4340,8 +4341,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4350,13 +4351,13 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -4400,8 +4401,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 @@ -4410,8 +4411,8 @@ func (m NoLegs) SetLegBenchmarkPriceType(v int) { } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //SetLegRefID sets LegRefID, Tag 654 diff --git a/fix50sp1/quoterequestreject/QuoteRequestReject.generated.go b/fix50sp1/quoterequestreject/QuoteRequestReject.generated.go index 1ea864104..3af606cc8 100644 --- a/fix50sp1/quoterequestreject/QuoteRequestReject.generated.go +++ b/fix50sp1/quoterequestreject/QuoteRequestReject.generated.go @@ -1,6 +1,7 @@ package quoterequestreject import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -321,13 +322,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -361,8 +362,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -376,13 +377,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -471,18 +472,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -521,13 +522,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -556,8 +557,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -571,8 +572,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m NoRelatedSym) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -586,13 +587,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -656,8 +657,8 @@ func (m NoRelatedSym) SetDeliveryType(v int) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NoRelatedSym) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NoRelatedSym) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetNoUnderlyings sets NoUnderlyings, Tag 711 @@ -666,8 +667,8 @@ func (m NoRelatedSym) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoRelatedSym) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoRelatedSym) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetQuoteRequestType sets QuoteRequestType, Tag 303 @@ -706,18 +707,18 @@ func (m NoRelatedSym) SetQtyType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoRelatedSym) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoRelatedSym) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoRelatedSym) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoRelatedSym) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoRelatedSym) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoRelatedSym) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -726,8 +727,8 @@ func (m NoRelatedSym) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoRelatedSym) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoRelatedSym) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetSettlType sets SettlType, Tag 63 @@ -746,8 +747,8 @@ func (m NoRelatedSym) SetSettlDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoRelatedSym) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoRelatedSym) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -806,8 +807,8 @@ func (m NoRelatedSym) SetTransactTime(v time.Time) { } //SetSpread sets Spread, Tag 218 -func (m NoRelatedSym) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoRelatedSym) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -826,8 +827,8 @@ func (m NoRelatedSym) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoRelatedSym) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoRelatedSym) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -851,13 +852,13 @@ func (m NoRelatedSym) SetPriceType(v int) { } //SetPrice sets Price, Tag 44 -func (m NoRelatedSym) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoRelatedSym) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetPrice2 sets Price2, Tag 640 -func (m NoRelatedSym) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m NoRelatedSym) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetYieldType sets YieldType, Tag 235 @@ -866,8 +867,8 @@ func (m NoRelatedSym) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoRelatedSym) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoRelatedSym) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -881,8 +882,8 @@ func (m NoRelatedSym) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoRelatedSym) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoRelatedSym) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -2409,8 +2410,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2735,13 +2736,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2775,8 +2776,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2790,13 +2791,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2850,38 +2851,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2890,8 +2891,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2900,8 +2901,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2920,8 +2921,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2935,13 +2936,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2965,8 +2966,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -2975,8 +2976,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4123,13 +4124,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4163,8 +4164,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4178,13 +4179,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4223,8 +4224,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4268,13 +4269,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -4293,8 +4294,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4303,13 +4304,13 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -4353,8 +4354,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 @@ -4363,8 +4364,8 @@ func (m NoLegs) SetLegBenchmarkPriceType(v int) { } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //SetLegRefID sets LegRefID, Tag 654 diff --git a/fix50sp1/quoteresponse/QuoteResponse.generated.go b/fix50sp1/quoteresponse/QuoteResponse.generated.go index dbdffd965..2f32cb8f6 100644 --- a/fix50sp1/quoteresponse/QuoteResponse.generated.go +++ b/fix50sp1/quoteresponse/QuoteResponse.generated.go @@ -1,6 +1,7 @@ package quoteresponse import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -73,8 +74,8 @@ func (m QuoteResponse) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m QuoteResponse) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m QuoteResponse) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -98,8 +99,8 @@ func (m QuoteResponse) SetIOIID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m QuoteResponse) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m QuoteResponse) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -108,8 +109,8 @@ func (m QuoteResponse) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m QuoteResponse) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m QuoteResponse) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -173,8 +174,8 @@ func (m QuoteResponse) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m QuoteResponse) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m QuoteResponse) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetQuoteID sets QuoteID, Tag 117 @@ -183,28 +184,28 @@ func (m QuoteResponse) SetQuoteID(v string) { } //SetBidPx sets BidPx, Tag 132 -func (m QuoteResponse) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m QuoteResponse) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m QuoteResponse) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m QuoteResponse) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m QuoteResponse) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m QuoteResponse) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m QuoteResponse) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m QuoteResponse) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m QuoteResponse) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m QuoteResponse) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -218,28 +219,28 @@ func (m QuoteResponse) SetSecurityType(v string) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m QuoteResponse) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m QuoteResponse) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m QuoteResponse) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m QuoteResponse) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m QuoteResponse) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m QuoteResponse) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m QuoteResponse) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m QuoteResponse) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m QuoteResponse) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m QuoteResponse) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -258,8 +259,8 @@ func (m QuoteResponse) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m QuoteResponse) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m QuoteResponse) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -273,8 +274,8 @@ func (m QuoteResponse) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m QuoteResponse) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m QuoteResponse) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -293,8 +294,8 @@ func (m QuoteResponse) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m QuoteResponse) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m QuoteResponse) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -313,18 +314,18 @@ func (m QuoteResponse) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m QuoteResponse) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m QuoteResponse) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m QuoteResponse) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m QuoteResponse) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m QuoteResponse) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m QuoteResponse) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -338,8 +339,8 @@ func (m QuoteResponse) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m QuoteResponse) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m QuoteResponse) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -423,8 +424,8 @@ func (m QuoteResponse) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m QuoteResponse) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m QuoteResponse) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -443,8 +444,8 @@ func (m QuoteResponse) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m QuoteResponse) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m QuoteResponse) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetOrderCapacity sets OrderCapacity, Tag 528 @@ -493,63 +494,63 @@ func (m QuoteResponse) SetTradingSessionSubID(v string) { } //SetMidPx sets MidPx, Tag 631 -func (m QuoteResponse) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m QuoteResponse) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m QuoteResponse) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m QuoteResponse) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m QuoteResponse) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m QuoteResponse) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m QuoteResponse) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m QuoteResponse) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m QuoteResponse) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m QuoteResponse) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m QuoteResponse) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m QuoteResponse) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetMktBidPx sets MktBidPx, Tag 645 -func (m QuoteResponse) SetMktBidPx(v float64) { - m.Set(field.NewMktBidPx(v)) +func (m QuoteResponse) SetMktBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktBidPx(value, scale)) } //SetMktOfferPx sets MktOfferPx, Tag 646 -func (m QuoteResponse) SetMktOfferPx(v float64) { - m.Set(field.NewMktOfferPx(v)) +func (m QuoteResponse) SetMktOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktOfferPx(value, scale)) } //SetMinBidSize sets MinBidSize, Tag 647 -func (m QuoteResponse) SetMinBidSize(v float64) { - m.Set(field.NewMinBidSize(v)) +func (m QuoteResponse) SetMinBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinBidSize(value, scale)) } //SetMinOfferSize sets MinOfferSize, Tag 648 -func (m QuoteResponse) SetMinOfferSize(v float64) { - m.Set(field.NewMinOfferSize(v)) +func (m QuoteResponse) SetMinOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinOfferSize(value, scale)) } //SetSettlCurrBidFxRate sets SettlCurrBidFxRate, Tag 656 -func (m QuoteResponse) SetSettlCurrBidFxRate(v float64) { - m.Set(field.NewSettlCurrBidFxRate(v)) +func (m QuoteResponse) SetSettlCurrBidFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrBidFxRate(value, scale)) } //SetSettlCurrOfferFxRate sets SettlCurrOfferFxRate, Tag 657 -func (m QuoteResponse) SetSettlCurrOfferFxRate(v float64) { - m.Set(field.NewSettlCurrOfferFxRate(v)) +func (m QuoteResponse) SetSettlCurrOfferFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrOfferFxRate(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -558,8 +559,8 @@ func (m QuoteResponse) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m QuoteResponse) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m QuoteResponse) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -593,8 +594,8 @@ func (m QuoteResponse) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m QuoteResponse) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m QuoteResponse) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -663,8 +664,8 @@ func (m QuoteResponse) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m QuoteResponse) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m QuoteResponse) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -718,18 +719,18 @@ func (m QuoteResponse) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m QuoteResponse) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m QuoteResponse) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m QuoteResponse) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m QuoteResponse) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m QuoteResponse) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m QuoteResponse) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -778,13 +779,13 @@ func (m QuoteResponse) SetExDestinationIDSource(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m QuoteResponse) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m QuoteResponse) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m QuoteResponse) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m QuoteResponse) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -818,8 +819,8 @@ func (m QuoteResponse) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m QuoteResponse) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m QuoteResponse) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -833,8 +834,8 @@ func (m QuoteResponse) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m QuoteResponse) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m QuoteResponse) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -853,13 +854,13 @@ func (m QuoteResponse) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m QuoteResponse) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m QuoteResponse) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m QuoteResponse) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m QuoteResponse) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -3032,13 +3033,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3072,8 +3073,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3087,13 +3088,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3132,8 +3133,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3177,13 +3178,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3202,8 +3203,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3212,13 +3213,13 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -3252,13 +3253,13 @@ func (m NoLegs) SetLegPriceType(v int) { } //SetLegBidPx sets LegBidPx, Tag 681 -func (m NoLegs) SetLegBidPx(v float64) { - m.Set(field.NewLegBidPx(v)) +func (m NoLegs) SetLegBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBidPx(value, scale)) } //SetLegOfferPx sets LegOfferPx, Tag 684 -func (m NoLegs) SetLegOfferPx(v float64) { - m.Set(field.NewLegOfferPx(v)) +func (m NoLegs) SetLegOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOfferPx(value, scale)) } //SetLegBenchmarkCurveCurrency sets LegBenchmarkCurveCurrency, Tag 676 @@ -3277,8 +3278,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 @@ -3287,8 +3288,8 @@ func (m NoLegs) SetLegBenchmarkPriceType(v int) { } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //SetLegRefID sets LegRefID, Tag 654 @@ -3297,13 +3298,13 @@ func (m NoLegs) SetLegRefID(v string) { } //SetLegBidForwardPoints sets LegBidForwardPoints, Tag 1067 -func (m NoLegs) SetLegBidForwardPoints(v float64) { - m.Set(field.NewLegBidForwardPoints(v)) +func (m NoLegs) SetLegBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBidForwardPoints(value, scale)) } //SetLegOfferForwardPoints sets LegOfferForwardPoints, Tag 1068 -func (m NoLegs) SetLegOfferForwardPoints(v float64) { - m.Set(field.NewLegOfferForwardPoints(v)) +func (m NoLegs) SetLegOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOfferForwardPoints(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -4456,13 +4457,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4496,8 +4497,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4511,13 +4512,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4571,38 +4572,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4611,8 +4612,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4621,8 +4622,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4641,8 +4642,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4656,13 +4657,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4686,8 +4687,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4696,8 +4697,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -5763,8 +5764,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/quotestatusreport/QuoteStatusReport.generated.go b/fix50sp1/quotestatusreport/QuoteStatusReport.generated.go index de29c9188..c4a30386c 100644 --- a/fix50sp1/quotestatusreport/QuoteStatusReport.generated.go +++ b/fix50sp1/quotestatusreport/QuoteStatusReport.generated.go @@ -1,6 +1,7 @@ package quotestatusreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -66,8 +67,8 @@ func (m QuoteStatusReport) SetAccount(v string) { } //SetCommission sets Commission, Tag 12 -func (m QuoteStatusReport) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m QuoteStatusReport) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -86,8 +87,8 @@ func (m QuoteStatusReport) SetSecurityIDSource(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m QuoteStatusReport) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m QuoteStatusReport) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -96,8 +97,8 @@ func (m QuoteStatusReport) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m QuoteStatusReport) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m QuoteStatusReport) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -161,8 +162,8 @@ func (m QuoteStatusReport) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m QuoteStatusReport) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m QuoteStatusReport) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetQuoteID sets QuoteID, Tag 117 @@ -181,28 +182,28 @@ func (m QuoteStatusReport) SetQuoteReqID(v string) { } //SetBidPx sets BidPx, Tag 132 -func (m QuoteStatusReport) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m QuoteStatusReport) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m QuoteStatusReport) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m QuoteStatusReport) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m QuoteStatusReport) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m QuoteStatusReport) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m QuoteStatusReport) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m QuoteStatusReport) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m QuoteStatusReport) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m QuoteStatusReport) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -216,28 +217,28 @@ func (m QuoteStatusReport) SetSecurityType(v string) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m QuoteStatusReport) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m QuoteStatusReport) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m QuoteStatusReport) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m QuoteStatusReport) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m QuoteStatusReport) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m QuoteStatusReport) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m QuoteStatusReport) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m QuoteStatusReport) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m QuoteStatusReport) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m QuoteStatusReport) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -256,8 +257,8 @@ func (m QuoteStatusReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m QuoteStatusReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m QuoteStatusReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -271,8 +272,8 @@ func (m QuoteStatusReport) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m QuoteStatusReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m QuoteStatusReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -291,8 +292,8 @@ func (m QuoteStatusReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m QuoteStatusReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m QuoteStatusReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -311,18 +312,18 @@ func (m QuoteStatusReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m QuoteStatusReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m QuoteStatusReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m QuoteStatusReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m QuoteStatusReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m QuoteStatusReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m QuoteStatusReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -336,8 +337,8 @@ func (m QuoteStatusReport) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m QuoteStatusReport) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m QuoteStatusReport) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -436,8 +437,8 @@ func (m QuoteStatusReport) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m QuoteStatusReport) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m QuoteStatusReport) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -456,8 +457,8 @@ func (m QuoteStatusReport) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m QuoteStatusReport) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m QuoteStatusReport) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetQuoteType sets QuoteType, Tag 537 @@ -496,53 +497,53 @@ func (m QuoteStatusReport) SetTradingSessionSubID(v string) { } //SetMidPx sets MidPx, Tag 631 -func (m QuoteStatusReport) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m QuoteStatusReport) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m QuoteStatusReport) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m QuoteStatusReport) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m QuoteStatusReport) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m QuoteStatusReport) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m QuoteStatusReport) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m QuoteStatusReport) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m QuoteStatusReport) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m QuoteStatusReport) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m QuoteStatusReport) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m QuoteStatusReport) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetMktBidPx sets MktBidPx, Tag 645 -func (m QuoteStatusReport) SetMktBidPx(v float64) { - m.Set(field.NewMktBidPx(v)) +func (m QuoteStatusReport) SetMktBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktBidPx(value, scale)) } //SetMktOfferPx sets MktOfferPx, Tag 646 -func (m QuoteStatusReport) SetMktOfferPx(v float64) { - m.Set(field.NewMktOfferPx(v)) +func (m QuoteStatusReport) SetMktOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktOfferPx(value, scale)) } //SetMinBidSize sets MinBidSize, Tag 647 -func (m QuoteStatusReport) SetMinBidSize(v float64) { - m.Set(field.NewMinBidSize(v)) +func (m QuoteStatusReport) SetMinBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinBidSize(value, scale)) } //SetMinOfferSize sets MinOfferSize, Tag 648 -func (m QuoteStatusReport) SetMinOfferSize(v float64) { - m.Set(field.NewMinOfferSize(v)) +func (m QuoteStatusReport) SetMinOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinOfferSize(value, scale)) } //SetQuoteStatusReqID sets QuoteStatusReqID, Tag 649 @@ -551,13 +552,13 @@ func (m QuoteStatusReport) SetQuoteStatusReqID(v string) { } //SetSettlCurrBidFxRate sets SettlCurrBidFxRate, Tag 656 -func (m QuoteStatusReport) SetSettlCurrBidFxRate(v float64) { - m.Set(field.NewSettlCurrBidFxRate(v)) +func (m QuoteStatusReport) SetSettlCurrBidFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrBidFxRate(value, scale)) } //SetSettlCurrOfferFxRate sets SettlCurrOfferFxRate, Tag 657 -func (m QuoteStatusReport) SetSettlCurrOfferFxRate(v float64) { - m.Set(field.NewSettlCurrOfferFxRate(v)) +func (m QuoteStatusReport) SetSettlCurrOfferFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrOfferFxRate(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -566,8 +567,8 @@ func (m QuoteStatusReport) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m QuoteStatusReport) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m QuoteStatusReport) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -596,8 +597,8 @@ func (m QuoteStatusReport) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m QuoteStatusReport) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m QuoteStatusReport) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -666,8 +667,8 @@ func (m QuoteStatusReport) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m QuoteStatusReport) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m QuoteStatusReport) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -721,18 +722,18 @@ func (m QuoteStatusReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m QuoteStatusReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m QuoteStatusReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m QuoteStatusReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m QuoteStatusReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m QuoteStatusReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m QuoteStatusReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -776,13 +777,13 @@ func (m QuoteStatusReport) SetExDestinationIDSource(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m QuoteStatusReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m QuoteStatusReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m QuoteStatusReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m QuoteStatusReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -816,8 +817,8 @@ func (m QuoteStatusReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m QuoteStatusReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m QuoteStatusReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -831,8 +832,8 @@ func (m QuoteStatusReport) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m QuoteStatusReport) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m QuoteStatusReport) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -851,13 +852,13 @@ func (m QuoteStatusReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m QuoteStatusReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m QuoteStatusReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m QuoteStatusReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m QuoteStatusReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -3030,13 +3031,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3070,8 +3071,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3085,13 +3086,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3130,8 +3131,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3175,13 +3176,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3200,8 +3201,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3210,13 +3211,13 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -3245,8 +3246,8 @@ func (m NoLegs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -4278,13 +4279,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4318,8 +4319,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4333,13 +4334,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4393,38 +4394,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4433,8 +4434,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4443,8 +4444,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4463,8 +4464,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4478,13 +4479,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4508,8 +4509,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4518,8 +4519,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -5585,8 +5586,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/quotestatusrequest/QuoteStatusRequest.generated.go b/fix50sp1/quotestatusrequest/QuoteStatusRequest.generated.go index 93c8388d6..d95581d39 100644 --- a/fix50sp1/quotestatusrequest/QuoteStatusRequest.generated.go +++ b/fix50sp1/quotestatusrequest/QuoteStatusRequest.generated.go @@ -1,6 +1,7 @@ package quotestatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -116,8 +117,8 @@ func (m QuoteStatusRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m QuoteStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m QuoteStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -131,8 +132,8 @@ func (m QuoteStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m QuoteStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m QuoteStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -151,18 +152,18 @@ func (m QuoteStatusRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m QuoteStatusRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m QuoteStatusRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m QuoteStatusRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m QuoteStatusRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m QuoteStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m QuoteStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -331,8 +332,8 @@ func (m QuoteStatusRequest) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m QuoteStatusRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m QuoteStatusRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -386,18 +387,18 @@ func (m QuoteStatusRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m QuoteStatusRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m QuoteStatusRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m QuoteStatusRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m QuoteStatusRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m QuoteStatusRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m QuoteStatusRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -436,13 +437,13 @@ func (m QuoteStatusRequest) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m QuoteStatusRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m QuoteStatusRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m QuoteStatusRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m QuoteStatusRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -471,8 +472,8 @@ func (m QuoteStatusRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m QuoteStatusRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m QuoteStatusRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -486,8 +487,8 @@ func (m QuoteStatusRequest) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m QuoteStatusRequest) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m QuoteStatusRequest) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -506,13 +507,13 @@ func (m QuoteStatusRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m QuoteStatusRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m QuoteStatusRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m QuoteStatusRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m QuoteStatusRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -1864,13 +1865,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1904,8 +1905,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1919,13 +1920,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1964,8 +1965,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2009,13 +2010,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2034,8 +2035,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2044,8 +2045,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -2785,13 +2786,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2825,8 +2826,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2840,13 +2841,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2900,38 +2901,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2940,8 +2941,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2950,8 +2951,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2970,8 +2971,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2985,13 +2986,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3015,8 +3016,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3025,8 +3026,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4048,8 +4049,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/registrationinstructions/RegistrationInstructions.generated.go b/fix50sp1/registrationinstructions/RegistrationInstructions.generated.go index 1c9e0f5c9..ac852ece4 100644 --- a/fix50sp1/registrationinstructions/RegistrationInstructions.generated.go +++ b/fix50sp1/registrationinstructions/RegistrationInstructions.generated.go @@ -1,6 +1,7 @@ package registrationinstructions import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -732,8 +733,8 @@ func (m NoDistribInsts) SetDistribPaymentMethod(v int) { } //SetDistribPercentage sets DistribPercentage, Tag 512 -func (m NoDistribInsts) SetDistribPercentage(v float64) { - m.Set(field.NewDistribPercentage(v)) +func (m NoDistribInsts) SetDistribPercentage(value decimal.Decimal, scale int32) { + m.Set(field.NewDistribPercentage(value, scale)) } //SetCashDistribCurr sets CashDistribCurr, Tag 478 diff --git a/fix50sp1/requestforpositions/RequestForPositions.generated.go b/fix50sp1/requestforpositions/RequestForPositions.generated.go index b98ad2189..d607067e1 100644 --- a/fix50sp1/requestforpositions/RequestForPositions.generated.go +++ b/fix50sp1/requestforpositions/RequestForPositions.generated.go @@ -1,6 +1,7 @@ package requestforpositions import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -135,8 +136,8 @@ func (m RequestForPositions) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m RequestForPositions) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m RequestForPositions) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -150,8 +151,8 @@ func (m RequestForPositions) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m RequestForPositions) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m RequestForPositions) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -170,18 +171,18 @@ func (m RequestForPositions) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m RequestForPositions) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m RequestForPositions) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m RequestForPositions) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m RequestForPositions) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m RequestForPositions) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m RequestForPositions) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -400,18 +401,18 @@ func (m RequestForPositions) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m RequestForPositions) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m RequestForPositions) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m RequestForPositions) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m RequestForPositions) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m RequestForPositions) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m RequestForPositions) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -450,13 +451,13 @@ func (m RequestForPositions) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m RequestForPositions) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m RequestForPositions) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m RequestForPositions) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m RequestForPositions) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -485,8 +486,8 @@ func (m RequestForPositions) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m RequestForPositions) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m RequestForPositions) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -500,8 +501,8 @@ func (m RequestForPositions) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m RequestForPositions) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m RequestForPositions) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -520,13 +521,13 @@ func (m RequestForPositions) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m RequestForPositions) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m RequestForPositions) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m RequestForPositions) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m RequestForPositions) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -1961,13 +1962,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2001,8 +2002,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2016,13 +2017,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2061,8 +2062,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2106,13 +2107,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2131,8 +2132,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2141,8 +2142,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -2882,13 +2883,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2922,8 +2923,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2937,13 +2938,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2997,38 +2998,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3037,8 +3038,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3047,8 +3048,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3067,8 +3068,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3082,13 +3083,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3112,8 +3113,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3122,8 +3123,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4145,8 +4146,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/requestforpositionsack/RequestForPositionsAck.generated.go b/fix50sp1/requestforpositionsack/RequestForPositionsAck.generated.go index d7f45167b..dbca4b3fe 100644 --- a/fix50sp1/requestforpositionsack/RequestForPositionsAck.generated.go +++ b/fix50sp1/requestforpositionsack/RequestForPositionsAck.generated.go @@ -1,6 +1,7 @@ package requestforpositionsack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -129,8 +130,8 @@ func (m RequestForPositionsAck) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m RequestForPositionsAck) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m RequestForPositionsAck) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -144,8 +145,8 @@ func (m RequestForPositionsAck) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m RequestForPositionsAck) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m RequestForPositionsAck) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -164,18 +165,18 @@ func (m RequestForPositionsAck) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m RequestForPositionsAck) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m RequestForPositionsAck) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m RequestForPositionsAck) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m RequestForPositionsAck) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m RequestForPositionsAck) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m RequestForPositionsAck) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -414,18 +415,18 @@ func (m RequestForPositionsAck) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m RequestForPositionsAck) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m RequestForPositionsAck) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m RequestForPositionsAck) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m RequestForPositionsAck) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m RequestForPositionsAck) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m RequestForPositionsAck) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -464,13 +465,13 @@ func (m RequestForPositionsAck) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m RequestForPositionsAck) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m RequestForPositionsAck) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m RequestForPositionsAck) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m RequestForPositionsAck) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -499,8 +500,8 @@ func (m RequestForPositionsAck) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m RequestForPositionsAck) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m RequestForPositionsAck) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -514,8 +515,8 @@ func (m RequestForPositionsAck) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m RequestForPositionsAck) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m RequestForPositionsAck) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -534,13 +535,13 @@ func (m RequestForPositionsAck) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m RequestForPositionsAck) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m RequestForPositionsAck) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m RequestForPositionsAck) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m RequestForPositionsAck) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -1947,13 +1948,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1987,8 +1988,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2002,13 +2003,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2047,8 +2048,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2092,13 +2093,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2117,8 +2118,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2127,8 +2128,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -2868,13 +2869,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2908,8 +2909,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2923,13 +2924,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2983,38 +2984,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3023,8 +3024,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3033,8 +3034,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3053,8 +3054,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3068,13 +3069,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3098,8 +3099,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3108,8 +3109,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4131,8 +4132,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/rfqrequest/RFQRequest.generated.go b/fix50sp1/rfqrequest/RFQRequest.generated.go index 2f3c206aa..8e435e9a3 100644 --- a/fix50sp1/rfqrequest/RFQRequest.generated.go +++ b/fix50sp1/rfqrequest/RFQRequest.generated.go @@ -1,6 +1,7 @@ package rfqrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -224,13 +225,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -264,8 +265,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -279,13 +280,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -374,18 +375,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -424,13 +425,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -459,8 +460,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -474,8 +475,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m NoRelatedSym) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -489,13 +490,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -529,8 +530,8 @@ func (m NoRelatedSym) SetNoLegs(f NoLegsRepeatingGroup) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoRelatedSym) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoRelatedSym) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetQuoteRequestType sets QuoteRequestType, Tag 303 @@ -1525,8 +1526,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -1851,13 +1852,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -1891,8 +1892,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -1906,13 +1907,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -1966,38 +1967,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2006,8 +2007,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2016,8 +2017,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2036,8 +2037,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2051,13 +2052,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2081,8 +2082,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -2091,8 +2092,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -3179,13 +3180,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3219,8 +3220,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3234,13 +3235,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3279,8 +3280,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3324,13 +3325,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3349,8 +3350,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3359,8 +3360,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 diff --git a/fix50sp1/securitydefinition/SecurityDefinition.generated.go b/fix50sp1/securitydefinition/SecurityDefinition.generated.go index 3e206aabe..9c3d97110 100644 --- a/fix50sp1/securitydefinition/SecurityDefinition.generated.go +++ b/fix50sp1/securitydefinition/SecurityDefinition.generated.go @@ -1,6 +1,7 @@ package securitydefinition import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -116,8 +117,8 @@ func (m SecurityDefinition) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityDefinition) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityDefinition) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -131,8 +132,8 @@ func (m SecurityDefinition) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m SecurityDefinition) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m SecurityDefinition) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -151,8 +152,8 @@ func (m SecurityDefinition) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityDefinition) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityDefinition) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -171,18 +172,18 @@ func (m SecurityDefinition) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityDefinition) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityDefinition) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityDefinition) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityDefinition) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityDefinition) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityDefinition) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -196,8 +197,8 @@ func (m SecurityDefinition) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m SecurityDefinition) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m SecurityDefinition) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -311,8 +312,8 @@ func (m SecurityDefinition) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m SecurityDefinition) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m SecurityDefinition) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -341,8 +342,8 @@ func (m SecurityDefinition) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m SecurityDefinition) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m SecurityDefinition) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -386,8 +387,8 @@ func (m SecurityDefinition) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m SecurityDefinition) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m SecurityDefinition) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -436,18 +437,18 @@ func (m SecurityDefinition) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m SecurityDefinition) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m SecurityDefinition) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m SecurityDefinition) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m SecurityDefinition) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m SecurityDefinition) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m SecurityDefinition) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -486,13 +487,13 @@ func (m SecurityDefinition) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m SecurityDefinition) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m SecurityDefinition) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m SecurityDefinition) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m SecurityDefinition) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -531,8 +532,8 @@ func (m SecurityDefinition) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m SecurityDefinition) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m SecurityDefinition) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -546,8 +547,8 @@ func (m SecurityDefinition) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m SecurityDefinition) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m SecurityDefinition) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -566,13 +567,13 @@ func (m SecurityDefinition) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m SecurityDefinition) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m SecurityDefinition) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m SecurityDefinition) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m SecurityDefinition) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -2013,13 +2014,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2053,8 +2054,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2068,13 +2069,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2113,8 +2114,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2158,13 +2159,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2183,8 +2184,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2193,8 +2194,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -2934,13 +2935,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2974,8 +2975,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2989,13 +2990,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3049,38 +3050,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3089,8 +3090,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3099,8 +3100,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3119,8 +3120,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3134,13 +3135,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3164,8 +3165,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3174,8 +3175,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4197,8 +4198,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4533,18 +4534,18 @@ func (m NoMarketSegments) SetPriceLimitType(v int) { } //SetLowLimitPrice sets LowLimitPrice, Tag 1148 -func (m NoMarketSegments) SetLowLimitPrice(v float64) { - m.Set(field.NewLowLimitPrice(v)) +func (m NoMarketSegments) SetLowLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLowLimitPrice(value, scale)) } //SetHighLimitPrice sets HighLimitPrice, Tag 1149 -func (m NoMarketSegments) SetHighLimitPrice(v float64) { - m.Set(field.NewHighLimitPrice(v)) +func (m NoMarketSegments) SetHighLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewHighLimitPrice(value, scale)) } //SetTradingReferencePrice sets TradingReferencePrice, Tag 1150 -func (m NoMarketSegments) SetTradingReferencePrice(v float64) { - m.Set(field.NewTradingReferencePrice(v)) +func (m NoMarketSegments) SetTradingReferencePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTradingReferencePrice(value, scale)) } //SetExpirationCycle sets ExpirationCycle, Tag 827 @@ -4553,18 +4554,18 @@ func (m NoMarketSegments) SetExpirationCycle(v int) { } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m NoMarketSegments) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m NoMarketSegments) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetMaxTradeVol sets MaxTradeVol, Tag 1140 -func (m NoMarketSegments) SetMaxTradeVol(v float64) { - m.Set(field.NewMaxTradeVol(v)) +func (m NoMarketSegments) SetMaxTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxTradeVol(value, scale)) } //SetMaxPriceVariation sets MaxPriceVariation, Tag 1143 -func (m NoMarketSegments) SetMaxPriceVariation(v float64) { - m.Set(field.NewMaxPriceVariation(v)) +func (m NoMarketSegments) SetMaxPriceVariation(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxPriceVariation(value, scale)) } //SetImpliedMarketIndicator sets ImpliedMarketIndicator, Tag 1144 @@ -4578,8 +4579,8 @@ func (m NoMarketSegments) SetTradingCurrency(v string) { } //SetRoundLot sets RoundLot, Tag 561 -func (m NoMarketSegments) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m NoMarketSegments) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMultilegModel sets MultilegModel, Tag 1377 @@ -4854,18 +4855,18 @@ type NoTickRules struct { } //SetStartTickPriceRange sets StartTickPriceRange, Tag 1206 -func (m NoTickRules) SetStartTickPriceRange(v float64) { - m.Set(field.NewStartTickPriceRange(v)) +func (m NoTickRules) SetStartTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartTickPriceRange(value, scale)) } //SetEndTickPriceRange sets EndTickPriceRange, Tag 1207 -func (m NoTickRules) SetEndTickPriceRange(v float64) { - m.Set(field.NewEndTickPriceRange(v)) +func (m NoTickRules) SetEndTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndTickPriceRange(value, scale)) } //SetTickIncrement sets TickIncrement, Tag 1208 -func (m NoTickRules) SetTickIncrement(v float64) { - m.Set(field.NewTickIncrement(v)) +func (m NoTickRules) SetTickIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewTickIncrement(value, scale)) } //SetTickRuleType sets TickRuleType, Tag 1209 @@ -4951,8 +4952,8 @@ func (m NoLotTypeRules) SetLotType(v string) { } //SetMinLotSize sets MinLotSize, Tag 1231 -func (m NoLotTypeRules) SetMinLotSize(v float64) { - m.Set(field.NewMinLotSize(v)) +func (m NoLotTypeRules) SetMinLotSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinLotSize(value, scale)) } //GetLotType gets LotType, Tag 1093 @@ -5484,18 +5485,18 @@ func (m NoStrikeRules) SetStrikeRuleID(v string) { } //SetStartStrikePxRange sets StartStrikePxRange, Tag 1202 -func (m NoStrikeRules) SetStartStrikePxRange(v float64) { - m.Set(field.NewStartStrikePxRange(v)) +func (m NoStrikeRules) SetStartStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartStrikePxRange(value, scale)) } //SetEndStrikePxRange sets EndStrikePxRange, Tag 1203 -func (m NoStrikeRules) SetEndStrikePxRange(v float64) { - m.Set(field.NewEndStrikePxRange(v)) +func (m NoStrikeRules) SetEndStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndStrikePxRange(value, scale)) } //SetStrikeIncrement sets StrikeIncrement, Tag 1204 -func (m NoStrikeRules) SetStrikeIncrement(v float64) { - m.Set(field.NewStrikeIncrement(v)) +func (m NoStrikeRules) SetStrikeIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeIncrement(value, scale)) } //SetStrikeExerciseStyle sets StrikeExerciseStyle, Tag 1304 diff --git a/fix50sp1/securitydefinitionrequest/SecurityDefinitionRequest.generated.go b/fix50sp1/securitydefinitionrequest/SecurityDefinitionRequest.generated.go index dcf03a218..fcd134e6e 100644 --- a/fix50sp1/securitydefinitionrequest/SecurityDefinitionRequest.generated.go +++ b/fix50sp1/securitydefinitionrequest/SecurityDefinitionRequest.generated.go @@ -1,6 +1,7 @@ package securitydefinitionrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -118,8 +119,8 @@ func (m SecurityDefinitionRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityDefinitionRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityDefinitionRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -133,8 +134,8 @@ func (m SecurityDefinitionRequest) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m SecurityDefinitionRequest) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m SecurityDefinitionRequest) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -153,8 +154,8 @@ func (m SecurityDefinitionRequest) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityDefinitionRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityDefinitionRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -173,18 +174,18 @@ func (m SecurityDefinitionRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityDefinitionRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityDefinitionRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityDefinitionRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityDefinitionRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityDefinitionRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityDefinitionRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -198,8 +199,8 @@ func (m SecurityDefinitionRequest) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m SecurityDefinitionRequest) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m SecurityDefinitionRequest) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -318,8 +319,8 @@ func (m SecurityDefinitionRequest) SetTradingSessionSubID(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m SecurityDefinitionRequest) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m SecurityDefinitionRequest) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -348,8 +349,8 @@ func (m SecurityDefinitionRequest) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m SecurityDefinitionRequest) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m SecurityDefinitionRequest) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -393,8 +394,8 @@ func (m SecurityDefinitionRequest) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m SecurityDefinitionRequest) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m SecurityDefinitionRequest) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -438,18 +439,18 @@ func (m SecurityDefinitionRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m SecurityDefinitionRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m SecurityDefinitionRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m SecurityDefinitionRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m SecurityDefinitionRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m SecurityDefinitionRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m SecurityDefinitionRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -488,13 +489,13 @@ func (m SecurityDefinitionRequest) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m SecurityDefinitionRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m SecurityDefinitionRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m SecurityDefinitionRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m SecurityDefinitionRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -523,8 +524,8 @@ func (m SecurityDefinitionRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m SecurityDefinitionRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m SecurityDefinitionRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -538,8 +539,8 @@ func (m SecurityDefinitionRequest) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m SecurityDefinitionRequest) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m SecurityDefinitionRequest) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -558,13 +559,13 @@ func (m SecurityDefinitionRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m SecurityDefinitionRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m SecurityDefinitionRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m SecurityDefinitionRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m SecurityDefinitionRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -1966,13 +1967,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2006,8 +2007,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2021,13 +2022,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2066,8 +2067,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2111,13 +2112,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2136,8 +2137,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2146,8 +2147,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -2887,13 +2888,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2927,8 +2928,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2942,13 +2943,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3002,38 +3003,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3042,8 +3043,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3052,8 +3053,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3072,8 +3073,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3087,13 +3088,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3117,8 +3118,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3127,8 +3128,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4150,8 +4151,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/securitydefinitionupdatereport/SecurityDefinitionUpdateReport.generated.go b/fix50sp1/securitydefinitionupdatereport/SecurityDefinitionUpdateReport.generated.go index f61747e07..c3aa9a4ea 100644 --- a/fix50sp1/securitydefinitionupdatereport/SecurityDefinitionUpdateReport.generated.go +++ b/fix50sp1/securitydefinitionupdatereport/SecurityDefinitionUpdateReport.generated.go @@ -1,6 +1,7 @@ package securitydefinitionupdatereport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -116,8 +117,8 @@ func (m SecurityDefinitionUpdateReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityDefinitionUpdateReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityDefinitionUpdateReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -131,8 +132,8 @@ func (m SecurityDefinitionUpdateReport) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m SecurityDefinitionUpdateReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m SecurityDefinitionUpdateReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -151,8 +152,8 @@ func (m SecurityDefinitionUpdateReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityDefinitionUpdateReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityDefinitionUpdateReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -171,18 +172,18 @@ func (m SecurityDefinitionUpdateReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityDefinitionUpdateReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityDefinitionUpdateReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityDefinitionUpdateReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityDefinitionUpdateReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityDefinitionUpdateReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityDefinitionUpdateReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -196,8 +197,8 @@ func (m SecurityDefinitionUpdateReport) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m SecurityDefinitionUpdateReport) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m SecurityDefinitionUpdateReport) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -311,8 +312,8 @@ func (m SecurityDefinitionUpdateReport) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m SecurityDefinitionUpdateReport) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m SecurityDefinitionUpdateReport) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -341,8 +342,8 @@ func (m SecurityDefinitionUpdateReport) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m SecurityDefinitionUpdateReport) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m SecurityDefinitionUpdateReport) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -386,8 +387,8 @@ func (m SecurityDefinitionUpdateReport) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m SecurityDefinitionUpdateReport) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m SecurityDefinitionUpdateReport) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -436,18 +437,18 @@ func (m SecurityDefinitionUpdateReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m SecurityDefinitionUpdateReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m SecurityDefinitionUpdateReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m SecurityDefinitionUpdateReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m SecurityDefinitionUpdateReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m SecurityDefinitionUpdateReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m SecurityDefinitionUpdateReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -491,13 +492,13 @@ func (m SecurityDefinitionUpdateReport) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m SecurityDefinitionUpdateReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m SecurityDefinitionUpdateReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m SecurityDefinitionUpdateReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m SecurityDefinitionUpdateReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -536,8 +537,8 @@ func (m SecurityDefinitionUpdateReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m SecurityDefinitionUpdateReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m SecurityDefinitionUpdateReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -551,8 +552,8 @@ func (m SecurityDefinitionUpdateReport) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m SecurityDefinitionUpdateReport) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m SecurityDefinitionUpdateReport) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -571,13 +572,13 @@ func (m SecurityDefinitionUpdateReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m SecurityDefinitionUpdateReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m SecurityDefinitionUpdateReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m SecurityDefinitionUpdateReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m SecurityDefinitionUpdateReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -2029,13 +2030,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2069,8 +2070,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2084,13 +2085,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2129,8 +2130,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2174,13 +2175,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2199,8 +2200,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2209,8 +2210,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -2950,13 +2951,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2990,8 +2991,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3005,13 +3006,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3065,38 +3066,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3105,8 +3106,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3115,8 +3116,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3135,8 +3136,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3150,13 +3151,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3180,8 +3181,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3190,8 +3191,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4213,8 +4214,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4549,18 +4550,18 @@ func (m NoMarketSegments) SetPriceLimitType(v int) { } //SetLowLimitPrice sets LowLimitPrice, Tag 1148 -func (m NoMarketSegments) SetLowLimitPrice(v float64) { - m.Set(field.NewLowLimitPrice(v)) +func (m NoMarketSegments) SetLowLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLowLimitPrice(value, scale)) } //SetHighLimitPrice sets HighLimitPrice, Tag 1149 -func (m NoMarketSegments) SetHighLimitPrice(v float64) { - m.Set(field.NewHighLimitPrice(v)) +func (m NoMarketSegments) SetHighLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewHighLimitPrice(value, scale)) } //SetTradingReferencePrice sets TradingReferencePrice, Tag 1150 -func (m NoMarketSegments) SetTradingReferencePrice(v float64) { - m.Set(field.NewTradingReferencePrice(v)) +func (m NoMarketSegments) SetTradingReferencePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTradingReferencePrice(value, scale)) } //SetExpirationCycle sets ExpirationCycle, Tag 827 @@ -4569,18 +4570,18 @@ func (m NoMarketSegments) SetExpirationCycle(v int) { } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m NoMarketSegments) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m NoMarketSegments) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetMaxTradeVol sets MaxTradeVol, Tag 1140 -func (m NoMarketSegments) SetMaxTradeVol(v float64) { - m.Set(field.NewMaxTradeVol(v)) +func (m NoMarketSegments) SetMaxTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxTradeVol(value, scale)) } //SetMaxPriceVariation sets MaxPriceVariation, Tag 1143 -func (m NoMarketSegments) SetMaxPriceVariation(v float64) { - m.Set(field.NewMaxPriceVariation(v)) +func (m NoMarketSegments) SetMaxPriceVariation(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxPriceVariation(value, scale)) } //SetImpliedMarketIndicator sets ImpliedMarketIndicator, Tag 1144 @@ -4594,8 +4595,8 @@ func (m NoMarketSegments) SetTradingCurrency(v string) { } //SetRoundLot sets RoundLot, Tag 561 -func (m NoMarketSegments) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m NoMarketSegments) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMultilegModel sets MultilegModel, Tag 1377 @@ -4870,18 +4871,18 @@ type NoTickRules struct { } //SetStartTickPriceRange sets StartTickPriceRange, Tag 1206 -func (m NoTickRules) SetStartTickPriceRange(v float64) { - m.Set(field.NewStartTickPriceRange(v)) +func (m NoTickRules) SetStartTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartTickPriceRange(value, scale)) } //SetEndTickPriceRange sets EndTickPriceRange, Tag 1207 -func (m NoTickRules) SetEndTickPriceRange(v float64) { - m.Set(field.NewEndTickPriceRange(v)) +func (m NoTickRules) SetEndTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndTickPriceRange(value, scale)) } //SetTickIncrement sets TickIncrement, Tag 1208 -func (m NoTickRules) SetTickIncrement(v float64) { - m.Set(field.NewTickIncrement(v)) +func (m NoTickRules) SetTickIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewTickIncrement(value, scale)) } //SetTickRuleType sets TickRuleType, Tag 1209 @@ -4967,8 +4968,8 @@ func (m NoLotTypeRules) SetLotType(v string) { } //SetMinLotSize sets MinLotSize, Tag 1231 -func (m NoLotTypeRules) SetMinLotSize(v float64) { - m.Set(field.NewMinLotSize(v)) +func (m NoLotTypeRules) SetMinLotSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinLotSize(value, scale)) } //GetLotType gets LotType, Tag 1093 @@ -5500,18 +5501,18 @@ func (m NoStrikeRules) SetStrikeRuleID(v string) { } //SetStartStrikePxRange sets StartStrikePxRange, Tag 1202 -func (m NoStrikeRules) SetStartStrikePxRange(v float64) { - m.Set(field.NewStartStrikePxRange(v)) +func (m NoStrikeRules) SetStartStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartStrikePxRange(value, scale)) } //SetEndStrikePxRange sets EndStrikePxRange, Tag 1203 -func (m NoStrikeRules) SetEndStrikePxRange(v float64) { - m.Set(field.NewEndStrikePxRange(v)) +func (m NoStrikeRules) SetEndStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndStrikePxRange(value, scale)) } //SetStrikeIncrement sets StrikeIncrement, Tag 1204 -func (m NoStrikeRules) SetStrikeIncrement(v float64) { - m.Set(field.NewStrikeIncrement(v)) +func (m NoStrikeRules) SetStrikeIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeIncrement(value, scale)) } //SetStrikeExerciseStyle sets StrikeExerciseStyle, Tag 1304 diff --git a/fix50sp1/securitylist/SecurityList.generated.go b/fix50sp1/securitylist/SecurityList.generated.go index 2be322a95..a8994f190 100644 --- a/fix50sp1/securitylist/SecurityList.generated.go +++ b/fix50sp1/securitylist/SecurityList.generated.go @@ -1,6 +1,7 @@ package securitylist import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -366,13 +367,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -406,8 +407,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -421,13 +422,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -516,18 +517,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -566,13 +567,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -601,8 +602,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -616,8 +617,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m NoRelatedSym) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -631,13 +632,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -666,8 +667,8 @@ func (m NoRelatedSym) SetDeliveryForm(v int) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m NoRelatedSym) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m NoRelatedSym) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -716,8 +717,8 @@ func (m NoRelatedSym) SetDeliveryType(v int) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NoRelatedSym) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NoRelatedSym) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetNoUnderlyings sets NoUnderlyings, Tag 711 @@ -741,8 +742,8 @@ func (m NoRelatedSym) SetNoLegs(f NoLegsRepeatingGroup) { } //SetSpread sets Spread, Tag 218 -func (m NoRelatedSym) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoRelatedSym) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -761,8 +762,8 @@ func (m NoRelatedSym) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoRelatedSym) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoRelatedSym) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -786,8 +787,8 @@ func (m NoRelatedSym) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoRelatedSym) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoRelatedSym) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -801,8 +802,8 @@ func (m NoRelatedSym) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoRelatedSym) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoRelatedSym) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -841,18 +842,18 @@ func (m NoRelatedSym) SetPriceLimitType(v int) { } //SetLowLimitPrice sets LowLimitPrice, Tag 1148 -func (m NoRelatedSym) SetLowLimitPrice(v float64) { - m.Set(field.NewLowLimitPrice(v)) +func (m NoRelatedSym) SetLowLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLowLimitPrice(value, scale)) } //SetHighLimitPrice sets HighLimitPrice, Tag 1149 -func (m NoRelatedSym) SetHighLimitPrice(v float64) { - m.Set(field.NewHighLimitPrice(v)) +func (m NoRelatedSym) SetHighLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewHighLimitPrice(value, scale)) } //SetTradingReferencePrice sets TradingReferencePrice, Tag 1150 -func (m NoRelatedSym) SetTradingReferencePrice(v float64) { - m.Set(field.NewTradingReferencePrice(v)) +func (m NoRelatedSym) SetTradingReferencePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTradingReferencePrice(value, scale)) } //SetExpirationCycle sets ExpirationCycle, Tag 827 @@ -861,18 +862,18 @@ func (m NoRelatedSym) SetExpirationCycle(v int) { } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m NoRelatedSym) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m NoRelatedSym) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetMaxTradeVol sets MaxTradeVol, Tag 1140 -func (m NoRelatedSym) SetMaxTradeVol(v float64) { - m.Set(field.NewMaxTradeVol(v)) +func (m NoRelatedSym) SetMaxTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxTradeVol(value, scale)) } //SetMaxPriceVariation sets MaxPriceVariation, Tag 1143 -func (m NoRelatedSym) SetMaxPriceVariation(v float64) { - m.Set(field.NewMaxPriceVariation(v)) +func (m NoRelatedSym) SetMaxPriceVariation(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxPriceVariation(value, scale)) } //SetImpliedMarketIndicator sets ImpliedMarketIndicator, Tag 1144 @@ -886,8 +887,8 @@ func (m NoRelatedSym) SetTradingCurrency(v string) { } //SetRoundLot sets RoundLot, Tag 561 -func (m NoRelatedSym) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m NoRelatedSym) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMultilegModel sets MultilegModel, Tag 1377 @@ -2394,8 +2395,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2780,13 +2781,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2820,8 +2821,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2835,13 +2836,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2895,38 +2896,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2935,8 +2936,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2945,8 +2946,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2965,8 +2966,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2980,13 +2981,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3010,8 +3011,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3020,8 +3021,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4168,13 +4169,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4208,8 +4209,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4223,13 +4224,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4268,8 +4269,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4313,13 +4314,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -4338,8 +4339,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4348,8 +4349,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -4383,8 +4384,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 @@ -5203,18 +5204,18 @@ type NoTickRules struct { } //SetStartTickPriceRange sets StartTickPriceRange, Tag 1206 -func (m NoTickRules) SetStartTickPriceRange(v float64) { - m.Set(field.NewStartTickPriceRange(v)) +func (m NoTickRules) SetStartTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartTickPriceRange(value, scale)) } //SetEndTickPriceRange sets EndTickPriceRange, Tag 1207 -func (m NoTickRules) SetEndTickPriceRange(v float64) { - m.Set(field.NewEndTickPriceRange(v)) +func (m NoTickRules) SetEndTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndTickPriceRange(value, scale)) } //SetTickIncrement sets TickIncrement, Tag 1208 -func (m NoTickRules) SetTickIncrement(v float64) { - m.Set(field.NewTickIncrement(v)) +func (m NoTickRules) SetTickIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewTickIncrement(value, scale)) } //SetTickRuleType sets TickRuleType, Tag 1209 @@ -5300,8 +5301,8 @@ func (m NoLotTypeRules) SetLotType(v string) { } //SetMinLotSize sets MinLotSize, Tag 1231 -func (m NoLotTypeRules) SetMinLotSize(v float64) { - m.Set(field.NewMinLotSize(v)) +func (m NoLotTypeRules) SetMinLotSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinLotSize(value, scale)) } //GetLotType gets LotType, Tag 1093 @@ -5833,18 +5834,18 @@ func (m NoStrikeRules) SetStrikeRuleID(v string) { } //SetStartStrikePxRange sets StartStrikePxRange, Tag 1202 -func (m NoStrikeRules) SetStartStrikePxRange(v float64) { - m.Set(field.NewStartStrikePxRange(v)) +func (m NoStrikeRules) SetStartStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartStrikePxRange(value, scale)) } //SetEndStrikePxRange sets EndStrikePxRange, Tag 1203 -func (m NoStrikeRules) SetEndStrikePxRange(v float64) { - m.Set(field.NewEndStrikePxRange(v)) +func (m NoStrikeRules) SetEndStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndStrikePxRange(value, scale)) } //SetStrikeIncrement sets StrikeIncrement, Tag 1204 -func (m NoStrikeRules) SetStrikeIncrement(v float64) { - m.Set(field.NewStrikeIncrement(v)) +func (m NoStrikeRules) SetStrikeIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeIncrement(value, scale)) } //SetStrikeExerciseStyle sets StrikeExerciseStyle, Tag 1304 diff --git a/fix50sp1/securitylistrequest/SecurityListRequest.generated.go b/fix50sp1/securitylistrequest/SecurityListRequest.generated.go index ade81ba76..cc4b18a7b 100644 --- a/fix50sp1/securitylistrequest/SecurityListRequest.generated.go +++ b/fix50sp1/securitylistrequest/SecurityListRequest.generated.go @@ -1,6 +1,7 @@ package securitylistrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -118,8 +119,8 @@ func (m SecurityListRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityListRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityListRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -133,8 +134,8 @@ func (m SecurityListRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityListRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityListRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -153,18 +154,18 @@ func (m SecurityListRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityListRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityListRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityListRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityListRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityListRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityListRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -318,8 +319,8 @@ func (m SecurityListRequest) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m SecurityListRequest) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m SecurityListRequest) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -348,8 +349,8 @@ func (m SecurityListRequest) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m SecurityListRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m SecurityListRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -403,18 +404,18 @@ func (m SecurityListRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m SecurityListRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m SecurityListRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m SecurityListRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m SecurityListRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m SecurityListRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m SecurityListRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -453,13 +454,13 @@ func (m SecurityListRequest) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m SecurityListRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m SecurityListRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m SecurityListRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m SecurityListRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -488,8 +489,8 @@ func (m SecurityListRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m SecurityListRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m SecurityListRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -503,8 +504,8 @@ func (m SecurityListRequest) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m SecurityListRequest) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m SecurityListRequest) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -523,13 +524,13 @@ func (m SecurityListRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m SecurityListRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m SecurityListRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m SecurityListRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m SecurityListRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -1793,13 +1794,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1833,8 +1834,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1848,13 +1849,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1893,8 +1894,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -1938,13 +1939,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -1963,8 +1964,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -1973,8 +1974,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -2714,13 +2715,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2754,8 +2755,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2769,13 +2770,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2829,38 +2830,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2869,8 +2870,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2879,8 +2880,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2899,8 +2900,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2914,13 +2915,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2944,8 +2945,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -2954,8 +2955,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -3977,8 +3978,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/securitylistupdatereport/SecurityListUpdateReport.generated.go b/fix50sp1/securitylistupdatereport/SecurityListUpdateReport.generated.go index 1f5ecb831..0f4732dc5 100644 --- a/fix50sp1/securitylistupdatereport/SecurityListUpdateReport.generated.go +++ b/fix50sp1/securitylistupdatereport/SecurityListUpdateReport.generated.go @@ -1,6 +1,7 @@ package securitylistupdatereport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -398,13 +399,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -438,8 +439,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -453,13 +454,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -548,18 +549,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -598,13 +599,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -633,8 +634,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -648,8 +649,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m NoRelatedSym) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -663,13 +664,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -698,8 +699,8 @@ func (m NoRelatedSym) SetDeliveryForm(v int) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m NoRelatedSym) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m NoRelatedSym) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -748,8 +749,8 @@ func (m NoRelatedSym) SetDeliveryType(v int) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NoRelatedSym) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NoRelatedSym) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetNoLegs sets NoLegs, Tag 555 @@ -758,8 +759,8 @@ func (m NoRelatedSym) SetNoLegs(f NoLegsRepeatingGroup) { } //SetSpread sets Spread, Tag 218 -func (m NoRelatedSym) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoRelatedSym) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -778,8 +779,8 @@ func (m NoRelatedSym) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoRelatedSym) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoRelatedSym) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -803,8 +804,8 @@ func (m NoRelatedSym) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoRelatedSym) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoRelatedSym) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -818,8 +819,8 @@ func (m NoRelatedSym) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoRelatedSym) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoRelatedSym) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -878,18 +879,18 @@ func (m NoRelatedSym) SetPriceLimitType(v int) { } //SetLowLimitPrice sets LowLimitPrice, Tag 1148 -func (m NoRelatedSym) SetLowLimitPrice(v float64) { - m.Set(field.NewLowLimitPrice(v)) +func (m NoRelatedSym) SetLowLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLowLimitPrice(value, scale)) } //SetHighLimitPrice sets HighLimitPrice, Tag 1149 -func (m NoRelatedSym) SetHighLimitPrice(v float64) { - m.Set(field.NewHighLimitPrice(v)) +func (m NoRelatedSym) SetHighLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewHighLimitPrice(value, scale)) } //SetTradingReferencePrice sets TradingReferencePrice, Tag 1150 -func (m NoRelatedSym) SetTradingReferencePrice(v float64) { - m.Set(field.NewTradingReferencePrice(v)) +func (m NoRelatedSym) SetTradingReferencePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTradingReferencePrice(value, scale)) } //SetExpirationCycle sets ExpirationCycle, Tag 827 @@ -898,18 +899,18 @@ func (m NoRelatedSym) SetExpirationCycle(v int) { } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m NoRelatedSym) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m NoRelatedSym) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetMaxTradeVol sets MaxTradeVol, Tag 1140 -func (m NoRelatedSym) SetMaxTradeVol(v float64) { - m.Set(field.NewMaxTradeVol(v)) +func (m NoRelatedSym) SetMaxTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxTradeVol(value, scale)) } //SetMaxPriceVariation sets MaxPriceVariation, Tag 1143 -func (m NoRelatedSym) SetMaxPriceVariation(v float64) { - m.Set(field.NewMaxPriceVariation(v)) +func (m NoRelatedSym) SetMaxPriceVariation(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxPriceVariation(value, scale)) } //SetImpliedMarketIndicator sets ImpliedMarketIndicator, Tag 1144 @@ -923,8 +924,8 @@ func (m NoRelatedSym) SetTradingCurrency(v string) { } //SetRoundLot sets RoundLot, Tag 561 -func (m NoRelatedSym) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m NoRelatedSym) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMultilegModel sets MultilegModel, Tag 1377 @@ -2442,8 +2443,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2828,13 +2829,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2868,8 +2869,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2883,13 +2884,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2928,8 +2929,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2973,13 +2974,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2998,8 +2999,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3008,8 +3009,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -3043,8 +3044,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 @@ -3938,13 +3939,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3978,8 +3979,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3993,13 +3994,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4053,38 +4054,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4093,8 +4094,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4103,8 +4104,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4123,8 +4124,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4138,13 +4139,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4168,8 +4169,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4178,8 +4179,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -5251,18 +5252,18 @@ type NoTickRules struct { } //SetStartTickPriceRange sets StartTickPriceRange, Tag 1206 -func (m NoTickRules) SetStartTickPriceRange(v float64) { - m.Set(field.NewStartTickPriceRange(v)) +func (m NoTickRules) SetStartTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartTickPriceRange(value, scale)) } //SetEndTickPriceRange sets EndTickPriceRange, Tag 1207 -func (m NoTickRules) SetEndTickPriceRange(v float64) { - m.Set(field.NewEndTickPriceRange(v)) +func (m NoTickRules) SetEndTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndTickPriceRange(value, scale)) } //SetTickIncrement sets TickIncrement, Tag 1208 -func (m NoTickRules) SetTickIncrement(v float64) { - m.Set(field.NewTickIncrement(v)) +func (m NoTickRules) SetTickIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewTickIncrement(value, scale)) } //SetTickRuleType sets TickRuleType, Tag 1209 @@ -5348,8 +5349,8 @@ func (m NoLotTypeRules) SetLotType(v string) { } //SetMinLotSize sets MinLotSize, Tag 1231 -func (m NoLotTypeRules) SetMinLotSize(v float64) { - m.Set(field.NewMinLotSize(v)) +func (m NoLotTypeRules) SetMinLotSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinLotSize(value, scale)) } //GetLotType gets LotType, Tag 1093 @@ -5881,18 +5882,18 @@ func (m NoStrikeRules) SetStrikeRuleID(v string) { } //SetStartStrikePxRange sets StartStrikePxRange, Tag 1202 -func (m NoStrikeRules) SetStartStrikePxRange(v float64) { - m.Set(field.NewStartStrikePxRange(v)) +func (m NoStrikeRules) SetStartStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartStrikePxRange(value, scale)) } //SetEndStrikePxRange sets EndStrikePxRange, Tag 1203 -func (m NoStrikeRules) SetEndStrikePxRange(v float64) { - m.Set(field.NewEndStrikePxRange(v)) +func (m NoStrikeRules) SetEndStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndStrikePxRange(value, scale)) } //SetStrikeIncrement sets StrikeIncrement, Tag 1204 -func (m NoStrikeRules) SetStrikeIncrement(v float64) { - m.Set(field.NewStrikeIncrement(v)) +func (m NoStrikeRules) SetStrikeIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeIncrement(value, scale)) } //SetStrikeExerciseStyle sets StrikeExerciseStyle, Tag 1304 diff --git a/fix50sp1/securitystatus/SecurityStatus.generated.go b/fix50sp1/securitystatus/SecurityStatus.generated.go index ef59cb434..848f84330 100644 --- a/fix50sp1/securitystatus/SecurityStatus.generated.go +++ b/fix50sp1/securitystatus/SecurityStatus.generated.go @@ -1,6 +1,7 @@ package securitystatus import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -71,8 +72,8 @@ func (m SecurityStatus) SetSecurityIDSource(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m SecurityStatus) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m SecurityStatus) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -126,8 +127,8 @@ func (m SecurityStatus) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityStatus) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityStatus) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -141,8 +142,8 @@ func (m SecurityStatus) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityStatus) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityStatus) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -161,18 +162,18 @@ func (m SecurityStatus) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityStatus) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityStatus) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityStatus) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityStatus) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityStatus) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityStatus) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -236,23 +237,23 @@ func (m SecurityStatus) SetDueToRelated(v bool) { } //SetBuyVolume sets BuyVolume, Tag 330 -func (m SecurityStatus) SetBuyVolume(v float64) { - m.Set(field.NewBuyVolume(v)) +func (m SecurityStatus) SetBuyVolume(value decimal.Decimal, scale int32) { + m.Set(field.NewBuyVolume(value, scale)) } //SetSellVolume sets SellVolume, Tag 331 -func (m SecurityStatus) SetSellVolume(v float64) { - m.Set(field.NewSellVolume(v)) +func (m SecurityStatus) SetSellVolume(value decimal.Decimal, scale int32) { + m.Set(field.NewSellVolume(value, scale)) } //SetHighPx sets HighPx, Tag 332 -func (m SecurityStatus) SetHighPx(v float64) { - m.Set(field.NewHighPx(v)) +func (m SecurityStatus) SetHighPx(value decimal.Decimal, scale int32) { + m.Set(field.NewHighPx(value, scale)) } //SetLowPx sets LowPx, Tag 333 -func (m SecurityStatus) SetLowPx(v float64) { - m.Set(field.NewLowPx(v)) +func (m SecurityStatus) SetLowPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLowPx(value, scale)) } //SetAdjustment sets Adjustment, Tag 334 @@ -376,8 +377,8 @@ func (m SecurityStatus) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m SecurityStatus) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m SecurityStatus) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -421,18 +422,18 @@ func (m SecurityStatus) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m SecurityStatus) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m SecurityStatus) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m SecurityStatus) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m SecurityStatus) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m SecurityStatus) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m SecurityStatus) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -466,8 +467,8 @@ func (m SecurityStatus) SetMDBookType(v int) { } //SetFirstPx sets FirstPx, Tag 1025 -func (m SecurityStatus) SetFirstPx(v float64) { - m.Set(field.NewFirstPx(v)) +func (m SecurityStatus) SetFirstPx(value decimal.Decimal, scale int32) { + m.Set(field.NewFirstPx(value, scale)) } //SetInstrmtAssignmentMethod sets InstrmtAssignmentMethod, Tag 1049 @@ -481,13 +482,13 @@ func (m SecurityStatus) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m SecurityStatus) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m SecurityStatus) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m SecurityStatus) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m SecurityStatus) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -531,8 +532,8 @@ func (m SecurityStatus) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m SecurityStatus) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m SecurityStatus) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -546,8 +547,8 @@ func (m SecurityStatus) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m SecurityStatus) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m SecurityStatus) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -566,13 +567,13 @@ func (m SecurityStatus) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m SecurityStatus) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m SecurityStatus) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m SecurityStatus) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m SecurityStatus) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -1967,13 +1968,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2007,8 +2008,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2022,13 +2023,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2067,8 +2068,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2112,13 +2113,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2137,8 +2138,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2147,8 +2148,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -2888,13 +2889,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2928,8 +2929,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2943,13 +2944,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3003,38 +3004,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3043,8 +3044,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3053,8 +3054,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3073,8 +3074,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3088,13 +3089,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3118,8 +3119,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3128,8 +3129,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4151,8 +4152,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/securitystatusrequest/SecurityStatusRequest.generated.go b/fix50sp1/securitystatusrequest/SecurityStatusRequest.generated.go index 9e0a9c149..6eec184a0 100644 --- a/fix50sp1/securitystatusrequest/SecurityStatusRequest.generated.go +++ b/fix50sp1/securitystatusrequest/SecurityStatusRequest.generated.go @@ -1,6 +1,7 @@ package securitystatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -113,8 +114,8 @@ func (m SecurityStatusRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -128,8 +129,8 @@ func (m SecurityStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -148,18 +149,18 @@ func (m SecurityStatusRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityStatusRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityStatusRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityStatusRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityStatusRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -293,8 +294,8 @@ func (m SecurityStatusRequest) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m SecurityStatusRequest) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m SecurityStatusRequest) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -338,18 +339,18 @@ func (m SecurityStatusRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m SecurityStatusRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m SecurityStatusRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m SecurityStatusRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m SecurityStatusRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m SecurityStatusRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m SecurityStatusRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -388,13 +389,13 @@ func (m SecurityStatusRequest) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m SecurityStatusRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m SecurityStatusRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m SecurityStatusRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m SecurityStatusRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -423,8 +424,8 @@ func (m SecurityStatusRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m SecurityStatusRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m SecurityStatusRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -438,8 +439,8 @@ func (m SecurityStatusRequest) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m SecurityStatusRequest) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m SecurityStatusRequest) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -458,13 +459,13 @@ func (m SecurityStatusRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m SecurityStatusRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m SecurityStatusRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m SecurityStatusRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m SecurityStatusRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -1585,13 +1586,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1625,8 +1626,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1640,13 +1641,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1685,8 +1686,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -1730,13 +1731,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -1755,8 +1756,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -1765,8 +1766,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -2506,13 +2507,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2546,8 +2547,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2561,13 +2562,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2621,38 +2622,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2661,8 +2662,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2671,8 +2672,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2691,8 +2692,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2706,13 +2707,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2736,8 +2737,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -2746,8 +2747,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -3769,8 +3770,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/settlementobligationreport/SettlementObligationReport.generated.go b/fix50sp1/settlementobligationreport/SettlementObligationReport.generated.go index 0cedac652..f5ae784bb 100644 --- a/fix50sp1/settlementobligationreport/SettlementObligationReport.generated.go +++ b/fix50sp1/settlementobligationreport/SettlementObligationReport.generated.go @@ -1,6 +1,7 @@ package settlementobligationreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -297,13 +298,13 @@ func (m NoSettlOblig) SetSettlObligRefID(v string) { } //SetCcyAmt sets CcyAmt, Tag 1157 -func (m NoSettlOblig) SetCcyAmt(v float64) { - m.Set(field.NewCcyAmt(v)) +func (m NoSettlOblig) SetCcyAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewCcyAmt(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoSettlOblig) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoSettlOblig) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -317,8 +318,8 @@ func (m NoSettlOblig) SetSettlCurrency(v string) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoSettlOblig) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoSettlOblig) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlDate sets SettlDate, Tag 64 @@ -402,13 +403,13 @@ func (m NoSettlOblig) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoSettlOblig) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoSettlOblig) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoSettlOblig) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoSettlOblig) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -442,8 +443,8 @@ func (m NoSettlOblig) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoSettlOblig) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoSettlOblig) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -457,13 +458,13 @@ func (m NoSettlOblig) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoSettlOblig) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoSettlOblig) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoSettlOblig) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoSettlOblig) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -552,18 +553,18 @@ func (m NoSettlOblig) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoSettlOblig) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoSettlOblig) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoSettlOblig) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoSettlOblig) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoSettlOblig) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoSettlOblig) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -602,13 +603,13 @@ func (m NoSettlOblig) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoSettlOblig) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoSettlOblig) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoSettlOblig) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoSettlOblig) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -637,8 +638,8 @@ func (m NoSettlOblig) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoSettlOblig) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoSettlOblig) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -652,8 +653,8 @@ func (m NoSettlOblig) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m NoSettlOblig) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m NoSettlOblig) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -667,13 +668,13 @@ func (m NoSettlOblig) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoSettlOblig) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoSettlOblig) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoSettlOblig) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoSettlOblig) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -1781,8 +1782,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/tradecapturereport/TradeCaptureReport.generated.go b/fix50sp1/tradecapturereport/TradeCaptureReport.generated.go index 023a21b34..50560232b 100644 --- a/fix50sp1/tradecapturereport/TradeCaptureReport.generated.go +++ b/fix50sp1/tradecapturereport/TradeCaptureReport.generated.go @@ -1,6 +1,7 @@ package tradecapturereport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -63,8 +64,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m TradeCaptureReport) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m TradeCaptureReport) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -88,18 +89,18 @@ func (m TradeCaptureReport) SetLastMkt(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m TradeCaptureReport) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m TradeCaptureReport) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastQty sets LastQty, Tag 32 -func (m TradeCaptureReport) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m TradeCaptureReport) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetOrderQty sets OrderQty, Tag 38 -func (m TradeCaptureReport) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m TradeCaptureReport) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdStatus sets OrdStatus, Tag 39 @@ -163,8 +164,8 @@ func (m TradeCaptureReport) SetExecType(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m TradeCaptureReport) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m TradeCaptureReport) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -173,13 +174,13 @@ func (m TradeCaptureReport) SetSecurityType(v string) { } //SetLastSpotRate sets LastSpotRate, Tag 194 -func (m TradeCaptureReport) SetLastSpotRate(v float64) { - m.Set(field.NewLastSpotRate(v)) +func (m TradeCaptureReport) SetLastSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSpotRate(value, scale)) } //SetLastForwardPoints sets LastForwardPoints, Tag 195 -func (m TradeCaptureReport) SetLastForwardPoints(v float64) { - m.Set(field.NewLastForwardPoints(v)) +func (m TradeCaptureReport) SetLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastForwardPoints(value, scale)) } //SetMaturityMonthYear sets MaturityMonthYear, Tag 200 @@ -193,8 +194,8 @@ func (m TradeCaptureReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m TradeCaptureReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m TradeCaptureReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -208,8 +209,8 @@ func (m TradeCaptureReport) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m TradeCaptureReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m TradeCaptureReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -228,8 +229,8 @@ func (m TradeCaptureReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m TradeCaptureReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m TradeCaptureReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -248,18 +249,18 @@ func (m TradeCaptureReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m TradeCaptureReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m TradeCaptureReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m TradeCaptureReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m TradeCaptureReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m TradeCaptureReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m TradeCaptureReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetYieldType sets YieldType, Tag 235 @@ -268,8 +269,8 @@ func (m TradeCaptureReport) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m TradeCaptureReport) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m TradeCaptureReport) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -323,8 +324,8 @@ func (m TradeCaptureReport) SetExecRestatementReason(v int) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m TradeCaptureReport) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m TradeCaptureReport) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -358,8 +359,8 @@ func (m TradeCaptureReport) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m TradeCaptureReport) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m TradeCaptureReport) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -383,8 +384,8 @@ func (m TradeCaptureReport) SetTradeReportTransType(v int) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m TradeCaptureReport) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m TradeCaptureReport) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryExecID sets SecondaryExecID, Tag 527 @@ -443,8 +444,8 @@ func (m TradeCaptureReport) SetMatchType(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m TradeCaptureReport) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m TradeCaptureReport) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -458,8 +459,8 @@ func (m TradeCaptureReport) SetContractSettlMonth(v string) { } //SetLastParPx sets LastParPx, Tag 669 -func (m TradeCaptureReport) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m TradeCaptureReport) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetPool sets Pool, Tag 691 @@ -473,8 +474,8 @@ func (m TradeCaptureReport) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m TradeCaptureReport) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m TradeCaptureReport) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -658,8 +659,8 @@ func (m TradeCaptureReport) SetSecondaryTradeReportRefID(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m TradeCaptureReport) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m TradeCaptureReport) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetLastRptRequested sets LastRptRequested, Tag 912 @@ -723,18 +724,18 @@ func (m TradeCaptureReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m TradeCaptureReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m TradeCaptureReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m TradeCaptureReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m TradeCaptureReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m TradeCaptureReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m TradeCaptureReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -753,8 +754,8 @@ func (m TradeCaptureReport) SetUnderlyingSettlementDate(v string) { } //SetRndPx sets RndPx, Tag 991 -func (m TradeCaptureReport) SetRndPx(v float64) { - m.Set(field.NewRndPx(v)) +func (m TradeCaptureReport) SetRndPx(value decimal.Decimal, scale int32) { + m.Set(field.NewRndPx(value, scale)) } //SetTierCode sets TierCode, Tag 994 @@ -813,13 +814,13 @@ func (m TradeCaptureReport) SetInstrmtAssignmentMethod(v string) { } //SetCalculatedCcyLastQty sets CalculatedCcyLastQty, Tag 1056 -func (m TradeCaptureReport) SetCalculatedCcyLastQty(v float64) { - m.Set(field.NewCalculatedCcyLastQty(v)) +func (m TradeCaptureReport) SetCalculatedCcyLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCalculatedCcyLastQty(value, scale)) } //SetLastSwapPoints sets LastSwapPoints, Tag 1071 -func (m TradeCaptureReport) SetLastSwapPoints(v float64) { - m.Set(field.NewLastSwapPoints(v)) +func (m TradeCaptureReport) SetLastSwapPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSwapPoints(value, scale)) } //SetMaturityTime sets MaturityTime, Tag 1079 @@ -873,13 +874,13 @@ func (m TradeCaptureReport) SetReportedPxDiff(v bool) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m TradeCaptureReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m TradeCaptureReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m TradeCaptureReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m TradeCaptureReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -913,13 +914,13 @@ func (m TradeCaptureReport) SetSecurityXMLSchema(v string) { } //SetVolatility sets Volatility, Tag 1188 -func (m TradeCaptureReport) SetVolatility(v float64) { - m.Set(field.NewVolatility(v)) +func (m TradeCaptureReport) SetVolatility(value decimal.Decimal, scale int32) { + m.Set(field.NewVolatility(value, scale)) } //SetRiskFreeRate sets RiskFreeRate, Tag 1190 -func (m TradeCaptureReport) SetRiskFreeRate(v float64) { - m.Set(field.NewRiskFreeRate(v)) +func (m TradeCaptureReport) SetRiskFreeRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRiskFreeRate(value, scale)) } //SetPriceUnitOfMeasure sets PriceUnitOfMeasure, Tag 1191 @@ -928,8 +929,8 @@ func (m TradeCaptureReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m TradeCaptureReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m TradeCaptureReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -943,8 +944,8 @@ func (m TradeCaptureReport) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m TradeCaptureReport) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m TradeCaptureReport) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -963,13 +964,13 @@ func (m TradeCaptureReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m TradeCaptureReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m TradeCaptureReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m TradeCaptureReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m TradeCaptureReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -993,8 +994,8 @@ func (m TradeCaptureReport) SetRejectText(v string) { } //SetFeeMultiplier sets FeeMultiplier, Tag 1329 -func (m TradeCaptureReport) SetFeeMultiplier(v float64) { - m.Set(field.NewFeeMultiplier(v)) +func (m TradeCaptureReport) SetFeeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewFeeMultiplier(value, scale)) } //SetApplLastSeqNum sets ApplLastSeqNum, Tag 1350 @@ -1008,13 +1009,13 @@ func (m TradeCaptureReport) SetApplResendFlag(v bool) { } //SetDividendYield sets DividendYield, Tag 1380 -func (m TradeCaptureReport) SetDividendYield(v float64) { - m.Set(field.NewDividendYield(v)) +func (m TradeCaptureReport) SetDividendYield(value decimal.Decimal, scale int32) { + m.Set(field.NewDividendYield(value, scale)) } //SetCurrencyRatio sets CurrencyRatio, Tag 1382 -func (m TradeCaptureReport) SetCurrencyRatio(v float64) { - m.Set(field.NewCurrencyRatio(v)) +func (m TradeCaptureReport) SetCurrencyRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewCurrencyRatio(value, scale)) } //SetNoTrdRepIndicators sets NoTrdRepIndicators, Tag 1387 @@ -3361,8 +3362,8 @@ func (m NoSides) SetTimeBracket(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoSides) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoSides) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -3391,58 +3392,58 @@ func (m NoSides) SetExDate(v string) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m NoSides) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m NoSides) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m NoSides) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m NoSides) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m NoSides) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m NoSides) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m NoSides) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m NoSides) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m NoSides) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m NoSides) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m NoSides) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m NoSides) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m NoSides) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m NoSides) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m NoSides) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m NoSides) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetNetMoney sets NetMoney, Tag 118 -func (m NoSides) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m NoSides) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoSides) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoSides) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoSides) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoSides) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -3561,8 +3562,8 @@ func (m NoSides) SetLotType(v string) { } //SetSideGrossTradeAmt sets SideGrossTradeAmt, Tag 1072 -func (m NoSides) SetSideGrossTradeAmt(v float64) { - m.Set(field.NewSideGrossTradeAmt(v)) +func (m NoSides) SetSideGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSideGrossTradeAmt(value, scale)) } //SetAggressorIndicator sets AggressorIndicator, Tag 1057 @@ -4625,8 +4626,8 @@ func (m NoContAmts) SetContAmtType(v int) { } //SetContAmtValue sets ContAmtValue, Tag 520 -func (m NoContAmts) SetContAmtValue(v float64) { - m.Set(field.NewContAmtValue(v)) +func (m NoContAmts) SetContAmtValue(value decimal.Decimal, scale int32) { + m.Set(field.NewContAmtValue(value, scale)) } //SetContAmtCurr sets ContAmtCurr, Tag 521 @@ -4756,8 +4757,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -4873,8 +4874,8 @@ func (m NoAllocs) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetAllocCustomerCapacity sets AllocCustomerCapacity, Tag 993 @@ -5578,13 +5579,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -5618,8 +5619,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -5633,13 +5634,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -5678,8 +5679,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -5723,13 +5724,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -5748,8 +5749,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -5758,13 +5759,13 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -5808,8 +5809,8 @@ func (m NoLegs) SetLegSettlDate(v string) { } //SetLegLastPx sets LegLastPx, Tag 637 -func (m NoLegs) SetLegLastPx(v float64) { - m.Set(field.NewLegLastPx(v)) +func (m NoLegs) SetLegLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastPx(value, scale)) } //SetLegReportID sets LegReportID, Tag 990 @@ -5823,18 +5824,18 @@ func (m NoLegs) SetLegSettlCurrency(v string) { } //SetLegLastForwardPoints sets LegLastForwardPoints, Tag 1073 -func (m NoLegs) SetLegLastForwardPoints(v float64) { - m.Set(field.NewLegLastForwardPoints(v)) +func (m NoLegs) SetLegLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastForwardPoints(value, scale)) } //SetLegCalculatedCcyLastQty sets LegCalculatedCcyLastQty, Tag 1074 -func (m NoLegs) SetLegCalculatedCcyLastQty(v float64) { - m.Set(field.NewLegCalculatedCcyLastQty(v)) +func (m NoLegs) SetLegCalculatedCcyLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCalculatedCcyLastQty(value, scale)) } //SetLegGrossTradeAmt sets LegGrossTradeAmt, Tag 1075 -func (m NoLegs) SetLegGrossTradeAmt(v float64) { - m.Set(field.NewLegGrossTradeAmt(v)) +func (m NoLegs) SetLegGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewLegGrossTradeAmt(value, scale)) } //SetLegNumber sets LegNumber, Tag 1152 @@ -5848,18 +5849,18 @@ func (m NoLegs) SetNoOfLegUnderlyings(f NoOfLegUnderlyingsRepeatingGroup) { } //SetLegVolatility sets LegVolatility, Tag 1379 -func (m NoLegs) SetLegVolatility(v float64) { - m.Set(field.NewLegVolatility(v)) +func (m NoLegs) SetLegVolatility(value decimal.Decimal, scale int32) { + m.Set(field.NewLegVolatility(value, scale)) } //SetLegDividendYield sets LegDividendYield, Tag 1381 -func (m NoLegs) SetLegDividendYield(v float64) { - m.Set(field.NewLegDividendYield(v)) +func (m NoLegs) SetLegDividendYield(value decimal.Decimal, scale int32) { + m.Set(field.NewLegDividendYield(value, scale)) } //SetLegCurrencyRatio sets LegCurrencyRatio, Tag 1383 -func (m NoLegs) SetLegCurrencyRatio(v float64) { - m.Set(field.NewLegCurrencyRatio(v)) +func (m NoLegs) SetLegCurrencyRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCurrencyRatio(value, scale)) } //SetLegExecInst sets LegExecInst, Tag 1384 @@ -5868,8 +5869,8 @@ func (m NoLegs) SetLegExecInst(v string) { } //SetLegLastQty sets LegLastQty, Tag 1418 -func (m NoLegs) SetLegLastQty(v float64) { - m.Set(field.NewLegLastQty(v)) +func (m NoLegs) SetLegLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -7024,8 +7025,8 @@ func (m NoOfLegUnderlyings) SetUnderlyingLegMaturityTime(v string) { } //SetUnderlyingLegStrikePrice sets UnderlyingLegStrikePrice, Tag 1340 -func (m NoOfLegUnderlyings) SetUnderlyingLegStrikePrice(v float64) { - m.Set(field.NewUnderlyingLegStrikePrice(v)) +func (m NoOfLegUnderlyings) SetUnderlyingLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingLegStrikePrice(value, scale)) } //SetUnderlyingLegOptAttribute sets UnderlyingLegOptAttribute, Tag 1391 @@ -7412,13 +7413,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -7452,8 +7453,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -7467,13 +7468,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -7527,38 +7528,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -7567,8 +7568,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -7577,8 +7578,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -7597,8 +7598,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -7612,13 +7613,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -7642,8 +7643,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -7652,8 +7653,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -8670,8 +8671,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -8875,8 +8876,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/tradecapturereportack/TradeCaptureReportAck.generated.go b/fix50sp1/tradecapturereportack/TradeCaptureReportAck.generated.go index a03d0bd23..be037a02a 100644 --- a/fix50sp1/tradecapturereportack/TradeCaptureReportAck.generated.go +++ b/fix50sp1/tradecapturereportack/TradeCaptureReportAck.generated.go @@ -1,6 +1,7 @@ package tradecapturereportack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -61,8 +62,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m TradeCaptureReportAck) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m TradeCaptureReportAck) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -86,13 +87,13 @@ func (m TradeCaptureReportAck) SetLastMkt(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m TradeCaptureReportAck) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m TradeCaptureReportAck) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastQty sets LastQty, Tag 32 -func (m TradeCaptureReportAck) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m TradeCaptureReportAck) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetOrdStatus sets OrdStatus, Tag 39 @@ -166,13 +167,13 @@ func (m TradeCaptureReportAck) SetSecurityType(v string) { } //SetLastSpotRate sets LastSpotRate, Tag 194 -func (m TradeCaptureReportAck) SetLastSpotRate(v float64) { - m.Set(field.NewLastSpotRate(v)) +func (m TradeCaptureReportAck) SetLastSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSpotRate(value, scale)) } //SetLastForwardPoints sets LastForwardPoints, Tag 195 -func (m TradeCaptureReportAck) SetLastForwardPoints(v float64) { - m.Set(field.NewLastForwardPoints(v)) +func (m TradeCaptureReportAck) SetLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastForwardPoints(value, scale)) } //SetMaturityMonthYear sets MaturityMonthYear, Tag 200 @@ -186,8 +187,8 @@ func (m TradeCaptureReportAck) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m TradeCaptureReportAck) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m TradeCaptureReportAck) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -201,8 +202,8 @@ func (m TradeCaptureReportAck) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m TradeCaptureReportAck) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m TradeCaptureReportAck) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -221,18 +222,18 @@ func (m TradeCaptureReportAck) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m TradeCaptureReportAck) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m TradeCaptureReportAck) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m TradeCaptureReportAck) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m TradeCaptureReportAck) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m TradeCaptureReportAck) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m TradeCaptureReportAck) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -291,8 +292,8 @@ func (m TradeCaptureReportAck) SetExecRestatementReason(v int) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m TradeCaptureReportAck) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m TradeCaptureReportAck) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -401,8 +402,8 @@ func (m TradeCaptureReportAck) SetContractSettlMonth(v string) { } //SetLastParPx sets LastParPx, Tag 669 -func (m TradeCaptureReportAck) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m TradeCaptureReportAck) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetPool sets Pool, Tag 691 @@ -596,18 +597,18 @@ func (m TradeCaptureReportAck) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m TradeCaptureReportAck) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m TradeCaptureReportAck) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m TradeCaptureReportAck) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m TradeCaptureReportAck) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m TradeCaptureReportAck) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m TradeCaptureReportAck) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -621,8 +622,8 @@ func (m TradeCaptureReportAck) SetNTPositionLimit(v int) { } //SetRndPx sets RndPx, Tag 991 -func (m TradeCaptureReportAck) SetRndPx(v float64) { - m.Set(field.NewRndPx(v)) +func (m TradeCaptureReportAck) SetRndPx(value decimal.Decimal, scale int32) { + m.Set(field.NewRndPx(value, scale)) } //SetTierCode sets TierCode, Tag 994 @@ -681,13 +682,13 @@ func (m TradeCaptureReportAck) SetInstrmtAssignmentMethod(v string) { } //SetCalculatedCcyLastQty sets CalculatedCcyLastQty, Tag 1056 -func (m TradeCaptureReportAck) SetCalculatedCcyLastQty(v float64) { - m.Set(field.NewCalculatedCcyLastQty(v)) +func (m TradeCaptureReportAck) SetCalculatedCcyLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCalculatedCcyLastQty(value, scale)) } //SetLastSwapPoints sets LastSwapPoints, Tag 1071 -func (m TradeCaptureReportAck) SetLastSwapPoints(v float64) { - m.Set(field.NewLastSwapPoints(v)) +func (m TradeCaptureReportAck) SetLastSwapPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSwapPoints(value, scale)) } //SetMaturityTime sets MaturityTime, Tag 1079 @@ -731,13 +732,13 @@ func (m TradeCaptureReportAck) SetRptSys(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m TradeCaptureReportAck) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m TradeCaptureReportAck) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m TradeCaptureReportAck) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m TradeCaptureReportAck) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -766,8 +767,8 @@ func (m TradeCaptureReportAck) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m TradeCaptureReportAck) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m TradeCaptureReportAck) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -781,8 +782,8 @@ func (m TradeCaptureReportAck) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m TradeCaptureReportAck) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m TradeCaptureReportAck) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -801,13 +802,13 @@ func (m TradeCaptureReportAck) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m TradeCaptureReportAck) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m TradeCaptureReportAck) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m TradeCaptureReportAck) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m TradeCaptureReportAck) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -826,8 +827,8 @@ func (m TradeCaptureReportAck) SetFlexibleIndicator(v bool) { } //SetFeeMultiplier sets FeeMultiplier, Tag 1329 -func (m TradeCaptureReportAck) SetFeeMultiplier(v float64) { - m.Set(field.NewFeeMultiplier(v)) +func (m TradeCaptureReportAck) SetFeeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewFeeMultiplier(value, scale)) } //SetNoTrdRepIndicators sets NoTrdRepIndicators, Tag 1387 @@ -2767,8 +2768,8 @@ func (m NoSides) SetTimeBracket(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoSides) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoSides) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -2797,58 +2798,58 @@ func (m NoSides) SetExDate(v string) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m NoSides) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m NoSides) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m NoSides) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m NoSides) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m NoSides) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m NoSides) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m NoSides) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m NoSides) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m NoSides) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m NoSides) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m NoSides) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m NoSides) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m NoSides) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m NoSides) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m NoSides) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m NoSides) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetNetMoney sets NetMoney, Tag 118 -func (m NoSides) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m NoSides) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoSides) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoSides) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoSides) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoSides) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -2912,8 +2913,8 @@ func (m NoSides) SetLotType(v string) { } //SetSideGrossTradeAmt sets SideGrossTradeAmt, Tag 1072 -func (m NoSides) SetSideGrossTradeAmt(v float64) { - m.Set(field.NewSideGrossTradeAmt(v)) +func (m NoSides) SetSideGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSideGrossTradeAmt(value, scale)) } //SetAggressorIndicator sets AggressorIndicator, Tag 1057 @@ -3951,8 +3952,8 @@ func (m NoContAmts) SetContAmtType(v int) { } //SetContAmtValue sets ContAmtValue, Tag 520 -func (m NoContAmts) SetContAmtValue(v float64) { - m.Set(field.NewContAmtValue(v)) +func (m NoContAmts) SetContAmtValue(value decimal.Decimal, scale int32) { + m.Set(field.NewContAmtValue(value, scale)) } //SetContAmtCurr sets ContAmtCurr, Tag 521 @@ -4082,8 +4083,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -4199,8 +4200,8 @@ func (m NoAllocs) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetAllocCustomerCapacity sets AllocCustomerCapacity, Tag 993 @@ -4904,13 +4905,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4944,8 +4945,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4959,13 +4960,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -5004,8 +5005,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -5049,13 +5050,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -5074,8 +5075,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -5084,13 +5085,13 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -5134,8 +5135,8 @@ func (m NoLegs) SetLegSettlDate(v string) { } //SetLegLastPx sets LegLastPx, Tag 637 -func (m NoLegs) SetLegLastPx(v float64) { - m.Set(field.NewLegLastPx(v)) +func (m NoLegs) SetLegLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastPx(value, scale)) } //SetLegReportID sets LegReportID, Tag 990 @@ -5149,18 +5150,18 @@ func (m NoLegs) SetLegSettlCurrency(v string) { } //SetLegLastForwardPoints sets LegLastForwardPoints, Tag 1073 -func (m NoLegs) SetLegLastForwardPoints(v float64) { - m.Set(field.NewLegLastForwardPoints(v)) +func (m NoLegs) SetLegLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastForwardPoints(value, scale)) } //SetLegCalculatedCcyLastQty sets LegCalculatedCcyLastQty, Tag 1074 -func (m NoLegs) SetLegCalculatedCcyLastQty(v float64) { - m.Set(field.NewLegCalculatedCcyLastQty(v)) +func (m NoLegs) SetLegCalculatedCcyLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCalculatedCcyLastQty(value, scale)) } //SetLegGrossTradeAmt sets LegGrossTradeAmt, Tag 1075 -func (m NoLegs) SetLegGrossTradeAmt(v float64) { - m.Set(field.NewLegGrossTradeAmt(v)) +func (m NoLegs) SetLegGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewLegGrossTradeAmt(value, scale)) } //SetLegNumber sets LegNumber, Tag 1152 @@ -5174,18 +5175,18 @@ func (m NoLegs) SetNoOfLegUnderlyings(f NoOfLegUnderlyingsRepeatingGroup) { } //SetLegVolatility sets LegVolatility, Tag 1379 -func (m NoLegs) SetLegVolatility(v float64) { - m.Set(field.NewLegVolatility(v)) +func (m NoLegs) SetLegVolatility(value decimal.Decimal, scale int32) { + m.Set(field.NewLegVolatility(value, scale)) } //SetLegDividendYield sets LegDividendYield, Tag 1381 -func (m NoLegs) SetLegDividendYield(v float64) { - m.Set(field.NewLegDividendYield(v)) +func (m NoLegs) SetLegDividendYield(value decimal.Decimal, scale int32) { + m.Set(field.NewLegDividendYield(value, scale)) } //SetLegCurrencyRatio sets LegCurrencyRatio, Tag 1383 -func (m NoLegs) SetLegCurrencyRatio(v float64) { - m.Set(field.NewLegCurrencyRatio(v)) +func (m NoLegs) SetLegCurrencyRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCurrencyRatio(value, scale)) } //SetLegExecInst sets LegExecInst, Tag 1384 @@ -5194,8 +5195,8 @@ func (m NoLegs) SetLegExecInst(v string) { } //SetLegLastQty sets LegLastQty, Tag 1418 -func (m NoLegs) SetLegLastQty(v float64) { - m.Set(field.NewLegLastQty(v)) +func (m NoLegs) SetLegLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -6350,8 +6351,8 @@ func (m NoOfLegUnderlyings) SetUnderlyingLegMaturityTime(v string) { } //SetUnderlyingLegStrikePrice sets UnderlyingLegStrikePrice, Tag 1340 -func (m NoOfLegUnderlyings) SetUnderlyingLegStrikePrice(v float64) { - m.Set(field.NewUnderlyingLegStrikePrice(v)) +func (m NoOfLegUnderlyings) SetUnderlyingLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingLegStrikePrice(value, scale)) } //SetUnderlyingLegOptAttribute sets UnderlyingLegOptAttribute, Tag 1391 @@ -6738,13 +6739,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -6778,8 +6779,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -6793,13 +6794,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -6853,38 +6854,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -6893,8 +6894,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -6903,8 +6904,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -6923,8 +6924,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -6938,13 +6939,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -6968,8 +6969,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -6978,8 +6979,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -7996,8 +7997,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -8201,8 +8202,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/tradecapturereportrequest/TradeCaptureReportRequest.generated.go b/fix50sp1/tradecapturereportrequest/TradeCaptureReportRequest.generated.go index 96270a0dd..3aca92b57 100644 --- a/fix50sp1/tradecapturereportrequest/TradeCaptureReportRequest.generated.go +++ b/fix50sp1/tradecapturereportrequest/TradeCaptureReportRequest.generated.go @@ -1,6 +1,7 @@ package tradecapturereportrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -138,8 +139,8 @@ func (m TradeCaptureReportRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m TradeCaptureReportRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m TradeCaptureReportRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -153,8 +154,8 @@ func (m TradeCaptureReportRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m TradeCaptureReportRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m TradeCaptureReportRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -173,18 +174,18 @@ func (m TradeCaptureReportRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m TradeCaptureReportRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m TradeCaptureReportRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m TradeCaptureReportRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m TradeCaptureReportRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m TradeCaptureReportRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m TradeCaptureReportRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -418,8 +419,8 @@ func (m TradeCaptureReportRequest) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m TradeCaptureReportRequest) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m TradeCaptureReportRequest) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -453,8 +454,8 @@ func (m TradeCaptureReportRequest) SetTrdMatchID(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m TradeCaptureReportRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m TradeCaptureReportRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -513,18 +514,18 @@ func (m TradeCaptureReportRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m TradeCaptureReportRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m TradeCaptureReportRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m TradeCaptureReportRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m TradeCaptureReportRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m TradeCaptureReportRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m TradeCaptureReportRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -593,13 +594,13 @@ func (m TradeCaptureReportRequest) SetTradeHandlingInstr(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m TradeCaptureReportRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m TradeCaptureReportRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m TradeCaptureReportRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m TradeCaptureReportRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -628,8 +629,8 @@ func (m TradeCaptureReportRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m TradeCaptureReportRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m TradeCaptureReportRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -643,8 +644,8 @@ func (m TradeCaptureReportRequest) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m TradeCaptureReportRequest) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m TradeCaptureReportRequest) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -663,13 +664,13 @@ func (m TradeCaptureReportRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m TradeCaptureReportRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m TradeCaptureReportRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m TradeCaptureReportRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m TradeCaptureReportRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -2364,13 +2365,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2404,8 +2405,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2419,13 +2420,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2464,8 +2465,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2509,13 +2510,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2534,8 +2535,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2544,8 +2545,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -3361,13 +3362,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3401,8 +3402,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3416,13 +3417,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3476,38 +3477,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3516,8 +3517,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3526,8 +3527,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3546,8 +3547,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3561,13 +3562,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3591,8 +3592,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3601,8 +3602,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4624,8 +4625,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/tradecapturereportrequestack/TradeCaptureReportRequestAck.generated.go b/fix50sp1/tradecapturereportrequestack/TradeCaptureReportRequestAck.generated.go index 8004f5518..e97628bc3 100644 --- a/fix50sp1/tradecapturereportrequestack/TradeCaptureReportRequestAck.generated.go +++ b/fix50sp1/tradecapturereportrequestack/TradeCaptureReportRequestAck.generated.go @@ -1,6 +1,7 @@ package tradecapturereportrequestack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -115,8 +116,8 @@ func (m TradeCaptureReportRequestAck) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m TradeCaptureReportRequestAck) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m TradeCaptureReportRequestAck) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -130,8 +131,8 @@ func (m TradeCaptureReportRequestAck) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m TradeCaptureReportRequestAck) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m TradeCaptureReportRequestAck) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -150,18 +151,18 @@ func (m TradeCaptureReportRequestAck) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m TradeCaptureReportRequestAck) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m TradeCaptureReportRequestAck) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m TradeCaptureReportRequestAck) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m TradeCaptureReportRequestAck) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m TradeCaptureReportRequestAck) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m TradeCaptureReportRequestAck) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -360,18 +361,18 @@ func (m TradeCaptureReportRequestAck) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m TradeCaptureReportRequestAck) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m TradeCaptureReportRequestAck) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m TradeCaptureReportRequestAck) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m TradeCaptureReportRequestAck) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m TradeCaptureReportRequestAck) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m TradeCaptureReportRequestAck) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -435,13 +436,13 @@ func (m TradeCaptureReportRequestAck) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m TradeCaptureReportRequestAck) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m TradeCaptureReportRequestAck) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m TradeCaptureReportRequestAck) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m TradeCaptureReportRequestAck) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -470,8 +471,8 @@ func (m TradeCaptureReportRequestAck) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m TradeCaptureReportRequestAck) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m TradeCaptureReportRequestAck) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -485,8 +486,8 @@ func (m TradeCaptureReportRequestAck) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m TradeCaptureReportRequestAck) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m TradeCaptureReportRequestAck) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -505,13 +506,13 @@ func (m TradeCaptureReportRequestAck) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m TradeCaptureReportRequestAck) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m TradeCaptureReportRequestAck) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m TradeCaptureReportRequestAck) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m TradeCaptureReportRequestAck) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -1698,13 +1699,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1738,8 +1739,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1753,13 +1754,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1798,8 +1799,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -1843,13 +1844,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -1868,8 +1869,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -1878,8 +1879,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -2619,13 +2620,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2659,8 +2660,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2674,13 +2675,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2734,38 +2735,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2774,8 +2775,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2784,8 +2785,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2804,8 +2805,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2819,13 +2820,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2849,8 +2850,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -2859,8 +2860,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -3882,8 +3883,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp1/tradingsessionlist/TradingSessionList.generated.go b/fix50sp1/tradingsessionlist/TradingSessionList.generated.go index c190943de..b15a51e6a 100644 --- a/fix50sp1/tradingsessionlist/TradingSessionList.generated.go +++ b/fix50sp1/tradingsessionlist/TradingSessionList.generated.go @@ -1,6 +1,7 @@ package tradingsessionlist import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -228,8 +229,8 @@ func (m NoTradingSessions) SetTradSesEndTime(v time.Time) { } //SetTotalVolumeTraded sets TotalVolumeTraded, Tag 387 -func (m NoTradingSessions) SetTotalVolumeTraded(v float64) { - m.Set(field.NewTotalVolumeTraded(v)) +func (m NoTradingSessions) SetTotalVolumeTraded(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalVolumeTraded(value, scale)) } //SetText sets Text, Tag 58 diff --git a/fix50sp1/tradingsessionlistupdatereport/TradingSessionListUpdateReport.generated.go b/fix50sp1/tradingsessionlistupdatereport/TradingSessionListUpdateReport.generated.go index 2734df488..e7d52e83d 100644 --- a/fix50sp1/tradingsessionlistupdatereport/TradingSessionListUpdateReport.generated.go +++ b/fix50sp1/tradingsessionlistupdatereport/TradingSessionListUpdateReport.generated.go @@ -1,6 +1,7 @@ package tradingsessionlistupdatereport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -244,8 +245,8 @@ func (m NoTradingSessions) SetTradSesEndTime(v time.Time) { } //SetTotalVolumeTraded sets TotalVolumeTraded, Tag 387 -func (m NoTradingSessions) SetTotalVolumeTraded(v float64) { - m.Set(field.NewTotalVolumeTraded(v)) +func (m NoTradingSessions) SetTotalVolumeTraded(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalVolumeTraded(value, scale)) } //SetText sets Text, Tag 58 diff --git a/fix50sp1/tradingsessionstatus/TradingSessionStatus.generated.go b/fix50sp1/tradingsessionstatus/TradingSessionStatus.generated.go index f88571372..b1856017f 100644 --- a/fix50sp1/tradingsessionstatus/TradingSessionStatus.generated.go +++ b/fix50sp1/tradingsessionstatus/TradingSessionStatus.generated.go @@ -1,6 +1,7 @@ package tradingsessionstatus import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -113,8 +114,8 @@ func (m TradingSessionStatus) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m TradingSessionStatus) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m TradingSessionStatus) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -128,8 +129,8 @@ func (m TradingSessionStatus) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m TradingSessionStatus) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m TradingSessionStatus) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -148,18 +149,18 @@ func (m TradingSessionStatus) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m TradingSessionStatus) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m TradingSessionStatus) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m TradingSessionStatus) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m TradingSessionStatus) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m TradingSessionStatus) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m TradingSessionStatus) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -263,8 +264,8 @@ func (m TradingSessionStatus) SetEncodedText(v string) { } //SetTotalVolumeTraded sets TotalVolumeTraded, Tag 387 -func (m TradingSessionStatus) SetTotalVolumeTraded(v float64) { - m.Set(field.NewTotalVolumeTraded(v)) +func (m TradingSessionStatus) SetTotalVolumeTraded(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalVolumeTraded(value, scale)) } //SetNoSecurityAltID sets NoSecurityAltID, Tag 454 @@ -373,18 +374,18 @@ func (m TradingSessionStatus) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m TradingSessionStatus) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m TradingSessionStatus) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m TradingSessionStatus) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m TradingSessionStatus) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m TradingSessionStatus) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m TradingSessionStatus) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -423,13 +424,13 @@ func (m TradingSessionStatus) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m TradingSessionStatus) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m TradingSessionStatus) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m TradingSessionStatus) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m TradingSessionStatus) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -468,8 +469,8 @@ func (m TradingSessionStatus) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m TradingSessionStatus) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m TradingSessionStatus) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -483,8 +484,8 @@ func (m TradingSessionStatus) SetExerciseStyle(v int) { } //SetOptPayAmount sets OptPayAmount, Tag 1195 -func (m TradingSessionStatus) SetOptPayAmount(v float64) { - m.Set(field.NewOptPayAmount(v)) +func (m TradingSessionStatus) SetOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -503,13 +504,13 @@ func (m TradingSessionStatus) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m TradingSessionStatus) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m TradingSessionStatus) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m TradingSessionStatus) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m TradingSessionStatus) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -1709,8 +1710,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 diff --git a/fix50sp2/adjustedpositionreport/AdjustedPositionReport.generated.go b/fix50sp2/adjustedpositionreport/AdjustedPositionReport.generated.go index e810e6074..3b4003bce 100644 --- a/fix50sp2/adjustedpositionreport/AdjustedPositionReport.generated.go +++ b/fix50sp2/adjustedpositionreport/AdjustedPositionReport.generated.go @@ -1,6 +1,7 @@ package adjustedpositionreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -103,13 +104,13 @@ func (m AdjustedPositionReport) SetPosReqType(v int) { } //SetSettlPrice sets SettlPrice, Tag 730 -func (m AdjustedPositionReport) SetSettlPrice(v float64) { - m.Set(field.NewSettlPrice(v)) +func (m AdjustedPositionReport) SetSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlPrice(value, scale)) } //SetPriorSettlPrice sets PriorSettlPrice, Tag 734 -func (m AdjustedPositionReport) SetPriorSettlPrice(v float64) { - m.Set(field.NewPriorSettlPrice(v)) +func (m AdjustedPositionReport) SetPriorSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPriorSettlPrice(value, scale)) } //GetNoRelatedSym gets NoRelatedSym, Tag 146 @@ -306,13 +307,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -346,8 +347,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -361,13 +362,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -456,18 +457,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -506,13 +507,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -541,8 +542,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -556,8 +557,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NoRelatedSym) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -571,13 +572,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -621,23 +622,23 @@ func (m NoRelatedSym) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NoRelatedSym) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NoRelatedSym) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NoRelatedSym) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NoRelatedSym) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NoRelatedSym) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -651,8 +652,8 @@ func (m NoRelatedSym) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -1718,8 +1719,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -1974,13 +1975,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -1989,8 +1990,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 @@ -2444,13 +2445,13 @@ func (m NoPositions) SetPosType(v string) { } //SetLongQty sets LongQty, Tag 704 -func (m NoPositions) SetLongQty(v float64) { - m.Set(field.NewLongQty(v)) +func (m NoPositions) SetLongQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLongQty(value, scale)) } //SetShortQty sets ShortQty, Tag 705 -func (m NoPositions) SetShortQty(v float64) { - m.Set(field.NewShortQty(v)) +func (m NoPositions) SetShortQty(value decimal.Decimal, scale int32) { + m.Set(field.NewShortQty(value, scale)) } //SetPosQtyStatus sets PosQtyStatus, Tag 706 diff --git a/fix50sp2/advertisement/Advertisement.generated.go b/fix50sp2/advertisement/Advertisement.generated.go index 079e6fb05..6e15e64d2 100644 --- a/fix50sp2/advertisement/Advertisement.generated.go +++ b/fix50sp2/advertisement/Advertisement.generated.go @@ -1,6 +1,7 @@ package advertisement import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -100,8 +101,8 @@ func (m Advertisement) SetLastMkt(v string) { } //SetPrice sets Price, Tag 44 -func (m Advertisement) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m Advertisement) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -110,8 +111,8 @@ func (m Advertisement) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m Advertisement) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m Advertisement) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSymbol sets Symbol, Tag 55 @@ -170,8 +171,8 @@ func (m Advertisement) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m Advertisement) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m Advertisement) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -185,8 +186,8 @@ func (m Advertisement) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m Advertisement) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m Advertisement) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -205,18 +206,18 @@ func (m Advertisement) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m Advertisement) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m Advertisement) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m Advertisement) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m Advertisement) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m Advertisement) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m Advertisement) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -385,18 +386,18 @@ func (m Advertisement) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m Advertisement) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m Advertisement) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m Advertisement) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m Advertisement) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m Advertisement) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m Advertisement) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -435,13 +436,13 @@ func (m Advertisement) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m Advertisement) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m Advertisement) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m Advertisement) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m Advertisement) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -470,8 +471,8 @@ func (m Advertisement) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m Advertisement) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m Advertisement) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -485,8 +486,8 @@ func (m Advertisement) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m Advertisement) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m Advertisement) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -505,13 +506,13 @@ func (m Advertisement) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m Advertisement) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m Advertisement) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m Advertisement) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m Advertisement) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -550,23 +551,23 @@ func (m Advertisement) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m Advertisement) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m Advertisement) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m Advertisement) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m Advertisement) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m Advertisement) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m Advertisement) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m Advertisement) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m Advertisement) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -580,8 +581,8 @@ func (m Advertisement) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m Advertisement) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m Advertisement) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -1923,13 +1924,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1963,8 +1964,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1978,13 +1979,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2023,8 +2024,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2068,13 +2069,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2093,8 +2094,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2103,8 +2104,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -2876,13 +2877,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2916,8 +2917,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2931,13 +2932,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2991,38 +2992,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3031,8 +3032,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3041,8 +3042,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3061,8 +3062,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3076,13 +3077,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3106,8 +3107,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3116,8 +3117,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3141,23 +3142,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4267,8 +4268,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4523,13 +4524,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -4538,8 +4539,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/allocationinstruction/AllocationInstruction.generated.go b/fix50sp2/allocationinstruction/AllocationInstruction.generated.go index 625b2c572..96fa5cd52 100644 --- a/fix50sp2/allocationinstruction/AllocationInstruction.generated.go +++ b/fix50sp2/allocationinstruction/AllocationInstruction.generated.go @@ -1,6 +1,7 @@ package allocationinstruction import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -67,8 +68,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m AllocationInstruction) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m AllocationInstruction) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -92,8 +93,8 @@ func (m AllocationInstruction) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m AllocationInstruction) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m AllocationInstruction) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -182,8 +183,8 @@ func (m AllocationInstruction) SetSecurityDesc(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m AllocationInstruction) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m AllocationInstruction) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetNoExecs sets NoExecs, Tag 124 @@ -197,13 +198,13 @@ func (m AllocationInstruction) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m AllocationInstruction) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m AllocationInstruction) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m AllocationInstruction) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m AllocationInstruction) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -232,8 +233,8 @@ func (m AllocationInstruction) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m AllocationInstruction) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m AllocationInstruction) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -247,8 +248,8 @@ func (m AllocationInstruction) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m AllocationInstruction) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m AllocationInstruction) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -267,8 +268,8 @@ func (m AllocationInstruction) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m AllocationInstruction) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m AllocationInstruction) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -287,13 +288,13 @@ func (m AllocationInstruction) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m AllocationInstruction) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m AllocationInstruction) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m AllocationInstruction) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m AllocationInstruction) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -302,8 +303,8 @@ func (m AllocationInstruction) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m AllocationInstruction) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m AllocationInstruction) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -317,18 +318,18 @@ func (m AllocationInstruction) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m AllocationInstruction) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m AllocationInstruction) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m AllocationInstruction) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m AllocationInstruction) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m AllocationInstruction) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m AllocationInstruction) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -382,8 +383,8 @@ func (m AllocationInstruction) SetEncodedText(v string) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m AllocationInstruction) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m AllocationInstruction) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -437,8 +438,8 @@ func (m AllocationInstruction) SetLocaleOfIssue(v string) { } //SetTotalAccruedInterestAmt sets TotalAccruedInterestAmt, Tag 540 -func (m AllocationInstruction) SetTotalAccruedInterestAmt(v float64) { - m.Set(field.NewTotalAccruedInterestAmt(v)) +func (m AllocationInstruction) SetTotalAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalAccruedInterestAmt(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -492,8 +493,8 @@ func (m AllocationInstruction) SetLegalConfirm(v bool) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m AllocationInstruction) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m AllocationInstruction) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -522,8 +523,8 @@ func (m AllocationInstruction) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m AllocationInstruction) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m AllocationInstruction) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -557,8 +558,8 @@ func (m AllocationInstruction) SetClearingBusinessDate(v string) { } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m AllocationInstruction) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m AllocationInstruction) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetNoPosAmt sets NoPosAmt, Tag 753 @@ -632,8 +633,8 @@ func (m AllocationInstruction) SetAllocNoOrdersType(v int) { } //SetAvgParPx sets AvgParPx, Tag 860 -func (m AllocationInstruction) SetAvgParPx(v float64) { - m.Set(field.NewAvgParPx(v)) +func (m AllocationInstruction) SetAvgParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgParPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -642,8 +643,8 @@ func (m AllocationInstruction) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m AllocationInstruction) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m AllocationInstruction) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -682,8 +683,8 @@ func (m AllocationInstruction) SetLastFragment(v bool) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m AllocationInstruction) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m AllocationInstruction) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -722,18 +723,18 @@ func (m AllocationInstruction) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m AllocationInstruction) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m AllocationInstruction) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m AllocationInstruction) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m AllocationInstruction) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m AllocationInstruction) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m AllocationInstruction) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -752,18 +753,18 @@ func (m AllocationInstruction) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m AllocationInstruction) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m AllocationInstruction) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m AllocationInstruction) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m AllocationInstruction) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m AllocationInstruction) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m AllocationInstruction) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -777,8 +778,8 @@ func (m AllocationInstruction) SetNTPositionLimit(v int) { } //SetRndPx sets RndPx, Tag 991 -func (m AllocationInstruction) SetRndPx(v float64) { - m.Set(field.NewRndPx(v)) +func (m AllocationInstruction) SetRndPx(value decimal.Decimal, scale int32) { + m.Set(field.NewRndPx(value, scale)) } //SetUnitOfMeasure sets UnitOfMeasure, Tag 996 @@ -812,13 +813,13 @@ func (m AllocationInstruction) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m AllocationInstruction) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m AllocationInstruction) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m AllocationInstruction) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m AllocationInstruction) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -847,8 +848,8 @@ func (m AllocationInstruction) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m AllocationInstruction) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m AllocationInstruction) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -862,8 +863,8 @@ func (m AllocationInstruction) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m AllocationInstruction) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m AllocationInstruction) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -882,13 +883,13 @@ func (m AllocationInstruction) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m AllocationInstruction) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m AllocationInstruction) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m AllocationInstruction) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m AllocationInstruction) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -932,23 +933,23 @@ func (m AllocationInstruction) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m AllocationInstruction) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m AllocationInstruction) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m AllocationInstruction) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m AllocationInstruction) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m AllocationInstruction) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m AllocationInstruction) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m AllocationInstruction) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m AllocationInstruction) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -962,8 +963,8 @@ func (m AllocationInstruction) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m AllocationInstruction) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m AllocationInstruction) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -3044,18 +3045,18 @@ func (m NoOrders) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrderAvgPx sets OrderAvgPx, Tag 799 -func (m NoOrders) SetOrderAvgPx(v float64) { - m.Set(field.NewOrderAvgPx(v)) +func (m NoOrders) SetOrderAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderAvgPx(value, scale)) } //SetOrderBookingQty sets OrderBookingQty, Tag 800 -func (m NoOrders) SetOrderBookingQty(v float64) { - m.Set(field.NewOrderBookingQty(v)) +func (m NoOrders) SetOrderBookingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderBookingQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 @@ -3355,13 +3356,13 @@ func (m NoAllocs) SetMatchStatus(v string) { } //SetAllocPrice sets AllocPrice, Tag 366 -func (m NoAllocs) SetAllocPrice(v float64) { - m.Set(field.NewAllocPrice(v)) +func (m NoAllocs) SetAllocPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocPrice(value, scale)) } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetIndividualAllocID sets IndividualAllocID, Tag 467 @@ -3405,8 +3406,8 @@ func (m NoAllocs) SetEncodedAllocText(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoAllocs) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoAllocs) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -3425,23 +3426,23 @@ func (m NoAllocs) SetFundRenewWaiv(v string) { } //SetAllocAvgPx sets AllocAvgPx, Tag 153 -func (m NoAllocs) SetAllocAvgPx(v float64) { - m.Set(field.NewAllocAvgPx(v)) +func (m NoAllocs) SetAllocAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAvgPx(value, scale)) } //SetAllocNetMoney sets AllocNetMoney, Tag 154 -func (m NoAllocs) SetAllocNetMoney(v float64) { - m.Set(field.NewAllocNetMoney(v)) +func (m NoAllocs) SetAllocNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoAllocs) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoAllocs) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetAllocSettlCurrAmt sets AllocSettlCurrAmt, Tag 737 -func (m NoAllocs) SetAllocSettlCurrAmt(v float64) { - m.Set(field.NewAllocSettlCurrAmt(v)) +func (m NoAllocs) SetAllocSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -3455,8 +3456,8 @@ func (m NoAllocs) SetAllocSettlCurrency(v string) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoAllocs) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoAllocs) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -3465,13 +3466,13 @@ func (m NoAllocs) SetSettlCurrFxRateCalc(v string) { } //SetAllocAccruedInterestAmt sets AllocAccruedInterestAmt, Tag 742 -func (m NoAllocs) SetAllocAccruedInterestAmt(v float64) { - m.Set(field.NewAllocAccruedInterestAmt(v)) +func (m NoAllocs) SetAllocAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAccruedInterestAmt(value, scale)) } //SetAllocInterestAtMaturity sets AllocInterestAtMaturity, Tag 741 -func (m NoAllocs) SetAllocInterestAtMaturity(v float64) { - m.Set(field.NewAllocInterestAtMaturity(v)) +func (m NoAllocs) SetAllocInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocInterestAtMaturity(value, scale)) } //SetNoMiscFees sets NoMiscFees, Tag 136 @@ -4158,8 +4159,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -4547,8 +4548,8 @@ type NoExecs struct { } //SetLastQty sets LastQty, Tag 32 -func (m NoExecs) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m NoExecs) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetExecID sets ExecID, Tag 17 @@ -4562,13 +4563,13 @@ func (m NoExecs) SetSecondaryExecID(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m NoExecs) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m NoExecs) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastParPx sets LastParPx, Tag 669 -func (m NoExecs) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m NoExecs) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetLastCapacity sets LastCapacity, Tag 29 @@ -5051,13 +5052,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -5091,8 +5092,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -5106,13 +5107,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -5151,8 +5152,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -5196,13 +5197,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -5221,8 +5222,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -5231,8 +5232,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -6004,13 +6005,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -6044,8 +6045,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -6059,13 +6060,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -6119,38 +6120,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -6159,8 +6160,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -6169,8 +6170,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -6189,8 +6190,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -6204,13 +6205,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -6234,8 +6235,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -6244,8 +6245,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -6269,23 +6270,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -7390,8 +7391,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -7471,8 +7472,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -7863,13 +7864,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -7878,8 +7879,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/allocationinstructionack/AllocationInstructionAck.generated.go b/fix50sp2/allocationinstructionack/AllocationInstructionAck.generated.go index 96f92a4cf..29263869f 100644 --- a/fix50sp2/allocationinstructionack/AllocationInstructionAck.generated.go +++ b/fix50sp2/allocationinstructionack/AllocationInstructionAck.generated.go @@ -1,6 +1,7 @@ package allocationinstructionack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -336,8 +337,8 @@ func (m NoAllocs) SetAllocAcctIDSource(v int) { } //SetAllocPrice sets AllocPrice, Tag 366 -func (m NoAllocs) SetAllocPrice(v float64) { - m.Set(field.NewAllocPrice(v)) +func (m NoAllocs) SetAllocPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocPrice(value, scale)) } //SetIndividualAllocID sets IndividualAllocID, Tag 467 @@ -381,8 +382,8 @@ func (m NoAllocs) SetIndividualAllocType(v int) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetNoNestedPartyIDs sets NoNestedPartyIDs, Tag 539 diff --git a/fix50sp2/allocationinstructionalert/AllocationInstructionAlert.generated.go b/fix50sp2/allocationinstructionalert/AllocationInstructionAlert.generated.go index 47b83810d..998de7012 100644 --- a/fix50sp2/allocationinstructionalert/AllocationInstructionAlert.generated.go +++ b/fix50sp2/allocationinstructionalert/AllocationInstructionAlert.generated.go @@ -1,6 +1,7 @@ package allocationinstructionalert import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -67,8 +68,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m AllocationInstructionAlert) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m AllocationInstructionAlert) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -92,8 +93,8 @@ func (m AllocationInstructionAlert) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m AllocationInstructionAlert) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m AllocationInstructionAlert) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -182,8 +183,8 @@ func (m AllocationInstructionAlert) SetSecurityDesc(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m AllocationInstructionAlert) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m AllocationInstructionAlert) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetNoExecs sets NoExecs, Tag 124 @@ -197,13 +198,13 @@ func (m AllocationInstructionAlert) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m AllocationInstructionAlert) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m AllocationInstructionAlert) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m AllocationInstructionAlert) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m AllocationInstructionAlert) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -232,8 +233,8 @@ func (m AllocationInstructionAlert) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m AllocationInstructionAlert) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m AllocationInstructionAlert) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -247,8 +248,8 @@ func (m AllocationInstructionAlert) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m AllocationInstructionAlert) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m AllocationInstructionAlert) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -267,8 +268,8 @@ func (m AllocationInstructionAlert) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m AllocationInstructionAlert) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m AllocationInstructionAlert) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -287,13 +288,13 @@ func (m AllocationInstructionAlert) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m AllocationInstructionAlert) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m AllocationInstructionAlert) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m AllocationInstructionAlert) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m AllocationInstructionAlert) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -302,8 +303,8 @@ func (m AllocationInstructionAlert) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m AllocationInstructionAlert) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m AllocationInstructionAlert) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -317,18 +318,18 @@ func (m AllocationInstructionAlert) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m AllocationInstructionAlert) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m AllocationInstructionAlert) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m AllocationInstructionAlert) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m AllocationInstructionAlert) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m AllocationInstructionAlert) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m AllocationInstructionAlert) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -382,8 +383,8 @@ func (m AllocationInstructionAlert) SetEncodedText(v string) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m AllocationInstructionAlert) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m AllocationInstructionAlert) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -437,8 +438,8 @@ func (m AllocationInstructionAlert) SetLocaleOfIssue(v string) { } //SetTotalAccruedInterestAmt sets TotalAccruedInterestAmt, Tag 540 -func (m AllocationInstructionAlert) SetTotalAccruedInterestAmt(v float64) { - m.Set(field.NewTotalAccruedInterestAmt(v)) +func (m AllocationInstructionAlert) SetTotalAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalAccruedInterestAmt(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -492,8 +493,8 @@ func (m AllocationInstructionAlert) SetLegalConfirm(v bool) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m AllocationInstructionAlert) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m AllocationInstructionAlert) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -522,8 +523,8 @@ func (m AllocationInstructionAlert) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m AllocationInstructionAlert) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m AllocationInstructionAlert) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -557,8 +558,8 @@ func (m AllocationInstructionAlert) SetClearingBusinessDate(v string) { } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m AllocationInstructionAlert) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m AllocationInstructionAlert) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetNoPosAmt sets NoPosAmt, Tag 753 @@ -632,8 +633,8 @@ func (m AllocationInstructionAlert) SetAllocNoOrdersType(v int) { } //SetAvgParPx sets AvgParPx, Tag 860 -func (m AllocationInstructionAlert) SetAvgParPx(v float64) { - m.Set(field.NewAvgParPx(v)) +func (m AllocationInstructionAlert) SetAvgParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgParPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -642,8 +643,8 @@ func (m AllocationInstructionAlert) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m AllocationInstructionAlert) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m AllocationInstructionAlert) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -682,8 +683,8 @@ func (m AllocationInstructionAlert) SetLastFragment(v bool) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m AllocationInstructionAlert) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m AllocationInstructionAlert) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -722,18 +723,18 @@ func (m AllocationInstructionAlert) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m AllocationInstructionAlert) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m AllocationInstructionAlert) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m AllocationInstructionAlert) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m AllocationInstructionAlert) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m AllocationInstructionAlert) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m AllocationInstructionAlert) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -752,18 +753,18 @@ func (m AllocationInstructionAlert) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m AllocationInstructionAlert) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m AllocationInstructionAlert) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m AllocationInstructionAlert) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m AllocationInstructionAlert) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m AllocationInstructionAlert) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m AllocationInstructionAlert) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -777,8 +778,8 @@ func (m AllocationInstructionAlert) SetNTPositionLimit(v int) { } //SetRndPx sets RndPx, Tag 991 -func (m AllocationInstructionAlert) SetRndPx(v float64) { - m.Set(field.NewRndPx(v)) +func (m AllocationInstructionAlert) SetRndPx(value decimal.Decimal, scale int32) { + m.Set(field.NewRndPx(value, scale)) } //SetUnitOfMeasure sets UnitOfMeasure, Tag 996 @@ -812,13 +813,13 @@ func (m AllocationInstructionAlert) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m AllocationInstructionAlert) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m AllocationInstructionAlert) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m AllocationInstructionAlert) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m AllocationInstructionAlert) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -847,8 +848,8 @@ func (m AllocationInstructionAlert) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m AllocationInstructionAlert) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m AllocationInstructionAlert) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -862,8 +863,8 @@ func (m AllocationInstructionAlert) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m AllocationInstructionAlert) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m AllocationInstructionAlert) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -882,13 +883,13 @@ func (m AllocationInstructionAlert) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m AllocationInstructionAlert) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m AllocationInstructionAlert) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m AllocationInstructionAlert) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m AllocationInstructionAlert) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -927,23 +928,23 @@ func (m AllocationInstructionAlert) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m AllocationInstructionAlert) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m AllocationInstructionAlert) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m AllocationInstructionAlert) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m AllocationInstructionAlert) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m AllocationInstructionAlert) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m AllocationInstructionAlert) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m AllocationInstructionAlert) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m AllocationInstructionAlert) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -957,8 +958,8 @@ func (m AllocationInstructionAlert) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m AllocationInstructionAlert) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m AllocationInstructionAlert) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -3027,18 +3028,18 @@ func (m NoOrders) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrderAvgPx sets OrderAvgPx, Tag 799 -func (m NoOrders) SetOrderAvgPx(v float64) { - m.Set(field.NewOrderAvgPx(v)) +func (m NoOrders) SetOrderAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderAvgPx(value, scale)) } //SetOrderBookingQty sets OrderBookingQty, Tag 800 -func (m NoOrders) SetOrderBookingQty(v float64) { - m.Set(field.NewOrderBookingQty(v)) +func (m NoOrders) SetOrderBookingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderBookingQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 @@ -3338,13 +3339,13 @@ func (m NoAllocs) SetMatchStatus(v string) { } //SetAllocPrice sets AllocPrice, Tag 366 -func (m NoAllocs) SetAllocPrice(v float64) { - m.Set(field.NewAllocPrice(v)) +func (m NoAllocs) SetAllocPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocPrice(value, scale)) } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetIndividualAllocID sets IndividualAllocID, Tag 467 @@ -3388,8 +3389,8 @@ func (m NoAllocs) SetEncodedAllocText(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoAllocs) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoAllocs) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -3408,23 +3409,23 @@ func (m NoAllocs) SetFundRenewWaiv(v string) { } //SetAllocAvgPx sets AllocAvgPx, Tag 153 -func (m NoAllocs) SetAllocAvgPx(v float64) { - m.Set(field.NewAllocAvgPx(v)) +func (m NoAllocs) SetAllocAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAvgPx(value, scale)) } //SetAllocNetMoney sets AllocNetMoney, Tag 154 -func (m NoAllocs) SetAllocNetMoney(v float64) { - m.Set(field.NewAllocNetMoney(v)) +func (m NoAllocs) SetAllocNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoAllocs) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoAllocs) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetAllocSettlCurrAmt sets AllocSettlCurrAmt, Tag 737 -func (m NoAllocs) SetAllocSettlCurrAmt(v float64) { - m.Set(field.NewAllocSettlCurrAmt(v)) +func (m NoAllocs) SetAllocSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -3438,8 +3439,8 @@ func (m NoAllocs) SetAllocSettlCurrency(v string) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoAllocs) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoAllocs) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -3448,13 +3449,13 @@ func (m NoAllocs) SetSettlCurrFxRateCalc(v string) { } //SetAllocAccruedInterestAmt sets AllocAccruedInterestAmt, Tag 742 -func (m NoAllocs) SetAllocAccruedInterestAmt(v float64) { - m.Set(field.NewAllocAccruedInterestAmt(v)) +func (m NoAllocs) SetAllocAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAccruedInterestAmt(value, scale)) } //SetAllocInterestAtMaturity sets AllocInterestAtMaturity, Tag 741 -func (m NoAllocs) SetAllocInterestAtMaturity(v float64) { - m.Set(field.NewAllocInterestAtMaturity(v)) +func (m NoAllocs) SetAllocInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocInterestAtMaturity(value, scale)) } //SetNoMiscFees sets NoMiscFees, Tag 136 @@ -4141,8 +4142,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -4530,8 +4531,8 @@ type NoExecs struct { } //SetLastQty sets LastQty, Tag 32 -func (m NoExecs) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m NoExecs) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetExecID sets ExecID, Tag 17 @@ -4545,13 +4546,13 @@ func (m NoExecs) SetSecondaryExecID(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m NoExecs) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m NoExecs) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastParPx sets LastParPx, Tag 669 -func (m NoExecs) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m NoExecs) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetLastCapacity sets LastCapacity, Tag 29 @@ -5034,13 +5035,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -5074,8 +5075,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -5089,13 +5090,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -5134,8 +5135,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -5179,13 +5180,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -5204,8 +5205,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -5214,8 +5215,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -5987,13 +5988,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -6027,8 +6028,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -6042,13 +6043,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -6102,38 +6103,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -6142,8 +6143,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -6152,8 +6153,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -6172,8 +6173,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -6187,13 +6188,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -6217,8 +6218,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -6227,8 +6228,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -6252,23 +6253,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -7373,8 +7374,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -7454,8 +7455,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -7770,13 +7771,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -7785,8 +7786,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/allocationreport/AllocationReport.generated.go b/fix50sp2/allocationreport/AllocationReport.generated.go index 87a57a675..5d0586b4a 100644 --- a/fix50sp2/allocationreport/AllocationReport.generated.go +++ b/fix50sp2/allocationreport/AllocationReport.generated.go @@ -1,6 +1,7 @@ package allocationreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -69,8 +70,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m AllocationReport) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m AllocationReport) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -94,8 +95,8 @@ func (m AllocationReport) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m AllocationReport) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m AllocationReport) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -194,8 +195,8 @@ func (m AllocationReport) SetSecurityDesc(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m AllocationReport) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m AllocationReport) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetNoExecs sets NoExecs, Tag 124 @@ -209,13 +210,13 @@ func (m AllocationReport) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m AllocationReport) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m AllocationReport) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m AllocationReport) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m AllocationReport) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -244,8 +245,8 @@ func (m AllocationReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m AllocationReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m AllocationReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -259,8 +260,8 @@ func (m AllocationReport) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m AllocationReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m AllocationReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -279,8 +280,8 @@ func (m AllocationReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m AllocationReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m AllocationReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -299,13 +300,13 @@ func (m AllocationReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m AllocationReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m AllocationReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m AllocationReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m AllocationReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -314,8 +315,8 @@ func (m AllocationReport) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m AllocationReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m AllocationReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -329,18 +330,18 @@ func (m AllocationReport) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m AllocationReport) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m AllocationReport) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m AllocationReport) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m AllocationReport) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m AllocationReport) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m AllocationReport) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -394,8 +395,8 @@ func (m AllocationReport) SetEncodedText(v string) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m AllocationReport) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m AllocationReport) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -449,8 +450,8 @@ func (m AllocationReport) SetLocaleOfIssue(v string) { } //SetTotalAccruedInterestAmt sets TotalAccruedInterestAmt, Tag 540 -func (m AllocationReport) SetTotalAccruedInterestAmt(v float64) { - m.Set(field.NewTotalAccruedInterestAmt(v)) +func (m AllocationReport) SetTotalAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalAccruedInterestAmt(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -504,8 +505,8 @@ func (m AllocationReport) SetLegalConfirm(v bool) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m AllocationReport) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m AllocationReport) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -534,8 +535,8 @@ func (m AllocationReport) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m AllocationReport) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m AllocationReport) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -569,8 +570,8 @@ func (m AllocationReport) SetClearingBusinessDate(v string) { } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m AllocationReport) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m AllocationReport) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetNoPosAmt sets NoPosAmt, Tag 753 @@ -659,8 +660,8 @@ func (m AllocationReport) SetAllocNoOrdersType(v int) { } //SetAvgParPx sets AvgParPx, Tag 860 -func (m AllocationReport) SetAvgParPx(v float64) { - m.Set(field.NewAvgParPx(v)) +func (m AllocationReport) SetAvgParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgParPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -669,8 +670,8 @@ func (m AllocationReport) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m AllocationReport) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m AllocationReport) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -709,8 +710,8 @@ func (m AllocationReport) SetLastFragment(v bool) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m AllocationReport) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m AllocationReport) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -749,18 +750,18 @@ func (m AllocationReport) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m AllocationReport) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m AllocationReport) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m AllocationReport) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m AllocationReport) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m AllocationReport) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m AllocationReport) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -779,18 +780,18 @@ func (m AllocationReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m AllocationReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m AllocationReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m AllocationReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m AllocationReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m AllocationReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m AllocationReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -804,8 +805,8 @@ func (m AllocationReport) SetNTPositionLimit(v int) { } //SetRndPx sets RndPx, Tag 991 -func (m AllocationReport) SetRndPx(v float64) { - m.Set(field.NewRndPx(v)) +func (m AllocationReport) SetRndPx(value decimal.Decimal, scale int32) { + m.Set(field.NewRndPx(value, scale)) } //SetUnitOfMeasure sets UnitOfMeasure, Tag 996 @@ -839,13 +840,13 @@ func (m AllocationReport) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m AllocationReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m AllocationReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m AllocationReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m AllocationReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -874,8 +875,8 @@ func (m AllocationReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m AllocationReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m AllocationReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -889,8 +890,8 @@ func (m AllocationReport) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m AllocationReport) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m AllocationReport) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -909,13 +910,13 @@ func (m AllocationReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m AllocationReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m AllocationReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m AllocationReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m AllocationReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -959,23 +960,23 @@ func (m AllocationReport) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m AllocationReport) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m AllocationReport) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m AllocationReport) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m AllocationReport) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m AllocationReport) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m AllocationReport) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m AllocationReport) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m AllocationReport) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -989,8 +990,8 @@ func (m AllocationReport) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m AllocationReport) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m AllocationReport) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -3126,18 +3127,18 @@ func (m NoOrders) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrderAvgPx sets OrderAvgPx, Tag 799 -func (m NoOrders) SetOrderAvgPx(v float64) { - m.Set(field.NewOrderAvgPx(v)) +func (m NoOrders) SetOrderAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderAvgPx(value, scale)) } //SetOrderBookingQty sets OrderBookingQty, Tag 800 -func (m NoOrders) SetOrderBookingQty(v float64) { - m.Set(field.NewOrderBookingQty(v)) +func (m NoOrders) SetOrderBookingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderBookingQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 @@ -3437,13 +3438,13 @@ func (m NoAllocs) SetMatchStatus(v string) { } //SetAllocPrice sets AllocPrice, Tag 366 -func (m NoAllocs) SetAllocPrice(v float64) { - m.Set(field.NewAllocPrice(v)) +func (m NoAllocs) SetAllocPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocPrice(value, scale)) } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetIndividualAllocID sets IndividualAllocID, Tag 467 @@ -3487,8 +3488,8 @@ func (m NoAllocs) SetEncodedAllocText(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoAllocs) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoAllocs) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -3507,23 +3508,23 @@ func (m NoAllocs) SetFundRenewWaiv(v string) { } //SetAllocAvgPx sets AllocAvgPx, Tag 153 -func (m NoAllocs) SetAllocAvgPx(v float64) { - m.Set(field.NewAllocAvgPx(v)) +func (m NoAllocs) SetAllocAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAvgPx(value, scale)) } //SetAllocNetMoney sets AllocNetMoney, Tag 154 -func (m NoAllocs) SetAllocNetMoney(v float64) { - m.Set(field.NewAllocNetMoney(v)) +func (m NoAllocs) SetAllocNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoAllocs) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoAllocs) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetAllocSettlCurrAmt sets AllocSettlCurrAmt, Tag 737 -func (m NoAllocs) SetAllocSettlCurrAmt(v float64) { - m.Set(field.NewAllocSettlCurrAmt(v)) +func (m NoAllocs) SetAllocSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -3537,8 +3538,8 @@ func (m NoAllocs) SetAllocSettlCurrency(v string) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoAllocs) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoAllocs) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -3547,13 +3548,13 @@ func (m NoAllocs) SetSettlCurrFxRateCalc(v string) { } //SetAllocAccruedInterestAmt sets AllocAccruedInterestAmt, Tag 742 -func (m NoAllocs) SetAllocAccruedInterestAmt(v float64) { - m.Set(field.NewAllocAccruedInterestAmt(v)) +func (m NoAllocs) SetAllocAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocAccruedInterestAmt(value, scale)) } //SetAllocInterestAtMaturity sets AllocInterestAtMaturity, Tag 741 -func (m NoAllocs) SetAllocInterestAtMaturity(v float64) { - m.Set(field.NewAllocInterestAtMaturity(v)) +func (m NoAllocs) SetAllocInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocInterestAtMaturity(value, scale)) } //SetNoMiscFees sets NoMiscFees, Tag 136 @@ -4240,8 +4241,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -4629,8 +4630,8 @@ type NoExecs struct { } //SetLastQty sets LastQty, Tag 32 -func (m NoExecs) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m NoExecs) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetExecID sets ExecID, Tag 17 @@ -4644,13 +4645,13 @@ func (m NoExecs) SetSecondaryExecID(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m NoExecs) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m NoExecs) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastParPx sets LastParPx, Tag 669 -func (m NoExecs) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m NoExecs) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetLastCapacity sets LastCapacity, Tag 29 @@ -5133,13 +5134,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -5173,8 +5174,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -5188,13 +5189,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -5233,8 +5234,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -5278,13 +5279,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -5303,8 +5304,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -5313,8 +5314,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -6086,13 +6087,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -6126,8 +6127,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -6141,13 +6142,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -6201,38 +6202,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -6241,8 +6242,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -6251,8 +6252,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -6271,8 +6272,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -6286,13 +6287,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -6316,8 +6317,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -6326,8 +6327,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -6351,23 +6352,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -7472,8 +7473,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -7553,8 +7554,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -7945,13 +7946,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -7960,8 +7961,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/allocationreportack/AllocationReportAck.generated.go b/fix50sp2/allocationreportack/AllocationReportAck.generated.go index 69ab688ec..559f125a5 100644 --- a/fix50sp2/allocationreportack/AllocationReportAck.generated.go +++ b/fix50sp2/allocationreportack/AllocationReportAck.generated.go @@ -1,6 +1,7 @@ package allocationreportack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -62,8 +63,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetQuantity sets Quantity, Tag 53 -func (m AllocationReportAck) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m AllocationReportAck) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetText sets Text, Tag 58 @@ -415,8 +416,8 @@ func (m NoAllocs) SetAllocAcctIDSource(v int) { } //SetAllocPrice sets AllocPrice, Tag 366 -func (m NoAllocs) SetAllocPrice(v float64) { - m.Set(field.NewAllocPrice(v)) +func (m NoAllocs) SetAllocPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocPrice(value, scale)) } //SetIndividualAllocID sets IndividualAllocID, Tag 467 @@ -460,8 +461,8 @@ func (m NoAllocs) SetIndividualAllocType(v int) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetNoNestedPartyIDs sets NoNestedPartyIDs, Tag 539 diff --git a/fix50sp2/assignmentreport/AssignmentReport.generated.go b/fix50sp2/assignmentreport/AssignmentReport.generated.go index 8212252ef..33f6f692d 100644 --- a/fix50sp2/assignmentreport/AssignmentReport.generated.go +++ b/fix50sp2/assignmentreport/AssignmentReport.generated.go @@ -1,6 +1,7 @@ package assignmentreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -123,8 +124,8 @@ func (m AssignmentReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m AssignmentReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m AssignmentReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -138,8 +139,8 @@ func (m AssignmentReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m AssignmentReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m AssignmentReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -158,18 +159,18 @@ func (m AssignmentReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m AssignmentReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m AssignmentReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m AssignmentReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m AssignmentReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m AssignmentReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m AssignmentReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -318,8 +319,8 @@ func (m AssignmentReport) SetSettlSessSubID(v string) { } //SetSettlPrice sets SettlPrice, Tag 730 -func (m AssignmentReport) SetSettlPrice(v float64) { - m.Set(field.NewSettlPrice(v)) +func (m AssignmentReport) SetSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlPrice(value, scale)) } //SetSettlPriceType sets SettlPriceType, Tag 731 @@ -328,13 +329,13 @@ func (m AssignmentReport) SetSettlPriceType(v int) { } //SetUnderlyingSettlPrice sets UnderlyingSettlPrice, Tag 732 -func (m AssignmentReport) SetUnderlyingSettlPrice(v float64) { - m.Set(field.NewUnderlyingSettlPrice(v)) +func (m AssignmentReport) SetUnderlyingSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingSettlPrice(value, scale)) } //SetPriorSettlPrice sets PriorSettlPrice, Tag 734 -func (m AssignmentReport) SetPriorSettlPrice(v float64) { - m.Set(field.NewPriorSettlPrice(v)) +func (m AssignmentReport) SetPriorSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPriorSettlPrice(value, scale)) } //SetAssignmentMethod sets AssignmentMethod, Tag 744 @@ -343,13 +344,13 @@ func (m AssignmentReport) SetAssignmentMethod(v string) { } //SetAssignmentUnit sets AssignmentUnit, Tag 745 -func (m AssignmentReport) SetAssignmentUnit(v float64) { - m.Set(field.NewAssignmentUnit(v)) +func (m AssignmentReport) SetAssignmentUnit(value decimal.Decimal, scale int32) { + m.Set(field.NewAssignmentUnit(value, scale)) } //SetOpenInterest sets OpenInterest, Tag 746 -func (m AssignmentReport) SetOpenInterest(v float64) { - m.Set(field.NewOpenInterest(v)) +func (m AssignmentReport) SetOpenInterest(value decimal.Decimal, scale int32) { + m.Set(field.NewOpenInterest(value, scale)) } //SetExerciseMethod sets ExerciseMethod, Tag 747 @@ -378,8 +379,8 @@ func (m AssignmentReport) SetAsgnRptID(v string) { } //SetThresholdAmount sets ThresholdAmount, Tag 834 -func (m AssignmentReport) SetThresholdAmount(v float64) { - m.Set(field.NewThresholdAmount(v)) +func (m AssignmentReport) SetThresholdAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewThresholdAmount(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -428,18 +429,18 @@ func (m AssignmentReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m AssignmentReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m AssignmentReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m AssignmentReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m AssignmentReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m AssignmentReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m AssignmentReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -478,13 +479,13 @@ func (m AssignmentReport) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m AssignmentReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m AssignmentReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m AssignmentReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m AssignmentReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -523,8 +524,8 @@ func (m AssignmentReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m AssignmentReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m AssignmentReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -538,8 +539,8 @@ func (m AssignmentReport) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m AssignmentReport) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m AssignmentReport) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -558,13 +559,13 @@ func (m AssignmentReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m AssignmentReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m AssignmentReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m AssignmentReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m AssignmentReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -613,23 +614,23 @@ func (m AssignmentReport) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m AssignmentReport) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m AssignmentReport) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m AssignmentReport) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m AssignmentReport) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m AssignmentReport) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m AssignmentReport) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m AssignmentReport) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m AssignmentReport) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -643,8 +644,8 @@ func (m AssignmentReport) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m AssignmentReport) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m AssignmentReport) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2285,13 +2286,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2325,8 +2326,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2340,13 +2341,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2385,8 +2386,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2430,13 +2431,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2455,8 +2456,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2465,8 +2466,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3168,13 +3169,13 @@ func (m NoPositions) SetPosType(v string) { } //SetLongQty sets LongQty, Tag 704 -func (m NoPositions) SetLongQty(v float64) { - m.Set(field.NewLongQty(v)) +func (m NoPositions) SetLongQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLongQty(value, scale)) } //SetShortQty sets ShortQty, Tag 705 -func (m NoPositions) SetShortQty(v float64) { - m.Set(field.NewShortQty(v)) +func (m NoPositions) SetShortQty(value decimal.Decimal, scale int32) { + m.Set(field.NewShortQty(value, scale)) } //SetPosQtyStatus sets PosQtyStatus, Tag 706 @@ -3516,13 +3517,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3556,8 +3557,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3571,13 +3572,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3631,38 +3632,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3671,8 +3672,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3681,8 +3682,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3701,8 +3702,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3716,13 +3717,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3746,8 +3747,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3756,8 +3757,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3781,23 +3782,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4902,8 +4903,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -4983,8 +4984,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -5239,13 +5240,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -5254,8 +5255,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/bidrequest/BidRequest.generated.go b/fix50sp2/bidrequest/BidRequest.generated.go index 73edfe6c1..92d148b09 100644 --- a/fix50sp2/bidrequest/BidRequest.generated.go +++ b/fix50sp2/bidrequest/BidRequest.generated.go @@ -1,6 +1,7 @@ package bidrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -132,13 +133,13 @@ func (m BidRequest) SetNumTickets(v int) { } //SetSideValue1 sets SideValue1, Tag 396 -func (m BidRequest) SetSideValue1(v float64) { - m.Set(field.NewSideValue1(v)) +func (m BidRequest) SetSideValue1(value decimal.Decimal, scale int32) { + m.Set(field.NewSideValue1(value, scale)) } //SetSideValue2 sets SideValue2, Tag 397 -func (m BidRequest) SetSideValue2(v float64) { - m.Set(field.NewSideValue2(v)) +func (m BidRequest) SetSideValue2(value decimal.Decimal, scale int32) { + m.Set(field.NewSideValue2(value, scale)) } //SetNoBidDescriptors sets NoBidDescriptors, Tag 398 @@ -152,8 +153,8 @@ func (m BidRequest) SetLiquidityIndType(v int) { } //SetWtAverageLiquidity sets WtAverageLiquidity, Tag 410 -func (m BidRequest) SetWtAverageLiquidity(v float64) { - m.Set(field.NewWtAverageLiquidity(v)) +func (m BidRequest) SetWtAverageLiquidity(value decimal.Decimal, scale int32) { + m.Set(field.NewWtAverageLiquidity(value, scale)) } //SetExchangeForPhysical sets ExchangeForPhysical, Tag 411 @@ -162,13 +163,13 @@ func (m BidRequest) SetExchangeForPhysical(v bool) { } //SetOutMainCntryUIndex sets OutMainCntryUIndex, Tag 412 -func (m BidRequest) SetOutMainCntryUIndex(v float64) { - m.Set(field.NewOutMainCntryUIndex(v)) +func (m BidRequest) SetOutMainCntryUIndex(value decimal.Decimal, scale int32) { + m.Set(field.NewOutMainCntryUIndex(value, scale)) } //SetCrossPercent sets CrossPercent, Tag 413 -func (m BidRequest) SetCrossPercent(v float64) { - m.Set(field.NewCrossPercent(v)) +func (m BidRequest) SetCrossPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewCrossPercent(value, scale)) } //SetProgRptReqs sets ProgRptReqs, Tag 414 @@ -553,8 +554,8 @@ func (m NoBidDescriptors) SetSideValueInd(v int) { } //SetLiquidityValue sets LiquidityValue, Tag 404 -func (m NoBidDescriptors) SetLiquidityValue(v float64) { - m.Set(field.NewLiquidityValue(v)) +func (m NoBidDescriptors) SetLiquidityValue(value decimal.Decimal, scale int32) { + m.Set(field.NewLiquidityValue(value, scale)) } //SetLiquidityNumSecurities sets LiquidityNumSecurities, Tag 441 @@ -563,33 +564,33 @@ func (m NoBidDescriptors) SetLiquidityNumSecurities(v int) { } //SetLiquidityPctLow sets LiquidityPctLow, Tag 402 -func (m NoBidDescriptors) SetLiquidityPctLow(v float64) { - m.Set(field.NewLiquidityPctLow(v)) +func (m NoBidDescriptors) SetLiquidityPctLow(value decimal.Decimal, scale int32) { + m.Set(field.NewLiquidityPctLow(value, scale)) } //SetLiquidityPctHigh sets LiquidityPctHigh, Tag 403 -func (m NoBidDescriptors) SetLiquidityPctHigh(v float64) { - m.Set(field.NewLiquidityPctHigh(v)) +func (m NoBidDescriptors) SetLiquidityPctHigh(value decimal.Decimal, scale int32) { + m.Set(field.NewLiquidityPctHigh(value, scale)) } //SetEFPTrackingError sets EFPTrackingError, Tag 405 -func (m NoBidDescriptors) SetEFPTrackingError(v float64) { - m.Set(field.NewEFPTrackingError(v)) +func (m NoBidDescriptors) SetEFPTrackingError(value decimal.Decimal, scale int32) { + m.Set(field.NewEFPTrackingError(value, scale)) } //SetFairValue sets FairValue, Tag 406 -func (m NoBidDescriptors) SetFairValue(v float64) { - m.Set(field.NewFairValue(v)) +func (m NoBidDescriptors) SetFairValue(value decimal.Decimal, scale int32) { + m.Set(field.NewFairValue(value, scale)) } //SetOutsideIndexPct sets OutsideIndexPct, Tag 407 -func (m NoBidDescriptors) SetOutsideIndexPct(v float64) { - m.Set(field.NewOutsideIndexPct(v)) +func (m NoBidDescriptors) SetOutsideIndexPct(value decimal.Decimal, scale int32) { + m.Set(field.NewOutsideIndexPct(value, scale)) } //SetValueOfFutures sets ValueOfFutures, Tag 408 -func (m NoBidDescriptors) SetValueOfFutures(v float64) { - m.Set(field.NewValueOfFutures(v)) +func (m NoBidDescriptors) SetValueOfFutures(value decimal.Decimal, scale int32) { + m.Set(field.NewValueOfFutures(value, scale)) } //GetBidDescriptorType gets BidDescriptorType, Tag 399 diff --git a/fix50sp2/bidresponse/BidResponse.generated.go b/fix50sp2/bidresponse/BidResponse.generated.go index 45a717c36..6b34401b2 100644 --- a/fix50sp2/bidresponse/BidResponse.generated.go +++ b/fix50sp2/bidresponse/BidResponse.generated.go @@ -1,6 +1,7 @@ package bidresponse import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -115,8 +116,8 @@ type NoBidComponents struct { } //SetCommission sets Commission, Tag 12 -func (m NoBidComponents) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoBidComponents) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -150,8 +151,8 @@ func (m NoBidComponents) SetSide(v string) { } //SetPrice sets Price, Tag 44 -func (m NoBidComponents) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoBidComponents) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -160,8 +161,8 @@ func (m NoBidComponents) SetPriceType(v int) { } //SetFairValue sets FairValue, Tag 406 -func (m NoBidComponents) SetFairValue(v float64) { - m.Set(field.NewFairValue(v)) +func (m NoBidComponents) SetFairValue(value decimal.Decimal, scale int32) { + m.Set(field.NewFairValue(value, scale)) } //SetNetGrossInd sets NetGrossInd, Tag 430 diff --git a/fix50sp2/collateralassignment/CollateralAssignment.generated.go b/fix50sp2/collateralassignment/CollateralAssignment.generated.go index 36235f423..b0ab9c16b 100644 --- a/fix50sp2/collateralassignment/CollateralAssignment.generated.go +++ b/fix50sp2/collateralassignment/CollateralAssignment.generated.go @@ -1,6 +1,7 @@ package collateralassignment import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -90,8 +91,8 @@ func (m CollateralAssignment) SetOrderID(v string) { } //SetPrice sets Price, Tag 44 -func (m CollateralAssignment) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CollateralAssignment) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -100,8 +101,8 @@ func (m CollateralAssignment) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralAssignment) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralAssignment) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -165,8 +166,8 @@ func (m CollateralAssignment) SetNoMiscFees(f NoMiscFeesRepeatingGroup) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m CollateralAssignment) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m CollateralAssignment) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -210,8 +211,8 @@ func (m CollateralAssignment) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralAssignment) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralAssignment) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -225,8 +226,8 @@ func (m CollateralAssignment) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m CollateralAssignment) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CollateralAssignment) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -245,8 +246,8 @@ func (m CollateralAssignment) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralAssignment) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralAssignment) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -265,18 +266,18 @@ func (m CollateralAssignment) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralAssignment) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralAssignment) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralAssignment) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralAssignment) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralAssignment) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralAssignment) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -405,8 +406,8 @@ func (m CollateralAssignment) SetTradingSessionSubID(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CollateralAssignment) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CollateralAssignment) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -515,23 +516,23 @@ func (m CollateralAssignment) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralAssignment) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralAssignment) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetMarginExcess sets MarginExcess, Tag 899 -func (m CollateralAssignment) SetMarginExcess(v float64) { - m.Set(field.NewMarginExcess(v)) +func (m CollateralAssignment) SetMarginExcess(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginExcess(value, scale)) } //SetTotalNetValue sets TotalNetValue, Tag 900 -func (m CollateralAssignment) SetTotalNetValue(v float64) { - m.Set(field.NewTotalNetValue(v)) +func (m CollateralAssignment) SetTotalNetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalNetValue(value, scale)) } //SetCashOutstanding sets CashOutstanding, Tag 901 -func (m CollateralAssignment) SetCashOutstanding(v float64) { - m.Set(field.NewCashOutstanding(v)) +func (m CollateralAssignment) SetCashOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOutstanding(value, scale)) } //SetCollAsgnID sets CollAsgnID, Tag 902 @@ -585,18 +586,18 @@ func (m CollateralAssignment) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m CollateralAssignment) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m CollateralAssignment) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m CollateralAssignment) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m CollateralAssignment) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m CollateralAssignment) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m CollateralAssignment) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -615,18 +616,18 @@ func (m CollateralAssignment) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CollateralAssignment) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CollateralAssignment) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CollateralAssignment) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CollateralAssignment) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CollateralAssignment) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CollateralAssignment) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -665,13 +666,13 @@ func (m CollateralAssignment) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m CollateralAssignment) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m CollateralAssignment) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m CollateralAssignment) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m CollateralAssignment) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -700,8 +701,8 @@ func (m CollateralAssignment) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m CollateralAssignment) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m CollateralAssignment) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -715,8 +716,8 @@ func (m CollateralAssignment) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m CollateralAssignment) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m CollateralAssignment) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -735,13 +736,13 @@ func (m CollateralAssignment) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m CollateralAssignment) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m CollateralAssignment) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m CollateralAssignment) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m CollateralAssignment) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -780,23 +781,23 @@ func (m CollateralAssignment) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m CollateralAssignment) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m CollateralAssignment) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m CollateralAssignment) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m CollateralAssignment) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m CollateralAssignment) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m CollateralAssignment) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m CollateralAssignment) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m CollateralAssignment) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -810,8 +811,8 @@ func (m CollateralAssignment) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m CollateralAssignment) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m CollateralAssignment) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2805,8 +2806,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -3245,13 +3246,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3285,8 +3286,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3300,13 +3301,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3345,8 +3346,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3390,13 +3391,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3415,8 +3416,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3425,8 +3426,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -4198,13 +4199,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4238,8 +4239,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4253,13 +4254,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4313,38 +4314,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4353,8 +4354,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4363,8 +4364,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4383,8 +4384,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4398,13 +4399,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4428,8 +4429,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4438,8 +4439,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -4463,23 +4464,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //SetCollAction sets CollAction, Tag 944 @@ -5729,8 +5730,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -6045,13 +6046,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -6060,8 +6061,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/collateralinquiry/CollateralInquiry.generated.go b/fix50sp2/collateralinquiry/CollateralInquiry.generated.go index 61a3a702a..1a703c442 100644 --- a/fix50sp2/collateralinquiry/CollateralInquiry.generated.go +++ b/fix50sp2/collateralinquiry/CollateralInquiry.generated.go @@ -1,6 +1,7 @@ package collateralinquiry import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -87,8 +88,8 @@ func (m CollateralInquiry) SetOrderID(v string) { } //SetPrice sets Price, Tag 44 -func (m CollateralInquiry) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CollateralInquiry) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -97,8 +98,8 @@ func (m CollateralInquiry) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralInquiry) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralInquiry) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -147,8 +148,8 @@ func (m CollateralInquiry) SetNoExecs(f NoExecsRepeatingGroup) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m CollateralInquiry) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m CollateralInquiry) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -192,8 +193,8 @@ func (m CollateralInquiry) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralInquiry) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralInquiry) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -207,8 +208,8 @@ func (m CollateralInquiry) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m CollateralInquiry) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CollateralInquiry) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -227,8 +228,8 @@ func (m CollateralInquiry) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralInquiry) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralInquiry) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -247,18 +248,18 @@ func (m CollateralInquiry) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralInquiry) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralInquiry) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralInquiry) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralInquiry) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralInquiry) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralInquiry) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -392,8 +393,8 @@ func (m CollateralInquiry) SetTradingSessionSubID(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CollateralInquiry) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CollateralInquiry) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -502,23 +503,23 @@ func (m CollateralInquiry) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralInquiry) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralInquiry) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetMarginExcess sets MarginExcess, Tag 899 -func (m CollateralInquiry) SetMarginExcess(v float64) { - m.Set(field.NewMarginExcess(v)) +func (m CollateralInquiry) SetMarginExcess(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginExcess(value, scale)) } //SetTotalNetValue sets TotalNetValue, Tag 900 -func (m CollateralInquiry) SetTotalNetValue(v float64) { - m.Set(field.NewTotalNetValue(v)) +func (m CollateralInquiry) SetTotalNetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalNetValue(value, scale)) } //SetCashOutstanding sets CashOutstanding, Tag 901 -func (m CollateralInquiry) SetCashOutstanding(v float64) { - m.Set(field.NewCashOutstanding(v)) +func (m CollateralInquiry) SetCashOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOutstanding(value, scale)) } //SetCollInquiryID sets CollInquiryID, Tag 909 @@ -562,18 +563,18 @@ func (m CollateralInquiry) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m CollateralInquiry) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m CollateralInquiry) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m CollateralInquiry) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m CollateralInquiry) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m CollateralInquiry) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m CollateralInquiry) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetNoCollInquiryQualifier sets NoCollInquiryQualifier, Tag 938 @@ -597,18 +598,18 @@ func (m CollateralInquiry) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CollateralInquiry) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CollateralInquiry) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CollateralInquiry) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CollateralInquiry) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CollateralInquiry) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CollateralInquiry) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -647,13 +648,13 @@ func (m CollateralInquiry) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m CollateralInquiry) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m CollateralInquiry) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m CollateralInquiry) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m CollateralInquiry) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -682,8 +683,8 @@ func (m CollateralInquiry) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m CollateralInquiry) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m CollateralInquiry) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -697,8 +698,8 @@ func (m CollateralInquiry) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m CollateralInquiry) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m CollateralInquiry) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -717,13 +718,13 @@ func (m CollateralInquiry) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m CollateralInquiry) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m CollateralInquiry) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m CollateralInquiry) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m CollateralInquiry) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -762,23 +763,23 @@ func (m CollateralInquiry) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m CollateralInquiry) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m CollateralInquiry) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m CollateralInquiry) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m CollateralInquiry) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m CollateralInquiry) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m CollateralInquiry) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m CollateralInquiry) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m CollateralInquiry) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -792,8 +793,8 @@ func (m CollateralInquiry) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m CollateralInquiry) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m CollateralInquiry) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -3102,13 +3103,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3142,8 +3143,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3157,13 +3158,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3202,8 +3203,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3247,13 +3248,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3272,8 +3273,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3282,8 +3283,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -4055,13 +4056,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4095,8 +4096,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4110,13 +4111,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4170,38 +4171,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4210,8 +4211,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4220,8 +4221,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4240,8 +4241,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4255,13 +4256,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4285,8 +4286,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4295,8 +4296,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -4320,23 +4321,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -5570,8 +5571,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -5930,13 +5931,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -5945,8 +5946,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/collateralinquiryack/CollateralInquiryAck.generated.go b/fix50sp2/collateralinquiryack/CollateralInquiryAck.generated.go index f7963c79e..8a5d0883f 100644 --- a/fix50sp2/collateralinquiryack/CollateralInquiryAck.generated.go +++ b/fix50sp2/collateralinquiryack/CollateralInquiryAck.generated.go @@ -1,6 +1,7 @@ package collateralinquiryack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -93,8 +94,8 @@ func (m CollateralInquiryAck) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralInquiryAck) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralInquiryAck) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSymbol sets Symbol, Tag 55 @@ -153,8 +154,8 @@ func (m CollateralInquiryAck) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralInquiryAck) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralInquiryAck) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -168,8 +169,8 @@ func (m CollateralInquiryAck) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralInquiryAck) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralInquiryAck) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -188,18 +189,18 @@ func (m CollateralInquiryAck) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralInquiryAck) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralInquiryAck) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralInquiryAck) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralInquiryAck) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralInquiryAck) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralInquiryAck) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -403,8 +404,8 @@ func (m CollateralInquiryAck) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralInquiryAck) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralInquiryAck) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetCollInquiryID sets CollInquiryID, Tag 909 @@ -483,18 +484,18 @@ func (m CollateralInquiryAck) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CollateralInquiryAck) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CollateralInquiryAck) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CollateralInquiryAck) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CollateralInquiryAck) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CollateralInquiryAck) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CollateralInquiryAck) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -533,13 +534,13 @@ func (m CollateralInquiryAck) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m CollateralInquiryAck) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m CollateralInquiryAck) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m CollateralInquiryAck) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m CollateralInquiryAck) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -568,8 +569,8 @@ func (m CollateralInquiryAck) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m CollateralInquiryAck) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m CollateralInquiryAck) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -583,8 +584,8 @@ func (m CollateralInquiryAck) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m CollateralInquiryAck) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m CollateralInquiryAck) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -603,13 +604,13 @@ func (m CollateralInquiryAck) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m CollateralInquiryAck) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m CollateralInquiryAck) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m CollateralInquiryAck) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m CollateralInquiryAck) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -648,23 +649,23 @@ func (m CollateralInquiryAck) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m CollateralInquiryAck) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m CollateralInquiryAck) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m CollateralInquiryAck) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m CollateralInquiryAck) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m CollateralInquiryAck) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m CollateralInquiryAck) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m CollateralInquiryAck) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m CollateralInquiryAck) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -678,8 +679,8 @@ func (m CollateralInquiryAck) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m CollateralInquiryAck) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m CollateralInquiryAck) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2442,13 +2443,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2482,8 +2483,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2497,13 +2498,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2542,8 +2543,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2587,13 +2588,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2612,8 +2613,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2622,8 +2623,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3395,13 +3396,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3435,8 +3436,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3450,13 +3451,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3510,38 +3511,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3550,8 +3551,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3560,8 +3561,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3580,8 +3581,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3595,13 +3596,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3625,8 +3626,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3635,8 +3636,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3660,23 +3661,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4786,8 +4787,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -5146,13 +5147,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -5161,8 +5162,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/collateralreport/CollateralReport.generated.go b/fix50sp2/collateralreport/CollateralReport.generated.go index fa434ecd3..9c8226810 100644 --- a/fix50sp2/collateralreport/CollateralReport.generated.go +++ b/fix50sp2/collateralreport/CollateralReport.generated.go @@ -1,6 +1,7 @@ package collateralreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -88,8 +89,8 @@ func (m CollateralReport) SetOrderID(v string) { } //SetPrice sets Price, Tag 44 -func (m CollateralReport) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CollateralReport) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -98,8 +99,8 @@ func (m CollateralReport) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralReport) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralReport) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -158,8 +159,8 @@ func (m CollateralReport) SetNoMiscFees(f NoMiscFeesRepeatingGroup) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m CollateralReport) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m CollateralReport) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -203,8 +204,8 @@ func (m CollateralReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -218,8 +219,8 @@ func (m CollateralReport) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m CollateralReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CollateralReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -238,8 +239,8 @@ func (m CollateralReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -258,18 +259,18 @@ func (m CollateralReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -403,8 +404,8 @@ func (m CollateralReport) SetTradingSessionSubID(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CollateralReport) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CollateralReport) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -503,23 +504,23 @@ func (m CollateralReport) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralReport) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralReport) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetMarginExcess sets MarginExcess, Tag 899 -func (m CollateralReport) SetMarginExcess(v float64) { - m.Set(field.NewMarginExcess(v)) +func (m CollateralReport) SetMarginExcess(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginExcess(value, scale)) } //SetTotalNetValue sets TotalNetValue, Tag 900 -func (m CollateralReport) SetTotalNetValue(v float64) { - m.Set(field.NewTotalNetValue(v)) +func (m CollateralReport) SetTotalNetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalNetValue(value, scale)) } //SetCashOutstanding sets CashOutstanding, Tag 901 -func (m CollateralReport) SetCashOutstanding(v float64) { - m.Set(field.NewCashOutstanding(v)) +func (m CollateralReport) SetCashOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOutstanding(value, scale)) } //SetCollRptID sets CollRptID, Tag 908 @@ -583,18 +584,18 @@ func (m CollateralReport) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m CollateralReport) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m CollateralReport) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m CollateralReport) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m CollateralReport) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m CollateralReport) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m CollateralReport) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -613,18 +614,18 @@ func (m CollateralReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CollateralReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CollateralReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CollateralReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CollateralReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CollateralReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CollateralReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -668,13 +669,13 @@ func (m CollateralReport) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m CollateralReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m CollateralReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m CollateralReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m CollateralReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -703,8 +704,8 @@ func (m CollateralReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m CollateralReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m CollateralReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -718,8 +719,8 @@ func (m CollateralReport) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m CollateralReport) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m CollateralReport) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -738,13 +739,13 @@ func (m CollateralReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m CollateralReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m CollateralReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m CollateralReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m CollateralReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -783,23 +784,23 @@ func (m CollateralReport) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m CollateralReport) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m CollateralReport) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m CollateralReport) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m CollateralReport) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m CollateralReport) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m CollateralReport) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m CollateralReport) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m CollateralReport) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -813,8 +814,8 @@ func (m CollateralReport) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m CollateralReport) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m CollateralReport) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2819,8 +2820,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -3259,13 +3260,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3299,8 +3300,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3314,13 +3315,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3359,8 +3360,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3404,13 +3405,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3429,8 +3430,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3439,8 +3440,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -4212,13 +4213,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4252,8 +4253,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4267,13 +4268,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4327,38 +4328,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4367,8 +4368,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4377,8 +4378,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4397,8 +4398,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4412,13 +4413,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4442,8 +4443,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4452,8 +4453,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -4477,23 +4478,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -5727,8 +5728,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -6043,13 +6044,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -6058,8 +6059,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/collateralrequest/CollateralRequest.generated.go b/fix50sp2/collateralrequest/CollateralRequest.generated.go index 794535eba..dfde77ad9 100644 --- a/fix50sp2/collateralrequest/CollateralRequest.generated.go +++ b/fix50sp2/collateralrequest/CollateralRequest.generated.go @@ -1,6 +1,7 @@ package collateralrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -89,8 +90,8 @@ func (m CollateralRequest) SetOrderID(v string) { } //SetPrice sets Price, Tag 44 -func (m CollateralRequest) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CollateralRequest) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -99,8 +100,8 @@ func (m CollateralRequest) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralRequest) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralRequest) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -159,8 +160,8 @@ func (m CollateralRequest) SetNoMiscFees(f NoMiscFeesRepeatingGroup) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m CollateralRequest) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m CollateralRequest) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -184,8 +185,8 @@ func (m CollateralRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -199,8 +200,8 @@ func (m CollateralRequest) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m CollateralRequest) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CollateralRequest) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -219,8 +220,8 @@ func (m CollateralRequest) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -239,18 +240,18 @@ func (m CollateralRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -379,8 +380,8 @@ func (m CollateralRequest) SetTradingSessionSubID(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CollateralRequest) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CollateralRequest) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -489,23 +490,23 @@ func (m CollateralRequest) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetMarginExcess sets MarginExcess, Tag 899 -func (m CollateralRequest) SetMarginExcess(v float64) { - m.Set(field.NewMarginExcess(v)) +func (m CollateralRequest) SetMarginExcess(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginExcess(value, scale)) } //SetTotalNetValue sets TotalNetValue, Tag 900 -func (m CollateralRequest) SetTotalNetValue(v float64) { - m.Set(field.NewTotalNetValue(v)) +func (m CollateralRequest) SetTotalNetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalNetValue(value, scale)) } //SetCashOutstanding sets CashOutstanding, Tag 901 -func (m CollateralRequest) SetCashOutstanding(v float64) { - m.Set(field.NewCashOutstanding(v)) +func (m CollateralRequest) SetCashOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOutstanding(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -544,18 +545,18 @@ func (m CollateralRequest) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m CollateralRequest) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m CollateralRequest) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m CollateralRequest) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m CollateralRequest) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m CollateralRequest) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m CollateralRequest) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -574,18 +575,18 @@ func (m CollateralRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CollateralRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CollateralRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CollateralRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CollateralRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CollateralRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CollateralRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -624,13 +625,13 @@ func (m CollateralRequest) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m CollateralRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m CollateralRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m CollateralRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m CollateralRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -659,8 +660,8 @@ func (m CollateralRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m CollateralRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m CollateralRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -674,8 +675,8 @@ func (m CollateralRequest) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m CollateralRequest) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m CollateralRequest) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -694,13 +695,13 @@ func (m CollateralRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m CollateralRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m CollateralRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m CollateralRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m CollateralRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -739,23 +740,23 @@ func (m CollateralRequest) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m CollateralRequest) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m CollateralRequest) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m CollateralRequest) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m CollateralRequest) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m CollateralRequest) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m CollateralRequest) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m CollateralRequest) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m CollateralRequest) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -769,8 +770,8 @@ func (m CollateralRequest) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m CollateralRequest) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m CollateralRequest) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2445,8 +2446,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -2885,13 +2886,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2925,8 +2926,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2940,13 +2941,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2985,8 +2986,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3030,13 +3031,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3055,8 +3056,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3065,8 +3066,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3838,13 +3839,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3878,8 +3879,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3893,13 +3894,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3953,38 +3954,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3993,8 +3994,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4003,8 +4004,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4023,8 +4024,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4038,13 +4039,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4068,8 +4069,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4078,8 +4079,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -4103,23 +4104,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //SetCollAction sets CollAction, Tag 944 @@ -5369,8 +5370,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -5685,13 +5686,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -5700,8 +5701,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/collateralresponse/CollateralResponse.generated.go b/fix50sp2/collateralresponse/CollateralResponse.generated.go index 16b50c0b4..dcb6f507f 100644 --- a/fix50sp2/collateralresponse/CollateralResponse.generated.go +++ b/fix50sp2/collateralresponse/CollateralResponse.generated.go @@ -1,6 +1,7 @@ package collateralresponse import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -89,8 +90,8 @@ func (m CollateralResponse) SetOrderID(v string) { } //SetPrice sets Price, Tag 44 -func (m CollateralResponse) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CollateralResponse) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -99,8 +100,8 @@ func (m CollateralResponse) SetSecurityID(v string) { } //SetQuantity sets Quantity, Tag 53 -func (m CollateralResponse) SetQuantity(v float64) { - m.Set(field.NewQuantity(v)) +func (m CollateralResponse) SetQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewQuantity(value, scale)) } //SetSide sets Side, Tag 54 @@ -154,8 +155,8 @@ func (m CollateralResponse) SetNoMiscFees(f NoMiscFeesRepeatingGroup) { } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m CollateralResponse) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m CollateralResponse) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -179,8 +180,8 @@ func (m CollateralResponse) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CollateralResponse) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CollateralResponse) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -194,8 +195,8 @@ func (m CollateralResponse) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m CollateralResponse) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CollateralResponse) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -214,8 +215,8 @@ func (m CollateralResponse) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CollateralResponse) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CollateralResponse) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -234,18 +235,18 @@ func (m CollateralResponse) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CollateralResponse) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CollateralResponse) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CollateralResponse) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CollateralResponse) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CollateralResponse) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CollateralResponse) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -369,8 +370,8 @@ func (m CollateralResponse) SetAccountType(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CollateralResponse) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CollateralResponse) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -469,23 +470,23 @@ func (m CollateralResponse) SetNoTrades(f NoTradesRepeatingGroup) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m CollateralResponse) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m CollateralResponse) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetMarginExcess sets MarginExcess, Tag 899 -func (m CollateralResponse) SetMarginExcess(v float64) { - m.Set(field.NewMarginExcess(v)) +func (m CollateralResponse) SetMarginExcess(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginExcess(value, scale)) } //SetTotalNetValue sets TotalNetValue, Tag 900 -func (m CollateralResponse) SetTotalNetValue(v float64) { - m.Set(field.NewTotalNetValue(v)) +func (m CollateralResponse) SetTotalNetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalNetValue(value, scale)) } //SetCashOutstanding sets CashOutstanding, Tag 901 -func (m CollateralResponse) SetCashOutstanding(v float64) { - m.Set(field.NewCashOutstanding(v)) +func (m CollateralResponse) SetCashOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOutstanding(value, scale)) } //SetCollAsgnID sets CollAsgnID, Tag 902 @@ -549,18 +550,18 @@ func (m CollateralResponse) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m CollateralResponse) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m CollateralResponse) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m CollateralResponse) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m CollateralResponse) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m CollateralResponse) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m CollateralResponse) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -579,18 +580,18 @@ func (m CollateralResponse) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CollateralResponse) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CollateralResponse) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CollateralResponse) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CollateralResponse) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CollateralResponse) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CollateralResponse) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -634,13 +635,13 @@ func (m CollateralResponse) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m CollateralResponse) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m CollateralResponse) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m CollateralResponse) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m CollateralResponse) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -669,8 +670,8 @@ func (m CollateralResponse) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m CollateralResponse) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m CollateralResponse) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -684,8 +685,8 @@ func (m CollateralResponse) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m CollateralResponse) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m CollateralResponse) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -704,13 +705,13 @@ func (m CollateralResponse) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m CollateralResponse) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m CollateralResponse) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m CollateralResponse) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m CollateralResponse) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -749,23 +750,23 @@ func (m CollateralResponse) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m CollateralResponse) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m CollateralResponse) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m CollateralResponse) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m CollateralResponse) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m CollateralResponse) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m CollateralResponse) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m CollateralResponse) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m CollateralResponse) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -779,8 +780,8 @@ func (m CollateralResponse) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m CollateralResponse) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m CollateralResponse) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2477,8 +2478,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -2917,13 +2918,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2957,8 +2958,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2972,13 +2973,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3017,8 +3018,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3062,13 +3063,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3087,8 +3088,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3097,8 +3098,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3870,13 +3871,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3910,8 +3911,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3925,13 +3926,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3985,38 +3986,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4025,8 +4026,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4035,8 +4036,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4055,8 +4056,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4070,13 +4071,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4100,8 +4101,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4110,8 +4111,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -4135,23 +4136,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //SetCollAction sets CollAction, Tag 944 @@ -5401,8 +5402,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -5717,13 +5718,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -5732,8 +5733,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/confirmation/Confirmation.generated.go b/fix50sp2/confirmation/Confirmation.generated.go index 3aa5fa0a2..80e161314 100644 --- a/fix50sp2/confirmation/Confirmation.generated.go +++ b/fix50sp2/confirmation/Confirmation.generated.go @@ -1,6 +1,7 @@ package confirmation import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -73,13 +74,13 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m Confirmation) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m Confirmation) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCommission sets Commission, Tag 12 -func (m Confirmation) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m Confirmation) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -168,8 +169,8 @@ func (m Confirmation) SetAllocAccount(v string) { } //SetAllocQty sets AllocQty, Tag 80 -func (m Confirmation) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m Confirmation) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetProcessCode sets ProcessCode, Tag 81 @@ -193,13 +194,13 @@ func (m Confirmation) SetSecurityDesc(v string) { } //SetNetMoney sets NetMoney, Tag 118 -func (m Confirmation) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m Confirmation) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m Confirmation) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m Confirmation) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -213,8 +214,8 @@ func (m Confirmation) SetNoMiscFees(f NoMiscFeesRepeatingGroup) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m Confirmation) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m Confirmation) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -228,13 +229,13 @@ func (m Confirmation) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m Confirmation) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m Confirmation) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m Confirmation) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m Confirmation) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -273,8 +274,8 @@ func (m Confirmation) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m Confirmation) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m Confirmation) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -288,8 +289,8 @@ func (m Confirmation) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m Confirmation) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m Confirmation) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -308,8 +309,8 @@ func (m Confirmation) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m Confirmation) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m Confirmation) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -328,13 +329,13 @@ func (m Confirmation) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m Confirmation) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m Confirmation) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m Confirmation) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m Confirmation) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetExDate sets ExDate, Tag 230 @@ -343,8 +344,8 @@ func (m Confirmation) SetExDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m Confirmation) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m Confirmation) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -358,18 +359,18 @@ func (m Confirmation) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m Confirmation) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m Confirmation) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m Confirmation) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m Confirmation) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m Confirmation) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m Confirmation) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -418,8 +419,8 @@ func (m Confirmation) SetEncodedText(v string) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m Confirmation) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m Confirmation) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -503,8 +504,8 @@ func (m Confirmation) SetAllocAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m Confirmation) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m Confirmation) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -548,8 +549,8 @@ func (m Confirmation) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m Confirmation) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m Confirmation) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -573,8 +574,8 @@ func (m Confirmation) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m Confirmation) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m Confirmation) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetBenchmarkSecurityIDSource sets BenchmarkSecurityIDSource, Tag 761 @@ -628,8 +629,8 @@ func (m Confirmation) SetQtyType(v int) { } //SetSharedCommission sets SharedCommission, Tag 858 -func (m Confirmation) SetSharedCommission(v float64) { - m.Set(field.NewSharedCommission(v)) +func (m Confirmation) SetSharedCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewSharedCommission(value, scale)) } //SetConfirmReqID sets ConfirmReqID, Tag 859 @@ -638,13 +639,13 @@ func (m Confirmation) SetConfirmReqID(v string) { } //SetAvgParPx sets AvgParPx, Tag 860 -func (m Confirmation) SetAvgParPx(v float64) { - m.Set(field.NewAvgParPx(v)) +func (m Confirmation) SetAvgParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgParPx(value, scale)) } //SetReportedPx sets ReportedPx, Tag 861 -func (m Confirmation) SetReportedPx(v float64) { - m.Set(field.NewReportedPx(v)) +func (m Confirmation) SetReportedPx(value decimal.Decimal, scale int32) { + m.Set(field.NewReportedPx(value, scale)) } //SetNoCapacities sets NoCapacities, Tag 862 @@ -658,8 +659,8 @@ func (m Confirmation) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m Confirmation) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m Confirmation) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -688,13 +689,13 @@ func (m Confirmation) SetCPRegType(v string) { } //SetMaturityNetMoney sets MaturityNetMoney, Tag 890 -func (m Confirmation) SetMaturityNetMoney(v float64) { - m.Set(field.NewMaturityNetMoney(v)) +func (m Confirmation) SetMaturityNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewMaturityNetMoney(value, scale)) } //SetMarginRatio sets MarginRatio, Tag 898 -func (m Confirmation) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m Confirmation) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -733,18 +734,18 @@ func (m Confirmation) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m Confirmation) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m Confirmation) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m Confirmation) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m Confirmation) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m Confirmation) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m Confirmation) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -763,18 +764,18 @@ func (m Confirmation) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m Confirmation) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m Confirmation) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m Confirmation) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m Confirmation) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m Confirmation) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m Confirmation) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -813,13 +814,13 @@ func (m Confirmation) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m Confirmation) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m Confirmation) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m Confirmation) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m Confirmation) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -848,8 +849,8 @@ func (m Confirmation) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m Confirmation) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m Confirmation) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -863,8 +864,8 @@ func (m Confirmation) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m Confirmation) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m Confirmation) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -883,13 +884,13 @@ func (m Confirmation) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m Confirmation) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m Confirmation) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m Confirmation) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m Confirmation) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -928,23 +929,23 @@ func (m Confirmation) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m Confirmation) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m Confirmation) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m Confirmation) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m Confirmation) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m Confirmation) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m Confirmation) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m Confirmation) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m Confirmation) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -958,8 +959,8 @@ func (m Confirmation) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m Confirmation) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m Confirmation) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -3018,18 +3019,18 @@ func (m NoOrders) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrderAvgPx sets OrderAvgPx, Tag 799 -func (m NoOrders) SetOrderAvgPx(v float64) { - m.Set(field.NewOrderAvgPx(v)) +func (m NoOrders) SetOrderAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderAvgPx(value, scale)) } //SetOrderBookingQty sets OrderBookingQty, Tag 800 -func (m NoOrders) SetOrderBookingQty(v float64) { - m.Set(field.NewOrderBookingQty(v)) +func (m NoOrders) SetOrderBookingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderBookingQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 @@ -3544,8 +3545,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -3984,13 +3985,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4024,8 +4025,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4039,13 +4040,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4084,8 +4085,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4129,13 +4130,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -4154,8 +4155,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4164,8 +4165,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -4937,13 +4938,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4977,8 +4978,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4992,13 +4993,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -5052,38 +5053,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -5092,8 +5093,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -5102,8 +5103,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -5122,8 +5123,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -5137,13 +5138,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -5167,8 +5168,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -5177,8 +5178,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -5202,23 +5203,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -6452,8 +6453,8 @@ func (m NoCapacities) SetOrderRestrictions(v string) { } //SetOrderCapacityQty sets OrderCapacityQty, Tag 863 -func (m NoCapacities) SetOrderCapacityQty(v float64) { - m.Set(field.NewOrderCapacityQty(v)) +func (m NoCapacities) SetOrderCapacityQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderCapacityQty(value, scale)) } //GetOrderCapacity gets OrderCapacity, Tag 528 @@ -6528,8 +6529,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -6844,13 +6845,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -6859,8 +6860,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/confirmationrequest/ConfirmationRequest.generated.go b/fix50sp2/confirmationrequest/ConfirmationRequest.generated.go index ce0b99de2..a4569a74c 100644 --- a/fix50sp2/confirmationrequest/ConfirmationRequest.generated.go +++ b/fix50sp2/confirmationrequest/ConfirmationRequest.generated.go @@ -1,6 +1,7 @@ package confirmationrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -308,18 +309,18 @@ func (m NoOrders) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrderAvgPx sets OrderAvgPx, Tag 799 -func (m NoOrders) SetOrderAvgPx(v float64) { - m.Set(field.NewOrderAvgPx(v)) +func (m NoOrders) SetOrderAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderAvgPx(value, scale)) } //SetOrderBookingQty sets OrderBookingQty, Tag 800 -func (m NoOrders) SetOrderBookingQty(v float64) { - m.Set(field.NewOrderBookingQty(v)) +func (m NoOrders) SetOrderBookingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderBookingQty(value, scale)) } //GetClOrdID gets ClOrdID, Tag 11 diff --git a/fix50sp2/contraryintentionreport/ContraryIntentionReport.generated.go b/fix50sp2/contraryintentionreport/ContraryIntentionReport.generated.go index 6342a0a1d..cc16e2230 100644 --- a/fix50sp2/contraryintentionreport/ContraryIntentionReport.generated.go +++ b/fix50sp2/contraryintentionreport/ContraryIntentionReport.generated.go @@ -1,6 +1,7 @@ package contraryintentionreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -118,8 +119,8 @@ func (m ContraryIntentionReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m ContraryIntentionReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m ContraryIntentionReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -133,8 +134,8 @@ func (m ContraryIntentionReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m ContraryIntentionReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m ContraryIntentionReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -153,18 +154,18 @@ func (m ContraryIntentionReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m ContraryIntentionReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m ContraryIntentionReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m ContraryIntentionReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m ContraryIntentionReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m ContraryIntentionReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m ContraryIntentionReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -323,18 +324,18 @@ func (m ContraryIntentionReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m ContraryIntentionReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m ContraryIntentionReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m ContraryIntentionReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m ContraryIntentionReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m ContraryIntentionReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m ContraryIntentionReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -393,13 +394,13 @@ func (m ContraryIntentionReport) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m ContraryIntentionReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m ContraryIntentionReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m ContraryIntentionReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m ContraryIntentionReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -438,8 +439,8 @@ func (m ContraryIntentionReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m ContraryIntentionReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m ContraryIntentionReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -453,8 +454,8 @@ func (m ContraryIntentionReport) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m ContraryIntentionReport) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m ContraryIntentionReport) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -473,13 +474,13 @@ func (m ContraryIntentionReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m ContraryIntentionReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m ContraryIntentionReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m ContraryIntentionReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m ContraryIntentionReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -528,23 +529,23 @@ func (m ContraryIntentionReport) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m ContraryIntentionReport) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m ContraryIntentionReport) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m ContraryIntentionReport) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m ContraryIntentionReport) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m ContraryIntentionReport) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m ContraryIntentionReport) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m ContraryIntentionReport) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m ContraryIntentionReport) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -558,8 +559,8 @@ func (m ContraryIntentionReport) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m ContraryIntentionReport) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m ContraryIntentionReport) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2011,13 +2012,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2051,8 +2052,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2066,13 +2067,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2126,38 +2127,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2166,8 +2167,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2176,8 +2177,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2196,8 +2197,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2211,13 +2212,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2241,8 +2242,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -2251,8 +2252,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -2276,23 +2277,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -3402,8 +3403,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -3505,8 +3506,8 @@ func (m NoExpiration) SetExpirationQtyType(v int) { } //SetExpQty sets ExpQty, Tag 983 -func (m NoExpiration) SetExpQty(v float64) { - m.Set(field.NewExpQty(v)) +func (m NoExpiration) SetExpQty(value decimal.Decimal, scale int32) { + m.Set(field.NewExpQty(value, scale)) } //GetExpirationQtyType gets ExpirationQtyType, Tag 982 @@ -3718,13 +3719,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -3733,8 +3734,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/crossordercancelreplacerequest/CrossOrderCancelReplaceRequest.generated.go b/fix50sp2/crossordercancelreplacerequest/CrossOrderCancelReplaceRequest.generated.go index 9c0e98445..6cd3b8af4 100644 --- a/fix50sp2/crossordercancelreplacerequest/CrossOrderCancelReplaceRequest.generated.go +++ b/fix50sp2/crossordercancelreplacerequest/CrossOrderCancelReplaceRequest.generated.go @@ -1,6 +1,7 @@ package crossordercancelreplacerequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -102,8 +103,8 @@ func (m CrossOrderCancelReplaceRequest) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m CrossOrderCancelReplaceRequest) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -147,8 +148,8 @@ func (m CrossOrderCancelReplaceRequest) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m CrossOrderCancelReplaceRequest) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m CrossOrderCancelReplaceRequest) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -167,13 +168,13 @@ func (m CrossOrderCancelReplaceRequest) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m CrossOrderCancelReplaceRequest) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m CrossOrderCancelReplaceRequest) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m CrossOrderCancelReplaceRequest) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m CrossOrderCancelReplaceRequest) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -192,8 +193,8 @@ func (m CrossOrderCancelReplaceRequest) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m CrossOrderCancelReplaceRequest) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m CrossOrderCancelReplaceRequest) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -217,8 +218,8 @@ func (m CrossOrderCancelReplaceRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CrossOrderCancelReplaceRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CrossOrderCancelReplaceRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -232,18 +233,18 @@ func (m CrossOrderCancelReplaceRequest) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m CrossOrderCancelReplaceRequest) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m CrossOrderCancelReplaceRequest) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m CrossOrderCancelReplaceRequest) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m CrossOrderCancelReplaceRequest) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m CrossOrderCancelReplaceRequest) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m CrossOrderCancelReplaceRequest) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -262,8 +263,8 @@ func (m CrossOrderCancelReplaceRequest) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CrossOrderCancelReplaceRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CrossOrderCancelReplaceRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -282,18 +283,18 @@ func (m CrossOrderCancelReplaceRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CrossOrderCancelReplaceRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CrossOrderCancelReplaceRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CrossOrderCancelReplaceRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CrossOrderCancelReplaceRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CrossOrderCancelReplaceRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CrossOrderCancelReplaceRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -307,8 +308,8 @@ func (m CrossOrderCancelReplaceRequest) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m CrossOrderCancelReplaceRequest) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m CrossOrderCancelReplaceRequest) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -362,8 +363,8 @@ func (m CrossOrderCancelReplaceRequest) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m CrossOrderCancelReplaceRequest) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m CrossOrderCancelReplaceRequest) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -477,8 +478,8 @@ func (m CrossOrderCancelReplaceRequest) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m CrossOrderCancelReplaceRequest) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -502,8 +503,8 @@ func (m CrossOrderCancelReplaceRequest) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m CrossOrderCancelReplaceRequest) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -597,8 +598,8 @@ func (m CrossOrderCancelReplaceRequest) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m CrossOrderCancelReplaceRequest) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m CrossOrderCancelReplaceRequest) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -652,18 +653,18 @@ func (m CrossOrderCancelReplaceRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CrossOrderCancelReplaceRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CrossOrderCancelReplaceRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CrossOrderCancelReplaceRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CrossOrderCancelReplaceRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CrossOrderCancelReplaceRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CrossOrderCancelReplaceRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -702,8 +703,8 @@ func (m CrossOrderCancelReplaceRequest) SetMaturityTime(v string) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m CrossOrderCancelReplaceRequest) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m CrossOrderCancelReplaceRequest) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -717,28 +718,28 @@ func (m CrossOrderCancelReplaceRequest) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m CrossOrderCancelReplaceRequest) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m CrossOrderCancelReplaceRequest) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m CrossOrderCancelReplaceRequest) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m CrossOrderCancelReplaceRequest) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m CrossOrderCancelReplaceRequest) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m CrossOrderCancelReplaceRequest) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m CrossOrderCancelReplaceRequest) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m CrossOrderCancelReplaceRequest) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m CrossOrderCancelReplaceRequest) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m CrossOrderCancelReplaceRequest) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -787,8 +788,8 @@ func (m CrossOrderCancelReplaceRequest) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m CrossOrderCancelReplaceRequest) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -827,8 +828,8 @@ func (m CrossOrderCancelReplaceRequest) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m CrossOrderCancelReplaceRequest) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -837,8 +838,8 @@ func (m CrossOrderCancelReplaceRequest) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m CrossOrderCancelReplaceRequest) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m CrossOrderCancelReplaceRequest) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -862,18 +863,18 @@ func (m CrossOrderCancelReplaceRequest) SetExDestinationIDSource(v string) { } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m CrossOrderCancelReplaceRequest) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m CrossOrderCancelReplaceRequest) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m CrossOrderCancelReplaceRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m CrossOrderCancelReplaceRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m CrossOrderCancelReplaceRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m CrossOrderCancelReplaceRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -902,8 +903,8 @@ func (m CrossOrderCancelReplaceRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m CrossOrderCancelReplaceRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m CrossOrderCancelReplaceRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -917,8 +918,8 @@ func (m CrossOrderCancelReplaceRequest) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m CrossOrderCancelReplaceRequest) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m CrossOrderCancelReplaceRequest) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -937,13 +938,13 @@ func (m CrossOrderCancelReplaceRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m CrossOrderCancelReplaceRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m CrossOrderCancelReplaceRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m CrossOrderCancelReplaceRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -982,23 +983,23 @@ func (m CrossOrderCancelReplaceRequest) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m CrossOrderCancelReplaceRequest) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m CrossOrderCancelReplaceRequest) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m CrossOrderCancelReplaceRequest) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m CrossOrderCancelReplaceRequest) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m CrossOrderCancelReplaceRequest) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m CrossOrderCancelReplaceRequest) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m CrossOrderCancelReplaceRequest) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m CrossOrderCancelReplaceRequest) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -1012,8 +1013,8 @@ func (m CrossOrderCancelReplaceRequest) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m CrossOrderCancelReplaceRequest) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m CrossOrderCancelReplaceRequest) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -3431,18 +3432,18 @@ func (m NoSides) SetQtyType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoSides) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoSides) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoSides) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoSides) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoSides) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoSides) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -3451,13 +3452,13 @@ func (m NoSides) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoSides) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoSides) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCommission sets Commission, Tag 12 -func (m NoSides) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoSides) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -4224,8 +4225,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -4575,13 +4576,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4615,8 +4616,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4630,13 +4631,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4675,8 +4676,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4720,13 +4721,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -4745,8 +4746,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4755,8 +4756,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -5528,13 +5529,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -5568,8 +5569,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -5583,13 +5584,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -5643,38 +5644,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -5683,8 +5684,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -5693,8 +5694,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -5713,8 +5714,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -5728,13 +5729,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -5758,8 +5759,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -5768,8 +5769,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -5793,23 +5794,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -6919,8 +6920,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -7404,13 +7405,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -7419,8 +7420,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/crossordercancelrequest/CrossOrderCancelRequest.generated.go b/fix50sp2/crossordercancelrequest/CrossOrderCancelRequest.generated.go index 2dfbfa926..2759b3cbe 100644 --- a/fix50sp2/crossordercancelrequest/CrossOrderCancelRequest.generated.go +++ b/fix50sp2/crossordercancelrequest/CrossOrderCancelRequest.generated.go @@ -1,6 +1,7 @@ package crossordercancelrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -121,8 +122,8 @@ func (m CrossOrderCancelRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m CrossOrderCancelRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m CrossOrderCancelRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -136,8 +137,8 @@ func (m CrossOrderCancelRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m CrossOrderCancelRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m CrossOrderCancelRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -156,18 +157,18 @@ func (m CrossOrderCancelRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m CrossOrderCancelRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m CrossOrderCancelRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m CrossOrderCancelRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m CrossOrderCancelRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m CrossOrderCancelRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m CrossOrderCancelRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -341,18 +342,18 @@ func (m CrossOrderCancelRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m CrossOrderCancelRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m CrossOrderCancelRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m CrossOrderCancelRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m CrossOrderCancelRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m CrossOrderCancelRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m CrossOrderCancelRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -396,13 +397,13 @@ func (m CrossOrderCancelRequest) SetNoRootPartyIDs(f NoRootPartyIDsRepeatingGrou } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m CrossOrderCancelRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m CrossOrderCancelRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m CrossOrderCancelRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m CrossOrderCancelRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -431,8 +432,8 @@ func (m CrossOrderCancelRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m CrossOrderCancelRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m CrossOrderCancelRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -446,8 +447,8 @@ func (m CrossOrderCancelRequest) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m CrossOrderCancelRequest) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m CrossOrderCancelRequest) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -466,13 +467,13 @@ func (m CrossOrderCancelRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m CrossOrderCancelRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m CrossOrderCancelRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m CrossOrderCancelRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m CrossOrderCancelRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -511,23 +512,23 @@ func (m CrossOrderCancelRequest) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m CrossOrderCancelRequest) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m CrossOrderCancelRequest) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m CrossOrderCancelRequest) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m CrossOrderCancelRequest) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m CrossOrderCancelRequest) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m CrossOrderCancelRequest) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m CrossOrderCancelRequest) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m CrossOrderCancelRequest) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -541,8 +542,8 @@ func (m CrossOrderCancelRequest) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m CrossOrderCancelRequest) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m CrossOrderCancelRequest) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -1768,18 +1769,18 @@ func (m NoSides) SetTradeDate(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoSides) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoSides) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoSides) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoSides) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoSides) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoSides) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -1788,8 +1789,8 @@ func (m NoSides) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoSides) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoSides) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetComplianceID sets ComplianceID, Tag 376 @@ -2268,13 +2269,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2308,8 +2309,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2323,13 +2324,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2368,8 +2369,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2413,13 +2414,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2438,8 +2439,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2448,8 +2449,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3221,13 +3222,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3261,8 +3262,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3276,13 +3277,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3336,38 +3337,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3376,8 +3377,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3386,8 +3387,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3406,8 +3407,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3421,13 +3422,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3451,8 +3452,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3461,8 +3462,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3486,23 +3487,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4612,8 +4613,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -5021,13 +5022,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -5036,8 +5037,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/derivativesecuritylist/DerivativeSecurityList.generated.go b/fix50sp2/derivativesecuritylist/DerivativeSecurityList.generated.go index 1401d80c5..467d7a486 100644 --- a/fix50sp2/derivativesecuritylist/DerivativeSecurityList.generated.go +++ b/fix50sp2/derivativesecuritylist/DerivativeSecurityList.generated.go @@ -1,6 +1,7 @@ package derivativesecuritylist import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -91,13 +92,13 @@ func (m DerivativeSecurityList) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m DerivativeSecurityList) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m DerivativeSecurityList) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m DerivativeSecurityList) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m DerivativeSecurityList) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -161,8 +162,8 @@ func (m DerivativeSecurityList) SetUnderlyingPutOrCall(v int) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m DerivativeSecurityList) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m DerivativeSecurityList) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -211,13 +212,13 @@ func (m DerivativeSecurityList) SetTotNoRelatedSym(v int) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m DerivativeSecurityList) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m DerivativeSecurityList) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m DerivativeSecurityList) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m DerivativeSecurityList) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoUnderlyingSecurityAltID sets NoUnderlyingSecurityAltID, Tag 457 @@ -276,8 +277,8 @@ func (m DerivativeSecurityList) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m DerivativeSecurityList) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m DerivativeSecurityList) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingCPProgram sets UnderlyingCPProgram, Tag 877 @@ -291,33 +292,33 @@ func (m DerivativeSecurityList) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m DerivativeSecurityList) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m DerivativeSecurityList) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m DerivativeSecurityList) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m DerivativeSecurityList) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m DerivativeSecurityList) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m DerivativeSecurityList) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m DerivativeSecurityList) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m DerivativeSecurityList) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m DerivativeSecurityList) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m DerivativeSecurityList) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m DerivativeSecurityList) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m DerivativeSecurityList) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -341,13 +342,13 @@ func (m DerivativeSecurityList) SetSecurityReportID(v int) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m DerivativeSecurityList) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m DerivativeSecurityList) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m DerivativeSecurityList) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m DerivativeSecurityList) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -371,8 +372,8 @@ func (m DerivativeSecurityList) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m DerivativeSecurityList) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m DerivativeSecurityList) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetUnderlyingSettlMethod sets UnderlyingSettlMethod, Tag 1039 @@ -381,13 +382,13 @@ func (m DerivativeSecurityList) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m DerivativeSecurityList) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m DerivativeSecurityList) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m DerivativeSecurityList) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m DerivativeSecurityList) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -441,8 +442,8 @@ func (m DerivativeSecurityList) SetNoDerivativeSecurityAltID(f NoDerivativeSecur } //SetDerivativeOptPayAmount sets DerivativeOptPayAmount, Tag 1225 -func (m DerivativeSecurityList) SetDerivativeOptPayAmount(v float64) { - m.Set(field.NewDerivativeOptPayAmount(v)) +func (m DerivativeSecurityList) SetDerivativeOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeOptPayAmount(value, scale)) } //SetDerivativeProductComplex sets DerivativeProductComplex, Tag 1228 @@ -531,8 +532,8 @@ func (m DerivativeSecurityList) SetDerivativeLocaleOfIssue(v string) { } //SetDerivativeStrikePrice sets DerivativeStrikePrice, Tag 1261 -func (m DerivativeSecurityList) SetDerivativeStrikePrice(v float64) { - m.Set(field.NewDerivativeStrikePrice(v)) +func (m DerivativeSecurityList) SetDerivativeStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeStrikePrice(value, scale)) } //SetDerivativeStrikeCurrency sets DerivativeStrikeCurrency, Tag 1262 @@ -541,13 +542,13 @@ func (m DerivativeSecurityList) SetDerivativeStrikeCurrency(v string) { } //SetDerivativeStrikeMultiplier sets DerivativeStrikeMultiplier, Tag 1263 -func (m DerivativeSecurityList) SetDerivativeStrikeMultiplier(v float64) { - m.Set(field.NewDerivativeStrikeMultiplier(v)) +func (m DerivativeSecurityList) SetDerivativeStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeStrikeMultiplier(value, scale)) } //SetDerivativeStrikeValue sets DerivativeStrikeValue, Tag 1264 -func (m DerivativeSecurityList) SetDerivativeStrikeValue(v float64) { - m.Set(field.NewDerivativeStrikeValue(v)) +func (m DerivativeSecurityList) SetDerivativeStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeStrikeValue(value, scale)) } //SetDerivativeOptAttribute sets DerivativeOptAttribute, Tag 1265 @@ -556,18 +557,18 @@ func (m DerivativeSecurityList) SetDerivativeOptAttribute(v string) { } //SetDerivativeContractMultiplier sets DerivativeContractMultiplier, Tag 1266 -func (m DerivativeSecurityList) SetDerivativeContractMultiplier(v float64) { - m.Set(field.NewDerivativeContractMultiplier(v)) +func (m DerivativeSecurityList) SetDerivativeContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeContractMultiplier(value, scale)) } //SetDerivativeMinPriceIncrement sets DerivativeMinPriceIncrement, Tag 1267 -func (m DerivativeSecurityList) SetDerivativeMinPriceIncrement(v float64) { - m.Set(field.NewDerivativeMinPriceIncrement(v)) +func (m DerivativeSecurityList) SetDerivativeMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeMinPriceIncrement(value, scale)) } //SetDerivativeMinPriceIncrementAmount sets DerivativeMinPriceIncrementAmount, Tag 1268 -func (m DerivativeSecurityList) SetDerivativeMinPriceIncrementAmount(v float64) { - m.Set(field.NewDerivativeMinPriceIncrementAmount(v)) +func (m DerivativeSecurityList) SetDerivativeMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeMinPriceIncrementAmount(value, scale)) } //SetDerivativeUnitOfMeasure sets DerivativeUnitOfMeasure, Tag 1269 @@ -576,8 +577,8 @@ func (m DerivativeSecurityList) SetDerivativeUnitOfMeasure(v string) { } //SetDerivativeUnitOfMeasureQty sets DerivativeUnitOfMeasureQty, Tag 1270 -func (m DerivativeSecurityList) SetDerivativeUnitOfMeasureQty(v float64) { - m.Set(field.NewDerivativeUnitOfMeasureQty(v)) +func (m DerivativeSecurityList) SetDerivativeUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeUnitOfMeasureQty(value, scale)) } //SetDerivativeTimeUnit sets DerivativeTimeUnit, Tag 1271 @@ -686,8 +687,8 @@ func (m DerivativeSecurityList) SetDerivativePriceUnitOfMeasure(v string) { } //SetDerivativePriceUnitOfMeasureQty sets DerivativePriceUnitOfMeasureQty, Tag 1316 -func (m DerivativeSecurityList) SetDerivativePriceUnitOfMeasureQty(v float64) { - m.Set(field.NewDerivativePriceUnitOfMeasureQty(v)) +func (m DerivativeSecurityList) SetDerivativePriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativePriceUnitOfMeasureQty(value, scale)) } //SetDerivativeSettlMethod sets DerivativeSettlMethod, Tag 1317 @@ -711,13 +712,13 @@ func (m DerivativeSecurityList) SetDerivativeListMethod(v int) { } //SetDerivativeCapPrice sets DerivativeCapPrice, Tag 1321 -func (m DerivativeSecurityList) SetDerivativeCapPrice(v float64) { - m.Set(field.NewDerivativeCapPrice(v)) +func (m DerivativeSecurityList) SetDerivativeCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeCapPrice(value, scale)) } //SetDerivativeFloorPrice sets DerivativeFloorPrice, Tag 1322 -func (m DerivativeSecurityList) SetDerivativeFloorPrice(v float64) { - m.Set(field.NewDerivativeFloorPrice(v)) +func (m DerivativeSecurityList) SetDerivativeFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeFloorPrice(value, scale)) } //SetDerivativePutOrCall sets DerivativePutOrCall, Tag 1323 @@ -741,8 +742,8 @@ func (m DerivativeSecurityList) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m DerivativeSecurityList) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m DerivativeSecurityList) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -751,8 +752,8 @@ func (m DerivativeSecurityList) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m DerivativeSecurityList) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m DerivativeSecurityList) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -786,23 +787,23 @@ func (m DerivativeSecurityList) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m DerivativeSecurityList) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m DerivativeSecurityList) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m DerivativeSecurityList) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m DerivativeSecurityList) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m DerivativeSecurityList) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m DerivativeSecurityList) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m DerivativeSecurityList) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m DerivativeSecurityList) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetTransactTime gets TransactTime, Tag 60 @@ -2534,13 +2535,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -2574,8 +2575,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -2589,13 +2590,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -2684,18 +2685,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -2734,13 +2735,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -2769,8 +2770,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -2784,8 +2785,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NoRelatedSym) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -2799,13 +2800,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -2849,23 +2850,23 @@ func (m NoRelatedSym) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NoRelatedSym) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NoRelatedSym) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NoRelatedSym) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NoRelatedSym) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NoRelatedSym) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -2879,8 +2880,8 @@ func (m NoRelatedSym) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2909,8 +2910,8 @@ func (m NoRelatedSym) SetDeliveryForm(v int) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m NoRelatedSym) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m NoRelatedSym) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -2944,18 +2945,18 @@ func (m NoRelatedSym) SetSecondaryPriceLimitType(v int) { } //SetSecondaryLowLimitPrice sets SecondaryLowLimitPrice, Tag 1221 -func (m NoRelatedSym) SetSecondaryLowLimitPrice(v float64) { - m.Set(field.NewSecondaryLowLimitPrice(v)) +func (m NoRelatedSym) SetSecondaryLowLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryLowLimitPrice(value, scale)) } //SetSecondaryHighLimitPrice sets SecondaryHighLimitPrice, Tag 1230 -func (m NoRelatedSym) SetSecondaryHighLimitPrice(v float64) { - m.Set(field.NewSecondaryHighLimitPrice(v)) +func (m NoRelatedSym) SetSecondaryHighLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryHighLimitPrice(value, scale)) } //SetSecondaryTradingReferencePrice sets SecondaryTradingReferencePrice, Tag 1240 -func (m NoRelatedSym) SetSecondaryTradingReferencePrice(v float64) { - m.Set(field.NewSecondaryTradingReferencePrice(v)) +func (m NoRelatedSym) SetSecondaryTradingReferencePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryTradingReferencePrice(value, scale)) } //SetCorporateAction sets CorporateAction, Tag 292 @@ -4172,8 +4173,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4428,13 +4429,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -4443,8 +4444,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 @@ -4852,13 +4853,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4892,8 +4893,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4907,13 +4908,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4952,8 +4953,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4997,13 +4998,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -5022,8 +5023,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -5032,8 +5033,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -6101,8 +6102,8 @@ func (m NoDerivativeEvents) SetDerivativeEventTime(v time.Time) { } //SetDerivativeEventPx sets DerivativeEventPx, Tag 1290 -func (m NoDerivativeEvents) SetDerivativeEventPx(v float64) { - m.Set(field.NewDerivativeEventPx(v)) +func (m NoDerivativeEvents) SetDerivativeEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeEventPx(value, scale)) } //SetDerivativeEventText sets DerivativeEventText, Tag 1291 @@ -6372,18 +6373,18 @@ func (m NoMarketSegments) SetPriceLimitType(v int) { } //SetLowLimitPrice sets LowLimitPrice, Tag 1148 -func (m NoMarketSegments) SetLowLimitPrice(v float64) { - m.Set(field.NewLowLimitPrice(v)) +func (m NoMarketSegments) SetLowLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLowLimitPrice(value, scale)) } //SetHighLimitPrice sets HighLimitPrice, Tag 1149 -func (m NoMarketSegments) SetHighLimitPrice(v float64) { - m.Set(field.NewHighLimitPrice(v)) +func (m NoMarketSegments) SetHighLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewHighLimitPrice(value, scale)) } //SetTradingReferencePrice sets TradingReferencePrice, Tag 1150 -func (m NoMarketSegments) SetTradingReferencePrice(v float64) { - m.Set(field.NewTradingReferencePrice(v)) +func (m NoMarketSegments) SetTradingReferencePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTradingReferencePrice(value, scale)) } //SetExpirationCycle sets ExpirationCycle, Tag 827 @@ -6392,18 +6393,18 @@ func (m NoMarketSegments) SetExpirationCycle(v int) { } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m NoMarketSegments) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m NoMarketSegments) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetMaxTradeVol sets MaxTradeVol, Tag 1140 -func (m NoMarketSegments) SetMaxTradeVol(v float64) { - m.Set(field.NewMaxTradeVol(v)) +func (m NoMarketSegments) SetMaxTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxTradeVol(value, scale)) } //SetMaxPriceVariation sets MaxPriceVariation, Tag 1143 -func (m NoMarketSegments) SetMaxPriceVariation(v float64) { - m.Set(field.NewMaxPriceVariation(v)) +func (m NoMarketSegments) SetMaxPriceVariation(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxPriceVariation(value, scale)) } //SetImpliedMarketIndicator sets ImpliedMarketIndicator, Tag 1144 @@ -6417,8 +6418,8 @@ func (m NoMarketSegments) SetTradingCurrency(v string) { } //SetRoundLot sets RoundLot, Tag 561 -func (m NoMarketSegments) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m NoMarketSegments) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMultilegModel sets MultilegModel, Tag 1377 @@ -6693,18 +6694,18 @@ type NoTickRules struct { } //SetStartTickPriceRange sets StartTickPriceRange, Tag 1206 -func (m NoTickRules) SetStartTickPriceRange(v float64) { - m.Set(field.NewStartTickPriceRange(v)) +func (m NoTickRules) SetStartTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartTickPriceRange(value, scale)) } //SetEndTickPriceRange sets EndTickPriceRange, Tag 1207 -func (m NoTickRules) SetEndTickPriceRange(v float64) { - m.Set(field.NewEndTickPriceRange(v)) +func (m NoTickRules) SetEndTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndTickPriceRange(value, scale)) } //SetTickIncrement sets TickIncrement, Tag 1208 -func (m NoTickRules) SetTickIncrement(v float64) { - m.Set(field.NewTickIncrement(v)) +func (m NoTickRules) SetTickIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewTickIncrement(value, scale)) } //SetTickRuleType sets TickRuleType, Tag 1209 @@ -6790,8 +6791,8 @@ func (m NoLotTypeRules) SetLotType(v string) { } //SetMinLotSize sets MinLotSize, Tag 1231 -func (m NoLotTypeRules) SetMinLotSize(v float64) { - m.Set(field.NewMinLotSize(v)) +func (m NoLotTypeRules) SetMinLotSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinLotSize(value, scale)) } //GetLotType gets LotType, Tag 1093 @@ -7323,18 +7324,18 @@ func (m NoStrikeRules) SetStrikeRuleID(v string) { } //SetStartStrikePxRange sets StartStrikePxRange, Tag 1202 -func (m NoStrikeRules) SetStartStrikePxRange(v float64) { - m.Set(field.NewStartStrikePxRange(v)) +func (m NoStrikeRules) SetStartStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartStrikePxRange(value, scale)) } //SetEndStrikePxRange sets EndStrikePxRange, Tag 1203 -func (m NoStrikeRules) SetEndStrikePxRange(v float64) { - m.Set(field.NewEndStrikePxRange(v)) +func (m NoStrikeRules) SetEndStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndStrikePxRange(value, scale)) } //SetStrikeIncrement sets StrikeIncrement, Tag 1204 -func (m NoStrikeRules) SetStrikeIncrement(v float64) { - m.Set(field.NewStrikeIncrement(v)) +func (m NoStrikeRules) SetStrikeIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeIncrement(value, scale)) } //SetStrikeExerciseStyle sets StrikeExerciseStyle, Tag 1304 diff --git a/fix50sp2/derivativesecuritylistrequest/DerivativeSecurityListRequest.generated.go b/fix50sp2/derivativesecuritylistrequest/DerivativeSecurityListRequest.generated.go index 9aac93f93..3d45ecd1e 100644 --- a/fix50sp2/derivativesecuritylistrequest/DerivativeSecurityListRequest.generated.go +++ b/fix50sp2/derivativesecuritylistrequest/DerivativeSecurityListRequest.generated.go @@ -1,6 +1,7 @@ package derivativesecuritylistrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -93,13 +94,13 @@ func (m DerivativeSecurityListRequest) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m DerivativeSecurityListRequest) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m DerivativeSecurityListRequest) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -168,8 +169,8 @@ func (m DerivativeSecurityListRequest) SetUnderlyingPutOrCall(v int) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m DerivativeSecurityListRequest) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -223,13 +224,13 @@ func (m DerivativeSecurityListRequest) SetEncodedUnderlyingSecurityDesc(v string } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m DerivativeSecurityListRequest) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m DerivativeSecurityListRequest) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoUnderlyingSecurityAltID sets NoUnderlyingSecurityAltID, Tag 457 @@ -293,8 +294,8 @@ func (m DerivativeSecurityListRequest) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m DerivativeSecurityListRequest) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingCPProgram sets UnderlyingCPProgram, Tag 877 @@ -308,33 +309,33 @@ func (m DerivativeSecurityListRequest) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m DerivativeSecurityListRequest) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m DerivativeSecurityListRequest) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m DerivativeSecurityListRequest) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m DerivativeSecurityListRequest) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m DerivativeSecurityListRequest) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m DerivativeSecurityListRequest) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -348,13 +349,13 @@ func (m DerivativeSecurityListRequest) SetUnderlyingStrikeCurrency(v string) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m DerivativeSecurityListRequest) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m DerivativeSecurityListRequest) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -378,8 +379,8 @@ func (m DerivativeSecurityListRequest) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m DerivativeSecurityListRequest) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetUnderlyingSettlMethod sets UnderlyingSettlMethod, Tag 1039 @@ -388,13 +389,13 @@ func (m DerivativeSecurityListRequest) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m DerivativeSecurityListRequest) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m DerivativeSecurityListRequest) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -438,8 +439,8 @@ func (m DerivativeSecurityListRequest) SetNoDerivativeSecurityAltID(f NoDerivati } //SetDerivativeOptPayAmount sets DerivativeOptPayAmount, Tag 1225 -func (m DerivativeSecurityListRequest) SetDerivativeOptPayAmount(v float64) { - m.Set(field.NewDerivativeOptPayAmount(v)) +func (m DerivativeSecurityListRequest) SetDerivativeOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeOptPayAmount(value, scale)) } //SetDerivativeProductComplex sets DerivativeProductComplex, Tag 1228 @@ -528,8 +529,8 @@ func (m DerivativeSecurityListRequest) SetDerivativeLocaleOfIssue(v string) { } //SetDerivativeStrikePrice sets DerivativeStrikePrice, Tag 1261 -func (m DerivativeSecurityListRequest) SetDerivativeStrikePrice(v float64) { - m.Set(field.NewDerivativeStrikePrice(v)) +func (m DerivativeSecurityListRequest) SetDerivativeStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeStrikePrice(value, scale)) } //SetDerivativeStrikeCurrency sets DerivativeStrikeCurrency, Tag 1262 @@ -538,13 +539,13 @@ func (m DerivativeSecurityListRequest) SetDerivativeStrikeCurrency(v string) { } //SetDerivativeStrikeMultiplier sets DerivativeStrikeMultiplier, Tag 1263 -func (m DerivativeSecurityListRequest) SetDerivativeStrikeMultiplier(v float64) { - m.Set(field.NewDerivativeStrikeMultiplier(v)) +func (m DerivativeSecurityListRequest) SetDerivativeStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeStrikeMultiplier(value, scale)) } //SetDerivativeStrikeValue sets DerivativeStrikeValue, Tag 1264 -func (m DerivativeSecurityListRequest) SetDerivativeStrikeValue(v float64) { - m.Set(field.NewDerivativeStrikeValue(v)) +func (m DerivativeSecurityListRequest) SetDerivativeStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeStrikeValue(value, scale)) } //SetDerivativeOptAttribute sets DerivativeOptAttribute, Tag 1265 @@ -553,18 +554,18 @@ func (m DerivativeSecurityListRequest) SetDerivativeOptAttribute(v string) { } //SetDerivativeContractMultiplier sets DerivativeContractMultiplier, Tag 1266 -func (m DerivativeSecurityListRequest) SetDerivativeContractMultiplier(v float64) { - m.Set(field.NewDerivativeContractMultiplier(v)) +func (m DerivativeSecurityListRequest) SetDerivativeContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeContractMultiplier(value, scale)) } //SetDerivativeMinPriceIncrement sets DerivativeMinPriceIncrement, Tag 1267 -func (m DerivativeSecurityListRequest) SetDerivativeMinPriceIncrement(v float64) { - m.Set(field.NewDerivativeMinPriceIncrement(v)) +func (m DerivativeSecurityListRequest) SetDerivativeMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeMinPriceIncrement(value, scale)) } //SetDerivativeMinPriceIncrementAmount sets DerivativeMinPriceIncrementAmount, Tag 1268 -func (m DerivativeSecurityListRequest) SetDerivativeMinPriceIncrementAmount(v float64) { - m.Set(field.NewDerivativeMinPriceIncrementAmount(v)) +func (m DerivativeSecurityListRequest) SetDerivativeMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeMinPriceIncrementAmount(value, scale)) } //SetDerivativeUnitOfMeasure sets DerivativeUnitOfMeasure, Tag 1269 @@ -573,8 +574,8 @@ func (m DerivativeSecurityListRequest) SetDerivativeUnitOfMeasure(v string) { } //SetDerivativeUnitOfMeasureQty sets DerivativeUnitOfMeasureQty, Tag 1270 -func (m DerivativeSecurityListRequest) SetDerivativeUnitOfMeasureQty(v float64) { - m.Set(field.NewDerivativeUnitOfMeasureQty(v)) +func (m DerivativeSecurityListRequest) SetDerivativeUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeUnitOfMeasureQty(value, scale)) } //SetDerivativeTimeUnit sets DerivativeTimeUnit, Tag 1271 @@ -683,8 +684,8 @@ func (m DerivativeSecurityListRequest) SetDerivativePriceUnitOfMeasure(v string) } //SetDerivativePriceUnitOfMeasureQty sets DerivativePriceUnitOfMeasureQty, Tag 1316 -func (m DerivativeSecurityListRequest) SetDerivativePriceUnitOfMeasureQty(v float64) { - m.Set(field.NewDerivativePriceUnitOfMeasureQty(v)) +func (m DerivativeSecurityListRequest) SetDerivativePriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativePriceUnitOfMeasureQty(value, scale)) } //SetDerivativeSettlMethod sets DerivativeSettlMethod, Tag 1317 @@ -708,13 +709,13 @@ func (m DerivativeSecurityListRequest) SetDerivativeListMethod(v int) { } //SetDerivativeCapPrice sets DerivativeCapPrice, Tag 1321 -func (m DerivativeSecurityListRequest) SetDerivativeCapPrice(v float64) { - m.Set(field.NewDerivativeCapPrice(v)) +func (m DerivativeSecurityListRequest) SetDerivativeCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeCapPrice(value, scale)) } //SetDerivativeFloorPrice sets DerivativeFloorPrice, Tag 1322 -func (m DerivativeSecurityListRequest) SetDerivativeFloorPrice(v float64) { - m.Set(field.NewDerivativeFloorPrice(v)) +func (m DerivativeSecurityListRequest) SetDerivativeFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeFloorPrice(value, scale)) } //SetDerivativePutOrCall sets DerivativePutOrCall, Tag 1323 @@ -728,8 +729,8 @@ func (m DerivativeSecurityListRequest) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m DerivativeSecurityListRequest) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -738,8 +739,8 @@ func (m DerivativeSecurityListRequest) SetUnderlyingPriceUnitOfMeasure(v string) } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m DerivativeSecurityListRequest) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -773,23 +774,23 @@ func (m DerivativeSecurityListRequest) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m DerivativeSecurityListRequest) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m DerivativeSecurityListRequest) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m DerivativeSecurityListRequest) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m DerivativeSecurityListRequest) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m DerivativeSecurityListRequest) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetCurrency gets Currency, Tag 15 @@ -2758,8 +2759,8 @@ func (m NoDerivativeEvents) SetDerivativeEventTime(v time.Time) { } //SetDerivativeEventPx sets DerivativeEventPx, Tag 1290 -func (m NoDerivativeEvents) SetDerivativeEventPx(v float64) { - m.Set(field.NewDerivativeEventPx(v)) +func (m NoDerivativeEvents) SetDerivativeEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeEventPx(value, scale)) } //SetDerivativeEventText sets DerivativeEventText, Tag 1291 diff --git a/fix50sp2/derivativesecuritylistupdatereport/DerivativeSecurityListUpdateReport.generated.go b/fix50sp2/derivativesecuritylistupdatereport/DerivativeSecurityListUpdateReport.generated.go index 9c43cf489..b0c3b898f 100644 --- a/fix50sp2/derivativesecuritylistupdatereport/DerivativeSecurityListUpdateReport.generated.go +++ b/fix50sp2/derivativesecuritylistupdatereport/DerivativeSecurityListUpdateReport.generated.go @@ -1,6 +1,7 @@ package derivativesecuritylistupdatereport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -91,13 +92,13 @@ func (m DerivativeSecurityListUpdateReport) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -161,8 +162,8 @@ func (m DerivativeSecurityListUpdateReport) SetUnderlyingPutOrCall(v int) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -211,13 +212,13 @@ func (m DerivativeSecurityListUpdateReport) SetTotNoRelatedSym(v int) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoUnderlyingSecurityAltID sets NoUnderlyingSecurityAltID, Tag 457 @@ -271,8 +272,8 @@ func (m DerivativeSecurityListUpdateReport) SetUnderlyingSecuritySubType(v strin } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingCPProgram sets UnderlyingCPProgram, Tag 877 @@ -286,33 +287,33 @@ func (m DerivativeSecurityListUpdateReport) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -331,13 +332,13 @@ func (m DerivativeSecurityListUpdateReport) SetUnderlyingStrikeCurrency(v string } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -366,8 +367,8 @@ func (m DerivativeSecurityListUpdateReport) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetUnderlyingSettlMethod sets UnderlyingSettlMethod, Tag 1039 @@ -376,13 +377,13 @@ func (m DerivativeSecurityListUpdateReport) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -436,8 +437,8 @@ func (m DerivativeSecurityListUpdateReport) SetNoDerivativeSecurityAltID(f NoDer } //SetDerivativeOptPayAmount sets DerivativeOptPayAmount, Tag 1225 -func (m DerivativeSecurityListUpdateReport) SetDerivativeOptPayAmount(v float64) { - m.Set(field.NewDerivativeOptPayAmount(v)) +func (m DerivativeSecurityListUpdateReport) SetDerivativeOptPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeOptPayAmount(value, scale)) } //SetDerivativeProductComplex sets DerivativeProductComplex, Tag 1228 @@ -526,8 +527,8 @@ func (m DerivativeSecurityListUpdateReport) SetDerivativeLocaleOfIssue(v string) } //SetDerivativeStrikePrice sets DerivativeStrikePrice, Tag 1261 -func (m DerivativeSecurityListUpdateReport) SetDerivativeStrikePrice(v float64) { - m.Set(field.NewDerivativeStrikePrice(v)) +func (m DerivativeSecurityListUpdateReport) SetDerivativeStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeStrikePrice(value, scale)) } //SetDerivativeStrikeCurrency sets DerivativeStrikeCurrency, Tag 1262 @@ -536,13 +537,13 @@ func (m DerivativeSecurityListUpdateReport) SetDerivativeStrikeCurrency(v string } //SetDerivativeStrikeMultiplier sets DerivativeStrikeMultiplier, Tag 1263 -func (m DerivativeSecurityListUpdateReport) SetDerivativeStrikeMultiplier(v float64) { - m.Set(field.NewDerivativeStrikeMultiplier(v)) +func (m DerivativeSecurityListUpdateReport) SetDerivativeStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeStrikeMultiplier(value, scale)) } //SetDerivativeStrikeValue sets DerivativeStrikeValue, Tag 1264 -func (m DerivativeSecurityListUpdateReport) SetDerivativeStrikeValue(v float64) { - m.Set(field.NewDerivativeStrikeValue(v)) +func (m DerivativeSecurityListUpdateReport) SetDerivativeStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeStrikeValue(value, scale)) } //SetDerivativeOptAttribute sets DerivativeOptAttribute, Tag 1265 @@ -551,18 +552,18 @@ func (m DerivativeSecurityListUpdateReport) SetDerivativeOptAttribute(v string) } //SetDerivativeContractMultiplier sets DerivativeContractMultiplier, Tag 1266 -func (m DerivativeSecurityListUpdateReport) SetDerivativeContractMultiplier(v float64) { - m.Set(field.NewDerivativeContractMultiplier(v)) +func (m DerivativeSecurityListUpdateReport) SetDerivativeContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeContractMultiplier(value, scale)) } //SetDerivativeMinPriceIncrement sets DerivativeMinPriceIncrement, Tag 1267 -func (m DerivativeSecurityListUpdateReport) SetDerivativeMinPriceIncrement(v float64) { - m.Set(field.NewDerivativeMinPriceIncrement(v)) +func (m DerivativeSecurityListUpdateReport) SetDerivativeMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeMinPriceIncrement(value, scale)) } //SetDerivativeMinPriceIncrementAmount sets DerivativeMinPriceIncrementAmount, Tag 1268 -func (m DerivativeSecurityListUpdateReport) SetDerivativeMinPriceIncrementAmount(v float64) { - m.Set(field.NewDerivativeMinPriceIncrementAmount(v)) +func (m DerivativeSecurityListUpdateReport) SetDerivativeMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeMinPriceIncrementAmount(value, scale)) } //SetDerivativeUnitOfMeasure sets DerivativeUnitOfMeasure, Tag 1269 @@ -571,8 +572,8 @@ func (m DerivativeSecurityListUpdateReport) SetDerivativeUnitOfMeasure(v string) } //SetDerivativeUnitOfMeasureQty sets DerivativeUnitOfMeasureQty, Tag 1270 -func (m DerivativeSecurityListUpdateReport) SetDerivativeUnitOfMeasureQty(v float64) { - m.Set(field.NewDerivativeUnitOfMeasureQty(v)) +func (m DerivativeSecurityListUpdateReport) SetDerivativeUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeUnitOfMeasureQty(value, scale)) } //SetDerivativeTimeUnit sets DerivativeTimeUnit, Tag 1271 @@ -681,8 +682,8 @@ func (m DerivativeSecurityListUpdateReport) SetDerivativePriceUnitOfMeasure(v st } //SetDerivativePriceUnitOfMeasureQty sets DerivativePriceUnitOfMeasureQty, Tag 1316 -func (m DerivativeSecurityListUpdateReport) SetDerivativePriceUnitOfMeasureQty(v float64) { - m.Set(field.NewDerivativePriceUnitOfMeasureQty(v)) +func (m DerivativeSecurityListUpdateReport) SetDerivativePriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativePriceUnitOfMeasureQty(value, scale)) } //SetDerivativeSettlMethod sets DerivativeSettlMethod, Tag 1317 @@ -706,13 +707,13 @@ func (m DerivativeSecurityListUpdateReport) SetDerivativeListMethod(v int) { } //SetDerivativeCapPrice sets DerivativeCapPrice, Tag 1321 -func (m DerivativeSecurityListUpdateReport) SetDerivativeCapPrice(v float64) { - m.Set(field.NewDerivativeCapPrice(v)) +func (m DerivativeSecurityListUpdateReport) SetDerivativeCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeCapPrice(value, scale)) } //SetDerivativeFloorPrice sets DerivativeFloorPrice, Tag 1322 -func (m DerivativeSecurityListUpdateReport) SetDerivativeFloorPrice(v float64) { - m.Set(field.NewDerivativeFloorPrice(v)) +func (m DerivativeSecurityListUpdateReport) SetDerivativeFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeFloorPrice(value, scale)) } //SetDerivativePutOrCall sets DerivativePutOrCall, Tag 1323 @@ -736,8 +737,8 @@ func (m DerivativeSecurityListUpdateReport) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -746,8 +747,8 @@ func (m DerivativeSecurityListUpdateReport) SetUnderlyingPriceUnitOfMeasure(v st } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -781,23 +782,23 @@ func (m DerivativeSecurityListUpdateReport) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m DerivativeSecurityListUpdateReport) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m DerivativeSecurityListUpdateReport) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetTransactTime gets TransactTime, Tag 60 @@ -2523,13 +2524,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -2563,8 +2564,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -2578,13 +2579,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -2673,18 +2674,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -2723,13 +2724,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -2758,8 +2759,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -2773,8 +2774,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NoRelatedSym) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -2788,13 +2789,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -2838,23 +2839,23 @@ func (m NoRelatedSym) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NoRelatedSym) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NoRelatedSym) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NoRelatedSym) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NoRelatedSym) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NoRelatedSym) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -2868,8 +2869,8 @@ func (m NoRelatedSym) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2893,8 +2894,8 @@ func (m NoRelatedSym) SetDeliveryForm(v int) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m NoRelatedSym) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m NoRelatedSym) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -2908,18 +2909,18 @@ func (m NoRelatedSym) SetSecondaryPriceLimitType(v int) { } //SetSecondaryLowLimitPrice sets SecondaryLowLimitPrice, Tag 1221 -func (m NoRelatedSym) SetSecondaryLowLimitPrice(v float64) { - m.Set(field.NewSecondaryLowLimitPrice(v)) +func (m NoRelatedSym) SetSecondaryLowLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryLowLimitPrice(value, scale)) } //SetSecondaryHighLimitPrice sets SecondaryHighLimitPrice, Tag 1230 -func (m NoRelatedSym) SetSecondaryHighLimitPrice(v float64) { - m.Set(field.NewSecondaryHighLimitPrice(v)) +func (m NoRelatedSym) SetSecondaryHighLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryHighLimitPrice(value, scale)) } //SetSecondaryTradingReferencePrice sets SecondaryTradingReferencePrice, Tag 1240 -func (m NoRelatedSym) SetSecondaryTradingReferencePrice(v float64) { - m.Set(field.NewSecondaryTradingReferencePrice(v)) +func (m NoRelatedSym) SetSecondaryTradingReferencePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryTradingReferencePrice(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -4172,8 +4173,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4428,13 +4429,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -4443,8 +4444,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 @@ -4852,13 +4853,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4892,8 +4893,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4907,13 +4908,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4952,8 +4953,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4997,13 +4998,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -5022,8 +5023,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -5032,8 +5033,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -6101,8 +6102,8 @@ func (m NoDerivativeEvents) SetDerivativeEventTime(v time.Time) { } //SetDerivativeEventPx sets DerivativeEventPx, Tag 1290 -func (m NoDerivativeEvents) SetDerivativeEventPx(v float64) { - m.Set(field.NewDerivativeEventPx(v)) +func (m NoDerivativeEvents) SetDerivativeEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewDerivativeEventPx(value, scale)) } //SetDerivativeEventText sets DerivativeEventText, Tag 1291 @@ -6372,18 +6373,18 @@ func (m NoMarketSegments) SetPriceLimitType(v int) { } //SetLowLimitPrice sets LowLimitPrice, Tag 1148 -func (m NoMarketSegments) SetLowLimitPrice(v float64) { - m.Set(field.NewLowLimitPrice(v)) +func (m NoMarketSegments) SetLowLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLowLimitPrice(value, scale)) } //SetHighLimitPrice sets HighLimitPrice, Tag 1149 -func (m NoMarketSegments) SetHighLimitPrice(v float64) { - m.Set(field.NewHighLimitPrice(v)) +func (m NoMarketSegments) SetHighLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewHighLimitPrice(value, scale)) } //SetTradingReferencePrice sets TradingReferencePrice, Tag 1150 -func (m NoMarketSegments) SetTradingReferencePrice(v float64) { - m.Set(field.NewTradingReferencePrice(v)) +func (m NoMarketSegments) SetTradingReferencePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTradingReferencePrice(value, scale)) } //SetExpirationCycle sets ExpirationCycle, Tag 827 @@ -6392,18 +6393,18 @@ func (m NoMarketSegments) SetExpirationCycle(v int) { } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m NoMarketSegments) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m NoMarketSegments) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetMaxTradeVol sets MaxTradeVol, Tag 1140 -func (m NoMarketSegments) SetMaxTradeVol(v float64) { - m.Set(field.NewMaxTradeVol(v)) +func (m NoMarketSegments) SetMaxTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxTradeVol(value, scale)) } //SetMaxPriceVariation sets MaxPriceVariation, Tag 1143 -func (m NoMarketSegments) SetMaxPriceVariation(v float64) { - m.Set(field.NewMaxPriceVariation(v)) +func (m NoMarketSegments) SetMaxPriceVariation(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxPriceVariation(value, scale)) } //SetImpliedMarketIndicator sets ImpliedMarketIndicator, Tag 1144 @@ -6417,8 +6418,8 @@ func (m NoMarketSegments) SetTradingCurrency(v string) { } //SetRoundLot sets RoundLot, Tag 561 -func (m NoMarketSegments) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m NoMarketSegments) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMultilegModel sets MultilegModel, Tag 1377 @@ -6693,18 +6694,18 @@ type NoTickRules struct { } //SetStartTickPriceRange sets StartTickPriceRange, Tag 1206 -func (m NoTickRules) SetStartTickPriceRange(v float64) { - m.Set(field.NewStartTickPriceRange(v)) +func (m NoTickRules) SetStartTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartTickPriceRange(value, scale)) } //SetEndTickPriceRange sets EndTickPriceRange, Tag 1207 -func (m NoTickRules) SetEndTickPriceRange(v float64) { - m.Set(field.NewEndTickPriceRange(v)) +func (m NoTickRules) SetEndTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndTickPriceRange(value, scale)) } //SetTickIncrement sets TickIncrement, Tag 1208 -func (m NoTickRules) SetTickIncrement(v float64) { - m.Set(field.NewTickIncrement(v)) +func (m NoTickRules) SetTickIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewTickIncrement(value, scale)) } //SetTickRuleType sets TickRuleType, Tag 1209 @@ -6790,8 +6791,8 @@ func (m NoLotTypeRules) SetLotType(v string) { } //SetMinLotSize sets MinLotSize, Tag 1231 -func (m NoLotTypeRules) SetMinLotSize(v float64) { - m.Set(field.NewMinLotSize(v)) +func (m NoLotTypeRules) SetMinLotSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinLotSize(value, scale)) } //GetLotType gets LotType, Tag 1093 @@ -7323,18 +7324,18 @@ func (m NoStrikeRules) SetStrikeRuleID(v string) { } //SetStartStrikePxRange sets StartStrikePxRange, Tag 1202 -func (m NoStrikeRules) SetStartStrikePxRange(v float64) { - m.Set(field.NewStartStrikePxRange(v)) +func (m NoStrikeRules) SetStartStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartStrikePxRange(value, scale)) } //SetEndStrikePxRange sets EndStrikePxRange, Tag 1203 -func (m NoStrikeRules) SetEndStrikePxRange(v float64) { - m.Set(field.NewEndStrikePxRange(v)) +func (m NoStrikeRules) SetEndStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndStrikePxRange(value, scale)) } //SetStrikeIncrement sets StrikeIncrement, Tag 1204 -func (m NoStrikeRules) SetStrikeIncrement(v float64) { - m.Set(field.NewStrikeIncrement(v)) +func (m NoStrikeRules) SetStrikeIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeIncrement(value, scale)) } //SetStrikeExerciseStyle sets StrikeExerciseStyle, Tag 1304 diff --git a/fix50sp2/dontknowtrade/DontKnowTrade.generated.go b/fix50sp2/dontknowtrade/DontKnowTrade.generated.go index 2e125436a..852afdaa3 100644 --- a/fix50sp2/dontknowtrade/DontKnowTrade.generated.go +++ b/fix50sp2/dontknowtrade/DontKnowTrade.generated.go @@ -1,6 +1,7 @@ package dontknowtrade import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -75,13 +76,13 @@ func (m DontKnowTrade) SetSecurityIDSource(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m DontKnowTrade) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m DontKnowTrade) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastQty sets LastQty, Tag 32 -func (m DontKnowTrade) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m DontKnowTrade) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetOrderID sets OrderID, Tag 37 @@ -90,8 +91,8 @@ func (m DontKnowTrade) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m DontKnowTrade) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m DontKnowTrade) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -135,8 +136,8 @@ func (m DontKnowTrade) SetDKReason(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m DontKnowTrade) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m DontKnowTrade) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -160,8 +161,8 @@ func (m DontKnowTrade) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m DontKnowTrade) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m DontKnowTrade) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -175,8 +176,8 @@ func (m DontKnowTrade) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m DontKnowTrade) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m DontKnowTrade) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -195,18 +196,18 @@ func (m DontKnowTrade) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m DontKnowTrade) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m DontKnowTrade) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m DontKnowTrade) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m DontKnowTrade) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m DontKnowTrade) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m DontKnowTrade) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -275,8 +276,8 @@ func (m DontKnowTrade) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m DontKnowTrade) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m DontKnowTrade) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -295,8 +296,8 @@ func (m DontKnowTrade) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m DontKnowTrade) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m DontKnowTrade) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -375,18 +376,18 @@ func (m DontKnowTrade) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m DontKnowTrade) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m DontKnowTrade) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m DontKnowTrade) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m DontKnowTrade) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m DontKnowTrade) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m DontKnowTrade) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -425,13 +426,13 @@ func (m DontKnowTrade) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m DontKnowTrade) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m DontKnowTrade) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m DontKnowTrade) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m DontKnowTrade) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -460,8 +461,8 @@ func (m DontKnowTrade) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m DontKnowTrade) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m DontKnowTrade) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -475,8 +476,8 @@ func (m DontKnowTrade) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m DontKnowTrade) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m DontKnowTrade) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -495,13 +496,13 @@ func (m DontKnowTrade) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m DontKnowTrade) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m DontKnowTrade) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m DontKnowTrade) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m DontKnowTrade) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -540,23 +541,23 @@ func (m DontKnowTrade) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m DontKnowTrade) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m DontKnowTrade) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m DontKnowTrade) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m DontKnowTrade) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m DontKnowTrade) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m DontKnowTrade) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m DontKnowTrade) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m DontKnowTrade) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -570,8 +571,8 @@ func (m DontKnowTrade) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m DontKnowTrade) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m DontKnowTrade) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -1891,13 +1892,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1931,8 +1932,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1946,13 +1947,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1991,8 +1992,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2036,13 +2037,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2061,8 +2062,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2071,8 +2072,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -2844,13 +2845,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2884,8 +2885,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2899,13 +2900,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2959,38 +2960,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2999,8 +3000,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3009,8 +3010,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3029,8 +3030,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3044,13 +3045,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3074,8 +3075,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3084,8 +3085,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3109,23 +3110,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4235,8 +4236,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4491,13 +4492,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -4506,8 +4507,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/email/Email.generated.go b/fix50sp2/email/Email.generated.go index e3f330c28..960756e3f 100644 --- a/fix50sp2/email/Email.generated.go +++ b/fix50sp2/email/Email.generated.go @@ -1,6 +1,7 @@ package email import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -465,13 +466,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -505,8 +506,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -520,13 +521,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -615,18 +616,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -665,13 +666,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -700,8 +701,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -715,8 +716,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NoRelatedSym) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -730,13 +731,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -780,23 +781,23 @@ func (m NoRelatedSym) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NoRelatedSym) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NoRelatedSym) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NoRelatedSym) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NoRelatedSym) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NoRelatedSym) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -810,8 +811,8 @@ func (m NoRelatedSym) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -1877,8 +1878,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2133,13 +2134,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -2148,8 +2149,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 @@ -2580,13 +2581,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2620,8 +2621,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2635,13 +2636,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2680,8 +2681,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2725,13 +2726,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2750,8 +2751,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2760,8 +2761,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3533,13 +3534,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3573,8 +3574,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3588,13 +3589,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3648,38 +3649,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3688,8 +3689,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3698,8 +3699,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3718,8 +3719,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3733,13 +3734,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3763,8 +3764,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3773,8 +3774,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3798,23 +3799,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 diff --git a/fix50sp2/executionacknowledgement/ExecutionAcknowledgement.generated.go b/fix50sp2/executionacknowledgement/ExecutionAcknowledgement.generated.go index 3c2967e68..1e6f1af0d 100644 --- a/fix50sp2/executionacknowledgement/ExecutionAcknowledgement.generated.go +++ b/fix50sp2/executionacknowledgement/ExecutionAcknowledgement.generated.go @@ -1,6 +1,7 @@ package executionacknowledgement import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -65,8 +66,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m ExecutionAcknowledgement) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m ExecutionAcknowledgement) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetClOrdID sets ClOrdID, Tag 11 @@ -75,8 +76,8 @@ func (m ExecutionAcknowledgement) SetClOrdID(v string) { } //SetCumQty sets CumQty, Tag 14 -func (m ExecutionAcknowledgement) SetCumQty(v float64) { - m.Set(field.NewCumQty(v)) +func (m ExecutionAcknowledgement) SetCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCumQty(value, scale)) } //SetExecID sets ExecID, Tag 17 @@ -90,13 +91,13 @@ func (m ExecutionAcknowledgement) SetSecurityIDSource(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m ExecutionAcknowledgement) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m ExecutionAcknowledgement) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastQty sets LastQty, Tag 32 -func (m ExecutionAcknowledgement) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m ExecutionAcknowledgement) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetOrderID sets OrderID, Tag 37 @@ -105,8 +106,8 @@ func (m ExecutionAcknowledgement) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m ExecutionAcknowledgement) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m ExecutionAcknowledgement) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -150,8 +151,8 @@ func (m ExecutionAcknowledgement) SetDKReason(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m ExecutionAcknowledgement) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m ExecutionAcknowledgement) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -175,8 +176,8 @@ func (m ExecutionAcknowledgement) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m ExecutionAcknowledgement) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m ExecutionAcknowledgement) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -190,8 +191,8 @@ func (m ExecutionAcknowledgement) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m ExecutionAcknowledgement) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m ExecutionAcknowledgement) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -210,18 +211,18 @@ func (m ExecutionAcknowledgement) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m ExecutionAcknowledgement) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m ExecutionAcknowledgement) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m ExecutionAcknowledgement) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m ExecutionAcknowledgement) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m ExecutionAcknowledgement) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m ExecutionAcknowledgement) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -295,8 +296,8 @@ func (m ExecutionAcknowledgement) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m ExecutionAcknowledgement) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m ExecutionAcknowledgement) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -315,8 +316,8 @@ func (m ExecutionAcknowledgement) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m ExecutionAcknowledgement) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m ExecutionAcknowledgement) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -340,8 +341,8 @@ func (m ExecutionAcknowledgement) SetContractSettlMonth(v string) { } //SetLastParPx sets LastParPx, Tag 669 -func (m ExecutionAcknowledgement) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m ExecutionAcknowledgement) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetPool sets Pool, Tag 691 @@ -400,18 +401,18 @@ func (m ExecutionAcknowledgement) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m ExecutionAcknowledgement) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m ExecutionAcknowledgement) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m ExecutionAcknowledgement) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m ExecutionAcknowledgement) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m ExecutionAcknowledgement) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m ExecutionAcknowledgement) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -455,13 +456,13 @@ func (m ExecutionAcknowledgement) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m ExecutionAcknowledgement) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m ExecutionAcknowledgement) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m ExecutionAcknowledgement) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m ExecutionAcknowledgement) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -490,8 +491,8 @@ func (m ExecutionAcknowledgement) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m ExecutionAcknowledgement) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m ExecutionAcknowledgement) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -505,8 +506,8 @@ func (m ExecutionAcknowledgement) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m ExecutionAcknowledgement) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m ExecutionAcknowledgement) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -525,13 +526,13 @@ func (m ExecutionAcknowledgement) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m ExecutionAcknowledgement) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m ExecutionAcknowledgement) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m ExecutionAcknowledgement) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m ExecutionAcknowledgement) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -570,23 +571,23 @@ func (m ExecutionAcknowledgement) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m ExecutionAcknowledgement) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m ExecutionAcknowledgement) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m ExecutionAcknowledgement) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m ExecutionAcknowledgement) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m ExecutionAcknowledgement) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m ExecutionAcknowledgement) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m ExecutionAcknowledgement) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m ExecutionAcknowledgement) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -600,8 +601,8 @@ func (m ExecutionAcknowledgement) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m ExecutionAcknowledgement) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m ExecutionAcknowledgement) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -1987,13 +1988,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2027,8 +2028,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2042,13 +2043,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2087,8 +2088,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2132,13 +2133,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2157,8 +2158,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2167,8 +2168,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -2940,13 +2941,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2980,8 +2981,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2995,13 +2996,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3055,38 +3056,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3095,8 +3096,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3105,8 +3106,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3125,8 +3126,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3140,13 +3141,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3170,8 +3171,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3180,8 +3181,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3205,23 +3206,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4331,8 +4332,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4587,13 +4588,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -4602,8 +4603,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/executionreport/ExecutionReport.generated.go b/fix50sp2/executionreport/ExecutionReport.generated.go index 79249e973..2196035e6 100644 --- a/fix50sp2/executionreport/ExecutionReport.generated.go +++ b/fix50sp2/executionreport/ExecutionReport.generated.go @@ -1,6 +1,7 @@ package executionreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -73,8 +74,8 @@ func (m ExecutionReport) SetAccount(v string) { } //SetAvgPx sets AvgPx, Tag 6 -func (m ExecutionReport) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m ExecutionReport) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetClOrdID sets ClOrdID, Tag 11 @@ -83,8 +84,8 @@ func (m ExecutionReport) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m ExecutionReport) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m ExecutionReport) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -93,8 +94,8 @@ func (m ExecutionReport) SetCommType(v string) { } //SetCumQty sets CumQty, Tag 14 -func (m ExecutionReport) SetCumQty(v float64) { - m.Set(field.NewCumQty(v)) +func (m ExecutionReport) SetCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCumQty(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -138,13 +139,13 @@ func (m ExecutionReport) SetLastMkt(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m ExecutionReport) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m ExecutionReport) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastQty sets LastQty, Tag 32 -func (m ExecutionReport) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m ExecutionReport) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetOrderID sets OrderID, Tag 37 @@ -153,8 +154,8 @@ func (m ExecutionReport) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m ExecutionReport) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m ExecutionReport) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdStatus sets OrdStatus, Tag 39 @@ -173,8 +174,8 @@ func (m ExecutionReport) SetOrigClOrdID(v string) { } //SetPrice sets Price, Tag 44 -func (m ExecutionReport) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m ExecutionReport) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -248,8 +249,8 @@ func (m ExecutionReport) SetNoAllocs(f NoAllocsRepeatingGroup) { } //SetStopPx sets StopPx, Tag 99 -func (m ExecutionReport) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m ExecutionReport) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetOrdRejReason sets OrdRejReason, Tag 103 @@ -268,13 +269,13 @@ func (m ExecutionReport) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m ExecutionReport) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m ExecutionReport) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m ExecutionReport) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m ExecutionReport) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetReportToExch sets ReportToExch, Tag 113 @@ -283,13 +284,13 @@ func (m ExecutionReport) SetReportToExch(v bool) { } //SetNetMoney sets NetMoney, Tag 118 -func (m ExecutionReport) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m ExecutionReport) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m ExecutionReport) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m ExecutionReport) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -313,18 +314,18 @@ func (m ExecutionReport) SetExecType(v string) { } //SetLeavesQty sets LeavesQty, Tag 151 -func (m ExecutionReport) SetLeavesQty(v float64) { - m.Set(field.NewLeavesQty(v)) +func (m ExecutionReport) SetLeavesQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLeavesQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m ExecutionReport) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m ExecutionReport) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m ExecutionReport) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m ExecutionReport) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -338,13 +339,13 @@ func (m ExecutionReport) SetNumDaysInterest(v int) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m ExecutionReport) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m ExecutionReport) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m ExecutionReport) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m ExecutionReport) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -358,8 +359,8 @@ func (m ExecutionReport) SetEffectiveTime(v time.Time) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m ExecutionReport) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m ExecutionReport) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -368,13 +369,13 @@ func (m ExecutionReport) SetSettlDate2(v string) { } //SetLastSpotRate sets LastSpotRate, Tag 194 -func (m ExecutionReport) SetLastSpotRate(v float64) { - m.Set(field.NewLastSpotRate(v)) +func (m ExecutionReport) SetLastSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSpotRate(value, scale)) } //SetLastForwardPoints sets LastForwardPoints, Tag 195 -func (m ExecutionReport) SetLastForwardPoints(v float64) { - m.Set(field.NewLastForwardPoints(v)) +func (m ExecutionReport) SetLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastForwardPoints(value, scale)) } //SetSecondaryOrderID sets SecondaryOrderID, Tag 198 @@ -393,8 +394,8 @@ func (m ExecutionReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m ExecutionReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m ExecutionReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -408,18 +409,18 @@ func (m ExecutionReport) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m ExecutionReport) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m ExecutionReport) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m ExecutionReport) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m ExecutionReport) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m ExecutionReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m ExecutionReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -438,8 +439,8 @@ func (m ExecutionReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m ExecutionReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m ExecutionReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -458,13 +459,13 @@ func (m ExecutionReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m ExecutionReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m ExecutionReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m ExecutionReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m ExecutionReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -478,8 +479,8 @@ func (m ExecutionReport) SetExDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m ExecutionReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m ExecutionReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -493,18 +494,18 @@ func (m ExecutionReport) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m ExecutionReport) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m ExecutionReport) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m ExecutionReport) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m ExecutionReport) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m ExecutionReport) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m ExecutionReport) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -533,8 +534,8 @@ func (m ExecutionReport) SetBasisFeatureDate(v string) { } //SetBasisFeaturePrice sets BasisFeaturePrice, Tag 260 -func (m ExecutionReport) SetBasisFeaturePrice(v float64) { - m.Set(field.NewBasisFeaturePrice(v)) +func (m ExecutionReport) SetBasisFeaturePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBasisFeaturePrice(value, scale)) } //SetTradingSessionID sets TradingSessionID, Tag 336 @@ -588,8 +589,8 @@ func (m ExecutionReport) SetExecRestatementReason(v int) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m ExecutionReport) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m ExecutionReport) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetNoContraBrokers sets NoContraBrokers, Tag 382 @@ -603,8 +604,8 @@ func (m ExecutionReport) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m ExecutionReport) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m ExecutionReport) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -613,18 +614,18 @@ func (m ExecutionReport) SetPriceType(v int) { } //SetDayOrderQty sets DayOrderQty, Tag 424 -func (m ExecutionReport) SetDayOrderQty(v float64) { - m.Set(field.NewDayOrderQty(v)) +func (m ExecutionReport) SetDayOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDayOrderQty(value, scale)) } //SetDayCumQty sets DayCumQty, Tag 425 -func (m ExecutionReport) SetDayCumQty(v float64) { - m.Set(field.NewDayCumQty(v)) +func (m ExecutionReport) SetDayCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDayCumQty(value, scale)) } //SetDayAvgPx sets DayAvgPx, Tag 426 -func (m ExecutionReport) SetDayAvgPx(v float64) { - m.Set(field.NewDayAvgPx(v)) +func (m ExecutionReport) SetDayAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewDayAvgPx(value, scale)) } //SetGTBookingInst sets GTBookingInst, Tag 427 @@ -668,8 +669,8 @@ func (m ExecutionReport) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m ExecutionReport) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m ExecutionReport) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -713,8 +714,8 @@ func (m ExecutionReport) SetExecPriceType(v string) { } //SetExecPriceAdjustment sets ExecPriceAdjustment, Tag 485 -func (m ExecutionReport) SetExecPriceAdjustment(v float64) { - m.Set(field.NewExecPriceAdjustment(v)) +func (m ExecutionReport) SetExecPriceAdjustment(value decimal.Decimal, scale int32) { + m.Set(field.NewExecPriceAdjustment(value, scale)) } //SetDesignation sets Designation, Tag 494 @@ -738,8 +739,8 @@ func (m ExecutionReport) SetExecValuationPoint(v time.Time) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m ExecutionReport) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m ExecutionReport) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetNoContAmts sets NoContAmts, Tag 518 @@ -863,23 +864,23 @@ func (m ExecutionReport) SetPriorityIndicator(v int) { } //SetPriceImprovement sets PriceImprovement, Tag 639 -func (m ExecutionReport) SetPriceImprovement(v float64) { - m.Set(field.NewPriceImprovement(v)) +func (m ExecutionReport) SetPriceImprovement(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceImprovement(value, scale)) } //SetLastForwardPoints2 sets LastForwardPoints2, Tag 641 -func (m ExecutionReport) SetLastForwardPoints2(v float64) { - m.Set(field.NewLastForwardPoints2(v)) +func (m ExecutionReport) SetLastForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewLastForwardPoints2(value, scale)) } //SetUnderlyingLastPx sets UnderlyingLastPx, Tag 651 -func (m ExecutionReport) SetUnderlyingLastPx(v float64) { - m.Set(field.NewUnderlyingLastPx(v)) +func (m ExecutionReport) SetUnderlyingLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingLastPx(value, scale)) } //SetUnderlyingLastQty sets UnderlyingLastQty, Tag 652 -func (m ExecutionReport) SetUnderlyingLastQty(v float64) { - m.Set(field.NewUnderlyingLastQty(v)) +func (m ExecutionReport) SetUnderlyingLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingLastQty(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -888,8 +889,8 @@ func (m ExecutionReport) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m ExecutionReport) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m ExecutionReport) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -903,8 +904,8 @@ func (m ExecutionReport) SetContractSettlMonth(v string) { } //SetLastParPx sets LastParPx, Tag 669 -func (m ExecutionReport) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m ExecutionReport) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetPool sets Pool, Tag 691 @@ -923,8 +924,8 @@ func (m ExecutionReport) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m ExecutionReport) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m ExecutionReport) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -948,8 +949,8 @@ func (m ExecutionReport) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m ExecutionReport) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m ExecutionReport) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetBenchmarkSecurityIDSource sets BenchmarkSecurityIDSource, Tag 761 @@ -988,8 +989,8 @@ func (m ExecutionReport) SetCopyMsgIndicator(v bool) { } //SetPriceDelta sets PriceDelta, Tag 811 -func (m ExecutionReport) SetPriceDelta(v float64) { - m.Set(field.NewPriceDelta(v)) +func (m ExecutionReport) SetPriceDelta(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceDelta(value, scale)) } //SetPegMoveType sets PegMoveType, Tag 835 @@ -1013,8 +1014,8 @@ func (m ExecutionReport) SetPegRoundDirection(v int) { } //SetPeggedPrice sets PeggedPrice, Tag 839 -func (m ExecutionReport) SetPeggedPrice(v float64) { - m.Set(field.NewPeggedPrice(v)) +func (m ExecutionReport) SetPeggedPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPeggedPrice(value, scale)) } //SetPegScope sets PegScope, Tag 840 @@ -1043,8 +1044,8 @@ func (m ExecutionReport) SetDiscretionRoundDirection(v int) { } //SetDiscretionPrice sets DiscretionPrice, Tag 845 -func (m ExecutionReport) SetDiscretionPrice(v float64) { - m.Set(field.NewDiscretionPrice(v)) +func (m ExecutionReport) SetDiscretionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionPrice(value, scale)) } //SetDiscretionScope sets DiscretionScope, Tag 846 @@ -1063,13 +1064,13 @@ func (m ExecutionReport) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m ExecutionReport) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m ExecutionReport) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetTargetStrategyPerformance sets TargetStrategyPerformance, Tag 850 -func (m ExecutionReport) SetTargetStrategyPerformance(v float64) { - m.Set(field.NewTargetStrategyPerformance(v)) +func (m ExecutionReport) SetTargetStrategyPerformance(value decimal.Decimal, scale int32) { + m.Set(field.NewTargetStrategyPerformance(value, scale)) } //SetLastLiquidityInd sets LastLiquidityInd, Tag 851 @@ -1118,8 +1119,8 @@ func (m ExecutionReport) SetLastFragment(v bool) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m ExecutionReport) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m ExecutionReport) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetTotNumReports sets TotNumReports, Tag 911 @@ -1168,18 +1169,18 @@ func (m ExecutionReport) SetDeliveryType(v int) { } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m ExecutionReport) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m ExecutionReport) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m ExecutionReport) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m ExecutionReport) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m ExecutionReport) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m ExecutionReport) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetTimeBracket sets TimeBracket, Tag 943 @@ -1213,18 +1214,18 @@ func (m ExecutionReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m ExecutionReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m ExecutionReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m ExecutionReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m ExecutionReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m ExecutionReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m ExecutionReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -1283,8 +1284,8 @@ func (m ExecutionReport) SetInstrmtAssignmentMethod(v string) { } //SetCalculatedCcyLastQty sets CalculatedCcyLastQty, Tag 1056 -func (m ExecutionReport) SetCalculatedCcyLastQty(v float64) { - m.Set(field.NewCalculatedCcyLastQty(v)) +func (m ExecutionReport) SetCalculatedCcyLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCalculatedCcyLastQty(value, scale)) } //SetAggressorIndicator sets AggressorIndicator, Tag 1057 @@ -1293,8 +1294,8 @@ func (m ExecutionReport) SetAggressorIndicator(v bool) { } //SetLastSwapPoints sets LastSwapPoints, Tag 1071 -func (m ExecutionReport) SetLastSwapPoints(v float64) { - m.Set(field.NewLastSwapPoints(v)) +func (m ExecutionReport) SetLastSwapPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSwapPoints(value, scale)) } //SetMaturityTime sets MaturityTime, Tag 1079 @@ -1303,8 +1304,8 @@ func (m ExecutionReport) SetMaturityTime(v string) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m ExecutionReport) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m ExecutionReport) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -1318,28 +1319,28 @@ func (m ExecutionReport) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m ExecutionReport) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m ExecutionReport) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m ExecutionReport) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m ExecutionReport) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m ExecutionReport) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m ExecutionReport) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m ExecutionReport) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m ExecutionReport) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m ExecutionReport) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m ExecutionReport) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -1368,8 +1369,8 @@ func (m ExecutionReport) SetPegPriceType(v int) { } //SetPeggedRefPrice sets PeggedRefPrice, Tag 1095 -func (m ExecutionReport) SetPeggedRefPrice(v float64) { - m.Set(field.NewPeggedRefPrice(v)) +func (m ExecutionReport) SetPeggedRefPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPeggedRefPrice(value, scale)) } //SetPegSecurityIDSource sets PegSecurityIDSource, Tag 1096 @@ -1403,8 +1404,8 @@ func (m ExecutionReport) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m ExecutionReport) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m ExecutionReport) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -1443,8 +1444,8 @@ func (m ExecutionReport) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m ExecutionReport) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m ExecutionReport) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -1453,8 +1454,8 @@ func (m ExecutionReport) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m ExecutionReport) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m ExecutionReport) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -1473,18 +1474,18 @@ func (m ExecutionReport) SetOrderCategory(v string) { } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m ExecutionReport) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m ExecutionReport) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m ExecutionReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m ExecutionReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m ExecutionReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m ExecutionReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -1518,18 +1519,18 @@ func (m ExecutionReport) SetSecurityXMLSchema(v string) { } //SetVolatility sets Volatility, Tag 1188 -func (m ExecutionReport) SetVolatility(v float64) { - m.Set(field.NewVolatility(v)) +func (m ExecutionReport) SetVolatility(value decimal.Decimal, scale int32) { + m.Set(field.NewVolatility(value, scale)) } //SetTimeToExpiration sets TimeToExpiration, Tag 1189 -func (m ExecutionReport) SetTimeToExpiration(v float64) { - m.Set(field.NewTimeToExpiration(v)) +func (m ExecutionReport) SetTimeToExpiration(value decimal.Decimal, scale int32) { + m.Set(field.NewTimeToExpiration(value, scale)) } //SetRiskFreeRate sets RiskFreeRate, Tag 1190 -func (m ExecutionReport) SetRiskFreeRate(v float64) { - m.Set(field.NewRiskFreeRate(v)) +func (m ExecutionReport) SetRiskFreeRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRiskFreeRate(value, scale)) } //SetPriceUnitOfMeasure sets PriceUnitOfMeasure, Tag 1191 @@ -1538,8 +1539,8 @@ func (m ExecutionReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m ExecutionReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m ExecutionReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -1553,8 +1554,8 @@ func (m ExecutionReport) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m ExecutionReport) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m ExecutionReport) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -1573,13 +1574,13 @@ func (m ExecutionReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m ExecutionReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m ExecutionReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m ExecutionReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m ExecutionReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -1618,8 +1619,8 @@ func (m ExecutionReport) SetNoFills(f NoFillsRepeatingGroup) { } //SetDividendYield sets DividendYield, Tag 1380 -func (m ExecutionReport) SetDividendYield(v float64) { - m.Set(field.NewDividendYield(v)) +func (m ExecutionReport) SetDividendYield(value decimal.Decimal, scale int32) { + m.Set(field.NewDividendYield(value, scale)) } //SetContractMultiplierUnit sets ContractMultiplierUnit, Tag 1435 @@ -1648,23 +1649,23 @@ func (m ExecutionReport) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m ExecutionReport) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m ExecutionReport) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m ExecutionReport) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m ExecutionReport) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m ExecutionReport) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m ExecutionReport) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m ExecutionReport) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m ExecutionReport) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -1678,8 +1679,8 @@ func (m ExecutionReport) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m ExecutionReport) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m ExecutionReport) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -5330,8 +5331,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -5583,8 +5584,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -5745,8 +5746,8 @@ func (m NoContraBrokers) SetContraTrader(v string) { } //SetContraTradeQty sets ContraTradeQty, Tag 437 -func (m NoContraBrokers) SetContraTradeQty(v float64) { - m.Set(field.NewContraTradeQty(v)) +func (m NoContraBrokers) SetContraTradeQty(value decimal.Decimal, scale int32) { + m.Set(field.NewContraTradeQty(value, scale)) } //SetContraTradeTime sets ContraTradeTime, Tag 438 @@ -6061,8 +6062,8 @@ func (m NoContAmts) SetContAmtType(v int) { } //SetContAmtValue sets ContAmtValue, Tag 520 -func (m NoContAmts) SetContAmtValue(v float64) { - m.Set(field.NewContAmtValue(v)) +func (m NoContAmts) SetContAmtValue(value decimal.Decimal, scale int32) { + m.Set(field.NewContAmtValue(value, scale)) } //SetContAmtCurr sets ContAmtCurr, Tag 521 @@ -6207,13 +6208,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -6247,8 +6248,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -6262,13 +6263,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -6307,8 +6308,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -6352,13 +6353,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -6377,8 +6378,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -6387,8 +6388,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -6402,8 +6403,8 @@ func (m NoLegs) SetLegFlowScheduleType(v int) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -6442,13 +6443,13 @@ func (m NoLegs) SetLegSettlDate(v string) { } //SetLegLastPx sets LegLastPx, Tag 637 -func (m NoLegs) SetLegLastPx(v float64) { - m.Set(field.NewLegLastPx(v)) +func (m NoLegs) SetLegLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastPx(value, scale)) } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //SetLegSettlCurrency sets LegSettlCurrency, Tag 675 @@ -6457,18 +6458,18 @@ func (m NoLegs) SetLegSettlCurrency(v string) { } //SetLegLastForwardPoints sets LegLastForwardPoints, Tag 1073 -func (m NoLegs) SetLegLastForwardPoints(v float64) { - m.Set(field.NewLegLastForwardPoints(v)) +func (m NoLegs) SetLegLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastForwardPoints(value, scale)) } //SetLegCalculatedCcyLastQty sets LegCalculatedCcyLastQty, Tag 1074 -func (m NoLegs) SetLegCalculatedCcyLastQty(v float64) { - m.Set(field.NewLegCalculatedCcyLastQty(v)) +func (m NoLegs) SetLegCalculatedCcyLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCalculatedCcyLastQty(value, scale)) } //SetLegGrossTradeAmt sets LegGrossTradeAmt, Tag 1075 -func (m NoLegs) SetLegGrossTradeAmt(v float64) { - m.Set(field.NewLegGrossTradeAmt(v)) +func (m NoLegs) SetLegGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewLegGrossTradeAmt(value, scale)) } //SetNoNested3PartyIDs sets NoNested3PartyIDs, Tag 948 @@ -6487,18 +6488,18 @@ func (m NoLegs) SetNoLegAllocs(f NoLegAllocsRepeatingGroup) { } //SetLegVolatility sets LegVolatility, Tag 1379 -func (m NoLegs) SetLegVolatility(v float64) { - m.Set(field.NewLegVolatility(v)) +func (m NoLegs) SetLegVolatility(value decimal.Decimal, scale int32) { + m.Set(field.NewLegVolatility(value, scale)) } //SetLegDividendYield sets LegDividendYield, Tag 1381 -func (m NoLegs) SetLegDividendYield(v float64) { - m.Set(field.NewLegDividendYield(v)) +func (m NoLegs) SetLegDividendYield(value decimal.Decimal, scale int32) { + m.Set(field.NewLegDividendYield(value, scale)) } //SetLegCurrencyRatio sets LegCurrencyRatio, Tag 1383 -func (m NoLegs) SetLegCurrencyRatio(v float64) { - m.Set(field.NewLegCurrencyRatio(v)) +func (m NoLegs) SetLegCurrencyRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCurrencyRatio(value, scale)) } //SetLegExecInst sets LegExecInst, Tag 1384 @@ -6507,8 +6508,8 @@ func (m NoLegs) SetLegExecInst(v string) { } //SetLegLastQty sets LegLastQty, Tag 1418 -func (m NoLegs) SetLegLastQty(v float64) { - m.Set(field.NewLegLastQty(v)) +func (m NoLegs) SetLegLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -7640,8 +7641,8 @@ func (m NoLegAllocs) SetLegIndividualAllocID(v string) { } //SetLegAllocQty sets LegAllocQty, Tag 673 -func (m NoLegAllocs) SetLegAllocQty(v float64) { - m.Set(field.NewLegAllocQty(v)) +func (m NoLegAllocs) SetLegAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegAllocQty(value, scale)) } //SetLegAllocAcctIDSource sets LegAllocAcctIDSource, Tag 674 @@ -8006,13 +8007,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -8046,8 +8047,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -8061,13 +8062,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -8121,38 +8122,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -8161,8 +8162,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -8171,8 +8172,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -8191,8 +8192,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -8206,13 +8207,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -8236,8 +8237,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -8246,8 +8247,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -8271,23 +8272,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -9521,8 +9522,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -9853,13 +9854,13 @@ func (m NoFills) SetFillExecID(v string) { } //SetFillPx sets FillPx, Tag 1364 -func (m NoFills) SetFillPx(v float64) { - m.Set(field.NewFillPx(v)) +func (m NoFills) SetFillPx(value decimal.Decimal, scale int32) { + m.Set(field.NewFillPx(value, scale)) } //SetFillQty sets FillQty, Tag 1365 -func (m NoFills) SetFillQty(v float64) { - m.Set(field.NewFillQty(v)) +func (m NoFills) SetFillQty(value decimal.Decimal, scale int32) { + m.Set(field.NewFillQty(value, scale)) } //SetNoNested4PartyIDs sets NoNested4PartyIDs, Tag 1414 @@ -10191,13 +10192,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -10206,8 +10207,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/ioi/IOI.generated.go b/fix50sp2/ioi/IOI.generated.go index bdbb0dd1e..73b63ebf8 100644 --- a/fix50sp2/ioi/IOI.generated.go +++ b/fix50sp2/ioi/IOI.generated.go @@ -1,6 +1,7 @@ package ioi import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -100,13 +101,13 @@ func (m IOI) SetIOITransType(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m IOI) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m IOI) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetPrice sets Price, Tag 44 -func (m IOI) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m IOI) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -165,8 +166,8 @@ func (m IOI) SetURLLink(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m IOI) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m IOI) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -190,8 +191,8 @@ func (m IOI) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m IOI) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m IOI) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -210,8 +211,8 @@ func (m IOI) SetNoRoutingIDs(f NoRoutingIDsRepeatingGroup) { } //SetSpread sets Spread, Tag 218 -func (m IOI) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m IOI) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -230,8 +231,8 @@ func (m IOI) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m IOI) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m IOI) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -250,18 +251,18 @@ func (m IOI) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m IOI) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m IOI) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m IOI) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m IOI) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m IOI) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m IOI) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -275,8 +276,8 @@ func (m IOI) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m IOI) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m IOI) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -355,8 +356,8 @@ func (m IOI) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m IOI) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m IOI) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -375,8 +376,8 @@ func (m IOI) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m IOI) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m IOI) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetMaturityDate sets MaturityDate, Tag 541 @@ -395,8 +396,8 @@ func (m IOI) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m IOI) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m IOI) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -420,8 +421,8 @@ func (m IOI) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m IOI) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m IOI) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -490,8 +491,8 @@ func (m IOI) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m IOI) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m IOI) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -545,18 +546,18 @@ func (m IOI) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m IOI) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m IOI) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m IOI) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m IOI) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m IOI) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m IOI) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -595,13 +596,13 @@ func (m IOI) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m IOI) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m IOI) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m IOI) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m IOI) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -640,8 +641,8 @@ func (m IOI) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m IOI) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m IOI) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -655,8 +656,8 @@ func (m IOI) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m IOI) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m IOI) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -675,13 +676,13 @@ func (m IOI) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m IOI) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m IOI) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m IOI) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m IOI) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -730,23 +731,23 @@ func (m IOI) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m IOI) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m IOI) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m IOI) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m IOI) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m IOI) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m IOI) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m IOI) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m IOI) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -760,8 +761,8 @@ func (m IOI) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m IOI) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m IOI) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2820,13 +2821,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2860,8 +2861,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2875,13 +2876,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2920,8 +2921,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2965,13 +2966,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2990,8 +2991,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3000,8 +3001,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3866,13 +3867,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3906,8 +3907,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3921,13 +3922,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3981,38 +3982,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4021,8 +4022,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4031,8 +4032,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4051,8 +4052,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4066,13 +4067,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4096,8 +4097,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4106,8 +4107,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -4131,23 +4132,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -5257,8 +5258,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -5513,13 +5514,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -5528,8 +5529,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/liststatus/ListStatus.generated.go b/fix50sp2/liststatus/ListStatus.generated.go index b74b7fba6..2db7f4fc1 100644 --- a/fix50sp2/liststatus/ListStatus.generated.go +++ b/fix50sp2/liststatus/ListStatus.generated.go @@ -1,6 +1,7 @@ package liststatus import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -307,8 +308,8 @@ func (m NoOrders) SetSecondaryClOrdID(v string) { } //SetCumQty sets CumQty, Tag 14 -func (m NoOrders) SetCumQty(v float64) { - m.Set(field.NewCumQty(v)) +func (m NoOrders) SetCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCumQty(value, scale)) } //SetOrdStatus sets OrdStatus, Tag 39 @@ -322,18 +323,18 @@ func (m NoOrders) SetWorkingIndicator(v bool) { } //SetLeavesQty sets LeavesQty, Tag 151 -func (m NoOrders) SetLeavesQty(v float64) { - m.Set(field.NewLeavesQty(v)) +func (m NoOrders) SetLeavesQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLeavesQty(value, scale)) } //SetCxlQty sets CxlQty, Tag 84 -func (m NoOrders) SetCxlQty(v float64) { - m.Set(field.NewCxlQty(v)) +func (m NoOrders) SetCxlQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCxlQty(value, scale)) } //SetAvgPx sets AvgPx, Tag 6 -func (m NoOrders) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m NoOrders) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetOrdRejReason sets OrdRejReason, Tag 103 diff --git a/fix50sp2/liststrikeprice/ListStrikePrice.generated.go b/fix50sp2/liststrikeprice/ListStrikePrice.generated.go index 48e1db506..66ce6a5d0 100644 --- a/fix50sp2/liststrikeprice/ListStrikePrice.generated.go +++ b/fix50sp2/liststrikeprice/ListStrikePrice.generated.go @@ -1,6 +1,7 @@ package liststrikeprice import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -208,13 +209,13 @@ func (m NoStrikes) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoStrikes) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoStrikes) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoStrikes) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoStrikes) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -248,8 +249,8 @@ func (m NoStrikes) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoStrikes) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoStrikes) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -263,13 +264,13 @@ func (m NoStrikes) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoStrikes) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoStrikes) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoStrikes) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoStrikes) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -358,18 +359,18 @@ func (m NoStrikes) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoStrikes) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoStrikes) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoStrikes) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoStrikes) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoStrikes) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoStrikes) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -408,13 +409,13 @@ func (m NoStrikes) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoStrikes) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoStrikes) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoStrikes) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoStrikes) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -443,8 +444,8 @@ func (m NoStrikes) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoStrikes) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoStrikes) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -458,8 +459,8 @@ func (m NoStrikes) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NoStrikes) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NoStrikes) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -473,13 +474,13 @@ func (m NoStrikes) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoStrikes) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoStrikes) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoStrikes) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoStrikes) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -523,23 +524,23 @@ func (m NoStrikes) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NoStrikes) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NoStrikes) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NoStrikes) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NoStrikes) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NoStrikes) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NoStrikes) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NoStrikes) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NoStrikes) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -553,8 +554,8 @@ func (m NoStrikes) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NoStrikes) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NoStrikes) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -578,8 +579,8 @@ func (m NoStrikes) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoStrikes) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoStrikes) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetClOrdID sets ClOrdID, Tag 11 @@ -598,8 +599,8 @@ func (m NoStrikes) SetSide(v string) { } //SetPrice sets Price, Tag 44 -func (m NoStrikes) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoStrikes) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -1781,8 +1782,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2037,13 +2038,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -2052,8 +2053,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 @@ -2401,13 +2402,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2441,8 +2442,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2456,13 +2457,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2516,38 +2517,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2556,8 +2557,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2566,8 +2567,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2586,8 +2587,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2601,13 +2602,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2631,8 +2632,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -2641,8 +2642,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -2666,23 +2667,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 diff --git a/fix50sp2/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go b/fix50sp2/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go index 4e38b4d87..69f14b8ea 100644 --- a/fix50sp2/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go +++ b/fix50sp2/marketdataincrementalrefresh/MarketDataIncrementalRefresh.generated.go @@ -1,6 +1,7 @@ package marketdataincrementalrefresh import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -420,13 +421,13 @@ func (m NoMDEntries) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoMDEntries) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoMDEntries) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoMDEntries) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoMDEntries) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -460,8 +461,8 @@ func (m NoMDEntries) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoMDEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoMDEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -475,13 +476,13 @@ func (m NoMDEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoMDEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoMDEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoMDEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoMDEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -570,18 +571,18 @@ func (m NoMDEntries) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoMDEntries) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoMDEntries) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoMDEntries) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoMDEntries) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoMDEntries) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoMDEntries) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -620,13 +621,13 @@ func (m NoMDEntries) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoMDEntries) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoMDEntries) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoMDEntries) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoMDEntries) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -655,8 +656,8 @@ func (m NoMDEntries) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoMDEntries) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoMDEntries) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -670,8 +671,8 @@ func (m NoMDEntries) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NoMDEntries) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NoMDEntries) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -685,13 +686,13 @@ func (m NoMDEntries) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoMDEntries) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoMDEntries) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoMDEntries) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoMDEntries) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -735,23 +736,23 @@ func (m NoMDEntries) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NoMDEntries) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NoMDEntries) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NoMDEntries) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NoMDEntries) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NoMDEntries) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NoMDEntries) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NoMDEntries) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NoMDEntries) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -765,8 +766,8 @@ func (m NoMDEntries) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NoMDEntries) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NoMDEntries) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -805,8 +806,8 @@ func (m NoMDEntries) SetCorporateAction(v string) { } //SetMDEntryPx sets MDEntryPx, Tag 270 -func (m NoMDEntries) SetMDEntryPx(v float64) { - m.Set(field.NewMDEntryPx(v)) +func (m NoMDEntries) SetMDEntryPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntryPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -815,8 +816,8 @@ func (m NoMDEntries) SetCurrency(v string) { } //SetMDEntrySize sets MDEntrySize, Tag 271 -func (m NoMDEntries) SetMDEntrySize(v float64) { - m.Set(field.NewMDEntrySize(v)) +func (m NoMDEntries) SetMDEntrySize(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntrySize(value, scale)) } //SetMDEntryDate sets MDEntryDate, Tag 272 @@ -895,8 +896,8 @@ func (m NoMDEntries) SetExpireTime(v time.Time) { } //SetMinQty sets MinQty, Tag 110 -func (m NoMDEntries) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NoMDEntries) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetExecInst sets ExecInst, Tag 18 @@ -945,13 +946,13 @@ func (m NoMDEntries) SetScope(v string) { } //SetPriceDelta sets PriceDelta, Tag 811 -func (m NoMDEntries) SetPriceDelta(v float64) { - m.Set(field.NewPriceDelta(v)) +func (m NoMDEntries) SetPriceDelta(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceDelta(value, scale)) } //SetNetChgPrevDay sets NetChgPrevDay, Tag 451 -func (m NoMDEntries) SetNetChgPrevDay(v float64) { - m.Set(field.NewNetChgPrevDay(v)) +func (m NoMDEntries) SetNetChgPrevDay(value decimal.Decimal, scale int32) { + m.Set(field.NewNetChgPrevDay(value, scale)) } //SetText sets Text, Tag 58 @@ -980,18 +981,18 @@ func (m NoMDEntries) SetMDOriginType(v int) { } //SetHighPx sets HighPx, Tag 332 -func (m NoMDEntries) SetHighPx(v float64) { - m.Set(field.NewHighPx(v)) +func (m NoMDEntries) SetHighPx(value decimal.Decimal, scale int32) { + m.Set(field.NewHighPx(value, scale)) } //SetLowPx sets LowPx, Tag 333 -func (m NoMDEntries) SetLowPx(v float64) { - m.Set(field.NewLowPx(v)) +func (m NoMDEntries) SetLowPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLowPx(value, scale)) } //SetTradeVolume sets TradeVolume, Tag 1020 -func (m NoMDEntries) SetTradeVolume(v float64) { - m.Set(field.NewTradeVolume(v)) +func (m NoMDEntries) SetTradeVolume(value decimal.Decimal, scale int32) { + m.Set(field.NewTradeVolume(value, scale)) } //SetSettlType sets SettlType, Tag 63 @@ -1020,13 +1021,13 @@ func (m NoMDEntries) SetDealingCapacity(v string) { } //SetMDEntrySpotRate sets MDEntrySpotRate, Tag 1026 -func (m NoMDEntries) SetMDEntrySpotRate(v float64) { - m.Set(field.NewMDEntrySpotRate(v)) +func (m NoMDEntries) SetMDEntrySpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntrySpotRate(value, scale)) } //SetMDEntryForwardPoints sets MDEntryForwardPoints, Tag 1027 -func (m NoMDEntries) SetMDEntryForwardPoints(v float64) { - m.Set(field.NewMDEntryForwardPoints(v)) +func (m NoMDEntries) SetMDEntryForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntryForwardPoints(value, scale)) } //SetMDPriceLevel sets MDPriceLevel, Tag 1023 @@ -1070,8 +1071,8 @@ func (m NoMDEntries) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoMDEntries) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoMDEntries) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -1085,8 +1086,8 @@ func (m NoMDEntries) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoMDEntries) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoMDEntries) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -1095,8 +1096,8 @@ func (m NoMDEntries) SetYieldRedemptionPriceType(v int) { } //SetSpread sets Spread, Tag 218 -func (m NoMDEntries) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoMDEntries) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -1115,8 +1116,8 @@ func (m NoMDEntries) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoMDEntries) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoMDEntries) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -1195,13 +1196,13 @@ func (m NoMDEntries) SetNoRateSources(f NoRateSourcesRepeatingGroup) { } //SetFirstPx sets FirstPx, Tag 1025 -func (m NoMDEntries) SetFirstPx(v float64) { - m.Set(field.NewFirstPx(v)) +func (m NoMDEntries) SetFirstPx(value decimal.Decimal, scale int32) { + m.Set(field.NewFirstPx(value, scale)) } //SetLastPx sets LastPx, Tag 31 -func (m NoMDEntries) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m NoMDEntries) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetMDStreamID sets MDStreamID, Tag 1500 @@ -3253,8 +3254,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -3509,13 +3510,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -3524,8 +3525,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 @@ -3873,13 +3874,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3913,8 +3914,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3928,13 +3929,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3988,38 +3989,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4028,8 +4029,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4038,8 +4039,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4058,8 +4059,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4073,13 +4074,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4103,8 +4104,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4113,8 +4114,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -4138,23 +4139,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -5329,13 +5330,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -5369,8 +5370,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -5384,13 +5385,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -5429,8 +5430,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -5474,13 +5475,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -5499,8 +5500,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -5509,8 +5510,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -6365,8 +6366,8 @@ func (m NoOfSecSizes) SetMDSecSizeType(v int) { } //SetMDSecSize sets MDSecSize, Tag 1179 -func (m NoOfSecSizes) SetMDSecSize(v float64) { - m.Set(field.NewMDSecSize(v)) +func (m NoOfSecSizes) SetMDSecSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMDSecSize(value, scale)) } //GetMDSecSizeType gets MDSecSizeType, Tag 1178 diff --git a/fix50sp2/marketdatarequest/MarketDataRequest.generated.go b/fix50sp2/marketdatarequest/MarketDataRequest.generated.go index 126f8c3da..4e2cc1854 100644 --- a/fix50sp2/marketdatarequest/MarketDataRequest.generated.go +++ b/fix50sp2/marketdatarequest/MarketDataRequest.generated.go @@ -1,6 +1,7 @@ package marketdatarequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -388,13 +389,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -428,8 +429,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -443,13 +444,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -538,18 +539,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -588,13 +589,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -623,8 +624,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -638,8 +639,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NoRelatedSym) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -653,13 +654,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -703,23 +704,23 @@ func (m NoRelatedSym) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NoRelatedSym) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NoRelatedSym) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NoRelatedSym) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NoRelatedSym) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NoRelatedSym) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -733,8 +734,8 @@ func (m NoRelatedSym) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -783,8 +784,8 @@ func (m NoRelatedSym) SetSettlDate(v string) { } //SetMDEntrySize sets MDEntrySize, Tag 271 -func (m NoRelatedSym) SetMDEntrySize(v float64) { - m.Set(field.NewMDEntrySize(v)) +func (m NoRelatedSym) SetMDEntrySize(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntrySize(value, scale)) } //SetMDStreamID sets MDStreamID, Tag 1500 @@ -1930,8 +1931,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2186,13 +2187,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -2201,8 +2202,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 @@ -2550,13 +2551,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2590,8 +2591,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2605,13 +2606,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2665,38 +2666,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2705,8 +2706,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2715,8 +2716,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2735,8 +2736,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2750,13 +2751,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2780,8 +2781,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -2790,8 +2791,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -2815,23 +2816,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4006,13 +4007,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4046,8 +4047,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4061,13 +4062,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4106,8 +4107,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4151,13 +4152,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -4176,8 +4177,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4186,8 +4187,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 diff --git a/fix50sp2/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go b/fix50sp2/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go index 66eace84e..63fb8dca6 100644 --- a/fix50sp2/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go +++ b/fix50sp2/marketdatasnapshotfullrefresh/MarketDataSnapshotFullRefresh.generated.go @@ -1,6 +1,7 @@ package marketdatasnapshotfullrefresh import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -111,8 +112,8 @@ func (m MarketDataSnapshotFullRefresh) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m MarketDataSnapshotFullRefresh) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m MarketDataSnapshotFullRefresh) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -131,8 +132,8 @@ func (m MarketDataSnapshotFullRefresh) SetNoRoutingIDs(f NoRoutingIDsRepeatingGr } //SetCouponRate sets CouponRate, Tag 223 -func (m MarketDataSnapshotFullRefresh) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m MarketDataSnapshotFullRefresh) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -151,18 +152,18 @@ func (m MarketDataSnapshotFullRefresh) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m MarketDataSnapshotFullRefresh) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m MarketDataSnapshotFullRefresh) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m MarketDataSnapshotFullRefresh) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m MarketDataSnapshotFullRefresh) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m MarketDataSnapshotFullRefresh) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m MarketDataSnapshotFullRefresh) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -226,8 +227,8 @@ func (m MarketDataSnapshotFullRefresh) SetEncodedSecurityDesc(v string) { } //SetNetChgPrevDay sets NetChgPrevDay, Tag 451 -func (m MarketDataSnapshotFullRefresh) SetNetChgPrevDay(v float64) { - m.Set(field.NewNetChgPrevDay(v)) +func (m MarketDataSnapshotFullRefresh) SetNetChgPrevDay(value decimal.Decimal, scale int32) { + m.Set(field.NewNetChgPrevDay(value, scale)) } //SetNoSecurityAltID sets NoSecurityAltID, Tag 454 @@ -361,18 +362,18 @@ func (m MarketDataSnapshotFullRefresh) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m MarketDataSnapshotFullRefresh) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m MarketDataSnapshotFullRefresh) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m MarketDataSnapshotFullRefresh) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m MarketDataSnapshotFullRefresh) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m MarketDataSnapshotFullRefresh) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m MarketDataSnapshotFullRefresh) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -421,13 +422,13 @@ func (m MarketDataSnapshotFullRefresh) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m MarketDataSnapshotFullRefresh) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m MarketDataSnapshotFullRefresh) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m MarketDataSnapshotFullRefresh) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m MarketDataSnapshotFullRefresh) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -476,8 +477,8 @@ func (m MarketDataSnapshotFullRefresh) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m MarketDataSnapshotFullRefresh) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m MarketDataSnapshotFullRefresh) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -491,8 +492,8 @@ func (m MarketDataSnapshotFullRefresh) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m MarketDataSnapshotFullRefresh) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m MarketDataSnapshotFullRefresh) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -511,13 +512,13 @@ func (m MarketDataSnapshotFullRefresh) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m MarketDataSnapshotFullRefresh) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m MarketDataSnapshotFullRefresh) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m MarketDataSnapshotFullRefresh) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m MarketDataSnapshotFullRefresh) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -566,23 +567,23 @@ func (m MarketDataSnapshotFullRefresh) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m MarketDataSnapshotFullRefresh) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m MarketDataSnapshotFullRefresh) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m MarketDataSnapshotFullRefresh) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m MarketDataSnapshotFullRefresh) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m MarketDataSnapshotFullRefresh) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m MarketDataSnapshotFullRefresh) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m MarketDataSnapshotFullRefresh) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m MarketDataSnapshotFullRefresh) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -596,8 +597,8 @@ func (m MarketDataSnapshotFullRefresh) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m MarketDataSnapshotFullRefresh) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m MarketDataSnapshotFullRefresh) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -1931,8 +1932,8 @@ func (m NoMDEntries) SetMDEntryType(v string) { } //SetMDEntryPx sets MDEntryPx, Tag 270 -func (m NoMDEntries) SetMDEntryPx(v float64) { - m.Set(field.NewMDEntryPx(v)) +func (m NoMDEntries) SetMDEntryPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntryPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -1941,8 +1942,8 @@ func (m NoMDEntries) SetCurrency(v string) { } //SetMDEntrySize sets MDEntrySize, Tag 271 -func (m NoMDEntries) SetMDEntrySize(v float64) { - m.Set(field.NewMDEntrySize(v)) +func (m NoMDEntries) SetMDEntrySize(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntrySize(value, scale)) } //SetMDEntryDate sets MDEntryDate, Tag 272 @@ -2021,8 +2022,8 @@ func (m NoMDEntries) SetExpireTime(v time.Time) { } //SetMinQty sets MinQty, Tag 110 -func (m NoMDEntries) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NoMDEntries) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetExecInst sets ExecInst, Tag 18 @@ -2071,8 +2072,8 @@ func (m NoMDEntries) SetScope(v string) { } //SetPriceDelta sets PriceDelta, Tag 811 -func (m NoMDEntries) SetPriceDelta(v float64) { - m.Set(field.NewPriceDelta(v)) +func (m NoMDEntries) SetPriceDelta(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceDelta(value, scale)) } //SetText sets Text, Tag 58 @@ -2106,18 +2107,18 @@ func (m NoMDEntries) SetMDOriginType(v int) { } //SetHighPx sets HighPx, Tag 332 -func (m NoMDEntries) SetHighPx(v float64) { - m.Set(field.NewHighPx(v)) +func (m NoMDEntries) SetHighPx(value decimal.Decimal, scale int32) { + m.Set(field.NewHighPx(value, scale)) } //SetLowPx sets LowPx, Tag 333 -func (m NoMDEntries) SetLowPx(v float64) { - m.Set(field.NewLowPx(v)) +func (m NoMDEntries) SetLowPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLowPx(value, scale)) } //SetTradeVolume sets TradeVolume, Tag 1020 -func (m NoMDEntries) SetTradeVolume(v float64) { - m.Set(field.NewTradeVolume(v)) +func (m NoMDEntries) SetTradeVolume(value decimal.Decimal, scale int32) { + m.Set(field.NewTradeVolume(value, scale)) } //SetSettlType sets SettlType, Tag 63 @@ -2146,13 +2147,13 @@ func (m NoMDEntries) SetDealingCapacity(v string) { } //SetMDEntrySpotRate sets MDEntrySpotRate, Tag 1026 -func (m NoMDEntries) SetMDEntrySpotRate(v float64) { - m.Set(field.NewMDEntrySpotRate(v)) +func (m NoMDEntries) SetMDEntrySpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntrySpotRate(value, scale)) } //SetMDEntryForwardPoints sets MDEntryForwardPoints, Tag 1027 -func (m NoMDEntries) SetMDEntryForwardPoints(v float64) { - m.Set(field.NewMDEntryForwardPoints(v)) +func (m NoMDEntries) SetMDEntryForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntryForwardPoints(value, scale)) } //SetMDEntryID sets MDEntryID, Tag 278 @@ -2186,8 +2187,8 @@ func (m NoMDEntries) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoMDEntries) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoMDEntries) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -2201,8 +2202,8 @@ func (m NoMDEntries) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoMDEntries) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoMDEntries) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -2211,8 +2212,8 @@ func (m NoMDEntries) SetYieldRedemptionPriceType(v int) { } //SetSpread sets Spread, Tag 218 -func (m NoMDEntries) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoMDEntries) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -2231,8 +2232,8 @@ func (m NoMDEntries) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoMDEntries) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoMDEntries) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -2286,13 +2287,13 @@ func (m NoMDEntries) SetTrdType(v int) { } //SetFirstPx sets FirstPx, Tag 1025 -func (m NoMDEntries) SetFirstPx(v float64) { - m.Set(field.NewFirstPx(v)) +func (m NoMDEntries) SetFirstPx(value decimal.Decimal, scale int32) { + m.Set(field.NewFirstPx(value, scale)) } //SetLastPx sets LastPx, Tag 31 -func (m NoMDEntries) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m NoMDEntries) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //GetMDEntryType gets MDEntryType, Tag 269 @@ -3276,8 +3277,8 @@ func (m NoOfSecSizes) SetMDSecSizeType(v int) { } //SetMDSecSize sets MDSecSize, Tag 1179 -func (m NoOfSecSizes) SetMDSecSize(v float64) { - m.Set(field.NewMDSecSize(v)) +func (m NoOfSecSizes) SetMDSecSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMDSecSize(value, scale)) } //GetMDSecSizeType gets MDSecSizeType, Tag 1178 @@ -3565,13 +3566,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3605,8 +3606,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3620,13 +3621,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3665,8 +3666,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3710,13 +3711,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3735,8 +3736,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3745,8 +3746,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -4518,13 +4519,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4558,8 +4559,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4573,13 +4574,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4633,38 +4634,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4673,8 +4674,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4683,8 +4684,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4703,8 +4704,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4718,13 +4719,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4748,8 +4749,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4758,8 +4759,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -4783,23 +4784,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -5909,8 +5910,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -6165,13 +6166,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -6180,8 +6181,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/marketdefinition/MarketDefinition.generated.go b/fix50sp2/marketdefinition/MarketDefinition.generated.go index 2cee27275..2e7577930 100644 --- a/fix50sp2/marketdefinition/MarketDefinition.generated.go +++ b/fix50sp2/marketdefinition/MarketDefinition.generated.go @@ -1,6 +1,7 @@ package marketdefinition import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -93,13 +94,13 @@ func (m MarketDefinition) SetPriceType(v int) { } //SetRoundLot sets RoundLot, Tag 561 -func (m MarketDefinition) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m MarketDefinition) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m MarketDefinition) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m MarketDefinition) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetExpirationCycle sets ExpirationCycle, Tag 827 @@ -108,13 +109,13 @@ func (m MarketDefinition) SetExpirationCycle(v int) { } //SetMaxTradeVol sets MaxTradeVol, Tag 1140 -func (m MarketDefinition) SetMaxTradeVol(v float64) { - m.Set(field.NewMaxTradeVol(v)) +func (m MarketDefinition) SetMaxTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxTradeVol(value, scale)) } //SetMaxPriceVariation sets MaxPriceVariation, Tag 1143 -func (m MarketDefinition) SetMaxPriceVariation(v float64) { - m.Set(field.NewMaxPriceVariation(v)) +func (m MarketDefinition) SetMaxPriceVariation(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxPriceVariation(value, scale)) } //SetImpliedMarketIndicator sets ImpliedMarketIndicator, Tag 1144 @@ -123,18 +124,18 @@ func (m MarketDefinition) SetImpliedMarketIndicator(v int) { } //SetLowLimitPrice sets LowLimitPrice, Tag 1148 -func (m MarketDefinition) SetLowLimitPrice(v float64) { - m.Set(field.NewLowLimitPrice(v)) +func (m MarketDefinition) SetLowLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLowLimitPrice(value, scale)) } //SetHighLimitPrice sets HighLimitPrice, Tag 1149 -func (m MarketDefinition) SetHighLimitPrice(v float64) { - m.Set(field.NewHighLimitPrice(v)) +func (m MarketDefinition) SetHighLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewHighLimitPrice(value, scale)) } //SetTradingReferencePrice sets TradingReferencePrice, Tag 1150 -func (m MarketDefinition) SetTradingReferencePrice(v float64) { - m.Set(field.NewTradingReferencePrice(v)) +func (m MarketDefinition) SetTradingReferencePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTradingReferencePrice(value, scale)) } //SetApplID sets ApplID, Tag 1180 @@ -649,18 +650,18 @@ type NoTickRules struct { } //SetStartTickPriceRange sets StartTickPriceRange, Tag 1206 -func (m NoTickRules) SetStartTickPriceRange(v float64) { - m.Set(field.NewStartTickPriceRange(v)) +func (m NoTickRules) SetStartTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartTickPriceRange(value, scale)) } //SetEndTickPriceRange sets EndTickPriceRange, Tag 1207 -func (m NoTickRules) SetEndTickPriceRange(v float64) { - m.Set(field.NewEndTickPriceRange(v)) +func (m NoTickRules) SetEndTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndTickPriceRange(value, scale)) } //SetTickIncrement sets TickIncrement, Tag 1208 -func (m NoTickRules) SetTickIncrement(v float64) { - m.Set(field.NewTickIncrement(v)) +func (m NoTickRules) SetTickIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewTickIncrement(value, scale)) } //SetTickRuleType sets TickRuleType, Tag 1209 @@ -790,8 +791,8 @@ func (m NoLotTypeRules) SetLotType(v string) { } //SetMinLotSize sets MinLotSize, Tag 1231 -func (m NoLotTypeRules) SetMinLotSize(v float64) { - m.Set(field.NewMinLotSize(v)) +func (m NoLotTypeRules) SetMinLotSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinLotSize(value, scale)) } //GetLotType gets LotType, Tag 1093 diff --git a/fix50sp2/marketdefinitionupdatereport/MarketDefinitionUpdateReport.generated.go b/fix50sp2/marketdefinitionupdatereport/MarketDefinitionUpdateReport.generated.go index 967508f87..e3b90eb3d 100644 --- a/fix50sp2/marketdefinitionupdatereport/MarketDefinitionUpdateReport.generated.go +++ b/fix50sp2/marketdefinitionupdatereport/MarketDefinitionUpdateReport.generated.go @@ -1,6 +1,7 @@ package marketdefinitionupdatereport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -93,13 +94,13 @@ func (m MarketDefinitionUpdateReport) SetPriceType(v int) { } //SetRoundLot sets RoundLot, Tag 561 -func (m MarketDefinitionUpdateReport) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m MarketDefinitionUpdateReport) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m MarketDefinitionUpdateReport) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m MarketDefinitionUpdateReport) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetExpirationCycle sets ExpirationCycle, Tag 827 @@ -108,13 +109,13 @@ func (m MarketDefinitionUpdateReport) SetExpirationCycle(v int) { } //SetMaxTradeVol sets MaxTradeVol, Tag 1140 -func (m MarketDefinitionUpdateReport) SetMaxTradeVol(v float64) { - m.Set(field.NewMaxTradeVol(v)) +func (m MarketDefinitionUpdateReport) SetMaxTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxTradeVol(value, scale)) } //SetMaxPriceVariation sets MaxPriceVariation, Tag 1143 -func (m MarketDefinitionUpdateReport) SetMaxPriceVariation(v float64) { - m.Set(field.NewMaxPriceVariation(v)) +func (m MarketDefinitionUpdateReport) SetMaxPriceVariation(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxPriceVariation(value, scale)) } //SetImpliedMarketIndicator sets ImpliedMarketIndicator, Tag 1144 @@ -123,18 +124,18 @@ func (m MarketDefinitionUpdateReport) SetImpliedMarketIndicator(v int) { } //SetLowLimitPrice sets LowLimitPrice, Tag 1148 -func (m MarketDefinitionUpdateReport) SetLowLimitPrice(v float64) { - m.Set(field.NewLowLimitPrice(v)) +func (m MarketDefinitionUpdateReport) SetLowLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLowLimitPrice(value, scale)) } //SetHighLimitPrice sets HighLimitPrice, Tag 1149 -func (m MarketDefinitionUpdateReport) SetHighLimitPrice(v float64) { - m.Set(field.NewHighLimitPrice(v)) +func (m MarketDefinitionUpdateReport) SetHighLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewHighLimitPrice(value, scale)) } //SetTradingReferencePrice sets TradingReferencePrice, Tag 1150 -func (m MarketDefinitionUpdateReport) SetTradingReferencePrice(v float64) { - m.Set(field.NewTradingReferencePrice(v)) +func (m MarketDefinitionUpdateReport) SetTradingReferencePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTradingReferencePrice(value, scale)) } //SetApplID sets ApplID, Tag 1180 @@ -665,18 +666,18 @@ type NoTickRules struct { } //SetStartTickPriceRange sets StartTickPriceRange, Tag 1206 -func (m NoTickRules) SetStartTickPriceRange(v float64) { - m.Set(field.NewStartTickPriceRange(v)) +func (m NoTickRules) SetStartTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartTickPriceRange(value, scale)) } //SetEndTickPriceRange sets EndTickPriceRange, Tag 1207 -func (m NoTickRules) SetEndTickPriceRange(v float64) { - m.Set(field.NewEndTickPriceRange(v)) +func (m NoTickRules) SetEndTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndTickPriceRange(value, scale)) } //SetTickIncrement sets TickIncrement, Tag 1208 -func (m NoTickRules) SetTickIncrement(v float64) { - m.Set(field.NewTickIncrement(v)) +func (m NoTickRules) SetTickIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewTickIncrement(value, scale)) } //SetTickRuleType sets TickRuleType, Tag 1209 @@ -806,8 +807,8 @@ func (m NoLotTypeRules) SetLotType(v string) { } //SetMinLotSize sets MinLotSize, Tag 1231 -func (m NoLotTypeRules) SetMinLotSize(v float64) { - m.Set(field.NewMinLotSize(v)) +func (m NoLotTypeRules) SetMinLotSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinLotSize(value, scale)) } //GetLotType gets LotType, Tag 1093 diff --git a/fix50sp2/massquote/MassQuote.generated.go b/fix50sp2/massquote/MassQuote.generated.go index 72ae6efa0..288f364e6 100644 --- a/fix50sp2/massquote/MassQuote.generated.go +++ b/fix50sp2/massquote/MassQuote.generated.go @@ -1,6 +1,7 @@ package massquote import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -77,13 +78,13 @@ func (m MassQuote) SetQuoteReqID(v string) { } //SetDefBidSize sets DefBidSize, Tag 293 -func (m MassQuote) SetDefBidSize(v float64) { - m.Set(field.NewDefBidSize(v)) +func (m MassQuote) SetDefBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewDefBidSize(value, scale)) } //SetDefOfferSize sets DefOfferSize, Tag 294 -func (m MassQuote) SetDefOfferSize(v float64) { - m.Set(field.NewDefOfferSize(v)) +func (m MassQuote) SetDefOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewDefOfferSize(value, scale)) } //SetNoQuoteSets sets NoQuoteSets, Tag 296 @@ -325,13 +326,13 @@ func (m NoQuoteSets) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoQuoteSets) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoQuoteSets) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoQuoteSets) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoQuoteSets) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -365,8 +366,8 @@ func (m NoQuoteSets) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoQuoteSets) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoQuoteSets) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -380,13 +381,13 @@ func (m NoQuoteSets) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoQuoteSets) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoQuoteSets) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoQuoteSets) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoQuoteSets) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -440,38 +441,38 @@ func (m NoQuoteSets) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoQuoteSets) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoQuoteSets) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoQuoteSets) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoQuoteSets) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoQuoteSets) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoQuoteSets) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoQuoteSets) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoQuoteSets) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoQuoteSets) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoQuoteSets) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoQuoteSets) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoQuoteSets) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoQuoteSets) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoQuoteSets) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -480,8 +481,8 @@ func (m NoQuoteSets) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoQuoteSets) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoQuoteSets) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -490,8 +491,8 @@ func (m NoQuoteSets) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoQuoteSets) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoQuoteSets) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -510,8 +511,8 @@ func (m NoQuoteSets) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoQuoteSets) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoQuoteSets) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -525,13 +526,13 @@ func (m NoQuoteSets) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoQuoteSets) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoQuoteSets) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoQuoteSets) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoQuoteSets) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -555,8 +556,8 @@ func (m NoQuoteSets) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoQuoteSets) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoQuoteSets) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -565,8 +566,8 @@ func (m NoQuoteSets) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoQuoteSets) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoQuoteSets) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -590,23 +591,23 @@ func (m NoQuoteSets) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoQuoteSets) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoQuoteSets) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoQuoteSets) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoQuoteSets) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoQuoteSets) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoQuoteSets) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoQuoteSets) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoQuoteSets) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //SetQuoteSetValidUntilTime sets QuoteSetValidUntilTime, Tag 367 @@ -1839,13 +1840,13 @@ func (m NoQuoteEntries) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoQuoteEntries) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoQuoteEntries) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoQuoteEntries) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoQuoteEntries) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -1879,8 +1880,8 @@ func (m NoQuoteEntries) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoQuoteEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoQuoteEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -1894,13 +1895,13 @@ func (m NoQuoteEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoQuoteEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoQuoteEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoQuoteEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoQuoteEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -1989,18 +1990,18 @@ func (m NoQuoteEntries) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoQuoteEntries) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoQuoteEntries) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoQuoteEntries) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoQuoteEntries) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoQuoteEntries) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoQuoteEntries) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -2039,13 +2040,13 @@ func (m NoQuoteEntries) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoQuoteEntries) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoQuoteEntries) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoQuoteEntries) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoQuoteEntries) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -2074,8 +2075,8 @@ func (m NoQuoteEntries) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoQuoteEntries) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoQuoteEntries) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -2089,8 +2090,8 @@ func (m NoQuoteEntries) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NoQuoteEntries) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NoQuoteEntries) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -2104,13 +2105,13 @@ func (m NoQuoteEntries) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoQuoteEntries) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoQuoteEntries) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoQuoteEntries) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoQuoteEntries) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -2154,23 +2155,23 @@ func (m NoQuoteEntries) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NoQuoteEntries) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NoQuoteEntries) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NoQuoteEntries) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NoQuoteEntries) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NoQuoteEntries) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NoQuoteEntries) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NoQuoteEntries) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NoQuoteEntries) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -2184,8 +2185,8 @@ func (m NoQuoteEntries) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NoQuoteEntries) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NoQuoteEntries) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2209,23 +2210,23 @@ func (m NoQuoteEntries) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBidPx sets BidPx, Tag 132 -func (m NoQuoteEntries) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m NoQuoteEntries) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m NoQuoteEntries) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m NoQuoteEntries) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m NoQuoteEntries) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m NoQuoteEntries) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m NoQuoteEntries) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m NoQuoteEntries) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetValidUntilTime sets ValidUntilTime, Tag 62 @@ -2234,43 +2235,43 @@ func (m NoQuoteEntries) SetValidUntilTime(v time.Time) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m NoQuoteEntries) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m NoQuoteEntries) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m NoQuoteEntries) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m NoQuoteEntries) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m NoQuoteEntries) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m NoQuoteEntries) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m NoQuoteEntries) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m NoQuoteEntries) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetMidPx sets MidPx, Tag 631 -func (m NoQuoteEntries) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m NoQuoteEntries) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m NoQuoteEntries) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m NoQuoteEntries) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m NoQuoteEntries) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m NoQuoteEntries) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m NoQuoteEntries) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m NoQuoteEntries) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetTransactTime sets TransactTime, Tag 60 @@ -2304,18 +2305,18 @@ func (m NoQuoteEntries) SetSettlDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoQuoteEntries) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoQuoteEntries) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m NoQuoteEntries) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m NoQuoteEntries) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m NoQuoteEntries) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m NoQuoteEntries) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -3695,8 +3696,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -3951,13 +3952,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -3966,8 +3967,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 @@ -4315,13 +4316,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4355,8 +4356,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4370,13 +4371,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4415,8 +4416,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4460,13 +4461,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -4485,8 +4486,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4495,8 +4496,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 diff --git a/fix50sp2/massquoteacknowledgement/MassQuoteAcknowledgement.generated.go b/fix50sp2/massquoteacknowledgement/MassQuoteAcknowledgement.generated.go index 817d06ac2..f276a38b1 100644 --- a/fix50sp2/massquoteacknowledgement/MassQuoteAcknowledgement.generated.go +++ b/fix50sp2/massquoteacknowledgement/MassQuoteAcknowledgement.generated.go @@ -1,6 +1,7 @@ package massquoteacknowledgement import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -406,13 +407,13 @@ func (m NoQuoteSets) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoQuoteSets) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoQuoteSets) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoQuoteSets) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoQuoteSets) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -446,8 +447,8 @@ func (m NoQuoteSets) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoQuoteSets) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoQuoteSets) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -461,13 +462,13 @@ func (m NoQuoteSets) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoQuoteSets) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoQuoteSets) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoQuoteSets) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoQuoteSets) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -521,38 +522,38 @@ func (m NoQuoteSets) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoQuoteSets) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoQuoteSets) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoQuoteSets) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoQuoteSets) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoQuoteSets) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoQuoteSets) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoQuoteSets) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoQuoteSets) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoQuoteSets) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoQuoteSets) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoQuoteSets) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoQuoteSets) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoQuoteSets) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoQuoteSets) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -561,8 +562,8 @@ func (m NoQuoteSets) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoQuoteSets) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoQuoteSets) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -571,8 +572,8 @@ func (m NoQuoteSets) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoQuoteSets) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoQuoteSets) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -591,8 +592,8 @@ func (m NoQuoteSets) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoQuoteSets) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoQuoteSets) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -606,13 +607,13 @@ func (m NoQuoteSets) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoQuoteSets) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoQuoteSets) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoQuoteSets) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoQuoteSets) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -636,8 +637,8 @@ func (m NoQuoteSets) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoQuoteSets) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoQuoteSets) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -646,8 +647,8 @@ func (m NoQuoteSets) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoQuoteSets) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoQuoteSets) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -671,23 +672,23 @@ func (m NoQuoteSets) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoQuoteSets) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoQuoteSets) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoQuoteSets) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoQuoteSets) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoQuoteSets) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoQuoteSets) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoQuoteSets) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoQuoteSets) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //SetTotNoQuoteEntries sets TotNoQuoteEntries, Tag 304 @@ -1968,13 +1969,13 @@ func (m NoQuoteEntries) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoQuoteEntries) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoQuoteEntries) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoQuoteEntries) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoQuoteEntries) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -2008,8 +2009,8 @@ func (m NoQuoteEntries) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoQuoteEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoQuoteEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -2023,13 +2024,13 @@ func (m NoQuoteEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoQuoteEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoQuoteEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoQuoteEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoQuoteEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -2118,18 +2119,18 @@ func (m NoQuoteEntries) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoQuoteEntries) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoQuoteEntries) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoQuoteEntries) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoQuoteEntries) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoQuoteEntries) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoQuoteEntries) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -2168,13 +2169,13 @@ func (m NoQuoteEntries) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoQuoteEntries) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoQuoteEntries) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoQuoteEntries) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoQuoteEntries) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -2203,8 +2204,8 @@ func (m NoQuoteEntries) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoQuoteEntries) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoQuoteEntries) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -2218,8 +2219,8 @@ func (m NoQuoteEntries) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NoQuoteEntries) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NoQuoteEntries) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -2233,13 +2234,13 @@ func (m NoQuoteEntries) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoQuoteEntries) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoQuoteEntries) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoQuoteEntries) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoQuoteEntries) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -2283,23 +2284,23 @@ func (m NoQuoteEntries) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NoQuoteEntries) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NoQuoteEntries) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NoQuoteEntries) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NoQuoteEntries) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NoQuoteEntries) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NoQuoteEntries) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NoQuoteEntries) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NoQuoteEntries) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -2313,8 +2314,8 @@ func (m NoQuoteEntries) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NoQuoteEntries) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NoQuoteEntries) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2338,23 +2339,23 @@ func (m NoQuoteEntries) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBidPx sets BidPx, Tag 132 -func (m NoQuoteEntries) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m NoQuoteEntries) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m NoQuoteEntries) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m NoQuoteEntries) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m NoQuoteEntries) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m NoQuoteEntries) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m NoQuoteEntries) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m NoQuoteEntries) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetValidUntilTime sets ValidUntilTime, Tag 62 @@ -2363,43 +2364,43 @@ func (m NoQuoteEntries) SetValidUntilTime(v time.Time) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m NoQuoteEntries) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m NoQuoteEntries) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m NoQuoteEntries) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m NoQuoteEntries) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m NoQuoteEntries) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m NoQuoteEntries) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m NoQuoteEntries) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m NoQuoteEntries) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetMidPx sets MidPx, Tag 631 -func (m NoQuoteEntries) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m NoQuoteEntries) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m NoQuoteEntries) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m NoQuoteEntries) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m NoQuoteEntries) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m NoQuoteEntries) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m NoQuoteEntries) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m NoQuoteEntries) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetTransactTime sets TransactTime, Tag 60 @@ -2433,18 +2434,18 @@ func (m NoQuoteEntries) SetSettlDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoQuoteEntries) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoQuoteEntries) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m NoQuoteEntries) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m NoQuoteEntries) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m NoQuoteEntries) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m NoQuoteEntries) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -3856,8 +3857,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4112,13 +4113,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -4127,8 +4128,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 @@ -4476,13 +4477,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4516,8 +4517,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4531,13 +4532,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4576,8 +4577,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4621,13 +4622,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -4646,8 +4647,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4656,8 +4657,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 diff --git a/fix50sp2/multilegordercancelreplace/MultilegOrderCancelReplace.generated.go b/fix50sp2/multilegordercancelreplace/MultilegOrderCancelReplace.generated.go index f9caa8e7e..a3cc266da 100644 --- a/fix50sp2/multilegordercancelreplace/MultilegOrderCancelReplace.generated.go +++ b/fix50sp2/multilegordercancelreplace/MultilegOrderCancelReplace.generated.go @@ -1,6 +1,7 @@ package multilegordercancelreplace import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -74,8 +75,8 @@ func (m MultilegOrderCancelReplace) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m MultilegOrderCancelReplace) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m MultilegOrderCancelReplace) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -114,8 +115,8 @@ func (m MultilegOrderCancelReplace) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m MultilegOrderCancelReplace) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m MultilegOrderCancelReplace) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -129,8 +130,8 @@ func (m MultilegOrderCancelReplace) SetOrigClOrdID(v string) { } //SetPrice sets Price, Tag 44 -func (m MultilegOrderCancelReplace) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m MultilegOrderCancelReplace) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -204,8 +205,8 @@ func (m MultilegOrderCancelReplace) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m MultilegOrderCancelReplace) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m MultilegOrderCancelReplace) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -224,13 +225,13 @@ func (m MultilegOrderCancelReplace) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m MultilegOrderCancelReplace) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m MultilegOrderCancelReplace) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m MultilegOrderCancelReplace) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m MultilegOrderCancelReplace) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -259,13 +260,13 @@ func (m MultilegOrderCancelReplace) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m MultilegOrderCancelReplace) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m MultilegOrderCancelReplace) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m MultilegOrderCancelReplace) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m MultilegOrderCancelReplace) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -289,8 +290,8 @@ func (m MultilegOrderCancelReplace) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m MultilegOrderCancelReplace) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m MultilegOrderCancelReplace) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -309,18 +310,18 @@ func (m MultilegOrderCancelReplace) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m MultilegOrderCancelReplace) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m MultilegOrderCancelReplace) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m MultilegOrderCancelReplace) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m MultilegOrderCancelReplace) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m MultilegOrderCancelReplace) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m MultilegOrderCancelReplace) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -339,13 +340,13 @@ func (m MultilegOrderCancelReplace) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m MultilegOrderCancelReplace) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m MultilegOrderCancelReplace) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m MultilegOrderCancelReplace) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m MultilegOrderCancelReplace) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -354,8 +355,8 @@ func (m MultilegOrderCancelReplace) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m MultilegOrderCancelReplace) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m MultilegOrderCancelReplace) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -424,8 +425,8 @@ func (m MultilegOrderCancelReplace) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m MultilegOrderCancelReplace) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m MultilegOrderCancelReplace) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -469,8 +470,8 @@ func (m MultilegOrderCancelReplace) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m MultilegOrderCancelReplace) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m MultilegOrderCancelReplace) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -519,8 +520,8 @@ func (m MultilegOrderCancelReplace) SetRegistID(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m MultilegOrderCancelReplace) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m MultilegOrderCancelReplace) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -694,8 +695,8 @@ func (m MultilegOrderCancelReplace) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m MultilegOrderCancelReplace) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m MultilegOrderCancelReplace) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetQtyType sets QtyType, Tag 854 @@ -749,18 +750,18 @@ func (m MultilegOrderCancelReplace) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m MultilegOrderCancelReplace) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m MultilegOrderCancelReplace) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m MultilegOrderCancelReplace) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m MultilegOrderCancelReplace) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m MultilegOrderCancelReplace) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m MultilegOrderCancelReplace) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -794,8 +795,8 @@ func (m MultilegOrderCancelReplace) SetInstrmtAssignmentMethod(v string) { } //SetSwapPoints sets SwapPoints, Tag 1069 -func (m MultilegOrderCancelReplace) SetSwapPoints(v float64) { - m.Set(field.NewSwapPoints(v)) +func (m MultilegOrderCancelReplace) SetSwapPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewSwapPoints(value, scale)) } //SetMaturityTime sets MaturityTime, Tag 1079 @@ -804,8 +805,8 @@ func (m MultilegOrderCancelReplace) SetMaturityTime(v string) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m MultilegOrderCancelReplace) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m MultilegOrderCancelReplace) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -819,28 +820,28 @@ func (m MultilegOrderCancelReplace) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m MultilegOrderCancelReplace) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m MultilegOrderCancelReplace) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m MultilegOrderCancelReplace) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m MultilegOrderCancelReplace) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m MultilegOrderCancelReplace) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m MultilegOrderCancelReplace) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m MultilegOrderCancelReplace) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m MultilegOrderCancelReplace) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m MultilegOrderCancelReplace) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m MultilegOrderCancelReplace) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -894,8 +895,8 @@ func (m MultilegOrderCancelReplace) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m MultilegOrderCancelReplace) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m MultilegOrderCancelReplace) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -934,8 +935,8 @@ func (m MultilegOrderCancelReplace) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m MultilegOrderCancelReplace) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m MultilegOrderCancelReplace) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -944,8 +945,8 @@ func (m MultilegOrderCancelReplace) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m MultilegOrderCancelReplace) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m MultilegOrderCancelReplace) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -964,18 +965,18 @@ func (m MultilegOrderCancelReplace) SetExDestinationIDSource(v string) { } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m MultilegOrderCancelReplace) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m MultilegOrderCancelReplace) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m MultilegOrderCancelReplace) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m MultilegOrderCancelReplace) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m MultilegOrderCancelReplace) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m MultilegOrderCancelReplace) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -999,8 +1000,8 @@ func (m MultilegOrderCancelReplace) SetSecurityXMLSchema(v string) { } //SetRiskFreeRate sets RiskFreeRate, Tag 1190 -func (m MultilegOrderCancelReplace) SetRiskFreeRate(v float64) { - m.Set(field.NewRiskFreeRate(v)) +func (m MultilegOrderCancelReplace) SetRiskFreeRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRiskFreeRate(value, scale)) } //SetPriceUnitOfMeasure sets PriceUnitOfMeasure, Tag 1191 @@ -1009,8 +1010,8 @@ func (m MultilegOrderCancelReplace) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m MultilegOrderCancelReplace) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m MultilegOrderCancelReplace) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -1024,8 +1025,8 @@ func (m MultilegOrderCancelReplace) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m MultilegOrderCancelReplace) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m MultilegOrderCancelReplace) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -1044,13 +1045,13 @@ func (m MultilegOrderCancelReplace) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m MultilegOrderCancelReplace) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m MultilegOrderCancelReplace) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m MultilegOrderCancelReplace) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m MultilegOrderCancelReplace) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -1099,23 +1100,23 @@ func (m MultilegOrderCancelReplace) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m MultilegOrderCancelReplace) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m MultilegOrderCancelReplace) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m MultilegOrderCancelReplace) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m MultilegOrderCancelReplace) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m MultilegOrderCancelReplace) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m MultilegOrderCancelReplace) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m MultilegOrderCancelReplace) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m MultilegOrderCancelReplace) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -1129,8 +1130,8 @@ func (m MultilegOrderCancelReplace) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m MultilegOrderCancelReplace) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m MultilegOrderCancelReplace) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -3576,8 +3577,8 @@ func (m NoAllocs) SetNoNested3PartyIDs(f NoNested3PartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -4177,13 +4178,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4217,8 +4218,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4232,13 +4233,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4277,8 +4278,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4322,13 +4323,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -4347,8 +4348,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4357,8 +4358,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -4372,8 +4373,8 @@ func (m NoLegs) SetLegFlowScheduleType(v int) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -4422,8 +4423,8 @@ func (m NoLegs) SetLegSettlDate(v string) { } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //SetLegAllocID sets LegAllocID, Tag 1366 @@ -4432,18 +4433,18 @@ func (m NoLegs) SetLegAllocID(v string) { } //SetLegVolatility sets LegVolatility, Tag 1379 -func (m NoLegs) SetLegVolatility(v float64) { - m.Set(field.NewLegVolatility(v)) +func (m NoLegs) SetLegVolatility(value decimal.Decimal, scale int32) { + m.Set(field.NewLegVolatility(value, scale)) } //SetLegDividendYield sets LegDividendYield, Tag 1381 -func (m NoLegs) SetLegDividendYield(v float64) { - m.Set(field.NewLegDividendYield(v)) +func (m NoLegs) SetLegDividendYield(value decimal.Decimal, scale int32) { + m.Set(field.NewLegDividendYield(value, scale)) } //SetLegCurrencyRatio sets LegCurrencyRatio, Tag 1383 -func (m NoLegs) SetLegCurrencyRatio(v float64) { - m.Set(field.NewLegCurrencyRatio(v)) +func (m NoLegs) SetLegCurrencyRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCurrencyRatio(value, scale)) } //SetLegExecInst sets LegExecInst, Tag 1384 @@ -5377,8 +5378,8 @@ func (m NoLegAllocs) SetLegIndividualAllocID(v string) { } //SetLegAllocQty sets LegAllocQty, Tag 673 -func (m NoLegAllocs) SetLegAllocQty(v float64) { - m.Set(field.NewLegAllocQty(v)) +func (m NoLegAllocs) SetLegAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegAllocQty(value, scale)) } //SetLegAllocAcctIDSource sets LegAllocAcctIDSource, Tag 674 @@ -5896,13 +5897,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -5936,8 +5937,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -5951,13 +5952,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -6011,38 +6012,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -6051,8 +6052,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -6061,8 +6062,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -6081,8 +6082,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -6096,13 +6097,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -6126,8 +6127,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -6136,8 +6137,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -6161,23 +6162,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -7287,8 +7288,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -7619,13 +7620,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -7634,8 +7635,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/newordercross/NewOrderCross.generated.go b/fix50sp2/newordercross/NewOrderCross.generated.go index b41ad53d3..87c70a264 100644 --- a/fix50sp2/newordercross/NewOrderCross.generated.go +++ b/fix50sp2/newordercross/NewOrderCross.generated.go @@ -1,6 +1,7 @@ package newordercross import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -96,8 +97,8 @@ func (m NewOrderCross) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NewOrderCross) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NewOrderCross) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -141,8 +142,8 @@ func (m NewOrderCross) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m NewOrderCross) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NewOrderCross) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -161,13 +162,13 @@ func (m NewOrderCross) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NewOrderCross) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NewOrderCross) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NewOrderCross) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NewOrderCross) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -186,8 +187,8 @@ func (m NewOrderCross) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NewOrderCross) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NewOrderCross) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -211,8 +212,8 @@ func (m NewOrderCross) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NewOrderCross) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NewOrderCross) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -226,18 +227,18 @@ func (m NewOrderCross) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NewOrderCross) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NewOrderCross) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m NewOrderCross) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m NewOrderCross) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m NewOrderCross) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NewOrderCross) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -256,8 +257,8 @@ func (m NewOrderCross) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m NewOrderCross) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NewOrderCross) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -276,18 +277,18 @@ func (m NewOrderCross) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NewOrderCross) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NewOrderCross) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NewOrderCross) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NewOrderCross) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NewOrderCross) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NewOrderCross) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -301,8 +302,8 @@ func (m NewOrderCross) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NewOrderCross) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NewOrderCross) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -356,8 +357,8 @@ func (m NewOrderCross) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m NewOrderCross) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m NewOrderCross) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -466,8 +467,8 @@ func (m NewOrderCross) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NewOrderCross) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NewOrderCross) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -491,8 +492,8 @@ func (m NewOrderCross) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NewOrderCross) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NewOrderCross) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -586,8 +587,8 @@ func (m NewOrderCross) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m NewOrderCross) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m NewOrderCross) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -636,18 +637,18 @@ func (m NewOrderCross) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NewOrderCross) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NewOrderCross) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NewOrderCross) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NewOrderCross) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NewOrderCross) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NewOrderCross) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -686,8 +687,8 @@ func (m NewOrderCross) SetMaturityTime(v string) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m NewOrderCross) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m NewOrderCross) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -701,28 +702,28 @@ func (m NewOrderCross) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m NewOrderCross) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m NewOrderCross) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m NewOrderCross) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m NewOrderCross) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m NewOrderCross) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m NewOrderCross) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m NewOrderCross) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m NewOrderCross) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m NewOrderCross) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m NewOrderCross) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -771,8 +772,8 @@ func (m NewOrderCross) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m NewOrderCross) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m NewOrderCross) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -811,8 +812,8 @@ func (m NewOrderCross) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m NewOrderCross) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m NewOrderCross) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -821,8 +822,8 @@ func (m NewOrderCross) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m NewOrderCross) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m NewOrderCross) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -846,18 +847,18 @@ func (m NewOrderCross) SetExDestinationIDSource(v string) { } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m NewOrderCross) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m NewOrderCross) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NewOrderCross) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NewOrderCross) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NewOrderCross) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NewOrderCross) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -886,8 +887,8 @@ func (m NewOrderCross) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NewOrderCross) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NewOrderCross) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -901,8 +902,8 @@ func (m NewOrderCross) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NewOrderCross) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NewOrderCross) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -921,13 +922,13 @@ func (m NewOrderCross) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NewOrderCross) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NewOrderCross) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NewOrderCross) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NewOrderCross) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -966,23 +967,23 @@ func (m NewOrderCross) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NewOrderCross) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NewOrderCross) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NewOrderCross) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NewOrderCross) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NewOrderCross) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NewOrderCross) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NewOrderCross) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NewOrderCross) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -996,8 +997,8 @@ func (m NewOrderCross) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NewOrderCross) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NewOrderCross) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -3382,18 +3383,18 @@ func (m NoSides) SetQtyType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoSides) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoSides) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoSides) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoSides) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoSides) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoSides) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -3402,13 +3403,13 @@ func (m NoSides) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoSides) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoSides) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCommission sets Commission, Tag 12 -func (m NoSides) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoSides) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -4175,8 +4176,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -4526,13 +4527,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4566,8 +4567,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4581,13 +4582,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4626,8 +4627,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4671,13 +4672,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -4696,8 +4697,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4706,8 +4707,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -5479,13 +5480,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -5519,8 +5520,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -5534,13 +5535,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -5594,38 +5595,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -5634,8 +5635,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -5644,8 +5645,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -5664,8 +5665,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -5679,13 +5680,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -5709,8 +5710,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -5719,8 +5720,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -5744,23 +5745,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -6870,8 +6871,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -7355,13 +7356,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -7370,8 +7371,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/neworderlist/NewOrderList.generated.go b/fix50sp2/neworderlist/NewOrderList.generated.go index 068b42702..456208161 100644 --- a/fix50sp2/neworderlist/NewOrderList.generated.go +++ b/fix50sp2/neworderlist/NewOrderList.generated.go @@ -1,6 +1,7 @@ package neworderlist import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -139,13 +140,13 @@ func (m NewOrderList) SetRegistID(v string) { } //SetAllowableOneSidednessPct sets AllowableOneSidednessPct, Tag 765 -func (m NewOrderList) SetAllowableOneSidednessPct(v float64) { - m.Set(field.NewAllowableOneSidednessPct(v)) +func (m NewOrderList) SetAllowableOneSidednessPct(value decimal.Decimal, scale int32) { + m.Set(field.NewAllowableOneSidednessPct(value, scale)) } //SetAllowableOneSidednessValue sets AllowableOneSidednessValue, Tag 766 -func (m NewOrderList) SetAllowableOneSidednessValue(v float64) { - m.Set(field.NewAllowableOneSidednessValue(v)) +func (m NewOrderList) SetAllowableOneSidednessValue(value decimal.Decimal, scale int32) { + m.Set(field.NewAllowableOneSidednessValue(value, scale)) } //SetAllowableOneSidednessCurr sets AllowableOneSidednessCurr, Tag 767 @@ -517,13 +518,13 @@ func (m NoOrders) SetExecInst(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NoOrders) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NoOrders) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NoOrders) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NoOrders) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -617,13 +618,13 @@ func (m NoOrders) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoOrders) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoOrders) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoOrders) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoOrders) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -657,8 +658,8 @@ func (m NoOrders) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoOrders) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoOrders) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -672,13 +673,13 @@ func (m NoOrders) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoOrders) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoOrders) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoOrders) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoOrders) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -767,18 +768,18 @@ func (m NoOrders) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoOrders) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoOrders) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoOrders) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoOrders) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoOrders) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoOrders) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -817,13 +818,13 @@ func (m NoOrders) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoOrders) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoOrders) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoOrders) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoOrders) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -852,8 +853,8 @@ func (m NoOrders) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoOrders) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoOrders) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -867,8 +868,8 @@ func (m NoOrders) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NoOrders) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NoOrders) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -882,13 +883,13 @@ func (m NoOrders) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoOrders) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoOrders) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoOrders) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoOrders) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -932,23 +933,23 @@ func (m NoOrders) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NoOrders) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NoOrders) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NoOrders) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NoOrders) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NoOrders) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NoOrders) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NoOrders) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NoOrders) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -962,8 +963,8 @@ func (m NoOrders) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NoOrders) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NoOrders) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -987,8 +988,8 @@ func (m NoOrders) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoOrders) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoOrders) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetSide sets Side, Tag 54 @@ -1022,18 +1023,18 @@ func (m NoOrders) SetQtyType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoOrders) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoOrders) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoOrders) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoOrders) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoOrders) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -1042,8 +1043,8 @@ func (m NoOrders) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoOrders) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoOrders) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -1057,18 +1058,18 @@ func (m NoOrders) SetPriceType(v int) { } //SetPrice sets Price, Tag 44 -func (m NoOrders) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoOrders) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetStopPx sets StopPx, Tag 99 -func (m NoOrders) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NoOrders) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m NoOrders) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoOrders) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -1087,8 +1088,8 @@ func (m NoOrders) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoOrders) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoOrders) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -1112,8 +1113,8 @@ func (m NoOrders) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoOrders) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoOrders) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -1127,8 +1128,8 @@ func (m NoOrders) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoOrders) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoOrders) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -1187,8 +1188,8 @@ func (m NoOrders) SetGTBookingInst(v int) { } //SetCommission sets Commission, Tag 12 -func (m NoOrders) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoOrders) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -1257,13 +1258,13 @@ func (m NoOrders) SetSettlDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoOrders) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoOrders) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetPrice2 sets Price2, Tag 640 -func (m NoOrders) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m NoOrders) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetPositionEffect sets PositionEffect, Tag 77 @@ -1277,13 +1278,13 @@ func (m NoOrders) SetCoveredOrUncovered(v int) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NoOrders) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NoOrders) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m NoOrders) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m NoOrders) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetPegMoveType sets PegMoveType, Tag 835 @@ -1342,8 +1343,8 @@ func (m NoOrders) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m NoOrders) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m NoOrders) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetDiscretionMoveType sets DiscretionMoveType, Tag 841 @@ -1382,8 +1383,8 @@ func (m NoOrders) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m NoOrders) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m NoOrders) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetDesignation sets Designation, Tag 494 @@ -1397,8 +1398,8 @@ func (m NoOrders) SetNoStrategyParameters(f NoStrategyParametersRepeatingGroup) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m NoOrders) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m NoOrders) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -1407,8 +1408,8 @@ func (m NoOrders) SetMaxPriceLevels(v int) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m NoOrders) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m NoOrders) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -1422,28 +1423,28 @@ func (m NoOrders) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m NoOrders) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m NoOrders) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m NoOrders) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m NoOrders) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m NoOrders) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m NoOrders) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m NoOrders) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m NoOrders) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m NoOrders) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m NoOrders) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //SetPriceProtectionScope sets PriceProtectionScope, Tag 1092 @@ -1462,8 +1463,8 @@ func (m NoOrders) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m NoOrders) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m NoOrders) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -1502,8 +1503,8 @@ func (m NoOrders) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m NoOrders) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m NoOrders) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -1512,8 +1513,8 @@ func (m NoOrders) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m NoOrders) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m NoOrders) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -4248,8 +4249,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -4631,8 +4632,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4887,13 +4888,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -4902,8 +4903,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 @@ -5251,13 +5252,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -5291,8 +5292,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -5306,13 +5307,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -5366,38 +5367,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -5406,8 +5407,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -5416,8 +5417,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -5436,8 +5437,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -5451,13 +5452,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -5481,8 +5482,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -5491,8 +5492,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -5516,23 +5517,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 diff --git a/fix50sp2/newordermultileg/NewOrderMultileg.generated.go b/fix50sp2/newordermultileg/NewOrderMultileg.generated.go index 2418867ba..4fbe9d3f9 100644 --- a/fix50sp2/newordermultileg/NewOrderMultileg.generated.go +++ b/fix50sp2/newordermultileg/NewOrderMultileg.generated.go @@ -1,6 +1,7 @@ package newordermultileg import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -75,8 +76,8 @@ func (m NewOrderMultileg) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m NewOrderMultileg) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NewOrderMultileg) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -110,8 +111,8 @@ func (m NewOrderMultileg) SetIOIID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NewOrderMultileg) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NewOrderMultileg) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -120,8 +121,8 @@ func (m NewOrderMultileg) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NewOrderMultileg) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NewOrderMultileg) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -195,8 +196,8 @@ func (m NewOrderMultileg) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m NewOrderMultileg) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NewOrderMultileg) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -215,13 +216,13 @@ func (m NewOrderMultileg) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NewOrderMultileg) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NewOrderMultileg) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NewOrderMultileg) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NewOrderMultileg) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -250,13 +251,13 @@ func (m NewOrderMultileg) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NewOrderMultileg) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NewOrderMultileg) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NewOrderMultileg) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NewOrderMultileg) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -280,8 +281,8 @@ func (m NewOrderMultileg) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NewOrderMultileg) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NewOrderMultileg) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -300,18 +301,18 @@ func (m NewOrderMultileg) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NewOrderMultileg) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NewOrderMultileg) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m NewOrderMultileg) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m NewOrderMultileg) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NewOrderMultileg) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NewOrderMultileg) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -330,13 +331,13 @@ func (m NewOrderMultileg) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NewOrderMultileg) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NewOrderMultileg) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NewOrderMultileg) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NewOrderMultileg) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -345,8 +346,8 @@ func (m NewOrderMultileg) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NewOrderMultileg) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NewOrderMultileg) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -415,8 +416,8 @@ func (m NewOrderMultileg) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m NewOrderMultileg) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m NewOrderMultileg) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -460,8 +461,8 @@ func (m NewOrderMultileg) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NewOrderMultileg) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NewOrderMultileg) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -510,8 +511,8 @@ func (m NewOrderMultileg) SetRegistID(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NewOrderMultileg) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NewOrderMultileg) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -680,8 +681,8 @@ func (m NewOrderMultileg) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m NewOrderMultileg) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m NewOrderMultileg) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetQtyType sets QtyType, Tag 854 @@ -735,18 +736,18 @@ func (m NewOrderMultileg) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NewOrderMultileg) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NewOrderMultileg) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NewOrderMultileg) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NewOrderMultileg) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NewOrderMultileg) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NewOrderMultileg) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -780,8 +781,8 @@ func (m NewOrderMultileg) SetInstrmtAssignmentMethod(v string) { } //SetSwapPoints sets SwapPoints, Tag 1069 -func (m NewOrderMultileg) SetSwapPoints(v float64) { - m.Set(field.NewSwapPoints(v)) +func (m NewOrderMultileg) SetSwapPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewSwapPoints(value, scale)) } //SetMaturityTime sets MaturityTime, Tag 1079 @@ -800,8 +801,8 @@ func (m NewOrderMultileg) SetRefOrderIDSource(v string) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m NewOrderMultileg) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m NewOrderMultileg) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -815,28 +816,28 @@ func (m NewOrderMultileg) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m NewOrderMultileg) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m NewOrderMultileg) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m NewOrderMultileg) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m NewOrderMultileg) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m NewOrderMultileg) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m NewOrderMultileg) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m NewOrderMultileg) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m NewOrderMultileg) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m NewOrderMultileg) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m NewOrderMultileg) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -890,8 +891,8 @@ func (m NewOrderMultileg) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m NewOrderMultileg) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m NewOrderMultileg) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -930,8 +931,8 @@ func (m NewOrderMultileg) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m NewOrderMultileg) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m NewOrderMultileg) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -940,8 +941,8 @@ func (m NewOrderMultileg) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m NewOrderMultileg) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m NewOrderMultileg) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -960,18 +961,18 @@ func (m NewOrderMultileg) SetExDestinationIDSource(v string) { } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m NewOrderMultileg) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m NewOrderMultileg) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NewOrderMultileg) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NewOrderMultileg) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NewOrderMultileg) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NewOrderMultileg) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -995,8 +996,8 @@ func (m NewOrderMultileg) SetSecurityXMLSchema(v string) { } //SetRiskFreeRate sets RiskFreeRate, Tag 1190 -func (m NewOrderMultileg) SetRiskFreeRate(v float64) { - m.Set(field.NewRiskFreeRate(v)) +func (m NewOrderMultileg) SetRiskFreeRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRiskFreeRate(value, scale)) } //SetPriceUnitOfMeasure sets PriceUnitOfMeasure, Tag 1191 @@ -1005,8 +1006,8 @@ func (m NewOrderMultileg) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NewOrderMultileg) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NewOrderMultileg) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -1020,8 +1021,8 @@ func (m NewOrderMultileg) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NewOrderMultileg) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NewOrderMultileg) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -1040,13 +1041,13 @@ func (m NewOrderMultileg) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NewOrderMultileg) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NewOrderMultileg) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NewOrderMultileg) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NewOrderMultileg) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -1095,23 +1096,23 @@ func (m NewOrderMultileg) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NewOrderMultileg) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NewOrderMultileg) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NewOrderMultileg) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NewOrderMultileg) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NewOrderMultileg) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NewOrderMultileg) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NewOrderMultileg) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NewOrderMultileg) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -1125,8 +1126,8 @@ func (m NewOrderMultileg) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NewOrderMultileg) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NewOrderMultileg) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -3561,8 +3562,8 @@ func (m NoAllocs) SetNoNested3PartyIDs(f NoNested3PartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -4162,13 +4163,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4202,8 +4203,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4217,13 +4218,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4262,8 +4263,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4307,13 +4308,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -4332,8 +4333,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4342,8 +4343,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -4357,8 +4358,8 @@ func (m NoLegs) SetLegFlowScheduleType(v int) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -4407,8 +4408,8 @@ func (m NoLegs) SetLegSettlDate(v string) { } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //SetLegAllocID sets LegAllocID, Tag 1366 @@ -4417,18 +4418,18 @@ func (m NoLegs) SetLegAllocID(v string) { } //SetLegVolatility sets LegVolatility, Tag 1379 -func (m NoLegs) SetLegVolatility(v float64) { - m.Set(field.NewLegVolatility(v)) +func (m NoLegs) SetLegVolatility(value decimal.Decimal, scale int32) { + m.Set(field.NewLegVolatility(value, scale)) } //SetLegDividendYield sets LegDividendYield, Tag 1381 -func (m NoLegs) SetLegDividendYield(v float64) { - m.Set(field.NewLegDividendYield(v)) +func (m NoLegs) SetLegDividendYield(value decimal.Decimal, scale int32) { + m.Set(field.NewLegDividendYield(value, scale)) } //SetLegCurrencyRatio sets LegCurrencyRatio, Tag 1383 -func (m NoLegs) SetLegCurrencyRatio(v float64) { - m.Set(field.NewLegCurrencyRatio(v)) +func (m NoLegs) SetLegCurrencyRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCurrencyRatio(value, scale)) } //SetLegExecInst sets LegExecInst, Tag 1384 @@ -5362,8 +5363,8 @@ func (m NoLegAllocs) SetLegIndividualAllocID(v string) { } //SetLegAllocQty sets LegAllocQty, Tag 673 -func (m NoLegAllocs) SetLegAllocQty(v float64) { - m.Set(field.NewLegAllocQty(v)) +func (m NoLegAllocs) SetLegAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegAllocQty(value, scale)) } //SetLegAllocAcctIDSource sets LegAllocAcctIDSource, Tag 674 @@ -5881,13 +5882,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -5921,8 +5922,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -5936,13 +5937,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -5996,38 +5997,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -6036,8 +6037,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -6046,8 +6047,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -6066,8 +6067,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -6081,13 +6082,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -6111,8 +6112,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -6121,8 +6122,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -6146,23 +6147,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -7272,8 +7273,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -7604,13 +7605,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -7619,8 +7620,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/newordersingle/NewOrderSingle.generated.go b/fix50sp2/newordersingle/NewOrderSingle.generated.go index 5bedd0b99..b6c15d47f 100644 --- a/fix50sp2/newordersingle/NewOrderSingle.generated.go +++ b/fix50sp2/newordersingle/NewOrderSingle.generated.go @@ -1,6 +1,7 @@ package newordersingle import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -75,8 +76,8 @@ func (m NewOrderSingle) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m NewOrderSingle) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NewOrderSingle) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -110,8 +111,8 @@ func (m NewOrderSingle) SetIOIID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NewOrderSingle) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NewOrderSingle) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -120,8 +121,8 @@ func (m NewOrderSingle) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NewOrderSingle) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NewOrderSingle) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -195,8 +196,8 @@ func (m NewOrderSingle) SetProcessCode(v string) { } //SetStopPx sets StopPx, Tag 99 -func (m NewOrderSingle) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NewOrderSingle) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -215,13 +216,13 @@ func (m NewOrderSingle) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m NewOrderSingle) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NewOrderSingle) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m NewOrderSingle) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m NewOrderSingle) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -250,13 +251,13 @@ func (m NewOrderSingle) SetExpireTime(v time.Time) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NewOrderSingle) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NewOrderSingle) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NewOrderSingle) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NewOrderSingle) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -270,8 +271,8 @@ func (m NewOrderSingle) SetEffectiveTime(v time.Time) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NewOrderSingle) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NewOrderSingle) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -290,8 +291,8 @@ func (m NewOrderSingle) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NewOrderSingle) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NewOrderSingle) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -310,18 +311,18 @@ func (m NewOrderSingle) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m NewOrderSingle) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m NewOrderSingle) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m NewOrderSingle) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m NewOrderSingle) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m NewOrderSingle) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NewOrderSingle) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -340,8 +341,8 @@ func (m NewOrderSingle) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m NewOrderSingle) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NewOrderSingle) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -360,13 +361,13 @@ func (m NewOrderSingle) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NewOrderSingle) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NewOrderSingle) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NewOrderSingle) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NewOrderSingle) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -375,8 +376,8 @@ func (m NewOrderSingle) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NewOrderSingle) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NewOrderSingle) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -390,8 +391,8 @@ func (m NewOrderSingle) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NewOrderSingle) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NewOrderSingle) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -460,8 +461,8 @@ func (m NewOrderSingle) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m NewOrderSingle) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m NewOrderSingle) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -505,8 +506,8 @@ func (m NewOrderSingle) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NewOrderSingle) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NewOrderSingle) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -555,8 +556,8 @@ func (m NewOrderSingle) SetRegistID(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NewOrderSingle) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NewOrderSingle) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -625,8 +626,8 @@ func (m NewOrderSingle) SetClearingFeeIndicator(v string) { } //SetPrice2 sets Price2, Tag 640 -func (m NewOrderSingle) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m NewOrderSingle) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -635,8 +636,8 @@ func (m NewOrderSingle) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NewOrderSingle) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NewOrderSingle) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -660,8 +661,8 @@ func (m NewOrderSingle) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NewOrderSingle) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NewOrderSingle) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -770,8 +771,8 @@ func (m NewOrderSingle) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m NewOrderSingle) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m NewOrderSingle) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetQtyType sets QtyType, Tag 854 @@ -805,8 +806,8 @@ func (m NewOrderSingle) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NewOrderSingle) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NewOrderSingle) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -865,18 +866,18 @@ func (m NewOrderSingle) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NewOrderSingle) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NewOrderSingle) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NewOrderSingle) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NewOrderSingle) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NewOrderSingle) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NewOrderSingle) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -950,8 +951,8 @@ func (m NewOrderSingle) SetRefOrderIDSource(v string) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m NewOrderSingle) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m NewOrderSingle) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -965,28 +966,28 @@ func (m NewOrderSingle) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m NewOrderSingle) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m NewOrderSingle) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m NewOrderSingle) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m NewOrderSingle) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m NewOrderSingle) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m NewOrderSingle) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m NewOrderSingle) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m NewOrderSingle) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m NewOrderSingle) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m NewOrderSingle) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -1040,8 +1041,8 @@ func (m NewOrderSingle) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m NewOrderSingle) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m NewOrderSingle) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -1080,8 +1081,8 @@ func (m NewOrderSingle) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m NewOrderSingle) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m NewOrderSingle) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -1090,8 +1091,8 @@ func (m NewOrderSingle) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m NewOrderSingle) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m NewOrderSingle) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -1110,18 +1111,18 @@ func (m NewOrderSingle) SetExDestinationIDSource(v string) { } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m NewOrderSingle) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m NewOrderSingle) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NewOrderSingle) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NewOrderSingle) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NewOrderSingle) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NewOrderSingle) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -1150,8 +1151,8 @@ func (m NewOrderSingle) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NewOrderSingle) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NewOrderSingle) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -1165,8 +1166,8 @@ func (m NewOrderSingle) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NewOrderSingle) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NewOrderSingle) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -1185,13 +1186,13 @@ func (m NewOrderSingle) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NewOrderSingle) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NewOrderSingle) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NewOrderSingle) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NewOrderSingle) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -1230,23 +1231,23 @@ func (m NewOrderSingle) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NewOrderSingle) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NewOrderSingle) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NewOrderSingle) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NewOrderSingle) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NewOrderSingle) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NewOrderSingle) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NewOrderSingle) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NewOrderSingle) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -1260,8 +1261,8 @@ func (m NewOrderSingle) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NewOrderSingle) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NewOrderSingle) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -3994,8 +3995,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -4655,13 +4656,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4695,8 +4696,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4710,13 +4711,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4770,38 +4771,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4810,8 +4811,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4820,8 +4821,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4840,8 +4841,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4855,13 +4856,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4885,8 +4886,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4895,8 +4896,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -4920,23 +4921,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -6170,8 +6171,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -6502,13 +6503,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -6517,8 +6518,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/news/News.generated.go b/fix50sp2/news/News.generated.go index 6f4be4cdb..0f70c3e66 100644 --- a/fix50sp2/news/News.generated.go +++ b/fix50sp2/news/News.generated.go @@ -1,6 +1,7 @@ package news import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -592,13 +593,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -632,8 +633,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -647,13 +648,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -742,18 +743,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -792,13 +793,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -827,8 +828,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -842,8 +843,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NoRelatedSym) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -857,13 +858,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -907,23 +908,23 @@ func (m NoRelatedSym) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NoRelatedSym) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NoRelatedSym) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NoRelatedSym) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NoRelatedSym) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NoRelatedSym) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -937,8 +938,8 @@ func (m NoRelatedSym) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2004,8 +2005,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2260,13 +2261,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -2275,8 +2276,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 @@ -2707,13 +2708,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2747,8 +2748,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2762,13 +2763,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2807,8 +2808,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2852,13 +2853,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2877,8 +2878,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2887,8 +2888,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3660,13 +3661,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3700,8 +3701,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3715,13 +3716,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3775,38 +3776,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3815,8 +3816,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3825,8 +3826,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3845,8 +3846,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3860,13 +3861,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3890,8 +3891,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3900,8 +3901,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3925,23 +3926,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 diff --git a/fix50sp2/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go b/fix50sp2/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go index 95557842b..c654b6955 100644 --- a/fix50sp2/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go +++ b/fix50sp2/ordercancelreplacerequest/OrderCancelReplaceRequest.generated.go @@ -1,6 +1,7 @@ package ordercancelreplacerequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -75,8 +76,8 @@ func (m OrderCancelReplaceRequest) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m OrderCancelReplaceRequest) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m OrderCancelReplaceRequest) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -110,8 +111,8 @@ func (m OrderCancelReplaceRequest) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m OrderCancelReplaceRequest) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m OrderCancelReplaceRequest) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -125,8 +126,8 @@ func (m OrderCancelReplaceRequest) SetOrigClOrdID(v string) { } //SetPrice sets Price, Tag 44 -func (m OrderCancelReplaceRequest) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m OrderCancelReplaceRequest) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -200,8 +201,8 @@ func (m OrderCancelReplaceRequest) SetNoAllocs(f NoAllocsRepeatingGroup) { } //SetStopPx sets StopPx, Tag 99 -func (m OrderCancelReplaceRequest) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m OrderCancelReplaceRequest) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExDestination sets ExDestination, Tag 100 @@ -220,13 +221,13 @@ func (m OrderCancelReplaceRequest) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m OrderCancelReplaceRequest) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m OrderCancelReplaceRequest) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetMaxFloor sets MaxFloor, Tag 111 -func (m OrderCancelReplaceRequest) SetMaxFloor(v float64) { - m.Set(field.NewMaxFloor(v)) +func (m OrderCancelReplaceRequest) SetMaxFloor(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxFloor(value, scale)) } //SetLocateReqd sets LocateReqd, Tag 114 @@ -250,8 +251,8 @@ func (m OrderCancelReplaceRequest) SetExpireTime(v time.Time) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m OrderCancelReplaceRequest) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m OrderCancelReplaceRequest) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -265,8 +266,8 @@ func (m OrderCancelReplaceRequest) SetEffectiveTime(v time.Time) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m OrderCancelReplaceRequest) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m OrderCancelReplaceRequest) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -285,8 +286,8 @@ func (m OrderCancelReplaceRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderCancelReplaceRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderCancelReplaceRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetCoveredOrUncovered sets CoveredOrUncovered, Tag 203 @@ -305,18 +306,18 @@ func (m OrderCancelReplaceRequest) SetSecurityExchange(v string) { } //SetMaxShow sets MaxShow, Tag 210 -func (m OrderCancelReplaceRequest) SetMaxShow(v float64) { - m.Set(field.NewMaxShow(v)) +func (m OrderCancelReplaceRequest) SetMaxShow(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxShow(value, scale)) } //SetPegOffsetValue sets PegOffsetValue, Tag 211 -func (m OrderCancelReplaceRequest) SetPegOffsetValue(v float64) { - m.Set(field.NewPegOffsetValue(v)) +func (m OrderCancelReplaceRequest) SetPegOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewPegOffsetValue(value, scale)) } //SetSpread sets Spread, Tag 218 -func (m OrderCancelReplaceRequest) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m OrderCancelReplaceRequest) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -335,8 +336,8 @@ func (m OrderCancelReplaceRequest) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderCancelReplaceRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderCancelReplaceRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -355,13 +356,13 @@ func (m OrderCancelReplaceRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderCancelReplaceRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderCancelReplaceRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderCancelReplaceRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderCancelReplaceRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetTradeOriginationDate sets TradeOriginationDate, Tag 229 @@ -370,8 +371,8 @@ func (m OrderCancelReplaceRequest) SetTradeOriginationDate(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderCancelReplaceRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderCancelReplaceRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetYieldType sets YieldType, Tag 235 @@ -380,8 +381,8 @@ func (m OrderCancelReplaceRequest) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m OrderCancelReplaceRequest) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m OrderCancelReplaceRequest) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -450,8 +451,8 @@ func (m OrderCancelReplaceRequest) SetDiscretionInst(v string) { } //SetDiscretionOffsetValue sets DiscretionOffsetValue, Tag 389 -func (m OrderCancelReplaceRequest) SetDiscretionOffsetValue(v float64) { - m.Set(field.NewDiscretionOffsetValue(v)) +func (m OrderCancelReplaceRequest) SetDiscretionOffsetValue(value decimal.Decimal, scale int32) { + m.Set(field.NewDiscretionOffsetValue(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -495,8 +496,8 @@ func (m OrderCancelReplaceRequest) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m OrderCancelReplaceRequest) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m OrderCancelReplaceRequest) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -545,8 +546,8 @@ func (m OrderCancelReplaceRequest) SetRegistID(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m OrderCancelReplaceRequest) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m OrderCancelReplaceRequest) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -620,8 +621,8 @@ func (m OrderCancelReplaceRequest) SetClearingFeeIndicator(v string) { } //SetPrice2 sets Price2, Tag 640 -func (m OrderCancelReplaceRequest) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m OrderCancelReplaceRequest) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -630,8 +631,8 @@ func (m OrderCancelReplaceRequest) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m OrderCancelReplaceRequest) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m OrderCancelReplaceRequest) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -655,8 +656,8 @@ func (m OrderCancelReplaceRequest) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m OrderCancelReplaceRequest) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m OrderCancelReplaceRequest) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -765,8 +766,8 @@ func (m OrderCancelReplaceRequest) SetTargetStrategyParameters(v string) { } //SetParticipationRate sets ParticipationRate, Tag 849 -func (m OrderCancelReplaceRequest) SetParticipationRate(v float64) { - m.Set(field.NewParticipationRate(v)) +func (m OrderCancelReplaceRequest) SetParticipationRate(value decimal.Decimal, scale int32) { + m.Set(field.NewParticipationRate(value, scale)) } //SetQtyType sets QtyType, Tag 854 @@ -800,8 +801,8 @@ func (m OrderCancelReplaceRequest) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m OrderCancelReplaceRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m OrderCancelReplaceRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -860,18 +861,18 @@ func (m OrderCancelReplaceRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m OrderCancelReplaceRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m OrderCancelReplaceRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m OrderCancelReplaceRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m OrderCancelReplaceRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m OrderCancelReplaceRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m OrderCancelReplaceRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -935,8 +936,8 @@ func (m OrderCancelReplaceRequest) SetMaturityTime(v string) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m OrderCancelReplaceRequest) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m OrderCancelReplaceRequest) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -950,28 +951,28 @@ func (m OrderCancelReplaceRequest) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m OrderCancelReplaceRequest) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m OrderCancelReplaceRequest) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m OrderCancelReplaceRequest) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m OrderCancelReplaceRequest) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m OrderCancelReplaceRequest) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m OrderCancelReplaceRequest) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m OrderCancelReplaceRequest) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m OrderCancelReplaceRequest) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetMatchIncrement sets MatchIncrement, Tag 1089 -func (m OrderCancelReplaceRequest) SetMatchIncrement(v float64) { - m.Set(field.NewMatchIncrement(v)) +func (m OrderCancelReplaceRequest) SetMatchIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMatchIncrement(value, scale)) } //SetMaxPriceLevels sets MaxPriceLevels, Tag 1090 @@ -1025,8 +1026,8 @@ func (m OrderCancelReplaceRequest) SetTriggerAction(v string) { } //SetTriggerPrice sets TriggerPrice, Tag 1102 -func (m OrderCancelReplaceRequest) SetTriggerPrice(v float64) { - m.Set(field.NewTriggerPrice(v)) +func (m OrderCancelReplaceRequest) SetTriggerPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerPrice(value, scale)) } //SetTriggerSymbol sets TriggerSymbol, Tag 1103 @@ -1065,8 +1066,8 @@ func (m OrderCancelReplaceRequest) SetTriggerPriceDirection(v string) { } //SetTriggerNewPrice sets TriggerNewPrice, Tag 1110 -func (m OrderCancelReplaceRequest) SetTriggerNewPrice(v float64) { - m.Set(field.NewTriggerNewPrice(v)) +func (m OrderCancelReplaceRequest) SetTriggerNewPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewPrice(value, scale)) } //SetTriggerOrderType sets TriggerOrderType, Tag 1111 @@ -1075,8 +1076,8 @@ func (m OrderCancelReplaceRequest) SetTriggerOrderType(v string) { } //SetTriggerNewQty sets TriggerNewQty, Tag 1112 -func (m OrderCancelReplaceRequest) SetTriggerNewQty(v float64) { - m.Set(field.NewTriggerNewQty(v)) +func (m OrderCancelReplaceRequest) SetTriggerNewQty(value decimal.Decimal, scale int32) { + m.Set(field.NewTriggerNewQty(value, scale)) } //SetTriggerTradingSessionID sets TriggerTradingSessionID, Tag 1113 @@ -1095,18 +1096,18 @@ func (m OrderCancelReplaceRequest) SetExDestinationIDSource(v string) { } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m OrderCancelReplaceRequest) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m OrderCancelReplaceRequest) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m OrderCancelReplaceRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m OrderCancelReplaceRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m OrderCancelReplaceRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m OrderCancelReplaceRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -1135,8 +1136,8 @@ func (m OrderCancelReplaceRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m OrderCancelReplaceRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m OrderCancelReplaceRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -1150,8 +1151,8 @@ func (m OrderCancelReplaceRequest) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m OrderCancelReplaceRequest) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m OrderCancelReplaceRequest) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -1170,13 +1171,13 @@ func (m OrderCancelReplaceRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m OrderCancelReplaceRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m OrderCancelReplaceRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m OrderCancelReplaceRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m OrderCancelReplaceRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -1215,23 +1216,23 @@ func (m OrderCancelReplaceRequest) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m OrderCancelReplaceRequest) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m OrderCancelReplaceRequest) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m OrderCancelReplaceRequest) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m OrderCancelReplaceRequest) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m OrderCancelReplaceRequest) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m OrderCancelReplaceRequest) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m OrderCancelReplaceRequest) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m OrderCancelReplaceRequest) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -1245,8 +1246,8 @@ func (m OrderCancelReplaceRequest) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m OrderCancelReplaceRequest) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m OrderCancelReplaceRequest) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -3945,8 +3946,8 @@ func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //GetAllocAccount gets AllocAccount, Tag 79 @@ -4546,13 +4547,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4586,8 +4587,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4601,13 +4602,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4661,38 +4662,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4701,8 +4702,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4711,8 +4712,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4731,8 +4732,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4746,13 +4747,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4776,8 +4777,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4786,8 +4787,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -4811,23 +4812,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -6061,8 +6062,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -6393,13 +6394,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -6408,8 +6409,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/ordercancelrequest/OrderCancelRequest.generated.go b/fix50sp2/ordercancelrequest/OrderCancelRequest.generated.go index 4515375fe..079ec10a9 100644 --- a/fix50sp2/ordercancelrequest/OrderCancelRequest.generated.go +++ b/fix50sp2/ordercancelrequest/OrderCancelRequest.generated.go @@ -1,6 +1,7 @@ package ordercancelrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -84,8 +85,8 @@ func (m OrderCancelRequest) SetOrderID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m OrderCancelRequest) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m OrderCancelRequest) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrigClOrdID sets OrigClOrdID, Tag 41 @@ -139,8 +140,8 @@ func (m OrderCancelRequest) SetSecurityDesc(v string) { } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m OrderCancelRequest) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m OrderCancelRequest) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSecurityType sets SecurityType, Tag 167 @@ -159,8 +160,8 @@ func (m OrderCancelRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderCancelRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderCancelRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -174,8 +175,8 @@ func (m OrderCancelRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderCancelRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderCancelRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -194,18 +195,18 @@ func (m OrderCancelRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderCancelRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderCancelRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderCancelRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderCancelRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderCancelRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderCancelRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -284,8 +285,8 @@ func (m OrderCancelRequest) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m OrderCancelRequest) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m OrderCancelRequest) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -304,8 +305,8 @@ func (m OrderCancelRequest) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m OrderCancelRequest) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m OrderCancelRequest) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526 @@ -394,8 +395,8 @@ func (m OrderCancelRequest) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m OrderCancelRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m OrderCancelRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -449,18 +450,18 @@ func (m OrderCancelRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m OrderCancelRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m OrderCancelRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m OrderCancelRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m OrderCancelRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m OrderCancelRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m OrderCancelRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -499,13 +500,13 @@ func (m OrderCancelRequest) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m OrderCancelRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m OrderCancelRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m OrderCancelRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m OrderCancelRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -534,8 +535,8 @@ func (m OrderCancelRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m OrderCancelRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m OrderCancelRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -549,8 +550,8 @@ func (m OrderCancelRequest) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m OrderCancelRequest) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m OrderCancelRequest) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -569,13 +570,13 @@ func (m OrderCancelRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m OrderCancelRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m OrderCancelRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m OrderCancelRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m OrderCancelRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -614,23 +615,23 @@ func (m OrderCancelRequest) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m OrderCancelRequest) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m OrderCancelRequest) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m OrderCancelRequest) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m OrderCancelRequest) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m OrderCancelRequest) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m OrderCancelRequest) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m OrderCancelRequest) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m OrderCancelRequest) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -644,8 +645,8 @@ func (m OrderCancelRequest) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m OrderCancelRequest) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m OrderCancelRequest) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2283,13 +2284,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2323,8 +2324,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2338,13 +2339,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2398,38 +2399,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2438,8 +2439,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2448,8 +2449,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2468,8 +2469,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2483,13 +2484,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2513,8 +2514,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -2523,8 +2524,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -2548,23 +2549,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -3674,8 +3675,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -3930,13 +3931,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -3945,8 +3946,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/ordermassactionreport/OrderMassActionReport.generated.go b/fix50sp2/ordermassactionreport/OrderMassActionReport.generated.go index c34fbb20a..f60c12d89 100644 --- a/fix50sp2/ordermassactionreport/OrderMassActionReport.generated.go +++ b/fix50sp2/ordermassactionreport/OrderMassActionReport.generated.go @@ -1,6 +1,7 @@ package ordermassactionreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -130,8 +131,8 @@ func (m OrderMassActionReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderMassActionReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderMassActionReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -145,8 +146,8 @@ func (m OrderMassActionReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderMassActionReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderMassActionReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -165,18 +166,18 @@ func (m OrderMassActionReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderMassActionReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderMassActionReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderMassActionReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderMassActionReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderMassActionReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderMassActionReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -210,13 +211,13 @@ func (m OrderMassActionReport) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m OrderMassActionReport) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m OrderMassActionReport) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m OrderMassActionReport) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m OrderMassActionReport) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -285,8 +286,8 @@ func (m OrderMassActionReport) SetUnderlyingPutOrCall(v int) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m OrderMassActionReport) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m OrderMassActionReport) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -355,13 +356,13 @@ func (m OrderMassActionReport) SetEncodedUnderlyingSecurityDesc(v string) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m OrderMassActionReport) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m OrderMassActionReport) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m OrderMassActionReport) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m OrderMassActionReport) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoPartyIDs sets NoPartyIDs, Tag 453 @@ -490,8 +491,8 @@ func (m OrderMassActionReport) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m OrderMassActionReport) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m OrderMassActionReport) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -530,33 +531,33 @@ func (m OrderMassActionReport) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m OrderMassActionReport) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m OrderMassActionReport) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m OrderMassActionReport) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m OrderMassActionReport) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m OrderMassActionReport) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m OrderMassActionReport) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m OrderMassActionReport) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m OrderMassActionReport) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m OrderMassActionReport) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m OrderMassActionReport) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m OrderMassActionReport) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m OrderMassActionReport) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -585,18 +586,18 @@ func (m OrderMassActionReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m OrderMassActionReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m OrderMassActionReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m OrderMassActionReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m OrderMassActionReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m OrderMassActionReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m OrderMassActionReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -610,13 +611,13 @@ func (m OrderMassActionReport) SetNTPositionLimit(v int) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m OrderMassActionReport) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m OrderMassActionReport) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m OrderMassActionReport) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m OrderMassActionReport) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -655,8 +656,8 @@ func (m OrderMassActionReport) SetNoInstrumentParties(f NoInstrumentPartiesRepea } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m OrderMassActionReport) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m OrderMassActionReport) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetUnderlyingSettlMethod sets UnderlyingSettlMethod, Tag 1039 @@ -665,13 +666,13 @@ func (m OrderMassActionReport) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m OrderMassActionReport) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m OrderMassActionReport) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m OrderMassActionReport) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m OrderMassActionReport) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -695,13 +696,13 @@ func (m OrderMassActionReport) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m OrderMassActionReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m OrderMassActionReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m OrderMassActionReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m OrderMassActionReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -730,8 +731,8 @@ func (m OrderMassActionReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m OrderMassActionReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m OrderMassActionReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -745,8 +746,8 @@ func (m OrderMassActionReport) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m OrderMassActionReport) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m OrderMassActionReport) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -765,13 +766,13 @@ func (m OrderMassActionReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m OrderMassActionReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m OrderMassActionReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m OrderMassActionReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m OrderMassActionReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetUnderlyingMaturityTime sets UnderlyingMaturityTime, Tag 1213 @@ -840,8 +841,8 @@ func (m OrderMassActionReport) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m OrderMassActionReport) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m OrderMassActionReport) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -850,8 +851,8 @@ func (m OrderMassActionReport) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m OrderMassActionReport) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m OrderMassActionReport) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetContractMultiplierUnit sets ContractMultiplierUnit, Tag 1435 @@ -885,13 +886,13 @@ func (m OrderMassActionReport) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m OrderMassActionReport) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m OrderMassActionReport) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m OrderMassActionReport) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m OrderMassActionReport) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingRestructuringType sets UnderlyingRestructuringType, Tag 1453 @@ -905,33 +906,33 @@ func (m OrderMassActionReport) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m OrderMassActionReport) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m OrderMassActionReport) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m OrderMassActionReport) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m OrderMassActionReport) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m OrderMassActionReport) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m OrderMassActionReport) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m OrderMassActionReport) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m OrderMassActionReport) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m OrderMassActionReport) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m OrderMassActionReport) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m OrderMassActionReport) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m OrderMassActionReport) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //SetNoTargetPartyIDs sets NoTargetPartyIDs, Tag 1461 @@ -950,8 +951,8 @@ func (m OrderMassActionReport) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m OrderMassActionReport) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m OrderMassActionReport) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -3336,8 +3337,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -3941,13 +3942,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -3956,8 +3957,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/ordermassactionrequest/OrderMassActionRequest.generated.go b/fix50sp2/ordermassactionrequest/OrderMassActionRequest.generated.go index 7dd38ca64..302339c23 100644 --- a/fix50sp2/ordermassactionrequest/OrderMassActionRequest.generated.go +++ b/fix50sp2/ordermassactionrequest/OrderMassActionRequest.generated.go @@ -1,6 +1,7 @@ package ordermassactionrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -130,8 +131,8 @@ func (m OrderMassActionRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderMassActionRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderMassActionRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -145,8 +146,8 @@ func (m OrderMassActionRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderMassActionRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderMassActionRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -165,18 +166,18 @@ func (m OrderMassActionRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderMassActionRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderMassActionRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderMassActionRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderMassActionRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderMassActionRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderMassActionRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -210,13 +211,13 @@ func (m OrderMassActionRequest) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m OrderMassActionRequest) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m OrderMassActionRequest) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m OrderMassActionRequest) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m OrderMassActionRequest) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -285,8 +286,8 @@ func (m OrderMassActionRequest) SetUnderlyingPutOrCall(v int) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m OrderMassActionRequest) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m OrderMassActionRequest) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -355,13 +356,13 @@ func (m OrderMassActionRequest) SetEncodedUnderlyingSecurityDesc(v string) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m OrderMassActionRequest) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m OrderMassActionRequest) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m OrderMassActionRequest) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m OrderMassActionRequest) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoPartyIDs sets NoPartyIDs, Tag 453 @@ -480,8 +481,8 @@ func (m OrderMassActionRequest) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m OrderMassActionRequest) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m OrderMassActionRequest) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -520,33 +521,33 @@ func (m OrderMassActionRequest) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m OrderMassActionRequest) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m OrderMassActionRequest) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m OrderMassActionRequest) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m OrderMassActionRequest) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m OrderMassActionRequest) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m OrderMassActionRequest) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m OrderMassActionRequest) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m OrderMassActionRequest) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m OrderMassActionRequest) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m OrderMassActionRequest) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m OrderMassActionRequest) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m OrderMassActionRequest) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -575,18 +576,18 @@ func (m OrderMassActionRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m OrderMassActionRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m OrderMassActionRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m OrderMassActionRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m OrderMassActionRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m OrderMassActionRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m OrderMassActionRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -600,13 +601,13 @@ func (m OrderMassActionRequest) SetNTPositionLimit(v int) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m OrderMassActionRequest) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m OrderMassActionRequest) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m OrderMassActionRequest) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m OrderMassActionRequest) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -645,8 +646,8 @@ func (m OrderMassActionRequest) SetNoInstrumentParties(f NoInstrumentPartiesRepe } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m OrderMassActionRequest) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m OrderMassActionRequest) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetUnderlyingSettlMethod sets UnderlyingSettlMethod, Tag 1039 @@ -655,13 +656,13 @@ func (m OrderMassActionRequest) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m OrderMassActionRequest) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m OrderMassActionRequest) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m OrderMassActionRequest) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m OrderMassActionRequest) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -685,13 +686,13 @@ func (m OrderMassActionRequest) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m OrderMassActionRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m OrderMassActionRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m OrderMassActionRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m OrderMassActionRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -720,8 +721,8 @@ func (m OrderMassActionRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m OrderMassActionRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m OrderMassActionRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -735,8 +736,8 @@ func (m OrderMassActionRequest) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m OrderMassActionRequest) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m OrderMassActionRequest) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -755,13 +756,13 @@ func (m OrderMassActionRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m OrderMassActionRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m OrderMassActionRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m OrderMassActionRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m OrderMassActionRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetUnderlyingMaturityTime sets UnderlyingMaturityTime, Tag 1213 @@ -810,8 +811,8 @@ func (m OrderMassActionRequest) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m OrderMassActionRequest) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m OrderMassActionRequest) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -820,8 +821,8 @@ func (m OrderMassActionRequest) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m OrderMassActionRequest) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m OrderMassActionRequest) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetContractMultiplierUnit sets ContractMultiplierUnit, Tag 1435 @@ -855,13 +856,13 @@ func (m OrderMassActionRequest) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m OrderMassActionRequest) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m OrderMassActionRequest) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m OrderMassActionRequest) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m OrderMassActionRequest) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingRestructuringType sets UnderlyingRestructuringType, Tag 1453 @@ -875,33 +876,33 @@ func (m OrderMassActionRequest) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m OrderMassActionRequest) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m OrderMassActionRequest) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m OrderMassActionRequest) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m OrderMassActionRequest) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m OrderMassActionRequest) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m OrderMassActionRequest) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m OrderMassActionRequest) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m OrderMassActionRequest) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m OrderMassActionRequest) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m OrderMassActionRequest) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m OrderMassActionRequest) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m OrderMassActionRequest) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //SetNoTargetPartyIDs sets NoTargetPartyIDs, Tag 1461 @@ -920,8 +921,8 @@ func (m OrderMassActionRequest) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m OrderMassActionRequest) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m OrderMassActionRequest) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -3162,8 +3163,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -3707,13 +3708,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -3722,8 +3723,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/ordermasscancelreport/OrderMassCancelReport.generated.go b/fix50sp2/ordermasscancelreport/OrderMassCancelReport.generated.go index 5a88a352a..437e41868 100644 --- a/fix50sp2/ordermasscancelreport/OrderMassCancelReport.generated.go +++ b/fix50sp2/ordermasscancelreport/OrderMassCancelReport.generated.go @@ -1,6 +1,7 @@ package ordermasscancelreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -140,8 +141,8 @@ func (m OrderMassCancelReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderMassCancelReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderMassCancelReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -155,8 +156,8 @@ func (m OrderMassCancelReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderMassCancelReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderMassCancelReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -175,18 +176,18 @@ func (m OrderMassCancelReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderMassCancelReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderMassCancelReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderMassCancelReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderMassCancelReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderMassCancelReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderMassCancelReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -220,13 +221,13 @@ func (m OrderMassCancelReport) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m OrderMassCancelReport) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m OrderMassCancelReport) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m OrderMassCancelReport) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m OrderMassCancelReport) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -295,8 +296,8 @@ func (m OrderMassCancelReport) SetUnderlyingPutOrCall(v int) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m OrderMassCancelReport) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m OrderMassCancelReport) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -365,13 +366,13 @@ func (m OrderMassCancelReport) SetEncodedUnderlyingSecurityDesc(v string) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m OrderMassCancelReport) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m OrderMassCancelReport) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m OrderMassCancelReport) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m OrderMassCancelReport) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoPartyIDs sets NoPartyIDs, Tag 453 @@ -515,8 +516,8 @@ func (m OrderMassCancelReport) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m OrderMassCancelReport) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m OrderMassCancelReport) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -555,33 +556,33 @@ func (m OrderMassCancelReport) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m OrderMassCancelReport) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m OrderMassCancelReport) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m OrderMassCancelReport) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m OrderMassCancelReport) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m OrderMassCancelReport) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m OrderMassCancelReport) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m OrderMassCancelReport) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m OrderMassCancelReport) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m OrderMassCancelReport) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m OrderMassCancelReport) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m OrderMassCancelReport) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m OrderMassCancelReport) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -610,18 +611,18 @@ func (m OrderMassCancelReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m OrderMassCancelReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m OrderMassCancelReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m OrderMassCancelReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m OrderMassCancelReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m OrderMassCancelReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m OrderMassCancelReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -635,13 +636,13 @@ func (m OrderMassCancelReport) SetNTPositionLimit(v int) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m OrderMassCancelReport) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m OrderMassCancelReport) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m OrderMassCancelReport) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m OrderMassCancelReport) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -680,8 +681,8 @@ func (m OrderMassCancelReport) SetNoInstrumentParties(f NoInstrumentPartiesRepea } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m OrderMassCancelReport) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m OrderMassCancelReport) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetUnderlyingSettlMethod sets UnderlyingSettlMethod, Tag 1039 @@ -690,13 +691,13 @@ func (m OrderMassCancelReport) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m OrderMassCancelReport) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m OrderMassCancelReport) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m OrderMassCancelReport) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m OrderMassCancelReport) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -720,13 +721,13 @@ func (m OrderMassCancelReport) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m OrderMassCancelReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m OrderMassCancelReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m OrderMassCancelReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m OrderMassCancelReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -755,8 +756,8 @@ func (m OrderMassCancelReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m OrderMassCancelReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m OrderMassCancelReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -770,8 +771,8 @@ func (m OrderMassCancelReport) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m OrderMassCancelReport) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m OrderMassCancelReport) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -790,13 +791,13 @@ func (m OrderMassCancelReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m OrderMassCancelReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m OrderMassCancelReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m OrderMassCancelReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m OrderMassCancelReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetUnderlyingMaturityTime sets UnderlyingMaturityTime, Tag 1213 @@ -845,8 +846,8 @@ func (m OrderMassCancelReport) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m OrderMassCancelReport) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m OrderMassCancelReport) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -855,8 +856,8 @@ func (m OrderMassCancelReport) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m OrderMassCancelReport) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m OrderMassCancelReport) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetContractMultiplierUnit sets ContractMultiplierUnit, Tag 1435 @@ -890,13 +891,13 @@ func (m OrderMassCancelReport) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m OrderMassCancelReport) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m OrderMassCancelReport) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m OrderMassCancelReport) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m OrderMassCancelReport) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingRestructuringType sets UnderlyingRestructuringType, Tag 1453 @@ -910,33 +911,33 @@ func (m OrderMassCancelReport) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m OrderMassCancelReport) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m OrderMassCancelReport) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m OrderMassCancelReport) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m OrderMassCancelReport) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m OrderMassCancelReport) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m OrderMassCancelReport) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m OrderMassCancelReport) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m OrderMassCancelReport) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m OrderMassCancelReport) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m OrderMassCancelReport) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m OrderMassCancelReport) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m OrderMassCancelReport) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //SetNoTargetPartyIDs sets NoTargetPartyIDs, Tag 1461 @@ -955,8 +956,8 @@ func (m OrderMassCancelReport) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m OrderMassCancelReport) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m OrderMassCancelReport) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -3352,8 +3353,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -3957,13 +3958,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -3972,8 +3973,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/ordermasscancelrequest/OrderMassCancelRequest.generated.go b/fix50sp2/ordermasscancelrequest/OrderMassCancelRequest.generated.go index 038d9006d..1a8ecc03c 100644 --- a/fix50sp2/ordermasscancelrequest/OrderMassCancelRequest.generated.go +++ b/fix50sp2/ordermasscancelrequest/OrderMassCancelRequest.generated.go @@ -1,6 +1,7 @@ package ordermasscancelrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -129,8 +130,8 @@ func (m OrderMassCancelRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderMassCancelRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderMassCancelRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -144,8 +145,8 @@ func (m OrderMassCancelRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderMassCancelRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderMassCancelRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -164,18 +165,18 @@ func (m OrderMassCancelRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderMassCancelRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderMassCancelRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderMassCancelRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderMassCancelRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderMassCancelRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderMassCancelRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -209,13 +210,13 @@ func (m OrderMassCancelRequest) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m OrderMassCancelRequest) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m OrderMassCancelRequest) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m OrderMassCancelRequest) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m OrderMassCancelRequest) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -284,8 +285,8 @@ func (m OrderMassCancelRequest) SetUnderlyingPutOrCall(v int) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m OrderMassCancelRequest) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m OrderMassCancelRequest) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -354,13 +355,13 @@ func (m OrderMassCancelRequest) SetEncodedUnderlyingSecurityDesc(v string) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m OrderMassCancelRequest) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m OrderMassCancelRequest) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m OrderMassCancelRequest) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m OrderMassCancelRequest) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoPartyIDs sets NoPartyIDs, Tag 453 @@ -484,8 +485,8 @@ func (m OrderMassCancelRequest) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m OrderMassCancelRequest) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m OrderMassCancelRequest) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -524,33 +525,33 @@ func (m OrderMassCancelRequest) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m OrderMassCancelRequest) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m OrderMassCancelRequest) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m OrderMassCancelRequest) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m OrderMassCancelRequest) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m OrderMassCancelRequest) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m OrderMassCancelRequest) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m OrderMassCancelRequest) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m OrderMassCancelRequest) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m OrderMassCancelRequest) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m OrderMassCancelRequest) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m OrderMassCancelRequest) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m OrderMassCancelRequest) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -579,18 +580,18 @@ func (m OrderMassCancelRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m OrderMassCancelRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m OrderMassCancelRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m OrderMassCancelRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m OrderMassCancelRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m OrderMassCancelRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m OrderMassCancelRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -604,13 +605,13 @@ func (m OrderMassCancelRequest) SetNTPositionLimit(v int) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m OrderMassCancelRequest) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m OrderMassCancelRequest) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m OrderMassCancelRequest) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m OrderMassCancelRequest) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -649,8 +650,8 @@ func (m OrderMassCancelRequest) SetNoInstrumentParties(f NoInstrumentPartiesRepe } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m OrderMassCancelRequest) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m OrderMassCancelRequest) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetUnderlyingSettlMethod sets UnderlyingSettlMethod, Tag 1039 @@ -659,13 +660,13 @@ func (m OrderMassCancelRequest) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m OrderMassCancelRequest) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m OrderMassCancelRequest) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m OrderMassCancelRequest) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m OrderMassCancelRequest) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -689,13 +690,13 @@ func (m OrderMassCancelRequest) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m OrderMassCancelRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m OrderMassCancelRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m OrderMassCancelRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m OrderMassCancelRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -724,8 +725,8 @@ func (m OrderMassCancelRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m OrderMassCancelRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m OrderMassCancelRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -739,8 +740,8 @@ func (m OrderMassCancelRequest) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m OrderMassCancelRequest) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m OrderMassCancelRequest) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -759,13 +760,13 @@ func (m OrderMassCancelRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m OrderMassCancelRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m OrderMassCancelRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m OrderMassCancelRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m OrderMassCancelRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetUnderlyingMaturityTime sets UnderlyingMaturityTime, Tag 1213 @@ -804,8 +805,8 @@ func (m OrderMassCancelRequest) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m OrderMassCancelRequest) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m OrderMassCancelRequest) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -814,8 +815,8 @@ func (m OrderMassCancelRequest) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m OrderMassCancelRequest) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m OrderMassCancelRequest) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetContractMultiplierUnit sets ContractMultiplierUnit, Tag 1435 @@ -849,13 +850,13 @@ func (m OrderMassCancelRequest) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m OrderMassCancelRequest) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m OrderMassCancelRequest) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m OrderMassCancelRequest) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m OrderMassCancelRequest) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingRestructuringType sets UnderlyingRestructuringType, Tag 1453 @@ -869,33 +870,33 @@ func (m OrderMassCancelRequest) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m OrderMassCancelRequest) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m OrderMassCancelRequest) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m OrderMassCancelRequest) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m OrderMassCancelRequest) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m OrderMassCancelRequest) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m OrderMassCancelRequest) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m OrderMassCancelRequest) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m OrderMassCancelRequest) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m OrderMassCancelRequest) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m OrderMassCancelRequest) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m OrderMassCancelRequest) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m OrderMassCancelRequest) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //SetNoTargetPartyIDs sets NoTargetPartyIDs, Tag 1461 @@ -914,8 +915,8 @@ func (m OrderMassCancelRequest) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m OrderMassCancelRequest) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m OrderMassCancelRequest) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -3145,8 +3146,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -3690,13 +3691,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -3705,8 +3706,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/ordermassstatusrequest/OrderMassStatusRequest.generated.go b/fix50sp2/ordermassstatusrequest/OrderMassStatusRequest.generated.go index 11061bd3a..6a9f81bc8 100644 --- a/fix50sp2/ordermassstatusrequest/OrderMassStatusRequest.generated.go +++ b/fix50sp2/ordermassstatusrequest/OrderMassStatusRequest.generated.go @@ -1,6 +1,7 @@ package ordermassstatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -118,8 +119,8 @@ func (m OrderMassStatusRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderMassStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderMassStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -133,8 +134,8 @@ func (m OrderMassStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderMassStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderMassStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -153,18 +154,18 @@ func (m OrderMassStatusRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderMassStatusRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderMassStatusRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderMassStatusRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderMassStatusRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderMassStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderMassStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -198,13 +199,13 @@ func (m OrderMassStatusRequest) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m OrderMassStatusRequest) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m OrderMassStatusRequest) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m OrderMassStatusRequest) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m OrderMassStatusRequest) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingRedemptionDate sets UnderlyingRedemptionDate, Tag 247 @@ -273,8 +274,8 @@ func (m OrderMassStatusRequest) SetUnderlyingPutOrCall(v int) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m OrderMassStatusRequest) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m OrderMassStatusRequest) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingOptAttribute sets UnderlyingOptAttribute, Tag 317 @@ -333,13 +334,13 @@ func (m OrderMassStatusRequest) SetEncodedUnderlyingSecurityDesc(v string) { } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m OrderMassStatusRequest) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m OrderMassStatusRequest) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m OrderMassStatusRequest) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m OrderMassStatusRequest) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetNoPartyIDs sets NoPartyIDs, Tag 453 @@ -468,8 +469,8 @@ func (m OrderMassStatusRequest) SetUnderlyingSecuritySubType(v string) { } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m OrderMassStatusRequest) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m OrderMassStatusRequest) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -508,33 +509,33 @@ func (m OrderMassStatusRequest) SetUnderlyingCPRegType(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m OrderMassStatusRequest) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m OrderMassStatusRequest) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m OrderMassStatusRequest) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m OrderMassStatusRequest) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m OrderMassStatusRequest) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m OrderMassStatusRequest) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m OrderMassStatusRequest) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m OrderMassStatusRequest) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m OrderMassStatusRequest) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m OrderMassStatusRequest) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m OrderMassStatusRequest) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m OrderMassStatusRequest) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -563,18 +564,18 @@ func (m OrderMassStatusRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m OrderMassStatusRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m OrderMassStatusRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m OrderMassStatusRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m OrderMassStatusRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m OrderMassStatusRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m OrderMassStatusRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -588,13 +589,13 @@ func (m OrderMassStatusRequest) SetNTPositionLimit(v int) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m OrderMassStatusRequest) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m OrderMassStatusRequest) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m OrderMassStatusRequest) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m OrderMassStatusRequest) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -633,8 +634,8 @@ func (m OrderMassStatusRequest) SetNoInstrumentParties(f NoInstrumentPartiesRepe } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m OrderMassStatusRequest) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m OrderMassStatusRequest) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetUnderlyingSettlMethod sets UnderlyingSettlMethod, Tag 1039 @@ -643,13 +644,13 @@ func (m OrderMassStatusRequest) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m OrderMassStatusRequest) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m OrderMassStatusRequest) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m OrderMassStatusRequest) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m OrderMassStatusRequest) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -673,13 +674,13 @@ func (m OrderMassStatusRequest) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m OrderMassStatusRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m OrderMassStatusRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m OrderMassStatusRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m OrderMassStatusRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -708,8 +709,8 @@ func (m OrderMassStatusRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m OrderMassStatusRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m OrderMassStatusRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -723,8 +724,8 @@ func (m OrderMassStatusRequest) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m OrderMassStatusRequest) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m OrderMassStatusRequest) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -743,13 +744,13 @@ func (m OrderMassStatusRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m OrderMassStatusRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m OrderMassStatusRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m OrderMassStatusRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m OrderMassStatusRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetUnderlyingMaturityTime sets UnderlyingMaturityTime, Tag 1213 @@ -778,8 +779,8 @@ func (m OrderMassStatusRequest) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m OrderMassStatusRequest) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m OrderMassStatusRequest) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -788,8 +789,8 @@ func (m OrderMassStatusRequest) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m OrderMassStatusRequest) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m OrderMassStatusRequest) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetContractMultiplierUnit sets ContractMultiplierUnit, Tag 1435 @@ -823,13 +824,13 @@ func (m OrderMassStatusRequest) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m OrderMassStatusRequest) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m OrderMassStatusRequest) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m OrderMassStatusRequest) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m OrderMassStatusRequest) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingRestructuringType sets UnderlyingRestructuringType, Tag 1453 @@ -843,33 +844,33 @@ func (m OrderMassStatusRequest) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m OrderMassStatusRequest) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m OrderMassStatusRequest) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m OrderMassStatusRequest) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m OrderMassStatusRequest) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m OrderMassStatusRequest) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m OrderMassStatusRequest) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m OrderMassStatusRequest) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m OrderMassStatusRequest) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m OrderMassStatusRequest) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m OrderMassStatusRequest) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m OrderMassStatusRequest) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m OrderMassStatusRequest) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //SetNoTargetPartyIDs sets NoTargetPartyIDs, Tag 1461 @@ -888,8 +889,8 @@ func (m OrderMassStatusRequest) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m OrderMassStatusRequest) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m OrderMassStatusRequest) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -3064,8 +3065,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -3609,13 +3610,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -3624,8 +3625,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/orderstatusrequest/OrderStatusRequest.generated.go b/fix50sp2/orderstatusrequest/OrderStatusRequest.generated.go index d37be12ba..da37ef865 100644 --- a/fix50sp2/orderstatusrequest/OrderStatusRequest.generated.go +++ b/fix50sp2/orderstatusrequest/OrderStatusRequest.generated.go @@ -1,6 +1,7 @@ package orderstatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -127,8 +128,8 @@ func (m OrderStatusRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m OrderStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m OrderStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -142,8 +143,8 @@ func (m OrderStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m OrderStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m OrderStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -162,18 +163,18 @@ func (m OrderStatusRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m OrderStatusRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m OrderStatusRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m OrderStatusRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m OrderStatusRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m OrderStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m OrderStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -327,8 +328,8 @@ func (m OrderStatusRequest) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m OrderStatusRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m OrderStatusRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -382,18 +383,18 @@ func (m OrderStatusRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m OrderStatusRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m OrderStatusRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m OrderStatusRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m OrderStatusRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m OrderStatusRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m OrderStatusRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -432,13 +433,13 @@ func (m OrderStatusRequest) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m OrderStatusRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m OrderStatusRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m OrderStatusRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m OrderStatusRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -467,8 +468,8 @@ func (m OrderStatusRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m OrderStatusRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m OrderStatusRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -482,8 +483,8 @@ func (m OrderStatusRequest) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m OrderStatusRequest) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m OrderStatusRequest) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -502,13 +503,13 @@ func (m OrderStatusRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m OrderStatusRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m OrderStatusRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m OrderStatusRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m OrderStatusRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -547,23 +548,23 @@ func (m OrderStatusRequest) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m OrderStatusRequest) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m OrderStatusRequest) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m OrderStatusRequest) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m OrderStatusRequest) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m OrderStatusRequest) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m OrderStatusRequest) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m OrderStatusRequest) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m OrderStatusRequest) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -577,8 +578,8 @@ func (m OrderStatusRequest) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m OrderStatusRequest) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m OrderStatusRequest) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2073,13 +2074,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2113,8 +2114,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2128,13 +2129,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2188,38 +2189,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2228,8 +2229,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2238,8 +2239,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2258,8 +2259,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2273,13 +2274,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2303,8 +2304,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -2313,8 +2314,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -2338,23 +2339,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -3464,8 +3465,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -3720,13 +3721,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -3735,8 +3736,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/partydetailslistreport/PartyDetailsListReport.generated.go b/fix50sp2/partydetailslistreport/PartyDetailsListReport.generated.go index 273029a31..f6cbd1f2d 100644 --- a/fix50sp2/partydetailslistreport/PartyDetailsListReport.generated.go +++ b/fix50sp2/partydetailslistreport/PartyDetailsListReport.generated.go @@ -1,6 +1,7 @@ package partydetailslistreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -769,8 +770,8 @@ func (m NoRiskLimits) SetRiskLimitType(v int) { } //SetRiskLimitAmount sets RiskLimitAmount, Tag 1531 -func (m NoRiskLimits) SetRiskLimitAmount(v float64) { - m.Set(field.NewRiskLimitAmount(v)) +func (m NoRiskLimits) SetRiskLimitAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewRiskLimitAmount(value, scale)) } //SetRiskLimitCurrency sets RiskLimitCurrency, Tag 1532 @@ -957,8 +958,8 @@ func (m NoRiskInstruments) SetRiskFlexibleIndicator(v bool) { } //SetRiskCouponRate sets RiskCouponRate, Tag 1555 -func (m NoRiskInstruments) SetRiskCouponRate(v float64) { - m.Set(field.NewRiskCouponRate(v)) +func (m NoRiskInstruments) SetRiskCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRiskCouponRate(value, scale)) } //SetRiskSecurityExchange sets RiskSecurityExchange, Tag 1616 @@ -987,8 +988,8 @@ func (m NoRiskInstruments) SetRiskInstrumentSettlType(v string) { } //SetRiskInstrumentMultiplier sets RiskInstrumentMultiplier, Tag 1558 -func (m NoRiskInstruments) SetRiskInstrumentMultiplier(v float64) { - m.Set(field.NewRiskInstrumentMultiplier(v)) +func (m NoRiskInstruments) SetRiskInstrumentMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewRiskInstrumentMultiplier(value, scale)) } //GetRiskInstrumentOperator gets RiskInstrumentOperator, Tag 1535 @@ -1356,8 +1357,8 @@ type NoRiskWarningLevels struct { } //SetRiskWarningLevelPercent sets RiskWarningLevelPercent, Tag 1560 -func (m NoRiskWarningLevels) SetRiskWarningLevelPercent(v float64) { - m.Set(field.NewRiskWarningLevelPercent(v)) +func (m NoRiskWarningLevels) SetRiskWarningLevelPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewRiskWarningLevelPercent(value, scale)) } //SetRiskWarningLevelName sets RiskWarningLevelName, Tag 1561 @@ -1932,8 +1933,8 @@ func (m NoRelationshipRiskLimits) SetRelationshipRiskLimitType(v int) { } //SetRelationshipRiskLimitAmount sets RelationshipRiskLimitAmount, Tag 1584 -func (m NoRelationshipRiskLimits) SetRelationshipRiskLimitAmount(v float64) { - m.Set(field.NewRelationshipRiskLimitAmount(v)) +func (m NoRelationshipRiskLimits) SetRelationshipRiskLimitAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewRelationshipRiskLimitAmount(value, scale)) } //SetRelationshipRiskLimitCurrency sets RelationshipRiskLimitCurrency, Tag 1585 @@ -2120,8 +2121,8 @@ func (m NoRelationshipRiskInstruments) SetRelationshipRiskFlexibleIndicator(v bo } //SetRelationshipRiskCouponRate sets RelationshipRiskCouponRate, Tag 1608 -func (m NoRelationshipRiskInstruments) SetRelationshipRiskCouponRate(v float64) { - m.Set(field.NewRelationshipRiskCouponRate(v)) +func (m NoRelationshipRiskInstruments) SetRelationshipRiskCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRelationshipRiskCouponRate(value, scale)) } //SetRelationshipRiskSecurityExchange sets RelationshipRiskSecurityExchange, Tag 1609 @@ -2150,8 +2151,8 @@ func (m NoRelationshipRiskInstruments) SetRelationshipRiskInstrumentSettlType(v } //SetRelationshipRiskInstrumentMultiplier sets RelationshipRiskInstrumentMultiplier, Tag 1612 -func (m NoRelationshipRiskInstruments) SetRelationshipRiskInstrumentMultiplier(v float64) { - m.Set(field.NewRelationshipRiskInstrumentMultiplier(v)) +func (m NoRelationshipRiskInstruments) SetRelationshipRiskInstrumentMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewRelationshipRiskInstrumentMultiplier(value, scale)) } //GetRelationshipRiskInstrumentOperator gets RelationshipRiskInstrumentOperator, Tag 1588 @@ -2519,8 +2520,8 @@ type NoRelationshipRiskWarningLevels struct { } //SetRelationshipRiskWarningLevelPercent sets RelationshipRiskWarningLevelPercent, Tag 1614 -func (m NoRelationshipRiskWarningLevels) SetRelationshipRiskWarningLevelPercent(v float64) { - m.Set(field.NewRelationshipRiskWarningLevelPercent(v)) +func (m NoRelationshipRiskWarningLevels) SetRelationshipRiskWarningLevelPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewRelationshipRiskWarningLevelPercent(value, scale)) } //SetRelationshipRiskWarningLevelName sets RelationshipRiskWarningLevelName, Tag 1615 diff --git a/fix50sp2/positionmaintenancereport/PositionMaintenanceReport.generated.go b/fix50sp2/positionmaintenancereport/PositionMaintenanceReport.generated.go index 49fae6bc7..4061b0887 100644 --- a/fix50sp2/positionmaintenancereport/PositionMaintenanceReport.generated.go +++ b/fix50sp2/positionmaintenancereport/PositionMaintenanceReport.generated.go @@ -1,6 +1,7 @@ package positionmaintenancereport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -136,8 +137,8 @@ func (m PositionMaintenanceReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m PositionMaintenanceReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m PositionMaintenanceReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -151,8 +152,8 @@ func (m PositionMaintenanceReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m PositionMaintenanceReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m PositionMaintenanceReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -171,18 +172,18 @@ func (m PositionMaintenanceReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m PositionMaintenanceReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m PositionMaintenanceReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m PositionMaintenanceReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m PositionMaintenanceReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m PositionMaintenanceReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m PositionMaintenanceReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -396,8 +397,8 @@ func (m PositionMaintenanceReport) SetSecuritySubType(v string) { } //SetThresholdAmount sets ThresholdAmount, Tag 834 -func (m PositionMaintenanceReport) SetThresholdAmount(v float64) { - m.Set(field.NewThresholdAmount(v)) +func (m PositionMaintenanceReport) SetThresholdAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewThresholdAmount(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -441,18 +442,18 @@ func (m PositionMaintenanceReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m PositionMaintenanceReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m PositionMaintenanceReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m PositionMaintenanceReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m PositionMaintenanceReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m PositionMaintenanceReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m PositionMaintenanceReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -491,13 +492,13 @@ func (m PositionMaintenanceReport) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m PositionMaintenanceReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m PositionMaintenanceReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m PositionMaintenanceReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m PositionMaintenanceReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -526,8 +527,8 @@ func (m PositionMaintenanceReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m PositionMaintenanceReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m PositionMaintenanceReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -541,8 +542,8 @@ func (m PositionMaintenanceReport) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m PositionMaintenanceReport) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m PositionMaintenanceReport) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -561,13 +562,13 @@ func (m PositionMaintenanceReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m PositionMaintenanceReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m PositionMaintenanceReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m PositionMaintenanceReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m PositionMaintenanceReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -606,23 +607,23 @@ func (m PositionMaintenanceReport) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m PositionMaintenanceReport) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m PositionMaintenanceReport) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m PositionMaintenanceReport) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m PositionMaintenanceReport) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m PositionMaintenanceReport) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m PositionMaintenanceReport) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m PositionMaintenanceReport) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m PositionMaintenanceReport) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -636,8 +637,8 @@ func (m PositionMaintenanceReport) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m PositionMaintenanceReport) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m PositionMaintenanceReport) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2317,13 +2318,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2357,8 +2358,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2372,13 +2373,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2417,8 +2418,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2462,13 +2463,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2487,8 +2488,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2497,8 +2498,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3200,13 +3201,13 @@ func (m NoPositions) SetPosType(v string) { } //SetLongQty sets LongQty, Tag 704 -func (m NoPositions) SetLongQty(v float64) { - m.Set(field.NewLongQty(v)) +func (m NoPositions) SetLongQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLongQty(value, scale)) } //SetShortQty sets ShortQty, Tag 705 -func (m NoPositions) SetShortQty(v float64) { - m.Set(field.NewShortQty(v)) +func (m NoPositions) SetShortQty(value decimal.Decimal, scale int32) { + m.Set(field.NewShortQty(value, scale)) } //SetPosQtyStatus sets PosQtyStatus, Tag 706 @@ -3548,13 +3549,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3588,8 +3589,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3603,13 +3604,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3663,38 +3664,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3703,8 +3704,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3713,8 +3714,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3733,8 +3734,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3748,13 +3749,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3778,8 +3779,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3788,8 +3789,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3813,23 +3814,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4934,8 +4935,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -5015,8 +5016,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -5271,13 +5272,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -5286,8 +5287,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/positionmaintenancerequest/PositionMaintenanceRequest.generated.go b/fix50sp2/positionmaintenancerequest/PositionMaintenanceRequest.generated.go index 8e1b167bb..7103f813a 100644 --- a/fix50sp2/positionmaintenancerequest/PositionMaintenanceRequest.generated.go +++ b/fix50sp2/positionmaintenancerequest/PositionMaintenanceRequest.generated.go @@ -1,6 +1,7 @@ package positionmaintenancerequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -134,8 +135,8 @@ func (m PositionMaintenanceRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m PositionMaintenanceRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m PositionMaintenanceRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -149,8 +150,8 @@ func (m PositionMaintenanceRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m PositionMaintenanceRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m PositionMaintenanceRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -169,18 +170,18 @@ func (m PositionMaintenanceRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m PositionMaintenanceRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m PositionMaintenanceRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m PositionMaintenanceRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m PositionMaintenanceRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m PositionMaintenanceRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m PositionMaintenanceRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -379,8 +380,8 @@ func (m PositionMaintenanceRequest) SetSecuritySubType(v string) { } //SetThresholdAmount sets ThresholdAmount, Tag 834 -func (m PositionMaintenanceRequest) SetThresholdAmount(v float64) { - m.Set(field.NewThresholdAmount(v)) +func (m PositionMaintenanceRequest) SetThresholdAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewThresholdAmount(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -424,18 +425,18 @@ func (m PositionMaintenanceRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m PositionMaintenanceRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m PositionMaintenanceRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m PositionMaintenanceRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m PositionMaintenanceRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m PositionMaintenanceRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m PositionMaintenanceRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -474,13 +475,13 @@ func (m PositionMaintenanceRequest) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m PositionMaintenanceRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m PositionMaintenanceRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m PositionMaintenanceRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m PositionMaintenanceRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -509,8 +510,8 @@ func (m PositionMaintenanceRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m PositionMaintenanceRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m PositionMaintenanceRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -524,8 +525,8 @@ func (m PositionMaintenanceRequest) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m PositionMaintenanceRequest) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m PositionMaintenanceRequest) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -544,13 +545,13 @@ func (m PositionMaintenanceRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m PositionMaintenanceRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m PositionMaintenanceRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m PositionMaintenanceRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m PositionMaintenanceRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -589,23 +590,23 @@ func (m PositionMaintenanceRequest) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m PositionMaintenanceRequest) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m PositionMaintenanceRequest) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m PositionMaintenanceRequest) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m PositionMaintenanceRequest) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m PositionMaintenanceRequest) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m PositionMaintenanceRequest) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m PositionMaintenanceRequest) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m PositionMaintenanceRequest) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -619,8 +620,8 @@ func (m PositionMaintenanceRequest) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m PositionMaintenanceRequest) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m PositionMaintenanceRequest) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2267,13 +2268,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2307,8 +2308,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2322,13 +2323,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2367,8 +2368,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2412,13 +2413,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2437,8 +2438,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2447,8 +2448,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3150,13 +3151,13 @@ func (m NoPositions) SetPosType(v string) { } //SetLongQty sets LongQty, Tag 704 -func (m NoPositions) SetLongQty(v float64) { - m.Set(field.NewLongQty(v)) +func (m NoPositions) SetLongQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLongQty(value, scale)) } //SetShortQty sets ShortQty, Tag 705 -func (m NoPositions) SetShortQty(v float64) { - m.Set(field.NewShortQty(v)) +func (m NoPositions) SetShortQty(value decimal.Decimal, scale int32) { + m.Set(field.NewShortQty(value, scale)) } //SetPosQtyStatus sets PosQtyStatus, Tag 706 @@ -3498,13 +3499,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3538,8 +3539,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3553,13 +3554,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3613,38 +3614,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3653,8 +3654,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3663,8 +3664,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3683,8 +3684,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3698,13 +3699,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3728,8 +3729,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3738,8 +3739,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3763,23 +3764,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4884,8 +4885,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -4965,8 +4966,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -5221,13 +5222,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -5236,8 +5237,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/positionreport/PositionReport.generated.go b/fix50sp2/positionreport/PositionReport.generated.go index 70561f588..b28091114 100644 --- a/fix50sp2/positionreport/PositionReport.generated.go +++ b/fix50sp2/positionreport/PositionReport.generated.go @@ -1,6 +1,7 @@ package positionreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -128,8 +129,8 @@ func (m PositionReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m PositionReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m PositionReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -143,8 +144,8 @@ func (m PositionReport) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m PositionReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m PositionReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -163,18 +164,18 @@ func (m PositionReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m PositionReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m PositionReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m PositionReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m PositionReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m PositionReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m PositionReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -368,8 +369,8 @@ func (m PositionReport) SetPosReqResult(v int) { } //SetSettlPrice sets SettlPrice, Tag 730 -func (m PositionReport) SetSettlPrice(v float64) { - m.Set(field.NewSettlPrice(v)) +func (m PositionReport) SetSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlPrice(value, scale)) } //SetSettlPriceType sets SettlPriceType, Tag 731 @@ -378,8 +379,8 @@ func (m PositionReport) SetSettlPriceType(v int) { } //SetPriorSettlPrice sets PriorSettlPrice, Tag 734 -func (m PositionReport) SetPriorSettlPrice(v float64) { - m.Set(field.NewPriorSettlPrice(v)) +func (m PositionReport) SetPriorSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPriorSettlPrice(value, scale)) } //SetDeliveryDate sets DeliveryDate, Tag 743 @@ -398,8 +399,8 @@ func (m PositionReport) SetSecuritySubType(v string) { } //SetPriceDelta sets PriceDelta, Tag 811 -func (m PositionReport) SetPriceDelta(v float64) { - m.Set(field.NewPriceDelta(v)) +func (m PositionReport) SetPriceDelta(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceDelta(value, scale)) } //SetNoEvents sets NoEvents, Tag 864 @@ -443,18 +444,18 @@ func (m PositionReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m PositionReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m PositionReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m PositionReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m PositionReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m PositionReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m PositionReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -498,13 +499,13 @@ func (m PositionReport) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m PositionReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m PositionReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m PositionReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m PositionReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -543,8 +544,8 @@ func (m PositionReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m PositionReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m PositionReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -558,8 +559,8 @@ func (m PositionReport) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m PositionReport) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m PositionReport) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -578,13 +579,13 @@ func (m PositionReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m PositionReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m PositionReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m PositionReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m PositionReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -638,23 +639,23 @@ func (m PositionReport) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m PositionReport) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m PositionReport) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m PositionReport) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m PositionReport) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m PositionReport) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m PositionReport) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m PositionReport) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m PositionReport) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -668,8 +669,8 @@ func (m PositionReport) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m PositionReport) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m PositionReport) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2365,13 +2366,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2405,8 +2406,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2420,13 +2421,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2465,8 +2466,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2510,13 +2511,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2535,8 +2536,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2545,8 +2546,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3248,13 +3249,13 @@ func (m NoPositions) SetPosType(v string) { } //SetLongQty sets LongQty, Tag 704 -func (m NoPositions) SetLongQty(v float64) { - m.Set(field.NewLongQty(v)) +func (m NoPositions) SetLongQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLongQty(value, scale)) } //SetShortQty sets ShortQty, Tag 705 -func (m NoPositions) SetShortQty(v float64) { - m.Set(field.NewShortQty(v)) +func (m NoPositions) SetShortQty(value decimal.Decimal, scale int32) { + m.Set(field.NewShortQty(value, scale)) } //SetPosQtyStatus sets PosQtyStatus, Tag 706 @@ -3596,13 +3597,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3636,8 +3637,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3651,13 +3652,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3711,38 +3712,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3751,8 +3752,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3761,8 +3762,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3781,8 +3782,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3796,13 +3797,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3826,8 +3827,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3836,8 +3837,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3861,28 +3862,28 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //SetUnderlyingSettlPrice sets UnderlyingSettlPrice, Tag 732 -func (m NoUnderlyings) SetUnderlyingSettlPrice(v float64) { - m.Set(field.NewUnderlyingSettlPrice(v)) +func (m NoUnderlyings) SetUnderlyingSettlPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingSettlPrice(value, scale)) } //SetUnderlyingSettlPriceType sets UnderlyingSettlPriceType, Tag 733 @@ -3896,8 +3897,8 @@ func (m NoUnderlyings) SetNoUnderlyingAmounts(f NoUnderlyingAmountsRepeatingGrou } //SetUnderlyingDeliveryAmount sets UnderlyingDeliveryAmount, Tag 1037 -func (m NoUnderlyings) SetUnderlyingDeliveryAmount(v float64) { - m.Set(field.NewUnderlyingDeliveryAmount(v)) +func (m NoUnderlyings) SetUnderlyingDeliveryAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDeliveryAmount(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -5019,13 +5020,13 @@ type NoUnderlyingAmounts struct { } //SetUnderlyingPayAmount sets UnderlyingPayAmount, Tag 985 -func (m NoUnderlyingAmounts) SetUnderlyingPayAmount(v float64) { - m.Set(field.NewUnderlyingPayAmount(v)) +func (m NoUnderlyingAmounts) SetUnderlyingPayAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPayAmount(value, scale)) } //SetUnderlyingCollectAmount sets UnderlyingCollectAmount, Tag 986 -func (m NoUnderlyingAmounts) SetUnderlyingCollectAmount(v float64) { - m.Set(field.NewUnderlyingCollectAmount(v)) +func (m NoUnderlyingAmounts) SetUnderlyingCollectAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCollectAmount(value, scale)) } //SetUnderlyingSettlementDate sets UnderlyingSettlementDate, Tag 987 @@ -5139,8 +5140,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -5220,8 +5221,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -5476,13 +5477,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -5491,8 +5492,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/quote/Quote.generated.go b/fix50sp2/quote/Quote.generated.go index 171087dd0..dd1649096 100644 --- a/fix50sp2/quote/Quote.generated.go +++ b/fix50sp2/quote/Quote.generated.go @@ -1,6 +1,7 @@ package quote import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -67,8 +68,8 @@ func (m Quote) SetAccount(v string) { } //SetCommission sets Commission, Tag 12 -func (m Quote) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m Quote) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -87,8 +88,8 @@ func (m Quote) SetSecurityIDSource(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m Quote) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m Quote) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -157,8 +158,8 @@ func (m Quote) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m Quote) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m Quote) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetQuoteID sets QuoteID, Tag 117 @@ -177,28 +178,28 @@ func (m Quote) SetQuoteReqID(v string) { } //SetBidPx sets BidPx, Tag 132 -func (m Quote) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m Quote) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m Quote) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m Quote) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m Quote) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m Quote) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m Quote) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m Quote) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m Quote) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m Quote) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -212,28 +213,28 @@ func (m Quote) SetSecurityType(v string) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m Quote) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m Quote) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m Quote) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m Quote) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m Quote) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m Quote) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m Quote) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m Quote) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m Quote) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m Quote) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -252,8 +253,8 @@ func (m Quote) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m Quote) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m Quote) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -267,8 +268,8 @@ func (m Quote) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m Quote) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m Quote) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -287,8 +288,8 @@ func (m Quote) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m Quote) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m Quote) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -307,18 +308,18 @@ func (m Quote) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m Quote) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m Quote) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m Quote) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m Quote) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m Quote) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m Quote) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -332,8 +333,8 @@ func (m Quote) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m Quote) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m Quote) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -422,8 +423,8 @@ func (m Quote) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m Quote) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m Quote) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -442,8 +443,8 @@ func (m Quote) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m Quote) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m Quote) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetOrderCapacity sets OrderCapacity, Tag 528 @@ -492,63 +493,63 @@ func (m Quote) SetTradingSessionSubID(v string) { } //SetMidPx sets MidPx, Tag 631 -func (m Quote) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m Quote) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m Quote) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m Quote) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m Quote) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m Quote) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m Quote) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m Quote) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m Quote) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m Quote) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m Quote) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m Quote) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetMktBidPx sets MktBidPx, Tag 645 -func (m Quote) SetMktBidPx(v float64) { - m.Set(field.NewMktBidPx(v)) +func (m Quote) SetMktBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktBidPx(value, scale)) } //SetMktOfferPx sets MktOfferPx, Tag 646 -func (m Quote) SetMktOfferPx(v float64) { - m.Set(field.NewMktOfferPx(v)) +func (m Quote) SetMktOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktOfferPx(value, scale)) } //SetMinBidSize sets MinBidSize, Tag 647 -func (m Quote) SetMinBidSize(v float64) { - m.Set(field.NewMinBidSize(v)) +func (m Quote) SetMinBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinBidSize(value, scale)) } //SetMinOfferSize sets MinOfferSize, Tag 648 -func (m Quote) SetMinOfferSize(v float64) { - m.Set(field.NewMinOfferSize(v)) +func (m Quote) SetMinOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinOfferSize(value, scale)) } //SetSettlCurrBidFxRate sets SettlCurrBidFxRate, Tag 656 -func (m Quote) SetSettlCurrBidFxRate(v float64) { - m.Set(field.NewSettlCurrBidFxRate(v)) +func (m Quote) SetSettlCurrBidFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrBidFxRate(value, scale)) } //SetSettlCurrOfferFxRate sets SettlCurrOfferFxRate, Tag 657 -func (m Quote) SetSettlCurrOfferFxRate(v float64) { - m.Set(field.NewSettlCurrOfferFxRate(v)) +func (m Quote) SetSettlCurrOfferFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrOfferFxRate(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -557,8 +558,8 @@ func (m Quote) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m Quote) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m Quote) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -587,8 +588,8 @@ func (m Quote) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m Quote) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m Quote) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -662,8 +663,8 @@ func (m Quote) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m Quote) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m Quote) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -717,18 +718,18 @@ func (m Quote) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m Quote) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m Quote) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m Quote) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m Quote) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m Quote) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m Quote) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -762,13 +763,13 @@ func (m Quote) SetInstrmtAssignmentMethod(v string) { } //SetBidSwapPoints sets BidSwapPoints, Tag 1065 -func (m Quote) SetBidSwapPoints(v float64) { - m.Set(field.NewBidSwapPoints(v)) +func (m Quote) SetBidSwapPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSwapPoints(value, scale)) } //SetOfferSwapPoints sets OfferSwapPoints, Tag 1066 -func (m Quote) SetOfferSwapPoints(v float64) { - m.Set(field.NewOfferSwapPoints(v)) +func (m Quote) SetOfferSwapPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSwapPoints(value, scale)) } //SetMaturityTime sets MaturityTime, Tag 1079 @@ -782,13 +783,13 @@ func (m Quote) SetExDestinationIDSource(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m Quote) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m Quote) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m Quote) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m Quote) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -827,8 +828,8 @@ func (m Quote) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m Quote) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m Quote) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -842,8 +843,8 @@ func (m Quote) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m Quote) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m Quote) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -862,13 +863,13 @@ func (m Quote) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m Quote) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m Quote) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m Quote) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m Quote) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -912,23 +913,23 @@ func (m Quote) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m Quote) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m Quote) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m Quote) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m Quote) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m Quote) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m Quote) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m Quote) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m Quote) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -942,8 +943,8 @@ func (m Quote) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m Quote) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m Quote) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -3305,13 +3306,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3345,8 +3346,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3360,13 +3361,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3405,8 +3406,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3450,13 +3451,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3475,8 +3476,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3485,8 +3486,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3500,8 +3501,8 @@ func (m NoLegs) SetLegFlowScheduleType(v int) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -3535,13 +3536,13 @@ func (m NoLegs) SetLegPriceType(v int) { } //SetLegBidPx sets LegBidPx, Tag 681 -func (m NoLegs) SetLegBidPx(v float64) { - m.Set(field.NewLegBidPx(v)) +func (m NoLegs) SetLegBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBidPx(value, scale)) } //SetLegOfferPx sets LegOfferPx, Tag 684 -func (m NoLegs) SetLegOfferPx(v float64) { - m.Set(field.NewLegOfferPx(v)) +func (m NoLegs) SetLegOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOfferPx(value, scale)) } //SetLegBenchmarkCurveCurrency sets LegBenchmarkCurveCurrency, Tag 676 @@ -3560,8 +3561,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 @@ -3570,8 +3571,8 @@ func (m NoLegs) SetLegBenchmarkPriceType(v int) { } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //SetLegRefID sets LegRefID, Tag 654 @@ -3580,13 +3581,13 @@ func (m NoLegs) SetLegRefID(v string) { } //SetLegBidForwardPoints sets LegBidForwardPoints, Tag 1067 -func (m NoLegs) SetLegBidForwardPoints(v float64) { - m.Set(field.NewLegBidForwardPoints(v)) +func (m NoLegs) SetLegBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBidForwardPoints(value, scale)) } //SetLegOfferForwardPoints sets LegOfferForwardPoints, Tag 1068 -func (m NoLegs) SetLegOfferForwardPoints(v float64) { - m.Set(field.NewLegOfferForwardPoints(v)) +func (m NoLegs) SetLegOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOfferForwardPoints(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -4761,13 +4762,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4801,8 +4802,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4816,13 +4817,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4876,38 +4877,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4916,8 +4917,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4926,8 +4927,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4946,8 +4947,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4961,13 +4962,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4991,8 +4992,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -5001,8 +5002,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -5026,23 +5027,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -6196,8 +6197,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -6528,13 +6529,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -6543,8 +6544,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/quotecancel/QuoteCancel.generated.go b/fix50sp2/quotecancel/QuoteCancel.generated.go index ba8c443cd..989871fd8 100644 --- a/fix50sp2/quotecancel/QuoteCancel.generated.go +++ b/fix50sp2/quotecancel/QuoteCancel.generated.go @@ -1,6 +1,7 @@ package quotecancel import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -369,13 +370,13 @@ func (m NoQuoteEntries) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoQuoteEntries) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoQuoteEntries) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoQuoteEntries) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoQuoteEntries) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -409,8 +410,8 @@ func (m NoQuoteEntries) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoQuoteEntries) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoQuoteEntries) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -424,13 +425,13 @@ func (m NoQuoteEntries) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoQuoteEntries) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoQuoteEntries) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoQuoteEntries) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoQuoteEntries) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -519,18 +520,18 @@ func (m NoQuoteEntries) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoQuoteEntries) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoQuoteEntries) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoQuoteEntries) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoQuoteEntries) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoQuoteEntries) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoQuoteEntries) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -569,13 +570,13 @@ func (m NoQuoteEntries) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoQuoteEntries) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoQuoteEntries) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoQuoteEntries) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoQuoteEntries) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -604,8 +605,8 @@ func (m NoQuoteEntries) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoQuoteEntries) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoQuoteEntries) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -619,8 +620,8 @@ func (m NoQuoteEntries) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NoQuoteEntries) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NoQuoteEntries) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -634,13 +635,13 @@ func (m NoQuoteEntries) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoQuoteEntries) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoQuoteEntries) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoQuoteEntries) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoQuoteEntries) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -684,23 +685,23 @@ func (m NoQuoteEntries) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NoQuoteEntries) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NoQuoteEntries) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NoQuoteEntries) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NoQuoteEntries) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NoQuoteEntries) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NoQuoteEntries) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NoQuoteEntries) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NoQuoteEntries) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -714,8 +715,8 @@ func (m NoQuoteEntries) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NoQuoteEntries) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NoQuoteEntries) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -774,8 +775,8 @@ func (m NoQuoteEntries) SetDeliveryType(v int) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NoQuoteEntries) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NoQuoteEntries) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetNoUnderlyings sets NoUnderlyings, Tag 711 @@ -1959,8 +1960,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2215,13 +2216,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -2230,8 +2231,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 @@ -2579,13 +2580,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2619,8 +2620,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2634,13 +2635,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2694,38 +2695,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2734,8 +2735,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2744,8 +2745,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2764,8 +2765,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2779,13 +2780,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2809,8 +2810,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -2819,8 +2820,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -2844,23 +2845,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4035,13 +4036,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4075,8 +4076,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4090,13 +4091,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4135,8 +4136,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4180,13 +4181,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -4205,8 +4206,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4215,8 +4216,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 diff --git a/fix50sp2/quoterequest/QuoteRequest.generated.go b/fix50sp2/quoterequest/QuoteRequest.generated.go index 8f7f1f8ad..9e7ec3f79 100644 --- a/fix50sp2/quoterequest/QuoteRequest.generated.go +++ b/fix50sp2/quoterequest/QuoteRequest.generated.go @@ -1,6 +1,7 @@ package quoterequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -368,13 +369,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -408,8 +409,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -423,13 +424,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -518,18 +519,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -568,13 +569,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -603,8 +604,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -618,8 +619,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NoRelatedSym) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -633,13 +634,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -683,23 +684,23 @@ func (m NoRelatedSym) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NoRelatedSym) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NoRelatedSym) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NoRelatedSym) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NoRelatedSym) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NoRelatedSym) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -713,8 +714,8 @@ func (m NoRelatedSym) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -773,8 +774,8 @@ func (m NoRelatedSym) SetDeliveryType(v int) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NoRelatedSym) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NoRelatedSym) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetNoUnderlyings sets NoUnderlyings, Tag 711 @@ -783,8 +784,8 @@ func (m NoRelatedSym) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoRelatedSym) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoRelatedSym) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetQuoteRequestType sets QuoteRequestType, Tag 303 @@ -823,18 +824,18 @@ func (m NoRelatedSym) SetQtyType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoRelatedSym) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoRelatedSym) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoRelatedSym) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoRelatedSym) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoRelatedSym) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoRelatedSym) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -843,8 +844,8 @@ func (m NoRelatedSym) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoRelatedSym) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoRelatedSym) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetSettlType sets SettlType, Tag 63 @@ -863,8 +864,8 @@ func (m NoRelatedSym) SetSettlDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoRelatedSym) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoRelatedSym) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -928,8 +929,8 @@ func (m NoRelatedSym) SetTransactTime(v time.Time) { } //SetSpread sets Spread, Tag 218 -func (m NoRelatedSym) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoRelatedSym) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -948,8 +949,8 @@ func (m NoRelatedSym) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoRelatedSym) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoRelatedSym) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -973,13 +974,13 @@ func (m NoRelatedSym) SetPriceType(v int) { } //SetPrice sets Price, Tag 44 -func (m NoRelatedSym) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoRelatedSym) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetPrice2 sets Price2, Tag 640 -func (m NoRelatedSym) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m NoRelatedSym) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetYieldType sets YieldType, Tag 235 @@ -988,8 +989,8 @@ func (m NoRelatedSym) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoRelatedSym) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoRelatedSym) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -1003,8 +1004,8 @@ func (m NoRelatedSym) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoRelatedSym) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoRelatedSym) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -1018,8 +1019,8 @@ func (m NoRelatedSym) SetNoPartyIDs(f NoPartyIDsRepeatingGroup) { } //SetMinQty sets MinQty, Tag 110 -func (m NoRelatedSym) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m NoRelatedSym) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetSettlCurrency sets SettlCurrency, Tag 120 @@ -2746,8 +2747,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -3002,13 +3003,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -3017,8 +3018,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 @@ -3366,13 +3367,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3406,8 +3407,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3421,13 +3422,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3481,38 +3482,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3521,8 +3522,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3531,8 +3532,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3551,8 +3552,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3566,13 +3567,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3596,8 +3597,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3606,8 +3607,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3631,23 +3632,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4882,13 +4883,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4922,8 +4923,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4937,13 +4938,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4982,8 +4983,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -5027,13 +5028,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -5052,8 +5053,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -5062,8 +5063,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -5077,8 +5078,8 @@ func (m NoLegs) SetLegFlowScheduleType(v int) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -5122,8 +5123,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 @@ -5132,8 +5133,8 @@ func (m NoLegs) SetLegBenchmarkPriceType(v int) { } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //SetLegRefID sets LegRefID, Tag 654 diff --git a/fix50sp2/quoterequestreject/QuoteRequestReject.generated.go b/fix50sp2/quoterequestreject/QuoteRequestReject.generated.go index 7549ff3d1..0b871701d 100644 --- a/fix50sp2/quoterequestreject/QuoteRequestReject.generated.go +++ b/fix50sp2/quoterequestreject/QuoteRequestReject.generated.go @@ -1,6 +1,7 @@ package quoterequestreject import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -321,13 +322,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -361,8 +362,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -376,13 +377,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -471,18 +472,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -521,13 +522,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -556,8 +557,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -571,8 +572,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NoRelatedSym) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -586,13 +587,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -636,23 +637,23 @@ func (m NoRelatedSym) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NoRelatedSym) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NoRelatedSym) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NoRelatedSym) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NoRelatedSym) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NoRelatedSym) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -666,8 +667,8 @@ func (m NoRelatedSym) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -726,8 +727,8 @@ func (m NoRelatedSym) SetDeliveryType(v int) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NoRelatedSym) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NoRelatedSym) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetNoUnderlyings sets NoUnderlyings, Tag 711 @@ -736,8 +737,8 @@ func (m NoRelatedSym) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoRelatedSym) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoRelatedSym) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetQuoteRequestType sets QuoteRequestType, Tag 303 @@ -776,18 +777,18 @@ func (m NoRelatedSym) SetQtyType(v int) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoRelatedSym) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoRelatedSym) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoRelatedSym) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoRelatedSym) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoRelatedSym) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoRelatedSym) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -796,8 +797,8 @@ func (m NoRelatedSym) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoRelatedSym) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoRelatedSym) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetSettlType sets SettlType, Tag 63 @@ -816,8 +817,8 @@ func (m NoRelatedSym) SetSettlDate2(v string) { } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m NoRelatedSym) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m NoRelatedSym) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -876,8 +877,8 @@ func (m NoRelatedSym) SetTransactTime(v time.Time) { } //SetSpread sets Spread, Tag 218 -func (m NoRelatedSym) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoRelatedSym) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -896,8 +897,8 @@ func (m NoRelatedSym) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoRelatedSym) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoRelatedSym) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -921,13 +922,13 @@ func (m NoRelatedSym) SetPriceType(v int) { } //SetPrice sets Price, Tag 44 -func (m NoRelatedSym) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoRelatedSym) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetPrice2 sets Price2, Tag 640 -func (m NoRelatedSym) SetPrice2(v float64) { - m.Set(field.NewPrice2(v)) +func (m NoRelatedSym) SetPrice2(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice2(value, scale)) } //SetYieldType sets YieldType, Tag 235 @@ -936,8 +937,8 @@ func (m NoRelatedSym) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoRelatedSym) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoRelatedSym) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -951,8 +952,8 @@ func (m NoRelatedSym) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoRelatedSym) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoRelatedSym) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -2634,8 +2635,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2890,13 +2891,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -2905,8 +2906,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 @@ -3254,13 +3255,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3294,8 +3295,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3309,13 +3310,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3369,38 +3370,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3409,8 +3410,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3419,8 +3420,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3439,8 +3440,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3454,13 +3455,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3484,8 +3485,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3494,8 +3495,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3519,23 +3520,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4770,13 +4771,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4810,8 +4811,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -4825,13 +4826,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -4870,8 +4871,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -4915,13 +4916,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -4940,8 +4941,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4950,8 +4951,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -4965,8 +4966,8 @@ func (m NoLegs) SetLegFlowScheduleType(v int) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -5010,8 +5011,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 @@ -5020,8 +5021,8 @@ func (m NoLegs) SetLegBenchmarkPriceType(v int) { } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //SetLegRefID sets LegRefID, Tag 654 diff --git a/fix50sp2/quoteresponse/QuoteResponse.generated.go b/fix50sp2/quoteresponse/QuoteResponse.generated.go index 336c5424b..622e1b10e 100644 --- a/fix50sp2/quoteresponse/QuoteResponse.generated.go +++ b/fix50sp2/quoteresponse/QuoteResponse.generated.go @@ -1,6 +1,7 @@ package quoteresponse import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -73,8 +74,8 @@ func (m QuoteResponse) SetClOrdID(v string) { } //SetCommission sets Commission, Tag 12 -func (m QuoteResponse) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m QuoteResponse) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -98,8 +99,8 @@ func (m QuoteResponse) SetIOIID(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m QuoteResponse) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m QuoteResponse) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -108,8 +109,8 @@ func (m QuoteResponse) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m QuoteResponse) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m QuoteResponse) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -173,8 +174,8 @@ func (m QuoteResponse) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m QuoteResponse) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m QuoteResponse) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetQuoteID sets QuoteID, Tag 117 @@ -183,28 +184,28 @@ func (m QuoteResponse) SetQuoteID(v string) { } //SetBidPx sets BidPx, Tag 132 -func (m QuoteResponse) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m QuoteResponse) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m QuoteResponse) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m QuoteResponse) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m QuoteResponse) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m QuoteResponse) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m QuoteResponse) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m QuoteResponse) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m QuoteResponse) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m QuoteResponse) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -218,28 +219,28 @@ func (m QuoteResponse) SetSecurityType(v string) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m QuoteResponse) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m QuoteResponse) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m QuoteResponse) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m QuoteResponse) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m QuoteResponse) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m QuoteResponse) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m QuoteResponse) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m QuoteResponse) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m QuoteResponse) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m QuoteResponse) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -258,8 +259,8 @@ func (m QuoteResponse) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m QuoteResponse) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m QuoteResponse) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -273,8 +274,8 @@ func (m QuoteResponse) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m QuoteResponse) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m QuoteResponse) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -293,8 +294,8 @@ func (m QuoteResponse) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m QuoteResponse) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m QuoteResponse) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -313,18 +314,18 @@ func (m QuoteResponse) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m QuoteResponse) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m QuoteResponse) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m QuoteResponse) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m QuoteResponse) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m QuoteResponse) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m QuoteResponse) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -338,8 +339,8 @@ func (m QuoteResponse) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m QuoteResponse) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m QuoteResponse) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -423,8 +424,8 @@ func (m QuoteResponse) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m QuoteResponse) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m QuoteResponse) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -443,8 +444,8 @@ func (m QuoteResponse) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m QuoteResponse) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m QuoteResponse) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetOrderCapacity sets OrderCapacity, Tag 528 @@ -493,63 +494,63 @@ func (m QuoteResponse) SetTradingSessionSubID(v string) { } //SetMidPx sets MidPx, Tag 631 -func (m QuoteResponse) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m QuoteResponse) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m QuoteResponse) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m QuoteResponse) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m QuoteResponse) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m QuoteResponse) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m QuoteResponse) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m QuoteResponse) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m QuoteResponse) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m QuoteResponse) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m QuoteResponse) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m QuoteResponse) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetMktBidPx sets MktBidPx, Tag 645 -func (m QuoteResponse) SetMktBidPx(v float64) { - m.Set(field.NewMktBidPx(v)) +func (m QuoteResponse) SetMktBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktBidPx(value, scale)) } //SetMktOfferPx sets MktOfferPx, Tag 646 -func (m QuoteResponse) SetMktOfferPx(v float64) { - m.Set(field.NewMktOfferPx(v)) +func (m QuoteResponse) SetMktOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktOfferPx(value, scale)) } //SetMinBidSize sets MinBidSize, Tag 647 -func (m QuoteResponse) SetMinBidSize(v float64) { - m.Set(field.NewMinBidSize(v)) +func (m QuoteResponse) SetMinBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinBidSize(value, scale)) } //SetMinOfferSize sets MinOfferSize, Tag 648 -func (m QuoteResponse) SetMinOfferSize(v float64) { - m.Set(field.NewMinOfferSize(v)) +func (m QuoteResponse) SetMinOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinOfferSize(value, scale)) } //SetSettlCurrBidFxRate sets SettlCurrBidFxRate, Tag 656 -func (m QuoteResponse) SetSettlCurrBidFxRate(v float64) { - m.Set(field.NewSettlCurrBidFxRate(v)) +func (m QuoteResponse) SetSettlCurrBidFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrBidFxRate(value, scale)) } //SetSettlCurrOfferFxRate sets SettlCurrOfferFxRate, Tag 657 -func (m QuoteResponse) SetSettlCurrOfferFxRate(v float64) { - m.Set(field.NewSettlCurrOfferFxRate(v)) +func (m QuoteResponse) SetSettlCurrOfferFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrOfferFxRate(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -558,8 +559,8 @@ func (m QuoteResponse) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m QuoteResponse) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m QuoteResponse) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -593,8 +594,8 @@ func (m QuoteResponse) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m QuoteResponse) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m QuoteResponse) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -663,8 +664,8 @@ func (m QuoteResponse) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m QuoteResponse) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m QuoteResponse) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -718,18 +719,18 @@ func (m QuoteResponse) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m QuoteResponse) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m QuoteResponse) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m QuoteResponse) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m QuoteResponse) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m QuoteResponse) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m QuoteResponse) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -778,13 +779,13 @@ func (m QuoteResponse) SetExDestinationIDSource(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m QuoteResponse) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m QuoteResponse) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m QuoteResponse) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m QuoteResponse) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -818,8 +819,8 @@ func (m QuoteResponse) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m QuoteResponse) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m QuoteResponse) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -833,8 +834,8 @@ func (m QuoteResponse) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m QuoteResponse) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m QuoteResponse) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -853,13 +854,13 @@ func (m QuoteResponse) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m QuoteResponse) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m QuoteResponse) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m QuoteResponse) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m QuoteResponse) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -898,23 +899,23 @@ func (m QuoteResponse) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m QuoteResponse) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m QuoteResponse) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m QuoteResponse) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m QuoteResponse) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m QuoteResponse) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m QuoteResponse) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m QuoteResponse) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m QuoteResponse) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -928,8 +929,8 @@ func (m QuoteResponse) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m QuoteResponse) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m QuoteResponse) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -3257,13 +3258,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3297,8 +3298,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3312,13 +3313,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3357,8 +3358,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3402,13 +3403,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3427,8 +3428,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3437,8 +3438,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3452,8 +3453,8 @@ func (m NoLegs) SetLegFlowScheduleType(v int) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -3487,13 +3488,13 @@ func (m NoLegs) SetLegPriceType(v int) { } //SetLegBidPx sets LegBidPx, Tag 681 -func (m NoLegs) SetLegBidPx(v float64) { - m.Set(field.NewLegBidPx(v)) +func (m NoLegs) SetLegBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBidPx(value, scale)) } //SetLegOfferPx sets LegOfferPx, Tag 684 -func (m NoLegs) SetLegOfferPx(v float64) { - m.Set(field.NewLegOfferPx(v)) +func (m NoLegs) SetLegOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOfferPx(value, scale)) } //SetLegBenchmarkCurveCurrency sets LegBenchmarkCurveCurrency, Tag 676 @@ -3512,8 +3513,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 @@ -3522,8 +3523,8 @@ func (m NoLegs) SetLegBenchmarkPriceType(v int) { } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //SetLegRefID sets LegRefID, Tag 654 @@ -3532,13 +3533,13 @@ func (m NoLegs) SetLegRefID(v string) { } //SetLegBidForwardPoints sets LegBidForwardPoints, Tag 1067 -func (m NoLegs) SetLegBidForwardPoints(v float64) { - m.Set(field.NewLegBidForwardPoints(v)) +func (m NoLegs) SetLegBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBidForwardPoints(value, scale)) } //SetLegOfferForwardPoints sets LegOfferForwardPoints, Tag 1068 -func (m NoLegs) SetLegOfferForwardPoints(v float64) { - m.Set(field.NewLegOfferForwardPoints(v)) +func (m NoLegs) SetLegOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOfferForwardPoints(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -4713,13 +4714,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4753,8 +4754,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4768,13 +4769,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4828,38 +4829,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4868,8 +4869,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4878,8 +4879,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4898,8 +4899,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4913,13 +4914,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4943,8 +4944,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4953,8 +4954,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -4978,23 +4979,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -6148,8 +6149,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -6404,13 +6405,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -6419,8 +6420,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/quotestatusreport/QuoteStatusReport.generated.go b/fix50sp2/quotestatusreport/QuoteStatusReport.generated.go index a1103fd23..cd1a9686e 100644 --- a/fix50sp2/quotestatusreport/QuoteStatusReport.generated.go +++ b/fix50sp2/quotestatusreport/QuoteStatusReport.generated.go @@ -1,6 +1,7 @@ package quotestatusreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -66,8 +67,8 @@ func (m QuoteStatusReport) SetAccount(v string) { } //SetCommission sets Commission, Tag 12 -func (m QuoteStatusReport) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m QuoteStatusReport) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -86,8 +87,8 @@ func (m QuoteStatusReport) SetSecurityIDSource(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m QuoteStatusReport) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m QuoteStatusReport) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetOrdType sets OrdType, Tag 40 @@ -96,8 +97,8 @@ func (m QuoteStatusReport) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m QuoteStatusReport) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m QuoteStatusReport) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -161,8 +162,8 @@ func (m QuoteStatusReport) SetSecurityDesc(v string) { } //SetMinQty sets MinQty, Tag 110 -func (m QuoteStatusReport) SetMinQty(v float64) { - m.Set(field.NewMinQty(v)) +func (m QuoteStatusReport) SetMinQty(value decimal.Decimal, scale int32) { + m.Set(field.NewMinQty(value, scale)) } //SetQuoteID sets QuoteID, Tag 117 @@ -181,28 +182,28 @@ func (m QuoteStatusReport) SetQuoteReqID(v string) { } //SetBidPx sets BidPx, Tag 132 -func (m QuoteStatusReport) SetBidPx(v float64) { - m.Set(field.NewBidPx(v)) +func (m QuoteStatusReport) SetBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewBidPx(value, scale)) } //SetOfferPx sets OfferPx, Tag 133 -func (m QuoteStatusReport) SetOfferPx(v float64) { - m.Set(field.NewOfferPx(v)) +func (m QuoteStatusReport) SetOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferPx(value, scale)) } //SetBidSize sets BidSize, Tag 134 -func (m QuoteStatusReport) SetBidSize(v float64) { - m.Set(field.NewBidSize(v)) +func (m QuoteStatusReport) SetBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSize(value, scale)) } //SetOfferSize sets OfferSize, Tag 135 -func (m QuoteStatusReport) SetOfferSize(v float64) { - m.Set(field.NewOfferSize(v)) +func (m QuoteStatusReport) SetOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSize(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m QuoteStatusReport) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m QuoteStatusReport) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -216,28 +217,28 @@ func (m QuoteStatusReport) SetSecurityType(v string) { } //SetBidSpotRate sets BidSpotRate, Tag 188 -func (m QuoteStatusReport) SetBidSpotRate(v float64) { - m.Set(field.NewBidSpotRate(v)) +func (m QuoteStatusReport) SetBidSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewBidSpotRate(value, scale)) } //SetBidForwardPoints sets BidForwardPoints, Tag 189 -func (m QuoteStatusReport) SetBidForwardPoints(v float64) { - m.Set(field.NewBidForwardPoints(v)) +func (m QuoteStatusReport) SetBidForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints(value, scale)) } //SetOfferSpotRate sets OfferSpotRate, Tag 190 -func (m QuoteStatusReport) SetOfferSpotRate(v float64) { - m.Set(field.NewOfferSpotRate(v)) +func (m QuoteStatusReport) SetOfferSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferSpotRate(value, scale)) } //SetOfferForwardPoints sets OfferForwardPoints, Tag 191 -func (m QuoteStatusReport) SetOfferForwardPoints(v float64) { - m.Set(field.NewOfferForwardPoints(v)) +func (m QuoteStatusReport) SetOfferForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints(value, scale)) } //SetOrderQty2 sets OrderQty2, Tag 192 -func (m QuoteStatusReport) SetOrderQty2(v float64) { - m.Set(field.NewOrderQty2(v)) +func (m QuoteStatusReport) SetOrderQty2(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty2(value, scale)) } //SetSettlDate2 sets SettlDate2, Tag 193 @@ -256,8 +257,8 @@ func (m QuoteStatusReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m QuoteStatusReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m QuoteStatusReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -271,8 +272,8 @@ func (m QuoteStatusReport) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m QuoteStatusReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m QuoteStatusReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -291,8 +292,8 @@ func (m QuoteStatusReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m QuoteStatusReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m QuoteStatusReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -311,18 +312,18 @@ func (m QuoteStatusReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m QuoteStatusReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m QuoteStatusReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m QuoteStatusReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m QuoteStatusReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m QuoteStatusReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m QuoteStatusReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -336,8 +337,8 @@ func (m QuoteStatusReport) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m QuoteStatusReport) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m QuoteStatusReport) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -436,8 +437,8 @@ func (m QuoteStatusReport) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m QuoteStatusReport) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m QuoteStatusReport) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetCountryOfIssue sets CountryOfIssue, Tag 470 @@ -456,8 +457,8 @@ func (m QuoteStatusReport) SetLocaleOfIssue(v string) { } //SetOrderPercent sets OrderPercent, Tag 516 -func (m QuoteStatusReport) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m QuoteStatusReport) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetOrderCapacity sets OrderCapacity, Tag 528 @@ -506,53 +507,53 @@ func (m QuoteStatusReport) SetTradingSessionSubID(v string) { } //SetMidPx sets MidPx, Tag 631 -func (m QuoteStatusReport) SetMidPx(v float64) { - m.Set(field.NewMidPx(v)) +func (m QuoteStatusReport) SetMidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMidPx(value, scale)) } //SetBidYield sets BidYield, Tag 632 -func (m QuoteStatusReport) SetBidYield(v float64) { - m.Set(field.NewBidYield(v)) +func (m QuoteStatusReport) SetBidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewBidYield(value, scale)) } //SetMidYield sets MidYield, Tag 633 -func (m QuoteStatusReport) SetMidYield(v float64) { - m.Set(field.NewMidYield(v)) +func (m QuoteStatusReport) SetMidYield(value decimal.Decimal, scale int32) { + m.Set(field.NewMidYield(value, scale)) } //SetOfferYield sets OfferYield, Tag 634 -func (m QuoteStatusReport) SetOfferYield(v float64) { - m.Set(field.NewOfferYield(v)) +func (m QuoteStatusReport) SetOfferYield(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferYield(value, scale)) } //SetBidForwardPoints2 sets BidForwardPoints2, Tag 642 -func (m QuoteStatusReport) SetBidForwardPoints2(v float64) { - m.Set(field.NewBidForwardPoints2(v)) +func (m QuoteStatusReport) SetBidForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewBidForwardPoints2(value, scale)) } //SetOfferForwardPoints2 sets OfferForwardPoints2, Tag 643 -func (m QuoteStatusReport) SetOfferForwardPoints2(v float64) { - m.Set(field.NewOfferForwardPoints2(v)) +func (m QuoteStatusReport) SetOfferForwardPoints2(value decimal.Decimal, scale int32) { + m.Set(field.NewOfferForwardPoints2(value, scale)) } //SetMktBidPx sets MktBidPx, Tag 645 -func (m QuoteStatusReport) SetMktBidPx(v float64) { - m.Set(field.NewMktBidPx(v)) +func (m QuoteStatusReport) SetMktBidPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktBidPx(value, scale)) } //SetMktOfferPx sets MktOfferPx, Tag 646 -func (m QuoteStatusReport) SetMktOfferPx(v float64) { - m.Set(field.NewMktOfferPx(v)) +func (m QuoteStatusReport) SetMktOfferPx(value decimal.Decimal, scale int32) { + m.Set(field.NewMktOfferPx(value, scale)) } //SetMinBidSize sets MinBidSize, Tag 647 -func (m QuoteStatusReport) SetMinBidSize(v float64) { - m.Set(field.NewMinBidSize(v)) +func (m QuoteStatusReport) SetMinBidSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinBidSize(value, scale)) } //SetMinOfferSize sets MinOfferSize, Tag 648 -func (m QuoteStatusReport) SetMinOfferSize(v float64) { - m.Set(field.NewMinOfferSize(v)) +func (m QuoteStatusReport) SetMinOfferSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinOfferSize(value, scale)) } //SetQuoteStatusReqID sets QuoteStatusReqID, Tag 649 @@ -561,13 +562,13 @@ func (m QuoteStatusReport) SetQuoteStatusReqID(v string) { } //SetSettlCurrBidFxRate sets SettlCurrBidFxRate, Tag 656 -func (m QuoteStatusReport) SetSettlCurrBidFxRate(v float64) { - m.Set(field.NewSettlCurrBidFxRate(v)) +func (m QuoteStatusReport) SetSettlCurrBidFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrBidFxRate(value, scale)) } //SetSettlCurrOfferFxRate sets SettlCurrOfferFxRate, Tag 657 -func (m QuoteStatusReport) SetSettlCurrOfferFxRate(v float64) { - m.Set(field.NewSettlCurrOfferFxRate(v)) +func (m QuoteStatusReport) SetSettlCurrOfferFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrOfferFxRate(value, scale)) } //SetAcctIDSource sets AcctIDSource, Tag 660 @@ -576,8 +577,8 @@ func (m QuoteStatusReport) SetAcctIDSource(v int) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m QuoteStatusReport) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m QuoteStatusReport) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -606,8 +607,8 @@ func (m QuoteStatusReport) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m QuoteStatusReport) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m QuoteStatusReport) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -681,8 +682,8 @@ func (m QuoteStatusReport) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m QuoteStatusReport) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m QuoteStatusReport) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -736,18 +737,18 @@ func (m QuoteStatusReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m QuoteStatusReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m QuoteStatusReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m QuoteStatusReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m QuoteStatusReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m QuoteStatusReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m QuoteStatusReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -791,13 +792,13 @@ func (m QuoteStatusReport) SetExDestinationIDSource(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m QuoteStatusReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m QuoteStatusReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m QuoteStatusReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m QuoteStatusReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -831,8 +832,8 @@ func (m QuoteStatusReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m QuoteStatusReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m QuoteStatusReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -846,8 +847,8 @@ func (m QuoteStatusReport) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m QuoteStatusReport) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m QuoteStatusReport) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -866,13 +867,13 @@ func (m QuoteStatusReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m QuoteStatusReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m QuoteStatusReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m QuoteStatusReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m QuoteStatusReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -911,23 +912,23 @@ func (m QuoteStatusReport) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m QuoteStatusReport) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m QuoteStatusReport) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m QuoteStatusReport) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m QuoteStatusReport) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m QuoteStatusReport) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m QuoteStatusReport) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m QuoteStatusReport) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m QuoteStatusReport) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetNoTargetPartyIDs sets NoTargetPartyIDs, Tag 1461 @@ -946,8 +947,8 @@ func (m QuoteStatusReport) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m QuoteStatusReport) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m QuoteStatusReport) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -3320,13 +3321,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3360,8 +3361,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3375,13 +3376,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3420,8 +3421,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3465,13 +3466,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3490,8 +3491,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3500,8 +3501,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3515,8 +3516,8 @@ func (m NoLegs) SetLegFlowScheduleType(v int) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -3545,8 +3546,8 @@ func (m NoLegs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) { } //SetLegOrderQty sets LegOrderQty, Tag 685 -func (m NoLegs) SetLegOrderQty(v float64) { - m.Set(field.NewLegOrderQty(v)) +func (m NoLegs) SetLegOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOrderQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -4600,13 +4601,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4640,8 +4641,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4655,13 +4656,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4715,38 +4716,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4755,8 +4756,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4765,8 +4766,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4785,8 +4786,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4800,13 +4801,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4830,8 +4831,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4840,8 +4841,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -4865,23 +4866,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -6035,8 +6036,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -6367,13 +6368,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -6382,8 +6383,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/quotestatusrequest/QuoteStatusRequest.generated.go b/fix50sp2/quotestatusrequest/QuoteStatusRequest.generated.go index 75b170b9f..dcaa3b73d 100644 --- a/fix50sp2/quotestatusrequest/QuoteStatusRequest.generated.go +++ b/fix50sp2/quotestatusrequest/QuoteStatusRequest.generated.go @@ -1,6 +1,7 @@ package quotestatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -116,8 +117,8 @@ func (m QuoteStatusRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m QuoteStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m QuoteStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -131,8 +132,8 @@ func (m QuoteStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m QuoteStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m QuoteStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -151,18 +152,18 @@ func (m QuoteStatusRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m QuoteStatusRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m QuoteStatusRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m QuoteStatusRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m QuoteStatusRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m QuoteStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m QuoteStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -331,8 +332,8 @@ func (m QuoteStatusRequest) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m QuoteStatusRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m QuoteStatusRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -386,18 +387,18 @@ func (m QuoteStatusRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m QuoteStatusRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m QuoteStatusRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m QuoteStatusRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m QuoteStatusRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m QuoteStatusRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m QuoteStatusRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -436,13 +437,13 @@ func (m QuoteStatusRequest) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m QuoteStatusRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m QuoteStatusRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m QuoteStatusRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m QuoteStatusRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -471,8 +472,8 @@ func (m QuoteStatusRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m QuoteStatusRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m QuoteStatusRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -486,8 +487,8 @@ func (m QuoteStatusRequest) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m QuoteStatusRequest) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m QuoteStatusRequest) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -506,13 +507,13 @@ func (m QuoteStatusRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m QuoteStatusRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m QuoteStatusRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m QuoteStatusRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m QuoteStatusRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -551,23 +552,23 @@ func (m QuoteStatusRequest) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m QuoteStatusRequest) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m QuoteStatusRequest) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m QuoteStatusRequest) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m QuoteStatusRequest) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m QuoteStatusRequest) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m QuoteStatusRequest) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m QuoteStatusRequest) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m QuoteStatusRequest) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetNoTargetPartyIDs sets NoTargetPartyIDs, Tag 1461 @@ -586,8 +587,8 @@ func (m QuoteStatusRequest) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m QuoteStatusRequest) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m QuoteStatusRequest) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2106,13 +2107,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2146,8 +2147,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2161,13 +2162,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2206,8 +2207,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2251,13 +2252,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2276,8 +2277,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2286,8 +2287,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3059,13 +3060,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3099,8 +3100,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3114,13 +3115,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3174,38 +3175,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3214,8 +3215,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3224,8 +3225,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3244,8 +3245,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3259,13 +3260,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3289,8 +3290,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3299,8 +3300,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3324,23 +3325,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4450,8 +4451,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4782,13 +4783,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -4797,8 +4798,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/registrationinstructions/RegistrationInstructions.generated.go b/fix50sp2/registrationinstructions/RegistrationInstructions.generated.go index 63c5916dd..c34a8cc6c 100644 --- a/fix50sp2/registrationinstructions/RegistrationInstructions.generated.go +++ b/fix50sp2/registrationinstructions/RegistrationInstructions.generated.go @@ -1,6 +1,7 @@ package registrationinstructions import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -732,8 +733,8 @@ func (m NoDistribInsts) SetDistribPaymentMethod(v int) { } //SetDistribPercentage sets DistribPercentage, Tag 512 -func (m NoDistribInsts) SetDistribPercentage(v float64) { - m.Set(field.NewDistribPercentage(v)) +func (m NoDistribInsts) SetDistribPercentage(value decimal.Decimal, scale int32) { + m.Set(field.NewDistribPercentage(value, scale)) } //SetCashDistribCurr sets CashDistribCurr, Tag 478 diff --git a/fix50sp2/requestforpositions/RequestForPositions.generated.go b/fix50sp2/requestforpositions/RequestForPositions.generated.go index 88def8788..4415bb59c 100644 --- a/fix50sp2/requestforpositions/RequestForPositions.generated.go +++ b/fix50sp2/requestforpositions/RequestForPositions.generated.go @@ -1,6 +1,7 @@ package requestforpositions import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -135,8 +136,8 @@ func (m RequestForPositions) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m RequestForPositions) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m RequestForPositions) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -150,8 +151,8 @@ func (m RequestForPositions) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m RequestForPositions) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m RequestForPositions) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -170,18 +171,18 @@ func (m RequestForPositions) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m RequestForPositions) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m RequestForPositions) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m RequestForPositions) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m RequestForPositions) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m RequestForPositions) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m RequestForPositions) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -400,18 +401,18 @@ func (m RequestForPositions) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m RequestForPositions) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m RequestForPositions) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m RequestForPositions) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m RequestForPositions) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m RequestForPositions) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m RequestForPositions) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -450,13 +451,13 @@ func (m RequestForPositions) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m RequestForPositions) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m RequestForPositions) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m RequestForPositions) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m RequestForPositions) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -485,8 +486,8 @@ func (m RequestForPositions) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m RequestForPositions) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m RequestForPositions) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -500,8 +501,8 @@ func (m RequestForPositions) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m RequestForPositions) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m RequestForPositions) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -520,13 +521,13 @@ func (m RequestForPositions) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m RequestForPositions) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m RequestForPositions) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m RequestForPositions) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m RequestForPositions) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -565,23 +566,23 @@ func (m RequestForPositions) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m RequestForPositions) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m RequestForPositions) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m RequestForPositions) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m RequestForPositions) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m RequestForPositions) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m RequestForPositions) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m RequestForPositions) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m RequestForPositions) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -595,8 +596,8 @@ func (m RequestForPositions) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m RequestForPositions) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m RequestForPositions) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2186,13 +2187,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2226,8 +2227,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2241,13 +2242,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2286,8 +2287,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2331,13 +2332,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2356,8 +2357,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2366,8 +2367,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3139,13 +3140,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3179,8 +3180,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3194,13 +3195,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3254,38 +3255,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3294,8 +3295,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3304,8 +3305,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3324,8 +3325,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3339,13 +3340,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3369,8 +3370,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3379,8 +3380,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3404,23 +3405,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4530,8 +4531,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4786,13 +4787,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -4801,8 +4802,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/requestforpositionsack/RequestForPositionsAck.generated.go b/fix50sp2/requestforpositionsack/RequestForPositionsAck.generated.go index 367aac93b..98f85a980 100644 --- a/fix50sp2/requestforpositionsack/RequestForPositionsAck.generated.go +++ b/fix50sp2/requestforpositionsack/RequestForPositionsAck.generated.go @@ -1,6 +1,7 @@ package requestforpositionsack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -129,8 +130,8 @@ func (m RequestForPositionsAck) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m RequestForPositionsAck) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m RequestForPositionsAck) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -144,8 +145,8 @@ func (m RequestForPositionsAck) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m RequestForPositionsAck) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m RequestForPositionsAck) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -164,18 +165,18 @@ func (m RequestForPositionsAck) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m RequestForPositionsAck) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m RequestForPositionsAck) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m RequestForPositionsAck) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m RequestForPositionsAck) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m RequestForPositionsAck) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m RequestForPositionsAck) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -414,18 +415,18 @@ func (m RequestForPositionsAck) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m RequestForPositionsAck) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m RequestForPositionsAck) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m RequestForPositionsAck) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m RequestForPositionsAck) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m RequestForPositionsAck) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m RequestForPositionsAck) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -464,13 +465,13 @@ func (m RequestForPositionsAck) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m RequestForPositionsAck) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m RequestForPositionsAck) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m RequestForPositionsAck) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m RequestForPositionsAck) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -499,8 +500,8 @@ func (m RequestForPositionsAck) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m RequestForPositionsAck) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m RequestForPositionsAck) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -514,8 +515,8 @@ func (m RequestForPositionsAck) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m RequestForPositionsAck) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m RequestForPositionsAck) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -534,13 +535,13 @@ func (m RequestForPositionsAck) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m RequestForPositionsAck) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m RequestForPositionsAck) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m RequestForPositionsAck) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m RequestForPositionsAck) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -579,23 +580,23 @@ func (m RequestForPositionsAck) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m RequestForPositionsAck) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m RequestForPositionsAck) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m RequestForPositionsAck) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m RequestForPositionsAck) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m RequestForPositionsAck) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m RequestForPositionsAck) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m RequestForPositionsAck) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m RequestForPositionsAck) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -609,8 +610,8 @@ func (m RequestForPositionsAck) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m RequestForPositionsAck) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m RequestForPositionsAck) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2172,13 +2173,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2212,8 +2213,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2227,13 +2228,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2272,8 +2273,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2317,13 +2318,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2342,8 +2343,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2352,8 +2353,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3125,13 +3126,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3165,8 +3166,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3180,13 +3181,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3240,38 +3241,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3280,8 +3281,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3290,8 +3291,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3310,8 +3311,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3325,13 +3326,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3355,8 +3356,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3365,8 +3366,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3390,23 +3391,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4516,8 +4517,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4772,13 +4773,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -4787,8 +4788,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/rfqrequest/RFQRequest.generated.go b/fix50sp2/rfqrequest/RFQRequest.generated.go index e94b8a2dd..66edbe712 100644 --- a/fix50sp2/rfqrequest/RFQRequest.generated.go +++ b/fix50sp2/rfqrequest/RFQRequest.generated.go @@ -1,6 +1,7 @@ package rfqrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -224,13 +225,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -264,8 +265,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -279,13 +280,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -374,18 +375,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -424,13 +425,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -459,8 +460,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -474,8 +475,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NoRelatedSym) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -489,13 +490,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -539,23 +540,23 @@ func (m NoRelatedSym) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NoRelatedSym) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NoRelatedSym) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NoRelatedSym) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NoRelatedSym) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NoRelatedSym) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -569,8 +570,8 @@ func (m NoRelatedSym) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -599,8 +600,8 @@ func (m NoRelatedSym) SetNoLegs(f NoLegsRepeatingGroup) { } //SetPrevClosePx sets PrevClosePx, Tag 140 -func (m NoRelatedSym) SetPrevClosePx(v float64) { - m.Set(field.NewPrevClosePx(v)) +func (m NoRelatedSym) SetPrevClosePx(value decimal.Decimal, scale int32) { + m.Set(field.NewPrevClosePx(value, scale)) } //SetQuoteRequestType sets QuoteRequestType, Tag 303 @@ -1750,8 +1751,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2006,13 +2007,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -2021,8 +2022,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 @@ -2370,13 +2371,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2410,8 +2411,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2425,13 +2426,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2485,38 +2486,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2525,8 +2526,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2535,8 +2536,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2555,8 +2556,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2570,13 +2571,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2600,8 +2601,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -2610,8 +2611,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -2635,23 +2636,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -3826,13 +3827,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3866,8 +3867,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3881,13 +3882,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3926,8 +3927,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3971,13 +3972,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3996,8 +3997,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -4006,8 +4007,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 diff --git a/fix50sp2/securitydefinition/SecurityDefinition.generated.go b/fix50sp2/securitydefinition/SecurityDefinition.generated.go index 6b031bdc7..ce69ce5f6 100644 --- a/fix50sp2/securitydefinition/SecurityDefinition.generated.go +++ b/fix50sp2/securitydefinition/SecurityDefinition.generated.go @@ -1,6 +1,7 @@ package securitydefinition import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -121,8 +122,8 @@ func (m SecurityDefinition) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityDefinition) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityDefinition) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -136,8 +137,8 @@ func (m SecurityDefinition) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m SecurityDefinition) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m SecurityDefinition) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -156,8 +157,8 @@ func (m SecurityDefinition) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityDefinition) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityDefinition) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -176,18 +177,18 @@ func (m SecurityDefinition) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityDefinition) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityDefinition) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityDefinition) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityDefinition) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityDefinition) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityDefinition) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -201,8 +202,8 @@ func (m SecurityDefinition) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m SecurityDefinition) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m SecurityDefinition) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -316,8 +317,8 @@ func (m SecurityDefinition) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m SecurityDefinition) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m SecurityDefinition) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -346,8 +347,8 @@ func (m SecurityDefinition) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m SecurityDefinition) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m SecurityDefinition) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -391,8 +392,8 @@ func (m SecurityDefinition) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m SecurityDefinition) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m SecurityDefinition) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -441,18 +442,18 @@ func (m SecurityDefinition) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m SecurityDefinition) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m SecurityDefinition) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m SecurityDefinition) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m SecurityDefinition) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m SecurityDefinition) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m SecurityDefinition) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -491,13 +492,13 @@ func (m SecurityDefinition) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m SecurityDefinition) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m SecurityDefinition) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m SecurityDefinition) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m SecurityDefinition) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -536,8 +537,8 @@ func (m SecurityDefinition) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m SecurityDefinition) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m SecurityDefinition) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -551,8 +552,8 @@ func (m SecurityDefinition) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m SecurityDefinition) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m SecurityDefinition) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -571,13 +572,13 @@ func (m SecurityDefinition) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m SecurityDefinition) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m SecurityDefinition) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m SecurityDefinition) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m SecurityDefinition) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -631,23 +632,23 @@ func (m SecurityDefinition) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m SecurityDefinition) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m SecurityDefinition) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m SecurityDefinition) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m SecurityDefinition) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m SecurityDefinition) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m SecurityDefinition) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m SecurityDefinition) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m SecurityDefinition) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -661,8 +662,8 @@ func (m SecurityDefinition) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m SecurityDefinition) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m SecurityDefinition) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2254,13 +2255,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2294,8 +2295,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2309,13 +2310,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2354,8 +2355,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2399,13 +2400,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2424,8 +2425,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2434,8 +2435,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3207,13 +3208,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3247,8 +3248,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3262,13 +3263,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3322,38 +3323,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3362,8 +3363,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3372,8 +3373,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3392,8 +3393,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3407,13 +3408,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3437,8 +3438,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3447,8 +3448,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3472,23 +3473,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4598,8 +4599,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4934,18 +4935,18 @@ func (m NoMarketSegments) SetPriceLimitType(v int) { } //SetLowLimitPrice sets LowLimitPrice, Tag 1148 -func (m NoMarketSegments) SetLowLimitPrice(v float64) { - m.Set(field.NewLowLimitPrice(v)) +func (m NoMarketSegments) SetLowLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLowLimitPrice(value, scale)) } //SetHighLimitPrice sets HighLimitPrice, Tag 1149 -func (m NoMarketSegments) SetHighLimitPrice(v float64) { - m.Set(field.NewHighLimitPrice(v)) +func (m NoMarketSegments) SetHighLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewHighLimitPrice(value, scale)) } //SetTradingReferencePrice sets TradingReferencePrice, Tag 1150 -func (m NoMarketSegments) SetTradingReferencePrice(v float64) { - m.Set(field.NewTradingReferencePrice(v)) +func (m NoMarketSegments) SetTradingReferencePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTradingReferencePrice(value, scale)) } //SetExpirationCycle sets ExpirationCycle, Tag 827 @@ -4954,18 +4955,18 @@ func (m NoMarketSegments) SetExpirationCycle(v int) { } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m NoMarketSegments) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m NoMarketSegments) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetMaxTradeVol sets MaxTradeVol, Tag 1140 -func (m NoMarketSegments) SetMaxTradeVol(v float64) { - m.Set(field.NewMaxTradeVol(v)) +func (m NoMarketSegments) SetMaxTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxTradeVol(value, scale)) } //SetMaxPriceVariation sets MaxPriceVariation, Tag 1143 -func (m NoMarketSegments) SetMaxPriceVariation(v float64) { - m.Set(field.NewMaxPriceVariation(v)) +func (m NoMarketSegments) SetMaxPriceVariation(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxPriceVariation(value, scale)) } //SetImpliedMarketIndicator sets ImpliedMarketIndicator, Tag 1144 @@ -4979,8 +4980,8 @@ func (m NoMarketSegments) SetTradingCurrency(v string) { } //SetRoundLot sets RoundLot, Tag 561 -func (m NoMarketSegments) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m NoMarketSegments) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMultilegModel sets MultilegModel, Tag 1377 @@ -5255,18 +5256,18 @@ type NoTickRules struct { } //SetStartTickPriceRange sets StartTickPriceRange, Tag 1206 -func (m NoTickRules) SetStartTickPriceRange(v float64) { - m.Set(field.NewStartTickPriceRange(v)) +func (m NoTickRules) SetStartTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartTickPriceRange(value, scale)) } //SetEndTickPriceRange sets EndTickPriceRange, Tag 1207 -func (m NoTickRules) SetEndTickPriceRange(v float64) { - m.Set(field.NewEndTickPriceRange(v)) +func (m NoTickRules) SetEndTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndTickPriceRange(value, scale)) } //SetTickIncrement sets TickIncrement, Tag 1208 -func (m NoTickRules) SetTickIncrement(v float64) { - m.Set(field.NewTickIncrement(v)) +func (m NoTickRules) SetTickIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewTickIncrement(value, scale)) } //SetTickRuleType sets TickRuleType, Tag 1209 @@ -5352,8 +5353,8 @@ func (m NoLotTypeRules) SetLotType(v string) { } //SetMinLotSize sets MinLotSize, Tag 1231 -func (m NoLotTypeRules) SetMinLotSize(v float64) { - m.Set(field.NewMinLotSize(v)) +func (m NoLotTypeRules) SetMinLotSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinLotSize(value, scale)) } //GetLotType gets LotType, Tag 1093 @@ -5885,18 +5886,18 @@ func (m NoStrikeRules) SetStrikeRuleID(v string) { } //SetStartStrikePxRange sets StartStrikePxRange, Tag 1202 -func (m NoStrikeRules) SetStartStrikePxRange(v float64) { - m.Set(field.NewStartStrikePxRange(v)) +func (m NoStrikeRules) SetStartStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartStrikePxRange(value, scale)) } //SetEndStrikePxRange sets EndStrikePxRange, Tag 1203 -func (m NoStrikeRules) SetEndStrikePxRange(v float64) { - m.Set(field.NewEndStrikePxRange(v)) +func (m NoStrikeRules) SetEndStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndStrikePxRange(value, scale)) } //SetStrikeIncrement sets StrikeIncrement, Tag 1204 -func (m NoStrikeRules) SetStrikeIncrement(v float64) { - m.Set(field.NewStrikeIncrement(v)) +func (m NoStrikeRules) SetStrikeIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeIncrement(value, scale)) } //SetStrikeExerciseStyle sets StrikeExerciseStyle, Tag 1304 @@ -6157,13 +6158,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -6172,8 +6173,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/securitydefinitionrequest/SecurityDefinitionRequest.generated.go b/fix50sp2/securitydefinitionrequest/SecurityDefinitionRequest.generated.go index be8f5261a..8d2712267 100644 --- a/fix50sp2/securitydefinitionrequest/SecurityDefinitionRequest.generated.go +++ b/fix50sp2/securitydefinitionrequest/SecurityDefinitionRequest.generated.go @@ -1,6 +1,7 @@ package securitydefinitionrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -118,8 +119,8 @@ func (m SecurityDefinitionRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityDefinitionRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityDefinitionRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -133,8 +134,8 @@ func (m SecurityDefinitionRequest) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m SecurityDefinitionRequest) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m SecurityDefinitionRequest) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -153,8 +154,8 @@ func (m SecurityDefinitionRequest) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityDefinitionRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityDefinitionRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -173,18 +174,18 @@ func (m SecurityDefinitionRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityDefinitionRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityDefinitionRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityDefinitionRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityDefinitionRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityDefinitionRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityDefinitionRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -198,8 +199,8 @@ func (m SecurityDefinitionRequest) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m SecurityDefinitionRequest) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m SecurityDefinitionRequest) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -318,8 +319,8 @@ func (m SecurityDefinitionRequest) SetTradingSessionSubID(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m SecurityDefinitionRequest) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m SecurityDefinitionRequest) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -348,8 +349,8 @@ func (m SecurityDefinitionRequest) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m SecurityDefinitionRequest) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m SecurityDefinitionRequest) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -393,8 +394,8 @@ func (m SecurityDefinitionRequest) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m SecurityDefinitionRequest) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m SecurityDefinitionRequest) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -438,18 +439,18 @@ func (m SecurityDefinitionRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m SecurityDefinitionRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m SecurityDefinitionRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m SecurityDefinitionRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m SecurityDefinitionRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m SecurityDefinitionRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m SecurityDefinitionRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -488,13 +489,13 @@ func (m SecurityDefinitionRequest) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m SecurityDefinitionRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m SecurityDefinitionRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m SecurityDefinitionRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m SecurityDefinitionRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -523,8 +524,8 @@ func (m SecurityDefinitionRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m SecurityDefinitionRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m SecurityDefinitionRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -538,8 +539,8 @@ func (m SecurityDefinitionRequest) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m SecurityDefinitionRequest) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m SecurityDefinitionRequest) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -558,13 +559,13 @@ func (m SecurityDefinitionRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m SecurityDefinitionRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m SecurityDefinitionRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m SecurityDefinitionRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m SecurityDefinitionRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -613,23 +614,23 @@ func (m SecurityDefinitionRequest) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m SecurityDefinitionRequest) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m SecurityDefinitionRequest) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m SecurityDefinitionRequest) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m SecurityDefinitionRequest) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m SecurityDefinitionRequest) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m SecurityDefinitionRequest) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m SecurityDefinitionRequest) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m SecurityDefinitionRequest) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -643,8 +644,8 @@ func (m SecurityDefinitionRequest) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m SecurityDefinitionRequest) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m SecurityDefinitionRequest) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2191,13 +2192,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2231,8 +2232,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2246,13 +2247,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2291,8 +2292,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2336,13 +2337,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2361,8 +2362,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2371,8 +2372,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3144,13 +3145,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3184,8 +3185,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3199,13 +3200,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3259,38 +3260,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3299,8 +3300,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3309,8 +3310,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3329,8 +3330,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3344,13 +3345,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3374,8 +3375,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3384,8 +3385,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3409,23 +3410,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4535,8 +4536,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4851,13 +4852,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -4866,8 +4867,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/securitydefinitionupdatereport/SecurityDefinitionUpdateReport.generated.go b/fix50sp2/securitydefinitionupdatereport/SecurityDefinitionUpdateReport.generated.go index bda86d270..f469d0689 100644 --- a/fix50sp2/securitydefinitionupdatereport/SecurityDefinitionUpdateReport.generated.go +++ b/fix50sp2/securitydefinitionupdatereport/SecurityDefinitionUpdateReport.generated.go @@ -1,6 +1,7 @@ package securitydefinitionupdatereport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -121,8 +122,8 @@ func (m SecurityDefinitionUpdateReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityDefinitionUpdateReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityDefinitionUpdateReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -136,8 +137,8 @@ func (m SecurityDefinitionUpdateReport) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m SecurityDefinitionUpdateReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m SecurityDefinitionUpdateReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -156,8 +157,8 @@ func (m SecurityDefinitionUpdateReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityDefinitionUpdateReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityDefinitionUpdateReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -176,18 +177,18 @@ func (m SecurityDefinitionUpdateReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityDefinitionUpdateReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityDefinitionUpdateReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityDefinitionUpdateReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityDefinitionUpdateReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityDefinitionUpdateReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityDefinitionUpdateReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetNoStipulations sets NoStipulations, Tag 232 @@ -201,8 +202,8 @@ func (m SecurityDefinitionUpdateReport) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m SecurityDefinitionUpdateReport) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m SecurityDefinitionUpdateReport) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -316,8 +317,8 @@ func (m SecurityDefinitionUpdateReport) SetNoLegs(f NoLegsRepeatingGroup) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m SecurityDefinitionUpdateReport) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m SecurityDefinitionUpdateReport) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -346,8 +347,8 @@ func (m SecurityDefinitionUpdateReport) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m SecurityDefinitionUpdateReport) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m SecurityDefinitionUpdateReport) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -391,8 +392,8 @@ func (m SecurityDefinitionUpdateReport) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m SecurityDefinitionUpdateReport) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m SecurityDefinitionUpdateReport) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -441,18 +442,18 @@ func (m SecurityDefinitionUpdateReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m SecurityDefinitionUpdateReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m SecurityDefinitionUpdateReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m SecurityDefinitionUpdateReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m SecurityDefinitionUpdateReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m SecurityDefinitionUpdateReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m SecurityDefinitionUpdateReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -496,13 +497,13 @@ func (m SecurityDefinitionUpdateReport) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m SecurityDefinitionUpdateReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m SecurityDefinitionUpdateReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m SecurityDefinitionUpdateReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m SecurityDefinitionUpdateReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -541,8 +542,8 @@ func (m SecurityDefinitionUpdateReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m SecurityDefinitionUpdateReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m SecurityDefinitionUpdateReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -556,8 +557,8 @@ func (m SecurityDefinitionUpdateReport) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m SecurityDefinitionUpdateReport) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m SecurityDefinitionUpdateReport) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -576,13 +577,13 @@ func (m SecurityDefinitionUpdateReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m SecurityDefinitionUpdateReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m SecurityDefinitionUpdateReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m SecurityDefinitionUpdateReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m SecurityDefinitionUpdateReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -636,23 +637,23 @@ func (m SecurityDefinitionUpdateReport) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m SecurityDefinitionUpdateReport) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m SecurityDefinitionUpdateReport) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m SecurityDefinitionUpdateReport) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m SecurityDefinitionUpdateReport) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m SecurityDefinitionUpdateReport) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m SecurityDefinitionUpdateReport) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m SecurityDefinitionUpdateReport) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m SecurityDefinitionUpdateReport) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -666,8 +667,8 @@ func (m SecurityDefinitionUpdateReport) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m SecurityDefinitionUpdateReport) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m SecurityDefinitionUpdateReport) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2270,13 +2271,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2310,8 +2311,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2325,13 +2326,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2370,8 +2371,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2415,13 +2416,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2440,8 +2441,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2450,8 +2451,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3223,13 +3224,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3263,8 +3264,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3278,13 +3279,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3338,38 +3339,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3378,8 +3379,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3388,8 +3389,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3408,8 +3409,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3423,13 +3424,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3453,8 +3454,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3463,8 +3464,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3488,23 +3489,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4614,8 +4615,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4950,18 +4951,18 @@ func (m NoMarketSegments) SetPriceLimitType(v int) { } //SetLowLimitPrice sets LowLimitPrice, Tag 1148 -func (m NoMarketSegments) SetLowLimitPrice(v float64) { - m.Set(field.NewLowLimitPrice(v)) +func (m NoMarketSegments) SetLowLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLowLimitPrice(value, scale)) } //SetHighLimitPrice sets HighLimitPrice, Tag 1149 -func (m NoMarketSegments) SetHighLimitPrice(v float64) { - m.Set(field.NewHighLimitPrice(v)) +func (m NoMarketSegments) SetHighLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewHighLimitPrice(value, scale)) } //SetTradingReferencePrice sets TradingReferencePrice, Tag 1150 -func (m NoMarketSegments) SetTradingReferencePrice(v float64) { - m.Set(field.NewTradingReferencePrice(v)) +func (m NoMarketSegments) SetTradingReferencePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTradingReferencePrice(value, scale)) } //SetExpirationCycle sets ExpirationCycle, Tag 827 @@ -4970,18 +4971,18 @@ func (m NoMarketSegments) SetExpirationCycle(v int) { } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m NoMarketSegments) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m NoMarketSegments) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetMaxTradeVol sets MaxTradeVol, Tag 1140 -func (m NoMarketSegments) SetMaxTradeVol(v float64) { - m.Set(field.NewMaxTradeVol(v)) +func (m NoMarketSegments) SetMaxTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxTradeVol(value, scale)) } //SetMaxPriceVariation sets MaxPriceVariation, Tag 1143 -func (m NoMarketSegments) SetMaxPriceVariation(v float64) { - m.Set(field.NewMaxPriceVariation(v)) +func (m NoMarketSegments) SetMaxPriceVariation(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxPriceVariation(value, scale)) } //SetImpliedMarketIndicator sets ImpliedMarketIndicator, Tag 1144 @@ -4995,8 +4996,8 @@ func (m NoMarketSegments) SetTradingCurrency(v string) { } //SetRoundLot sets RoundLot, Tag 561 -func (m NoMarketSegments) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m NoMarketSegments) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMultilegModel sets MultilegModel, Tag 1377 @@ -5271,18 +5272,18 @@ type NoTickRules struct { } //SetStartTickPriceRange sets StartTickPriceRange, Tag 1206 -func (m NoTickRules) SetStartTickPriceRange(v float64) { - m.Set(field.NewStartTickPriceRange(v)) +func (m NoTickRules) SetStartTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartTickPriceRange(value, scale)) } //SetEndTickPriceRange sets EndTickPriceRange, Tag 1207 -func (m NoTickRules) SetEndTickPriceRange(v float64) { - m.Set(field.NewEndTickPriceRange(v)) +func (m NoTickRules) SetEndTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndTickPriceRange(value, scale)) } //SetTickIncrement sets TickIncrement, Tag 1208 -func (m NoTickRules) SetTickIncrement(v float64) { - m.Set(field.NewTickIncrement(v)) +func (m NoTickRules) SetTickIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewTickIncrement(value, scale)) } //SetTickRuleType sets TickRuleType, Tag 1209 @@ -5368,8 +5369,8 @@ func (m NoLotTypeRules) SetLotType(v string) { } //SetMinLotSize sets MinLotSize, Tag 1231 -func (m NoLotTypeRules) SetMinLotSize(v float64) { - m.Set(field.NewMinLotSize(v)) +func (m NoLotTypeRules) SetMinLotSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinLotSize(value, scale)) } //GetLotType gets LotType, Tag 1093 @@ -5901,18 +5902,18 @@ func (m NoStrikeRules) SetStrikeRuleID(v string) { } //SetStartStrikePxRange sets StartStrikePxRange, Tag 1202 -func (m NoStrikeRules) SetStartStrikePxRange(v float64) { - m.Set(field.NewStartStrikePxRange(v)) +func (m NoStrikeRules) SetStartStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartStrikePxRange(value, scale)) } //SetEndStrikePxRange sets EndStrikePxRange, Tag 1203 -func (m NoStrikeRules) SetEndStrikePxRange(v float64) { - m.Set(field.NewEndStrikePxRange(v)) +func (m NoStrikeRules) SetEndStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndStrikePxRange(value, scale)) } //SetStrikeIncrement sets StrikeIncrement, Tag 1204 -func (m NoStrikeRules) SetStrikeIncrement(v float64) { - m.Set(field.NewStrikeIncrement(v)) +func (m NoStrikeRules) SetStrikeIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeIncrement(value, scale)) } //SetStrikeExerciseStyle sets StrikeExerciseStyle, Tag 1304 @@ -6173,13 +6174,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -6188,8 +6189,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/securitylist/SecurityList.generated.go b/fix50sp2/securitylist/SecurityList.generated.go index 556e3fd3f..d31672146 100644 --- a/fix50sp2/securitylist/SecurityList.generated.go +++ b/fix50sp2/securitylist/SecurityList.generated.go @@ -1,6 +1,7 @@ package securitylist import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -494,13 +495,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -534,8 +535,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -549,13 +550,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -644,18 +645,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -694,13 +695,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -729,8 +730,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -744,8 +745,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NoRelatedSym) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -759,13 +760,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -809,23 +810,23 @@ func (m NoRelatedSym) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NoRelatedSym) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NoRelatedSym) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NoRelatedSym) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NoRelatedSym) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NoRelatedSym) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -839,8 +840,8 @@ func (m NoRelatedSym) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -864,8 +865,8 @@ func (m NoRelatedSym) SetDeliveryForm(v int) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m NoRelatedSym) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m NoRelatedSym) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -914,8 +915,8 @@ func (m NoRelatedSym) SetDeliveryType(v int) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NoRelatedSym) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NoRelatedSym) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetNoUnderlyings sets NoUnderlyings, Tag 711 @@ -939,8 +940,8 @@ func (m NoRelatedSym) SetNoLegs(f NoLegsRepeatingGroup) { } //SetSpread sets Spread, Tag 218 -func (m NoRelatedSym) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoRelatedSym) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -959,8 +960,8 @@ func (m NoRelatedSym) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoRelatedSym) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoRelatedSym) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -984,8 +985,8 @@ func (m NoRelatedSym) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoRelatedSym) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoRelatedSym) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -999,8 +1000,8 @@ func (m NoRelatedSym) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoRelatedSym) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoRelatedSym) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -1039,18 +1040,18 @@ func (m NoRelatedSym) SetPriceLimitType(v int) { } //SetLowLimitPrice sets LowLimitPrice, Tag 1148 -func (m NoRelatedSym) SetLowLimitPrice(v float64) { - m.Set(field.NewLowLimitPrice(v)) +func (m NoRelatedSym) SetLowLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLowLimitPrice(value, scale)) } //SetHighLimitPrice sets HighLimitPrice, Tag 1149 -func (m NoRelatedSym) SetHighLimitPrice(v float64) { - m.Set(field.NewHighLimitPrice(v)) +func (m NoRelatedSym) SetHighLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewHighLimitPrice(value, scale)) } //SetTradingReferencePrice sets TradingReferencePrice, Tag 1150 -func (m NoRelatedSym) SetTradingReferencePrice(v float64) { - m.Set(field.NewTradingReferencePrice(v)) +func (m NoRelatedSym) SetTradingReferencePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTradingReferencePrice(value, scale)) } //SetExpirationCycle sets ExpirationCycle, Tag 827 @@ -1059,18 +1060,18 @@ func (m NoRelatedSym) SetExpirationCycle(v int) { } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m NoRelatedSym) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m NoRelatedSym) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetMaxTradeVol sets MaxTradeVol, Tag 1140 -func (m NoRelatedSym) SetMaxTradeVol(v float64) { - m.Set(field.NewMaxTradeVol(v)) +func (m NoRelatedSym) SetMaxTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxTradeVol(value, scale)) } //SetMaxPriceVariation sets MaxPriceVariation, Tag 1143 -func (m NoRelatedSym) SetMaxPriceVariation(v float64) { - m.Set(field.NewMaxPriceVariation(v)) +func (m NoRelatedSym) SetMaxPriceVariation(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxPriceVariation(value, scale)) } //SetImpliedMarketIndicator sets ImpliedMarketIndicator, Tag 1144 @@ -1084,8 +1085,8 @@ func (m NoRelatedSym) SetTradingCurrency(v string) { } //SetRoundLot sets RoundLot, Tag 561 -func (m NoRelatedSym) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m NoRelatedSym) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMultilegModel sets MultilegModel, Tag 1377 @@ -2763,8 +2764,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -3019,13 +3020,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -3034,8 +3035,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 @@ -3443,13 +3444,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3483,8 +3484,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3498,13 +3499,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3558,38 +3559,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3598,8 +3599,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3608,8 +3609,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3628,8 +3629,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3643,13 +3644,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3673,8 +3674,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3683,8 +3684,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3708,23 +3709,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4959,13 +4960,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -4999,8 +5000,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -5014,13 +5015,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -5059,8 +5060,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -5104,13 +5105,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -5129,8 +5130,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -5139,8 +5140,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -5184,8 +5185,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 @@ -6026,18 +6027,18 @@ type NoTickRules struct { } //SetStartTickPriceRange sets StartTickPriceRange, Tag 1206 -func (m NoTickRules) SetStartTickPriceRange(v float64) { - m.Set(field.NewStartTickPriceRange(v)) +func (m NoTickRules) SetStartTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartTickPriceRange(value, scale)) } //SetEndTickPriceRange sets EndTickPriceRange, Tag 1207 -func (m NoTickRules) SetEndTickPriceRange(v float64) { - m.Set(field.NewEndTickPriceRange(v)) +func (m NoTickRules) SetEndTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndTickPriceRange(value, scale)) } //SetTickIncrement sets TickIncrement, Tag 1208 -func (m NoTickRules) SetTickIncrement(v float64) { - m.Set(field.NewTickIncrement(v)) +func (m NoTickRules) SetTickIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewTickIncrement(value, scale)) } //SetTickRuleType sets TickRuleType, Tag 1209 @@ -6123,8 +6124,8 @@ func (m NoLotTypeRules) SetLotType(v string) { } //SetMinLotSize sets MinLotSize, Tag 1231 -func (m NoLotTypeRules) SetMinLotSize(v float64) { - m.Set(field.NewMinLotSize(v)) +func (m NoLotTypeRules) SetMinLotSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinLotSize(value, scale)) } //GetLotType gets LotType, Tag 1093 @@ -6656,18 +6657,18 @@ func (m NoStrikeRules) SetStrikeRuleID(v string) { } //SetStartStrikePxRange sets StartStrikePxRange, Tag 1202 -func (m NoStrikeRules) SetStartStrikePxRange(v float64) { - m.Set(field.NewStartStrikePxRange(v)) +func (m NoStrikeRules) SetStartStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartStrikePxRange(value, scale)) } //SetEndStrikePxRange sets EndStrikePxRange, Tag 1203 -func (m NoStrikeRules) SetEndStrikePxRange(v float64) { - m.Set(field.NewEndStrikePxRange(v)) +func (m NoStrikeRules) SetEndStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndStrikePxRange(value, scale)) } //SetStrikeIncrement sets StrikeIncrement, Tag 1204 -func (m NoStrikeRules) SetStrikeIncrement(v float64) { - m.Set(field.NewStrikeIncrement(v)) +func (m NoStrikeRules) SetStrikeIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeIncrement(value, scale)) } //SetStrikeExerciseStyle sets StrikeExerciseStyle, Tag 1304 diff --git a/fix50sp2/securitylistrequest/SecurityListRequest.generated.go b/fix50sp2/securitylistrequest/SecurityListRequest.generated.go index 3540f4a9a..bed72b387 100644 --- a/fix50sp2/securitylistrequest/SecurityListRequest.generated.go +++ b/fix50sp2/securitylistrequest/SecurityListRequest.generated.go @@ -1,6 +1,7 @@ package securitylistrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -118,8 +119,8 @@ func (m SecurityListRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityListRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityListRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -133,8 +134,8 @@ func (m SecurityListRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityListRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityListRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -153,18 +154,18 @@ func (m SecurityListRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityListRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityListRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityListRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityListRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityListRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityListRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -318,8 +319,8 @@ func (m SecurityListRequest) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m SecurityListRequest) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m SecurityListRequest) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -348,8 +349,8 @@ func (m SecurityListRequest) SetCPRegType(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m SecurityListRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m SecurityListRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -403,18 +404,18 @@ func (m SecurityListRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m SecurityListRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m SecurityListRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m SecurityListRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m SecurityListRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m SecurityListRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m SecurityListRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -453,13 +454,13 @@ func (m SecurityListRequest) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m SecurityListRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m SecurityListRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m SecurityListRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m SecurityListRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -488,8 +489,8 @@ func (m SecurityListRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m SecurityListRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m SecurityListRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -503,8 +504,8 @@ func (m SecurityListRequest) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m SecurityListRequest) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m SecurityListRequest) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -523,13 +524,13 @@ func (m SecurityListRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m SecurityListRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m SecurityListRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m SecurityListRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m SecurityListRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -578,23 +579,23 @@ func (m SecurityListRequest) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m SecurityListRequest) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m SecurityListRequest) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m SecurityListRequest) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m SecurityListRequest) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m SecurityListRequest) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m SecurityListRequest) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m SecurityListRequest) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m SecurityListRequest) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetSecurityListID sets SecurityListID, Tag 1465 @@ -623,8 +624,8 @@ func (m SecurityListRequest) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m SecurityListRequest) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m SecurityListRequest) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2066,13 +2067,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2106,8 +2107,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2121,13 +2122,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2166,8 +2167,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2211,13 +2212,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2236,8 +2237,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2246,8 +2247,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3019,13 +3020,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3059,8 +3060,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3074,13 +3075,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3134,38 +3135,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3174,8 +3175,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3184,8 +3185,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3204,8 +3205,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3219,13 +3220,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3249,8 +3250,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3259,8 +3260,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3284,23 +3285,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4410,8 +4411,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4726,13 +4727,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -4741,8 +4742,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/securitylistupdatereport/SecurityListUpdateReport.generated.go b/fix50sp2/securitylistupdatereport/SecurityListUpdateReport.generated.go index 049a2f4de..41a1d99c2 100644 --- a/fix50sp2/securitylistupdatereport/SecurityListUpdateReport.generated.go +++ b/fix50sp2/securitylistupdatereport/SecurityListUpdateReport.generated.go @@ -1,6 +1,7 @@ package securitylistupdatereport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -526,13 +527,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -566,8 +567,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -581,13 +582,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -676,18 +677,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -726,13 +727,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -761,8 +762,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -776,8 +777,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NoRelatedSym) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -791,13 +792,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -841,23 +842,23 @@ func (m NoRelatedSym) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NoRelatedSym) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NoRelatedSym) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NoRelatedSym) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NoRelatedSym) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NoRelatedSym) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -871,8 +872,8 @@ func (m NoRelatedSym) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -896,8 +897,8 @@ func (m NoRelatedSym) SetDeliveryForm(v int) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m NoRelatedSym) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m NoRelatedSym) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -946,8 +947,8 @@ func (m NoRelatedSym) SetDeliveryType(v int) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m NoRelatedSym) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m NoRelatedSym) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetNoLegs sets NoLegs, Tag 555 @@ -956,8 +957,8 @@ func (m NoRelatedSym) SetNoLegs(f NoLegsRepeatingGroup) { } //SetSpread sets Spread, Tag 218 -func (m NoRelatedSym) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m NoRelatedSym) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -976,8 +977,8 @@ func (m NoRelatedSym) SetBenchmarkCurvePoint(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m NoRelatedSym) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m NoRelatedSym) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -1001,8 +1002,8 @@ func (m NoRelatedSym) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m NoRelatedSym) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m NoRelatedSym) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetYieldCalcDate sets YieldCalcDate, Tag 701 @@ -1016,8 +1017,8 @@ func (m NoRelatedSym) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m NoRelatedSym) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m NoRelatedSym) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -1076,18 +1077,18 @@ func (m NoRelatedSym) SetPriceLimitType(v int) { } //SetLowLimitPrice sets LowLimitPrice, Tag 1148 -func (m NoRelatedSym) SetLowLimitPrice(v float64) { - m.Set(field.NewLowLimitPrice(v)) +func (m NoRelatedSym) SetLowLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLowLimitPrice(value, scale)) } //SetHighLimitPrice sets HighLimitPrice, Tag 1149 -func (m NoRelatedSym) SetHighLimitPrice(v float64) { - m.Set(field.NewHighLimitPrice(v)) +func (m NoRelatedSym) SetHighLimitPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewHighLimitPrice(value, scale)) } //SetTradingReferencePrice sets TradingReferencePrice, Tag 1150 -func (m NoRelatedSym) SetTradingReferencePrice(v float64) { - m.Set(field.NewTradingReferencePrice(v)) +func (m NoRelatedSym) SetTradingReferencePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewTradingReferencePrice(value, scale)) } //SetExpirationCycle sets ExpirationCycle, Tag 827 @@ -1096,18 +1097,18 @@ func (m NoRelatedSym) SetExpirationCycle(v int) { } //SetMinTradeVol sets MinTradeVol, Tag 562 -func (m NoRelatedSym) SetMinTradeVol(v float64) { - m.Set(field.NewMinTradeVol(v)) +func (m NoRelatedSym) SetMinTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMinTradeVol(value, scale)) } //SetMaxTradeVol sets MaxTradeVol, Tag 1140 -func (m NoRelatedSym) SetMaxTradeVol(v float64) { - m.Set(field.NewMaxTradeVol(v)) +func (m NoRelatedSym) SetMaxTradeVol(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxTradeVol(value, scale)) } //SetMaxPriceVariation sets MaxPriceVariation, Tag 1143 -func (m NoRelatedSym) SetMaxPriceVariation(v float64) { - m.Set(field.NewMaxPriceVariation(v)) +func (m NoRelatedSym) SetMaxPriceVariation(value decimal.Decimal, scale int32) { + m.Set(field.NewMaxPriceVariation(value, scale)) } //SetImpliedMarketIndicator sets ImpliedMarketIndicator, Tag 1144 @@ -1121,8 +1122,8 @@ func (m NoRelatedSym) SetTradingCurrency(v string) { } //SetRoundLot sets RoundLot, Tag 561 -func (m NoRelatedSym) SetRoundLot(v float64) { - m.Set(field.NewRoundLot(v)) +func (m NoRelatedSym) SetRoundLot(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundLot(value, scale)) } //SetMultilegModel sets MultilegModel, Tag 1377 @@ -2811,8 +2812,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -3067,13 +3068,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -3082,8 +3083,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 @@ -3491,13 +3492,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -3531,8 +3532,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -3546,13 +3547,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -3591,8 +3592,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -3636,13 +3637,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -3661,8 +3662,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -3671,8 +3672,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3716,8 +3717,8 @@ func (m NoLegs) SetLegBenchmarkCurvePoint(v string) { } //SetLegBenchmarkPrice sets LegBenchmarkPrice, Tag 679 -func (m NoLegs) SetLegBenchmarkPrice(v float64) { - m.Set(field.NewLegBenchmarkPrice(v)) +func (m NoLegs) SetLegBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegBenchmarkPrice(value, scale)) } //SetLegBenchmarkPriceType sets LegBenchmarkPriceType, Tag 680 @@ -4633,13 +4634,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -4673,8 +4674,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -4688,13 +4689,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -4748,38 +4749,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -4788,8 +4789,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -4798,8 +4799,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -4818,8 +4819,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -4833,13 +4834,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -4863,8 +4864,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -4873,8 +4874,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -4898,23 +4899,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -6074,18 +6075,18 @@ type NoTickRules struct { } //SetStartTickPriceRange sets StartTickPriceRange, Tag 1206 -func (m NoTickRules) SetStartTickPriceRange(v float64) { - m.Set(field.NewStartTickPriceRange(v)) +func (m NoTickRules) SetStartTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartTickPriceRange(value, scale)) } //SetEndTickPriceRange sets EndTickPriceRange, Tag 1207 -func (m NoTickRules) SetEndTickPriceRange(v float64) { - m.Set(field.NewEndTickPriceRange(v)) +func (m NoTickRules) SetEndTickPriceRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndTickPriceRange(value, scale)) } //SetTickIncrement sets TickIncrement, Tag 1208 -func (m NoTickRules) SetTickIncrement(v float64) { - m.Set(field.NewTickIncrement(v)) +func (m NoTickRules) SetTickIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewTickIncrement(value, scale)) } //SetTickRuleType sets TickRuleType, Tag 1209 @@ -6171,8 +6172,8 @@ func (m NoLotTypeRules) SetLotType(v string) { } //SetMinLotSize sets MinLotSize, Tag 1231 -func (m NoLotTypeRules) SetMinLotSize(v float64) { - m.Set(field.NewMinLotSize(v)) +func (m NoLotTypeRules) SetMinLotSize(value decimal.Decimal, scale int32) { + m.Set(field.NewMinLotSize(value, scale)) } //GetLotType gets LotType, Tag 1093 @@ -6704,18 +6705,18 @@ func (m NoStrikeRules) SetStrikeRuleID(v string) { } //SetStartStrikePxRange sets StartStrikePxRange, Tag 1202 -func (m NoStrikeRules) SetStartStrikePxRange(v float64) { - m.Set(field.NewStartStrikePxRange(v)) +func (m NoStrikeRules) SetStartStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewStartStrikePxRange(value, scale)) } //SetEndStrikePxRange sets EndStrikePxRange, Tag 1203 -func (m NoStrikeRules) SetEndStrikePxRange(v float64) { - m.Set(field.NewEndStrikePxRange(v)) +func (m NoStrikeRules) SetEndStrikePxRange(value decimal.Decimal, scale int32) { + m.Set(field.NewEndStrikePxRange(value, scale)) } //SetStrikeIncrement sets StrikeIncrement, Tag 1204 -func (m NoStrikeRules) SetStrikeIncrement(v float64) { - m.Set(field.NewStrikeIncrement(v)) +func (m NoStrikeRules) SetStrikeIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeIncrement(value, scale)) } //SetStrikeExerciseStyle sets StrikeExerciseStyle, Tag 1304 diff --git a/fix50sp2/securitystatus/SecurityStatus.generated.go b/fix50sp2/securitystatus/SecurityStatus.generated.go index d9f48984c..7e336abae 100644 --- a/fix50sp2/securitystatus/SecurityStatus.generated.go +++ b/fix50sp2/securitystatus/SecurityStatus.generated.go @@ -1,6 +1,7 @@ package securitystatus import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -71,8 +72,8 @@ func (m SecurityStatus) SetSecurityIDSource(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m SecurityStatus) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m SecurityStatus) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -126,8 +127,8 @@ func (m SecurityStatus) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityStatus) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityStatus) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -141,8 +142,8 @@ func (m SecurityStatus) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityStatus) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityStatus) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -161,18 +162,18 @@ func (m SecurityStatus) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityStatus) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityStatus) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityStatus) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityStatus) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityStatus) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityStatus) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -236,23 +237,23 @@ func (m SecurityStatus) SetDueToRelated(v bool) { } //SetBuyVolume sets BuyVolume, Tag 330 -func (m SecurityStatus) SetBuyVolume(v float64) { - m.Set(field.NewBuyVolume(v)) +func (m SecurityStatus) SetBuyVolume(value decimal.Decimal, scale int32) { + m.Set(field.NewBuyVolume(value, scale)) } //SetSellVolume sets SellVolume, Tag 331 -func (m SecurityStatus) SetSellVolume(v float64) { - m.Set(field.NewSellVolume(v)) +func (m SecurityStatus) SetSellVolume(value decimal.Decimal, scale int32) { + m.Set(field.NewSellVolume(value, scale)) } //SetHighPx sets HighPx, Tag 332 -func (m SecurityStatus) SetHighPx(v float64) { - m.Set(field.NewHighPx(v)) +func (m SecurityStatus) SetHighPx(value decimal.Decimal, scale int32) { + m.Set(field.NewHighPx(value, scale)) } //SetLowPx sets LowPx, Tag 333 -func (m SecurityStatus) SetLowPx(v float64) { - m.Set(field.NewLowPx(v)) +func (m SecurityStatus) SetLowPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLowPx(value, scale)) } //SetAdjustment sets Adjustment, Tag 334 @@ -376,8 +377,8 @@ func (m SecurityStatus) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m SecurityStatus) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m SecurityStatus) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -421,18 +422,18 @@ func (m SecurityStatus) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m SecurityStatus) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m SecurityStatus) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m SecurityStatus) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m SecurityStatus) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m SecurityStatus) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m SecurityStatus) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -466,8 +467,8 @@ func (m SecurityStatus) SetMDBookType(v int) { } //SetFirstPx sets FirstPx, Tag 1025 -func (m SecurityStatus) SetFirstPx(v float64) { - m.Set(field.NewFirstPx(v)) +func (m SecurityStatus) SetFirstPx(value decimal.Decimal, scale int32) { + m.Set(field.NewFirstPx(value, scale)) } //SetInstrmtAssignmentMethod sets InstrmtAssignmentMethod, Tag 1049 @@ -481,13 +482,13 @@ func (m SecurityStatus) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m SecurityStatus) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m SecurityStatus) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m SecurityStatus) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m SecurityStatus) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -531,8 +532,8 @@ func (m SecurityStatus) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m SecurityStatus) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m SecurityStatus) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -546,8 +547,8 @@ func (m SecurityStatus) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m SecurityStatus) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m SecurityStatus) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -566,13 +567,13 @@ func (m SecurityStatus) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m SecurityStatus) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m SecurityStatus) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m SecurityStatus) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m SecurityStatus) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -631,23 +632,23 @@ func (m SecurityStatus) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m SecurityStatus) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m SecurityStatus) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m SecurityStatus) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m SecurityStatus) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m SecurityStatus) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m SecurityStatus) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m SecurityStatus) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m SecurityStatus) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -661,8 +662,8 @@ func (m SecurityStatus) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m SecurityStatus) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m SecurityStatus) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2192,13 +2193,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2232,8 +2233,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2247,13 +2248,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2292,8 +2293,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2337,13 +2338,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2362,8 +2363,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2372,8 +2373,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3145,13 +3146,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3185,8 +3186,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3200,13 +3201,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3260,38 +3261,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3300,8 +3301,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3310,8 +3311,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3330,8 +3331,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3345,13 +3346,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3375,8 +3376,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3385,8 +3386,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3410,23 +3411,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4536,8 +4537,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4852,13 +4853,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -4867,8 +4868,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/securitystatusrequest/SecurityStatusRequest.generated.go b/fix50sp2/securitystatusrequest/SecurityStatusRequest.generated.go index 018624f1c..3b0288359 100644 --- a/fix50sp2/securitystatusrequest/SecurityStatusRequest.generated.go +++ b/fix50sp2/securitystatusrequest/SecurityStatusRequest.generated.go @@ -1,6 +1,7 @@ package securitystatusrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -113,8 +114,8 @@ func (m SecurityStatusRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m SecurityStatusRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m SecurityStatusRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -128,8 +129,8 @@ func (m SecurityStatusRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m SecurityStatusRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m SecurityStatusRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -148,18 +149,18 @@ func (m SecurityStatusRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m SecurityStatusRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m SecurityStatusRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m SecurityStatusRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m SecurityStatusRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m SecurityStatusRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m SecurityStatusRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -293,8 +294,8 @@ func (m SecurityStatusRequest) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m SecurityStatusRequest) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m SecurityStatusRequest) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -338,18 +339,18 @@ func (m SecurityStatusRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m SecurityStatusRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m SecurityStatusRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m SecurityStatusRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m SecurityStatusRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m SecurityStatusRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m SecurityStatusRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -388,13 +389,13 @@ func (m SecurityStatusRequest) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m SecurityStatusRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m SecurityStatusRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m SecurityStatusRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m SecurityStatusRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -423,8 +424,8 @@ func (m SecurityStatusRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m SecurityStatusRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m SecurityStatusRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -438,8 +439,8 @@ func (m SecurityStatusRequest) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m SecurityStatusRequest) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m SecurityStatusRequest) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -458,13 +459,13 @@ func (m SecurityStatusRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m SecurityStatusRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m SecurityStatusRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m SecurityStatusRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m SecurityStatusRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -513,23 +514,23 @@ func (m SecurityStatusRequest) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m SecurityStatusRequest) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m SecurityStatusRequest) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m SecurityStatusRequest) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m SecurityStatusRequest) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m SecurityStatusRequest) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m SecurityStatusRequest) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m SecurityStatusRequest) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m SecurityStatusRequest) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -543,8 +544,8 @@ func (m SecurityStatusRequest) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m SecurityStatusRequest) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m SecurityStatusRequest) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -1810,13 +1811,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1850,8 +1851,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1865,13 +1866,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -1910,8 +1911,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -1955,13 +1956,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -1980,8 +1981,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -1990,8 +1991,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -2763,13 +2764,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2803,8 +2804,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2818,13 +2819,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2878,38 +2879,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -2918,8 +2919,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -2928,8 +2929,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -2948,8 +2949,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -2963,13 +2964,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -2993,8 +2994,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3003,8 +3004,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3028,23 +3029,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4154,8 +4155,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4470,13 +4471,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -4485,8 +4486,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/settlementobligationreport/SettlementObligationReport.generated.go b/fix50sp2/settlementobligationreport/SettlementObligationReport.generated.go index cfff4e01a..c52c2ec55 100644 --- a/fix50sp2/settlementobligationreport/SettlementObligationReport.generated.go +++ b/fix50sp2/settlementobligationreport/SettlementObligationReport.generated.go @@ -1,6 +1,7 @@ package settlementobligationreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -297,13 +298,13 @@ func (m NoSettlOblig) SetSettlObligRefID(v string) { } //SetCcyAmt sets CcyAmt, Tag 1157 -func (m NoSettlOblig) SetCcyAmt(v float64) { - m.Set(field.NewCcyAmt(v)) +func (m NoSettlOblig) SetCcyAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewCcyAmt(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoSettlOblig) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoSettlOblig) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -317,8 +318,8 @@ func (m NoSettlOblig) SetSettlCurrency(v string) { } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoSettlOblig) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoSettlOblig) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlDate sets SettlDate, Tag 64 @@ -402,13 +403,13 @@ func (m NoSettlOblig) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoSettlOblig) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoSettlOblig) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoSettlOblig) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoSettlOblig) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -442,8 +443,8 @@ func (m NoSettlOblig) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoSettlOblig) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoSettlOblig) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -457,13 +458,13 @@ func (m NoSettlOblig) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoSettlOblig) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoSettlOblig) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoSettlOblig) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoSettlOblig) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -552,18 +553,18 @@ func (m NoSettlOblig) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoSettlOblig) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoSettlOblig) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoSettlOblig) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoSettlOblig) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoSettlOblig) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoSettlOblig) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -602,13 +603,13 @@ func (m NoSettlOblig) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoSettlOblig) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoSettlOblig) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoSettlOblig) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoSettlOblig) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -637,8 +638,8 @@ func (m NoSettlOblig) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoSettlOblig) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoSettlOblig) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -652,8 +653,8 @@ func (m NoSettlOblig) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NoSettlOblig) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NoSettlOblig) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -667,13 +668,13 @@ func (m NoSettlOblig) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoSettlOblig) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoSettlOblig) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoSettlOblig) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoSettlOblig) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -717,23 +718,23 @@ func (m NoSettlOblig) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NoSettlOblig) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NoSettlOblig) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NoSettlOblig) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NoSettlOblig) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NoSettlOblig) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NoSettlOblig) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NoSettlOblig) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NoSettlOblig) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -747,8 +748,8 @@ func (m NoSettlOblig) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NoSettlOblig) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NoSettlOblig) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2006,8 +2007,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2262,13 +2263,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -2277,8 +2278,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/streamassignmentreport/StreamAssignmentReport.generated.go b/fix50sp2/streamassignmentreport/StreamAssignmentReport.generated.go index 26ecc9753..4a8344692 100644 --- a/fix50sp2/streamassignmentreport/StreamAssignmentReport.generated.go +++ b/fix50sp2/streamassignmentreport/StreamAssignmentReport.generated.go @@ -1,6 +1,7 @@ package streamassignmentreport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -399,13 +400,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -439,8 +440,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -454,13 +455,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -549,18 +550,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -599,13 +600,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -634,8 +635,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -649,8 +650,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NoRelatedSym) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -664,13 +665,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -714,23 +715,23 @@ func (m NoRelatedSym) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NoRelatedSym) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NoRelatedSym) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NoRelatedSym) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NoRelatedSym) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NoRelatedSym) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -744,8 +745,8 @@ func (m NoRelatedSym) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -1923,8 +1924,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2179,13 +2180,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -2194,8 +2195,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/streamassignmentrequest/StreamAssignmentRequest.generated.go b/fix50sp2/streamassignmentrequest/StreamAssignmentRequest.generated.go index 6fa4c80e1..5de50a7a8 100644 --- a/fix50sp2/streamassignmentrequest/StreamAssignmentRequest.generated.go +++ b/fix50sp2/streamassignmentrequest/StreamAssignmentRequest.generated.go @@ -1,6 +1,7 @@ package streamassignmentrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -384,13 +385,13 @@ func (m NoRelatedSym) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m NoRelatedSym) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m NoRelatedSym) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m NoRelatedSym) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m NoRelatedSym) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetCreditRating sets CreditRating, Tag 255 @@ -424,8 +425,8 @@ func (m NoRelatedSym) SetRedemptionDate(v string) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m NoRelatedSym) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetStrikeCurrency sets StrikeCurrency, Tag 947 @@ -439,13 +440,13 @@ func (m NoRelatedSym) SetOptAttribute(v string) { } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m NoRelatedSym) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetCouponRate sets CouponRate, Tag 223 -func (m NoRelatedSym) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetSecurityExchange sets SecurityExchange, Tag 207 @@ -534,18 +535,18 @@ func (m NoRelatedSym) SetInstrmtAssignmentMethod(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m NoRelatedSym) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m NoRelatedSym) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m NoRelatedSym) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m NoRelatedSym) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m NoRelatedSym) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m NoRelatedSym) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -584,13 +585,13 @@ func (m NoRelatedSym) SetSecurityGroup(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m NoRelatedSym) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m NoRelatedSym) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m NoRelatedSym) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityXMLLen sets SecurityXMLLen, Tag 1184 @@ -619,8 +620,8 @@ func (m NoRelatedSym) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m NoRelatedSym) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m NoRelatedSym) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -634,8 +635,8 @@ func (m NoRelatedSym) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m NoRelatedSym) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m NoRelatedSym) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -649,13 +650,13 @@ func (m NoRelatedSym) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m NoRelatedSym) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m NoRelatedSym) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m NoRelatedSym) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m NoRelatedSym) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetPutOrCall sets PutOrCall, Tag 201 @@ -699,23 +700,23 @@ func (m NoRelatedSym) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m NoRelatedSym) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m NoRelatedSym) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m NoRelatedSym) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m NoRelatedSym) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m NoRelatedSym) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m NoRelatedSym) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -729,8 +730,8 @@ func (m NoRelatedSym) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m NoRelatedSym) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -754,8 +755,8 @@ func (m NoRelatedSym) SetSettlType(v string) { } //SetMDEntrySize sets MDEntrySize, Tag 271 -func (m NoRelatedSym) SetMDEntrySize(v float64) { - m.Set(field.NewMDEntrySize(v)) +func (m NoRelatedSym) SetMDEntrySize(value decimal.Decimal, scale int32) { + m.Set(field.NewMDEntrySize(value, scale)) } //SetMDStreamID sets MDStreamID, Tag 1500 @@ -1844,8 +1845,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2100,13 +2101,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -2115,8 +2116,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/tradecapturereport/TradeCaptureReport.generated.go b/fix50sp2/tradecapturereport/TradeCaptureReport.generated.go index 3bb812abe..9db028563 100644 --- a/fix50sp2/tradecapturereport/TradeCaptureReport.generated.go +++ b/fix50sp2/tradecapturereport/TradeCaptureReport.generated.go @@ -1,6 +1,7 @@ package tradecapturereport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -63,8 +64,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m TradeCaptureReport) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m TradeCaptureReport) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -88,13 +89,13 @@ func (m TradeCaptureReport) SetLastMkt(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m TradeCaptureReport) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m TradeCaptureReport) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastQty sets LastQty, Tag 32 -func (m TradeCaptureReport) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m TradeCaptureReport) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -158,13 +159,13 @@ func (m TradeCaptureReport) SetSecurityType(v string) { } //SetLastSpotRate sets LastSpotRate, Tag 194 -func (m TradeCaptureReport) SetLastSpotRate(v float64) { - m.Set(field.NewLastSpotRate(v)) +func (m TradeCaptureReport) SetLastSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSpotRate(value, scale)) } //SetLastForwardPoints sets LastForwardPoints, Tag 195 -func (m TradeCaptureReport) SetLastForwardPoints(v float64) { - m.Set(field.NewLastForwardPoints(v)) +func (m TradeCaptureReport) SetLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastForwardPoints(value, scale)) } //SetMaturityMonthYear sets MaturityMonthYear, Tag 200 @@ -178,8 +179,8 @@ func (m TradeCaptureReport) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m TradeCaptureReport) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m TradeCaptureReport) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -193,8 +194,8 @@ func (m TradeCaptureReport) SetSecurityExchange(v string) { } //SetSpread sets Spread, Tag 218 -func (m TradeCaptureReport) SetSpread(v float64) { - m.Set(field.NewSpread(v)) +func (m TradeCaptureReport) SetSpread(value decimal.Decimal, scale int32) { + m.Set(field.NewSpread(value, scale)) } //SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220 @@ -213,8 +214,8 @@ func (m TradeCaptureReport) SetBenchmarkCurvePoint(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m TradeCaptureReport) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m TradeCaptureReport) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -233,18 +234,18 @@ func (m TradeCaptureReport) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m TradeCaptureReport) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m TradeCaptureReport) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m TradeCaptureReport) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m TradeCaptureReport) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m TradeCaptureReport) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m TradeCaptureReport) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetYieldType sets YieldType, Tag 235 @@ -253,8 +254,8 @@ func (m TradeCaptureReport) SetYieldType(v string) { } //SetYield sets Yield, Tag 236 -func (m TradeCaptureReport) SetYield(v float64) { - m.Set(field.NewYield(v)) +func (m TradeCaptureReport) SetYield(value decimal.Decimal, scale int32) { + m.Set(field.NewYield(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -308,8 +309,8 @@ func (m TradeCaptureReport) SetExecRestatementReason(v int) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m TradeCaptureReport) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m TradeCaptureReport) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -413,8 +414,8 @@ func (m TradeCaptureReport) SetMatchType(v string) { } //SetBenchmarkPrice sets BenchmarkPrice, Tag 662 -func (m TradeCaptureReport) SetBenchmarkPrice(v float64) { - m.Set(field.NewBenchmarkPrice(v)) +func (m TradeCaptureReport) SetBenchmarkPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewBenchmarkPrice(value, scale)) } //SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663 @@ -428,8 +429,8 @@ func (m TradeCaptureReport) SetContractSettlMonth(v string) { } //SetLastParPx sets LastParPx, Tag 669 -func (m TradeCaptureReport) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m TradeCaptureReport) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetPool sets Pool, Tag 691 @@ -443,8 +444,8 @@ func (m TradeCaptureReport) SetYieldRedemptionDate(v string) { } //SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697 -func (m TradeCaptureReport) SetYieldRedemptionPrice(v float64) { - m.Set(field.NewYieldRedemptionPrice(v)) +func (m TradeCaptureReport) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewYieldRedemptionPrice(value, scale)) } //SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698 @@ -628,8 +629,8 @@ func (m TradeCaptureReport) SetSecondaryTradeReportRefID(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m TradeCaptureReport) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m TradeCaptureReport) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetLastRptRequested sets LastRptRequested, Tag 912 @@ -693,18 +694,18 @@ func (m TradeCaptureReport) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m TradeCaptureReport) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m TradeCaptureReport) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m TradeCaptureReport) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m TradeCaptureReport) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m TradeCaptureReport) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m TradeCaptureReport) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -723,8 +724,8 @@ func (m TradeCaptureReport) SetUnderlyingSettlementDate(v string) { } //SetRndPx sets RndPx, Tag 991 -func (m TradeCaptureReport) SetRndPx(v float64) { - m.Set(field.NewRndPx(v)) +func (m TradeCaptureReport) SetRndPx(value decimal.Decimal, scale int32) { + m.Set(field.NewRndPx(value, scale)) } //SetTierCode sets TierCode, Tag 994 @@ -783,13 +784,13 @@ func (m TradeCaptureReport) SetInstrmtAssignmentMethod(v string) { } //SetCalculatedCcyLastQty sets CalculatedCcyLastQty, Tag 1056 -func (m TradeCaptureReport) SetCalculatedCcyLastQty(v float64) { - m.Set(field.NewCalculatedCcyLastQty(v)) +func (m TradeCaptureReport) SetCalculatedCcyLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCalculatedCcyLastQty(value, scale)) } //SetLastSwapPoints sets LastSwapPoints, Tag 1071 -func (m TradeCaptureReport) SetLastSwapPoints(v float64) { - m.Set(field.NewLastSwapPoints(v)) +func (m TradeCaptureReport) SetLastSwapPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSwapPoints(value, scale)) } //SetMaturityTime sets MaturityTime, Tag 1079 @@ -838,13 +839,13 @@ func (m TradeCaptureReport) SetReportedPxDiff(v bool) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m TradeCaptureReport) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m TradeCaptureReport) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m TradeCaptureReport) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m TradeCaptureReport) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -878,13 +879,13 @@ func (m TradeCaptureReport) SetSecurityXMLSchema(v string) { } //SetVolatility sets Volatility, Tag 1188 -func (m TradeCaptureReport) SetVolatility(v float64) { - m.Set(field.NewVolatility(v)) +func (m TradeCaptureReport) SetVolatility(value decimal.Decimal, scale int32) { + m.Set(field.NewVolatility(value, scale)) } //SetRiskFreeRate sets RiskFreeRate, Tag 1190 -func (m TradeCaptureReport) SetRiskFreeRate(v float64) { - m.Set(field.NewRiskFreeRate(v)) +func (m TradeCaptureReport) SetRiskFreeRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRiskFreeRate(value, scale)) } //SetPriceUnitOfMeasure sets PriceUnitOfMeasure, Tag 1191 @@ -893,8 +894,8 @@ func (m TradeCaptureReport) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m TradeCaptureReport) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m TradeCaptureReport) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -908,8 +909,8 @@ func (m TradeCaptureReport) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m TradeCaptureReport) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m TradeCaptureReport) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -928,13 +929,13 @@ func (m TradeCaptureReport) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m TradeCaptureReport) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m TradeCaptureReport) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m TradeCaptureReport) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m TradeCaptureReport) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -968,8 +969,8 @@ func (m TradeCaptureReport) SetRejectText(v string) { } //SetFeeMultiplier sets FeeMultiplier, Tag 1329 -func (m TradeCaptureReport) SetFeeMultiplier(v float64) { - m.Set(field.NewFeeMultiplier(v)) +func (m TradeCaptureReport) SetFeeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewFeeMultiplier(value, scale)) } //SetApplLastSeqNum sets ApplLastSeqNum, Tag 1350 @@ -983,13 +984,13 @@ func (m TradeCaptureReport) SetApplResendFlag(v bool) { } //SetDividendYield sets DividendYield, Tag 1380 -func (m TradeCaptureReport) SetDividendYield(v float64) { - m.Set(field.NewDividendYield(v)) +func (m TradeCaptureReport) SetDividendYield(value decimal.Decimal, scale int32) { + m.Set(field.NewDividendYield(value, scale)) } //SetCurrencyRatio sets CurrencyRatio, Tag 1382 -func (m TradeCaptureReport) SetCurrencyRatio(v float64) { - m.Set(field.NewCurrencyRatio(v)) +func (m TradeCaptureReport) SetCurrencyRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewCurrencyRatio(value, scale)) } //SetNoTrdRepIndicators sets NoTrdRepIndicators, Tag 1387 @@ -1028,23 +1029,23 @@ func (m TradeCaptureReport) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m TradeCaptureReport) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m TradeCaptureReport) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m TradeCaptureReport) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m TradeCaptureReport) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m TradeCaptureReport) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m TradeCaptureReport) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m TradeCaptureReport) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m TradeCaptureReport) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -1058,8 +1059,8 @@ func (m TradeCaptureReport) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m TradeCaptureReport) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m TradeCaptureReport) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -3467,8 +3468,8 @@ func (m NoSides) SetTimeBracket(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoSides) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoSides) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -3497,58 +3498,58 @@ func (m NoSides) SetExDate(v string) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m NoSides) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m NoSides) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m NoSides) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m NoSides) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m NoSides) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m NoSides) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m NoSides) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m NoSides) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m NoSides) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m NoSides) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m NoSides) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m NoSides) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m NoSides) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m NoSides) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m NoSides) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m NoSides) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetNetMoney sets NetMoney, Tag 118 -func (m NoSides) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m NoSides) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoSides) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoSides) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoSides) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoSides) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -3657,8 +3658,8 @@ func (m NoSides) SetNoSideTrdRegTS(f NoSideTrdRegTSRepeatingGroup) { } //SetSideGrossTradeAmt sets SideGrossTradeAmt, Tag 1072 -func (m NoSides) SetSideGrossTradeAmt(v float64) { - m.Set(field.NewSideGrossTradeAmt(v)) +func (m NoSides) SetSideGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSideGrossTradeAmt(value, scale)) } //SetAggressorIndicator sets AggressorIndicator, Tag 1057 @@ -3742,13 +3743,13 @@ func (m NoSides) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NoSides) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoSides) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetStopPx sets StopPx, Tag 99 -func (m NoSides) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NoSides) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExecInst sets ExecInst, Tag 18 @@ -3762,18 +3763,18 @@ func (m NoSides) SetOrdStatus(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoSides) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoSides) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoSides) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoSides) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoSides) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoSides) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -3782,18 +3783,18 @@ func (m NoSides) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoSides) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoSides) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetLeavesQty sets LeavesQty, Tag 151 -func (m NoSides) SetLeavesQty(v float64) { - m.Set(field.NewLeavesQty(v)) +func (m NoSides) SetLeavesQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLeavesQty(value, scale)) } //SetCumQty sets CumQty, Tag 14 -func (m NoSides) SetCumQty(v float64) { - m.Set(field.NewCumQty(v)) +func (m NoSides) SetCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCumQty(value, scale)) } //SetTimeInForce sets TimeInForce, Tag 59 @@ -3807,8 +3808,8 @@ func (m NoSides) SetExpireTime(v time.Time) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m NoSides) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m NoSides) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -3822,28 +3823,28 @@ func (m NoSides) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m NoSides) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m NoSides) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m NoSides) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m NoSides) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m NoSides) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m NoSides) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m NoSides) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m NoSides) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m NoSides) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m NoSides) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //SetOrderCapacity sets OrderCapacity, Tag 528 @@ -5266,8 +5267,8 @@ func (m NoContAmts) SetContAmtType(v int) { } //SetContAmtValue sets ContAmtValue, Tag 520 -func (m NoContAmts) SetContAmtValue(v float64) { - m.Set(field.NewContAmtValue(v)) +func (m NoContAmts) SetContAmtValue(value decimal.Decimal, scale int32) { + m.Set(field.NewContAmtValue(value, scale)) } //SetContAmtCurr sets ContAmtCurr, Tag 521 @@ -5397,8 +5398,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -5514,8 +5515,8 @@ func (m NoAllocs) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetAllocCustomerCapacity sets AllocCustomerCapacity, Tag 993 @@ -6219,13 +6220,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -6259,8 +6260,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -6274,13 +6275,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -6319,8 +6320,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -6364,13 +6365,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -6389,8 +6390,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -6399,8 +6400,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -6414,8 +6415,8 @@ func (m NoLegs) SetLegFlowScheduleType(v int) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -6459,8 +6460,8 @@ func (m NoLegs) SetLegSettlDate(v string) { } //SetLegLastPx sets LegLastPx, Tag 637 -func (m NoLegs) SetLegLastPx(v float64) { - m.Set(field.NewLegLastPx(v)) +func (m NoLegs) SetLegLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastPx(value, scale)) } //SetLegReportID sets LegReportID, Tag 990 @@ -6474,18 +6475,18 @@ func (m NoLegs) SetLegSettlCurrency(v string) { } //SetLegLastForwardPoints sets LegLastForwardPoints, Tag 1073 -func (m NoLegs) SetLegLastForwardPoints(v float64) { - m.Set(field.NewLegLastForwardPoints(v)) +func (m NoLegs) SetLegLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastForwardPoints(value, scale)) } //SetLegCalculatedCcyLastQty sets LegCalculatedCcyLastQty, Tag 1074 -func (m NoLegs) SetLegCalculatedCcyLastQty(v float64) { - m.Set(field.NewLegCalculatedCcyLastQty(v)) +func (m NoLegs) SetLegCalculatedCcyLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCalculatedCcyLastQty(value, scale)) } //SetLegGrossTradeAmt sets LegGrossTradeAmt, Tag 1075 -func (m NoLegs) SetLegGrossTradeAmt(v float64) { - m.Set(field.NewLegGrossTradeAmt(v)) +func (m NoLegs) SetLegGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewLegGrossTradeAmt(value, scale)) } //SetLegNumber sets LegNumber, Tag 1152 @@ -6499,18 +6500,18 @@ func (m NoLegs) SetNoOfLegUnderlyings(f NoOfLegUnderlyingsRepeatingGroup) { } //SetLegVolatility sets LegVolatility, Tag 1379 -func (m NoLegs) SetLegVolatility(v float64) { - m.Set(field.NewLegVolatility(v)) +func (m NoLegs) SetLegVolatility(value decimal.Decimal, scale int32) { + m.Set(field.NewLegVolatility(value, scale)) } //SetLegDividendYield sets LegDividendYield, Tag 1381 -func (m NoLegs) SetLegDividendYield(v float64) { - m.Set(field.NewLegDividendYield(v)) +func (m NoLegs) SetLegDividendYield(value decimal.Decimal, scale int32) { + m.Set(field.NewLegDividendYield(value, scale)) } //SetLegCurrencyRatio sets LegCurrencyRatio, Tag 1383 -func (m NoLegs) SetLegCurrencyRatio(v float64) { - m.Set(field.NewLegCurrencyRatio(v)) +func (m NoLegs) SetLegCurrencyRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCurrencyRatio(value, scale)) } //SetLegExecInst sets LegExecInst, Tag 1384 @@ -6519,8 +6520,8 @@ func (m NoLegs) SetLegExecInst(v string) { } //SetLegLastQty sets LegLastQty, Tag 1418 -func (m NoLegs) SetLegLastQty(v float64) { - m.Set(field.NewLegLastQty(v)) +func (m NoLegs) SetLegLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -7697,8 +7698,8 @@ func (m NoOfLegUnderlyings) SetUnderlyingLegMaturityTime(v string) { } //SetUnderlyingLegStrikePrice sets UnderlyingLegStrikePrice, Tag 1340 -func (m NoOfLegUnderlyings) SetUnderlyingLegStrikePrice(v float64) { - m.Set(field.NewUnderlyingLegStrikePrice(v)) +func (m NoOfLegUnderlyings) SetUnderlyingLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingLegStrikePrice(value, scale)) } //SetUnderlyingLegOptAttribute sets UnderlyingLegOptAttribute, Tag 1391 @@ -8085,13 +8086,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -8125,8 +8126,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -8140,13 +8141,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -8200,38 +8201,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -8240,8 +8241,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -8250,8 +8251,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -8270,8 +8271,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -8285,13 +8286,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -8315,8 +8316,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -8325,8 +8326,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -8350,23 +8351,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -9471,8 +9472,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -9676,8 +9677,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -10145,13 +10146,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -10160,8 +10161,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/tradecapturereportack/TradeCaptureReportAck.generated.go b/fix50sp2/tradecapturereportack/TradeCaptureReportAck.generated.go index a68c50322..fcbac0ff7 100644 --- a/fix50sp2/tradecapturereportack/TradeCaptureReportAck.generated.go +++ b/fix50sp2/tradecapturereportack/TradeCaptureReportAck.generated.go @@ -1,6 +1,7 @@ package tradecapturereportack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -61,8 +62,8 @@ func Route(router RouteOut) (string, string, quickfix.MessageRoute) { } //SetAvgPx sets AvgPx, Tag 6 -func (m TradeCaptureReportAck) SetAvgPx(v float64) { - m.Set(field.NewAvgPx(v)) +func (m TradeCaptureReportAck) SetAvgPx(value decimal.Decimal, scale int32) { + m.Set(field.NewAvgPx(value, scale)) } //SetCurrency sets Currency, Tag 15 @@ -86,13 +87,13 @@ func (m TradeCaptureReportAck) SetLastMkt(v string) { } //SetLastPx sets LastPx, Tag 31 -func (m TradeCaptureReportAck) SetLastPx(v float64) { - m.Set(field.NewLastPx(v)) +func (m TradeCaptureReportAck) SetLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastPx(value, scale)) } //SetLastQty sets LastQty, Tag 32 -func (m TradeCaptureReportAck) SetLastQty(v float64) { - m.Set(field.NewLastQty(v)) +func (m TradeCaptureReportAck) SetLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLastQty(value, scale)) } //SetSecurityID sets SecurityID, Tag 48 @@ -161,13 +162,13 @@ func (m TradeCaptureReportAck) SetSecurityType(v string) { } //SetLastSpotRate sets LastSpotRate, Tag 194 -func (m TradeCaptureReportAck) SetLastSpotRate(v float64) { - m.Set(field.NewLastSpotRate(v)) +func (m TradeCaptureReportAck) SetLastSpotRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSpotRate(value, scale)) } //SetLastForwardPoints sets LastForwardPoints, Tag 195 -func (m TradeCaptureReportAck) SetLastForwardPoints(v float64) { - m.Set(field.NewLastForwardPoints(v)) +func (m TradeCaptureReportAck) SetLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastForwardPoints(value, scale)) } //SetMaturityMonthYear sets MaturityMonthYear, Tag 200 @@ -181,8 +182,8 @@ func (m TradeCaptureReportAck) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m TradeCaptureReportAck) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m TradeCaptureReportAck) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -196,8 +197,8 @@ func (m TradeCaptureReportAck) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m TradeCaptureReportAck) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m TradeCaptureReportAck) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -216,18 +217,18 @@ func (m TradeCaptureReportAck) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m TradeCaptureReportAck) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m TradeCaptureReportAck) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m TradeCaptureReportAck) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m TradeCaptureReportAck) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m TradeCaptureReportAck) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m TradeCaptureReportAck) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -286,8 +287,8 @@ func (m TradeCaptureReportAck) SetExecRestatementReason(v int) { } //SetGrossTradeAmt sets GrossTradeAmt, Tag 381 -func (m TradeCaptureReportAck) SetGrossTradeAmt(v float64) { - m.Set(field.NewGrossTradeAmt(v)) +func (m TradeCaptureReportAck) SetGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewGrossTradeAmt(value, scale)) } //SetPriceType sets PriceType, Tag 423 @@ -396,8 +397,8 @@ func (m TradeCaptureReportAck) SetContractSettlMonth(v string) { } //SetLastParPx sets LastParPx, Tag 669 -func (m TradeCaptureReportAck) SetLastParPx(v float64) { - m.Set(field.NewLastParPx(v)) +func (m TradeCaptureReportAck) SetLastParPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLastParPx(value, scale)) } //SetPool sets Pool, Tag 691 @@ -591,18 +592,18 @@ func (m TradeCaptureReportAck) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m TradeCaptureReportAck) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m TradeCaptureReportAck) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m TradeCaptureReportAck) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m TradeCaptureReportAck) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m TradeCaptureReportAck) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m TradeCaptureReportAck) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -616,8 +617,8 @@ func (m TradeCaptureReportAck) SetNTPositionLimit(v int) { } //SetRndPx sets RndPx, Tag 991 -func (m TradeCaptureReportAck) SetRndPx(v float64) { - m.Set(field.NewRndPx(v)) +func (m TradeCaptureReportAck) SetRndPx(value decimal.Decimal, scale int32) { + m.Set(field.NewRndPx(value, scale)) } //SetTierCode sets TierCode, Tag 994 @@ -676,13 +677,13 @@ func (m TradeCaptureReportAck) SetInstrmtAssignmentMethod(v string) { } //SetCalculatedCcyLastQty sets CalculatedCcyLastQty, Tag 1056 -func (m TradeCaptureReportAck) SetCalculatedCcyLastQty(v float64) { - m.Set(field.NewCalculatedCcyLastQty(v)) +func (m TradeCaptureReportAck) SetCalculatedCcyLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCalculatedCcyLastQty(value, scale)) } //SetLastSwapPoints sets LastSwapPoints, Tag 1071 -func (m TradeCaptureReportAck) SetLastSwapPoints(v float64) { - m.Set(field.NewLastSwapPoints(v)) +func (m TradeCaptureReportAck) SetLastSwapPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLastSwapPoints(value, scale)) } //SetMaturityTime sets MaturityTime, Tag 1079 @@ -726,13 +727,13 @@ func (m TradeCaptureReportAck) SetRptSys(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m TradeCaptureReportAck) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m TradeCaptureReportAck) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m TradeCaptureReportAck) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m TradeCaptureReportAck) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -761,8 +762,8 @@ func (m TradeCaptureReportAck) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m TradeCaptureReportAck) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m TradeCaptureReportAck) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -776,8 +777,8 @@ func (m TradeCaptureReportAck) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m TradeCaptureReportAck) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m TradeCaptureReportAck) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -796,13 +797,13 @@ func (m TradeCaptureReportAck) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m TradeCaptureReportAck) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m TradeCaptureReportAck) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m TradeCaptureReportAck) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m TradeCaptureReportAck) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -831,8 +832,8 @@ func (m TradeCaptureReportAck) SetMarketID(v string) { } //SetFeeMultiplier sets FeeMultiplier, Tag 1329 -func (m TradeCaptureReportAck) SetFeeMultiplier(v float64) { - m.Set(field.NewFeeMultiplier(v)) +func (m TradeCaptureReportAck) SetFeeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewFeeMultiplier(value, scale)) } //SetNoTrdRepIndicators sets NoTrdRepIndicators, Tag 1387 @@ -871,23 +872,23 @@ func (m TradeCaptureReportAck) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m TradeCaptureReportAck) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m TradeCaptureReportAck) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m TradeCaptureReportAck) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m TradeCaptureReportAck) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m TradeCaptureReportAck) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m TradeCaptureReportAck) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m TradeCaptureReportAck) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m TradeCaptureReportAck) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -901,8 +902,8 @@ func (m TradeCaptureReportAck) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m TradeCaptureReportAck) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m TradeCaptureReportAck) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2969,8 +2970,8 @@ func (m NoSides) SetTimeBracket(v string) { } //SetCommission sets Commission, Tag 12 -func (m NoSides) SetCommission(v float64) { - m.Set(field.NewCommission(v)) +func (m NoSides) SetCommission(value decimal.Decimal, scale int32) { + m.Set(field.NewCommission(value, scale)) } //SetCommType sets CommType, Tag 13 @@ -2999,58 +3000,58 @@ func (m NoSides) SetExDate(v string) { } //SetAccruedInterestRate sets AccruedInterestRate, Tag 158 -func (m NoSides) SetAccruedInterestRate(v float64) { - m.Set(field.NewAccruedInterestRate(v)) +func (m NoSides) SetAccruedInterestRate(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestRate(value, scale)) } //SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159 -func (m NoSides) SetAccruedInterestAmt(v float64) { - m.Set(field.NewAccruedInterestAmt(v)) +func (m NoSides) SetAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewAccruedInterestAmt(value, scale)) } //SetInterestAtMaturity sets InterestAtMaturity, Tag 738 -func (m NoSides) SetInterestAtMaturity(v float64) { - m.Set(field.NewInterestAtMaturity(v)) +func (m NoSides) SetInterestAtMaturity(value decimal.Decimal, scale int32) { + m.Set(field.NewInterestAtMaturity(value, scale)) } //SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920 -func (m NoSides) SetEndAccruedInterestAmt(v float64) { - m.Set(field.NewEndAccruedInterestAmt(v)) +func (m NoSides) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewEndAccruedInterestAmt(value, scale)) } //SetStartCash sets StartCash, Tag 921 -func (m NoSides) SetStartCash(v float64) { - m.Set(field.NewStartCash(v)) +func (m NoSides) SetStartCash(value decimal.Decimal, scale int32) { + m.Set(field.NewStartCash(value, scale)) } //SetEndCash sets EndCash, Tag 922 -func (m NoSides) SetEndCash(v float64) { - m.Set(field.NewEndCash(v)) +func (m NoSides) SetEndCash(value decimal.Decimal, scale int32) { + m.Set(field.NewEndCash(value, scale)) } //SetConcession sets Concession, Tag 238 -func (m NoSides) SetConcession(v float64) { - m.Set(field.NewConcession(v)) +func (m NoSides) SetConcession(value decimal.Decimal, scale int32) { + m.Set(field.NewConcession(value, scale)) } //SetTotalTakedown sets TotalTakedown, Tag 237 -func (m NoSides) SetTotalTakedown(v float64) { - m.Set(field.NewTotalTakedown(v)) +func (m NoSides) SetTotalTakedown(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalTakedown(value, scale)) } //SetNetMoney sets NetMoney, Tag 118 -func (m NoSides) SetNetMoney(v float64) { - m.Set(field.NewNetMoney(v)) +func (m NoSides) SetNetMoney(value decimal.Decimal, scale int32) { + m.Set(field.NewNetMoney(value, scale)) } //SetSettlCurrAmt sets SettlCurrAmt, Tag 119 -func (m NoSides) SetSettlCurrAmt(v float64) { - m.Set(field.NewSettlCurrAmt(v)) +func (m NoSides) SetSettlCurrAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrAmt(value, scale)) } //SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155 -func (m NoSides) SetSettlCurrFxRate(v float64) { - m.Set(field.NewSettlCurrFxRate(v)) +func (m NoSides) SetSettlCurrFxRate(value decimal.Decimal, scale int32) { + m.Set(field.NewSettlCurrFxRate(value, scale)) } //SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156 @@ -3109,8 +3110,8 @@ func (m NoSides) SetNoAllocs(f NoAllocsRepeatingGroup) { } //SetSideGrossTradeAmt sets SideGrossTradeAmt, Tag 1072 -func (m NoSides) SetSideGrossTradeAmt(v float64) { - m.Set(field.NewSideGrossTradeAmt(v)) +func (m NoSides) SetSideGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewSideGrossTradeAmt(value, scale)) } //SetAggressorIndicator sets AggressorIndicator, Tag 1057 @@ -3239,13 +3240,13 @@ func (m NoSides) SetOrdType(v string) { } //SetPrice sets Price, Tag 44 -func (m NoSides) SetPrice(v float64) { - m.Set(field.NewPrice(v)) +func (m NoSides) SetPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewPrice(value, scale)) } //SetStopPx sets StopPx, Tag 99 -func (m NoSides) SetStopPx(v float64) { - m.Set(field.NewStopPx(v)) +func (m NoSides) SetStopPx(value decimal.Decimal, scale int32) { + m.Set(field.NewStopPx(value, scale)) } //SetExecInst sets ExecInst, Tag 18 @@ -3259,18 +3260,18 @@ func (m NoSides) SetOrdStatus(v string) { } //SetOrderQty sets OrderQty, Tag 38 -func (m NoSides) SetOrderQty(v float64) { - m.Set(field.NewOrderQty(v)) +func (m NoSides) SetOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderQty(value, scale)) } //SetCashOrderQty sets CashOrderQty, Tag 152 -func (m NoSides) SetCashOrderQty(v float64) { - m.Set(field.NewCashOrderQty(v)) +func (m NoSides) SetCashOrderQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCashOrderQty(value, scale)) } //SetOrderPercent sets OrderPercent, Tag 516 -func (m NoSides) SetOrderPercent(v float64) { - m.Set(field.NewOrderPercent(v)) +func (m NoSides) SetOrderPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewOrderPercent(value, scale)) } //SetRoundingDirection sets RoundingDirection, Tag 468 @@ -3279,18 +3280,18 @@ func (m NoSides) SetRoundingDirection(v string) { } //SetRoundingModulus sets RoundingModulus, Tag 469 -func (m NoSides) SetRoundingModulus(v float64) { - m.Set(field.NewRoundingModulus(v)) +func (m NoSides) SetRoundingModulus(value decimal.Decimal, scale int32) { + m.Set(field.NewRoundingModulus(value, scale)) } //SetLeavesQty sets LeavesQty, Tag 151 -func (m NoSides) SetLeavesQty(v float64) { - m.Set(field.NewLeavesQty(v)) +func (m NoSides) SetLeavesQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLeavesQty(value, scale)) } //SetCumQty sets CumQty, Tag 14 -func (m NoSides) SetCumQty(v float64) { - m.Set(field.NewCumQty(v)) +func (m NoSides) SetCumQty(value decimal.Decimal, scale int32) { + m.Set(field.NewCumQty(value, scale)) } //SetTimeInForce sets TimeInForce, Tag 59 @@ -3304,8 +3305,8 @@ func (m NoSides) SetExpireTime(v time.Time) { } //SetSecondaryDisplayQty sets SecondaryDisplayQty, Tag 1082 -func (m NoSides) SetSecondaryDisplayQty(v float64) { - m.Set(field.NewSecondaryDisplayQty(v)) +func (m NoSides) SetSecondaryDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewSecondaryDisplayQty(value, scale)) } //SetDisplayWhen sets DisplayWhen, Tag 1083 @@ -3319,28 +3320,28 @@ func (m NoSides) SetDisplayMethod(v string) { } //SetDisplayLowQty sets DisplayLowQty, Tag 1085 -func (m NoSides) SetDisplayLowQty(v float64) { - m.Set(field.NewDisplayLowQty(v)) +func (m NoSides) SetDisplayLowQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayLowQty(value, scale)) } //SetDisplayHighQty sets DisplayHighQty, Tag 1086 -func (m NoSides) SetDisplayHighQty(v float64) { - m.Set(field.NewDisplayHighQty(v)) +func (m NoSides) SetDisplayHighQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayHighQty(value, scale)) } //SetDisplayMinIncr sets DisplayMinIncr, Tag 1087 -func (m NoSides) SetDisplayMinIncr(v float64) { - m.Set(field.NewDisplayMinIncr(v)) +func (m NoSides) SetDisplayMinIncr(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayMinIncr(value, scale)) } //SetRefreshQty sets RefreshQty, Tag 1088 -func (m NoSides) SetRefreshQty(v float64) { - m.Set(field.NewRefreshQty(v)) +func (m NoSides) SetRefreshQty(value decimal.Decimal, scale int32) { + m.Set(field.NewRefreshQty(value, scale)) } //SetDisplayQty sets DisplayQty, Tag 1138 -func (m NoSides) SetDisplayQty(v float64) { - m.Set(field.NewDisplayQty(v)) +func (m NoSides) SetDisplayQty(value decimal.Decimal, scale int32) { + m.Set(field.NewDisplayQty(value, scale)) } //SetOrderCapacity sets OrderCapacity, Tag 528 @@ -4688,8 +4689,8 @@ func (m NoContAmts) SetContAmtType(v int) { } //SetContAmtValue sets ContAmtValue, Tag 520 -func (m NoContAmts) SetContAmtValue(v float64) { - m.Set(field.NewContAmtValue(v)) +func (m NoContAmts) SetContAmtValue(value decimal.Decimal, scale int32) { + m.Set(field.NewContAmtValue(value, scale)) } //SetContAmtCurr sets ContAmtCurr, Tag 521 @@ -4819,8 +4820,8 @@ type NoMiscFees struct { } //SetMiscFeeAmt sets MiscFeeAmt, Tag 137 -func (m NoMiscFees) SetMiscFeeAmt(v float64) { - m.Set(field.NewMiscFeeAmt(v)) +func (m NoMiscFees) SetMiscFeeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewMiscFeeAmt(value, scale)) } //SetMiscFeeCurr sets MiscFeeCurr, Tag 138 @@ -4936,8 +4937,8 @@ func (m NoAllocs) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) { } //SetAllocQty sets AllocQty, Tag 80 -func (m NoAllocs) SetAllocQty(v float64) { - m.Set(field.NewAllocQty(v)) +func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) { + m.Set(field.NewAllocQty(value, scale)) } //SetAllocCustomerCapacity sets AllocCustomerCapacity, Tag 993 @@ -5641,13 +5642,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -5681,8 +5682,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -5696,13 +5697,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -5741,8 +5742,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -5786,13 +5787,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -5811,8 +5812,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -5821,8 +5822,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -5836,8 +5837,8 @@ func (m NoLegs) SetLegFlowScheduleType(v int) { } //SetLegQty sets LegQty, Tag 687 -func (m NoLegs) SetLegQty(v float64) { - m.Set(field.NewLegQty(v)) +func (m NoLegs) SetLegQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegQty(value, scale)) } //SetLegSwapType sets LegSwapType, Tag 690 @@ -5881,8 +5882,8 @@ func (m NoLegs) SetLegSettlDate(v string) { } //SetLegLastPx sets LegLastPx, Tag 637 -func (m NoLegs) SetLegLastPx(v float64) { - m.Set(field.NewLegLastPx(v)) +func (m NoLegs) SetLegLastPx(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastPx(value, scale)) } //SetLegReportID sets LegReportID, Tag 990 @@ -5896,18 +5897,18 @@ func (m NoLegs) SetLegSettlCurrency(v string) { } //SetLegLastForwardPoints sets LegLastForwardPoints, Tag 1073 -func (m NoLegs) SetLegLastForwardPoints(v float64) { - m.Set(field.NewLegLastForwardPoints(v)) +func (m NoLegs) SetLegLastForwardPoints(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastForwardPoints(value, scale)) } //SetLegCalculatedCcyLastQty sets LegCalculatedCcyLastQty, Tag 1074 -func (m NoLegs) SetLegCalculatedCcyLastQty(v float64) { - m.Set(field.NewLegCalculatedCcyLastQty(v)) +func (m NoLegs) SetLegCalculatedCcyLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCalculatedCcyLastQty(value, scale)) } //SetLegGrossTradeAmt sets LegGrossTradeAmt, Tag 1075 -func (m NoLegs) SetLegGrossTradeAmt(v float64) { - m.Set(field.NewLegGrossTradeAmt(v)) +func (m NoLegs) SetLegGrossTradeAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewLegGrossTradeAmt(value, scale)) } //SetLegNumber sets LegNumber, Tag 1152 @@ -5921,18 +5922,18 @@ func (m NoLegs) SetNoOfLegUnderlyings(f NoOfLegUnderlyingsRepeatingGroup) { } //SetLegVolatility sets LegVolatility, Tag 1379 -func (m NoLegs) SetLegVolatility(v float64) { - m.Set(field.NewLegVolatility(v)) +func (m NoLegs) SetLegVolatility(value decimal.Decimal, scale int32) { + m.Set(field.NewLegVolatility(value, scale)) } //SetLegDividendYield sets LegDividendYield, Tag 1381 -func (m NoLegs) SetLegDividendYield(v float64) { - m.Set(field.NewLegDividendYield(v)) +func (m NoLegs) SetLegDividendYield(value decimal.Decimal, scale int32) { + m.Set(field.NewLegDividendYield(value, scale)) } //SetLegCurrencyRatio sets LegCurrencyRatio, Tag 1383 -func (m NoLegs) SetLegCurrencyRatio(v float64) { - m.Set(field.NewLegCurrencyRatio(v)) +func (m NoLegs) SetLegCurrencyRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCurrencyRatio(value, scale)) } //SetLegExecInst sets LegExecInst, Tag 1384 @@ -5941,8 +5942,8 @@ func (m NoLegs) SetLegExecInst(v string) { } //SetLegLastQty sets LegLastQty, Tag 1418 -func (m NoLegs) SetLegLastQty(v float64) { - m.Set(field.NewLegLastQty(v)) +func (m NoLegs) SetLegLastQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegLastQty(value, scale)) } //GetLegSymbol gets LegSymbol, Tag 600 @@ -7119,8 +7120,8 @@ func (m NoOfLegUnderlyings) SetUnderlyingLegMaturityTime(v string) { } //SetUnderlyingLegStrikePrice sets UnderlyingLegStrikePrice, Tag 1340 -func (m NoOfLegUnderlyings) SetUnderlyingLegStrikePrice(v float64) { - m.Set(field.NewUnderlyingLegStrikePrice(v)) +func (m NoOfLegUnderlyings) SetUnderlyingLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingLegStrikePrice(value, scale)) } //SetUnderlyingLegOptAttribute sets UnderlyingLegOptAttribute, Tag 1391 @@ -7507,13 +7508,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -7547,8 +7548,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -7562,13 +7563,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -7622,38 +7623,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -7662,8 +7663,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -7672,8 +7673,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -7692,8 +7693,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -7707,13 +7708,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -7737,8 +7738,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -7747,8 +7748,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -7772,23 +7773,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -8893,8 +8894,8 @@ func (m NoPosAmt) SetPosAmtType(v string) { } //SetPosAmt sets PosAmt, Tag 708 -func (m NoPosAmt) SetPosAmt(v float64) { - m.Set(field.NewPosAmt(v)) +func (m NoPosAmt) SetPosAmt(value decimal.Decimal, scale int32) { + m.Set(field.NewPosAmt(value, scale)) } //SetPositionCurrency sets PositionCurrency, Tag 1055 @@ -9098,8 +9099,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -9567,13 +9568,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -9582,8 +9583,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/tradecapturereportrequest/TradeCaptureReportRequest.generated.go b/fix50sp2/tradecapturereportrequest/TradeCaptureReportRequest.generated.go index 81e16106b..8321dff1f 100644 --- a/fix50sp2/tradecapturereportrequest/TradeCaptureReportRequest.generated.go +++ b/fix50sp2/tradecapturereportrequest/TradeCaptureReportRequest.generated.go @@ -1,6 +1,7 @@ package tradecapturereportrequest import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -138,8 +139,8 @@ func (m TradeCaptureReportRequest) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m TradeCaptureReportRequest) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m TradeCaptureReportRequest) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -153,8 +154,8 @@ func (m TradeCaptureReportRequest) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m TradeCaptureReportRequest) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m TradeCaptureReportRequest) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -173,18 +174,18 @@ func (m TradeCaptureReportRequest) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m TradeCaptureReportRequest) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m TradeCaptureReportRequest) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m TradeCaptureReportRequest) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m TradeCaptureReportRequest) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m TradeCaptureReportRequest) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m TradeCaptureReportRequest) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -418,8 +419,8 @@ func (m TradeCaptureReportRequest) SetNoEvents(f NoEventsRepeatingGroup) { } //SetPctAtRisk sets PctAtRisk, Tag 869 -func (m TradeCaptureReportRequest) SetPctAtRisk(v float64) { - m.Set(field.NewPctAtRisk(v)) +func (m TradeCaptureReportRequest) SetPctAtRisk(value decimal.Decimal, scale int32) { + m.Set(field.NewPctAtRisk(value, scale)) } //SetNoInstrAttrib sets NoInstrAttrib, Tag 870 @@ -453,8 +454,8 @@ func (m TradeCaptureReportRequest) SetTrdMatchID(v string) { } //SetMarginRatio sets MarginRatio, Tag 898 -func (m TradeCaptureReportRequest) SetMarginRatio(v float64) { - m.Set(field.NewMarginRatio(v)) +func (m TradeCaptureReportRequest) SetMarginRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewMarginRatio(value, scale)) } //SetAgreementDesc sets AgreementDesc, Tag 913 @@ -513,18 +514,18 @@ func (m TradeCaptureReportRequest) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m TradeCaptureReportRequest) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m TradeCaptureReportRequest) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m TradeCaptureReportRequest) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m TradeCaptureReportRequest) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m TradeCaptureReportRequest) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m TradeCaptureReportRequest) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -593,13 +594,13 @@ func (m TradeCaptureReportRequest) SetTradeHandlingInstr(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m TradeCaptureReportRequest) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m TradeCaptureReportRequest) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m TradeCaptureReportRequest) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m TradeCaptureReportRequest) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -628,8 +629,8 @@ func (m TradeCaptureReportRequest) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m TradeCaptureReportRequest) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m TradeCaptureReportRequest) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -643,8 +644,8 @@ func (m TradeCaptureReportRequest) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m TradeCaptureReportRequest) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m TradeCaptureReportRequest) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -663,13 +664,13 @@ func (m TradeCaptureReportRequest) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m TradeCaptureReportRequest) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m TradeCaptureReportRequest) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m TradeCaptureReportRequest) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m TradeCaptureReportRequest) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -708,23 +709,23 @@ func (m TradeCaptureReportRequest) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m TradeCaptureReportRequest) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m TradeCaptureReportRequest) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m TradeCaptureReportRequest) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m TradeCaptureReportRequest) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m TradeCaptureReportRequest) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m TradeCaptureReportRequest) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m TradeCaptureReportRequest) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m TradeCaptureReportRequest) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -738,8 +739,8 @@ func (m TradeCaptureReportRequest) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m TradeCaptureReportRequest) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m TradeCaptureReportRequest) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -2589,13 +2590,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -2629,8 +2630,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -2644,13 +2645,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2689,8 +2690,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2734,13 +2735,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2759,8 +2760,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2769,8 +2770,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -3618,13 +3619,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -3658,8 +3659,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -3673,13 +3674,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -3733,38 +3734,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3773,8 +3774,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3783,8 +3784,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3803,8 +3804,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3818,13 +3819,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3848,8 +3849,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3858,8 +3859,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3883,23 +3884,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -5009,8 +5010,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -5325,13 +5326,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -5340,8 +5341,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/tradecapturereportrequestack/TradeCaptureReportRequestAck.generated.go b/fix50sp2/tradecapturereportrequestack/TradeCaptureReportRequestAck.generated.go index e903b305b..81de4ad60 100644 --- a/fix50sp2/tradecapturereportrequestack/TradeCaptureReportRequestAck.generated.go +++ b/fix50sp2/tradecapturereportrequestack/TradeCaptureReportRequestAck.generated.go @@ -1,6 +1,7 @@ package tradecapturereportrequestack import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -115,8 +116,8 @@ func (m TradeCaptureReportRequestAck) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m TradeCaptureReportRequestAck) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m TradeCaptureReportRequestAck) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -130,8 +131,8 @@ func (m TradeCaptureReportRequestAck) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m TradeCaptureReportRequestAck) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m TradeCaptureReportRequestAck) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -150,18 +151,18 @@ func (m TradeCaptureReportRequestAck) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m TradeCaptureReportRequestAck) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m TradeCaptureReportRequestAck) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m TradeCaptureReportRequestAck) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m TradeCaptureReportRequestAck) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m TradeCaptureReportRequestAck) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m TradeCaptureReportRequestAck) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -360,18 +361,18 @@ func (m TradeCaptureReportRequestAck) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m TradeCaptureReportRequestAck) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m TradeCaptureReportRequestAck) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m TradeCaptureReportRequestAck) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m TradeCaptureReportRequestAck) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m TradeCaptureReportRequestAck) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m TradeCaptureReportRequestAck) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -435,13 +436,13 @@ func (m TradeCaptureReportRequestAck) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m TradeCaptureReportRequestAck) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m TradeCaptureReportRequestAck) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m TradeCaptureReportRequestAck) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m TradeCaptureReportRequestAck) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -470,8 +471,8 @@ func (m TradeCaptureReportRequestAck) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m TradeCaptureReportRequestAck) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m TradeCaptureReportRequestAck) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -485,8 +486,8 @@ func (m TradeCaptureReportRequestAck) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m TradeCaptureReportRequestAck) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m TradeCaptureReportRequestAck) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -505,13 +506,13 @@ func (m TradeCaptureReportRequestAck) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m TradeCaptureReportRequestAck) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m TradeCaptureReportRequestAck) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m TradeCaptureReportRequestAck) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m TradeCaptureReportRequestAck) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -550,23 +551,23 @@ func (m TradeCaptureReportRequestAck) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m TradeCaptureReportRequestAck) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m TradeCaptureReportRequestAck) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m TradeCaptureReportRequestAck) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m TradeCaptureReportRequestAck) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m TradeCaptureReportRequestAck) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m TradeCaptureReportRequestAck) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m TradeCaptureReportRequestAck) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m TradeCaptureReportRequestAck) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -580,8 +581,8 @@ func (m TradeCaptureReportRequestAck) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m TradeCaptureReportRequestAck) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m TradeCaptureReportRequestAck) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -1923,13 +1924,13 @@ func (m NoLegs) SetLegRepurchaseTerm(v int) { } //SetLegRepurchaseRate sets LegRepurchaseRate, Tag 252 -func (m NoLegs) SetLegRepurchaseRate(v float64) { - m.Set(field.NewLegRepurchaseRate(v)) +func (m NoLegs) SetLegRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRepurchaseRate(value, scale)) } //SetLegFactor sets LegFactor, Tag 253 -func (m NoLegs) SetLegFactor(v float64) { - m.Set(field.NewLegFactor(v)) +func (m NoLegs) SetLegFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewLegFactor(value, scale)) } //SetLegCreditRating sets LegCreditRating, Tag 257 @@ -1963,8 +1964,8 @@ func (m NoLegs) SetLegRedemptionDate(v string) { } //SetLegStrikePrice sets LegStrikePrice, Tag 612 -func (m NoLegs) SetLegStrikePrice(v float64) { - m.Set(field.NewLegStrikePrice(v)) +func (m NoLegs) SetLegStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegStrikePrice(value, scale)) } //SetLegStrikeCurrency sets LegStrikeCurrency, Tag 942 @@ -1978,13 +1979,13 @@ func (m NoLegs) SetLegOptAttribute(v string) { } //SetLegContractMultiplier sets LegContractMultiplier, Tag 614 -func (m NoLegs) SetLegContractMultiplier(v float64) { - m.Set(field.NewLegContractMultiplier(v)) +func (m NoLegs) SetLegContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewLegContractMultiplier(value, scale)) } //SetLegCouponRate sets LegCouponRate, Tag 615 -func (m NoLegs) SetLegCouponRate(v float64) { - m.Set(field.NewLegCouponRate(v)) +func (m NoLegs) SetLegCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewLegCouponRate(value, scale)) } //SetLegSecurityExchange sets LegSecurityExchange, Tag 616 @@ -2023,8 +2024,8 @@ func (m NoLegs) SetEncodedLegSecurityDesc(v string) { } //SetLegRatioQty sets LegRatioQty, Tag 623 -func (m NoLegs) SetLegRatioQty(v float64) { - m.Set(field.NewLegRatioQty(v)) +func (m NoLegs) SetLegRatioQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegRatioQty(value, scale)) } //SetLegSide sets LegSide, Tag 624 @@ -2068,13 +2069,13 @@ func (m NoLegs) SetLegTimeUnit(v string) { } //SetLegOptionRatio sets LegOptionRatio, Tag 1017 -func (m NoLegs) SetLegOptionRatio(v float64) { - m.Set(field.NewLegOptionRatio(v)) +func (m NoLegs) SetLegOptionRatio(value decimal.Decimal, scale int32) { + m.Set(field.NewLegOptionRatio(value, scale)) } //SetLegPrice sets LegPrice, Tag 566 -func (m NoLegs) SetLegPrice(v float64) { - m.Set(field.NewLegPrice(v)) +func (m NoLegs) SetLegPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPrice(value, scale)) } //SetLegMaturityTime sets LegMaturityTime, Tag 1212 @@ -2093,8 +2094,8 @@ func (m NoLegs) SetLegExerciseStyle(v int) { } //SetLegUnitOfMeasureQty sets LegUnitOfMeasureQty, Tag 1224 -func (m NoLegs) SetLegUnitOfMeasureQty(v float64) { - m.Set(field.NewLegUnitOfMeasureQty(v)) +func (m NoLegs) SetLegUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegUnitOfMeasureQty(value, scale)) } //SetLegPriceUnitOfMeasure sets LegPriceUnitOfMeasure, Tag 1421 @@ -2103,8 +2104,8 @@ func (m NoLegs) SetLegPriceUnitOfMeasure(v string) { } //SetLegPriceUnitOfMeasureQty sets LegPriceUnitOfMeasureQty, Tag 1422 -func (m NoLegs) SetLegPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewLegPriceUnitOfMeasureQty(v)) +func (m NoLegs) SetLegPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewLegPriceUnitOfMeasureQty(value, scale)) } //SetLegContractMultiplierUnit sets LegContractMultiplierUnit, Tag 1436 @@ -2876,13 +2877,13 @@ func (m NoUnderlyings) SetUnderlyingRepurchaseTerm(v int) { } //SetUnderlyingRepurchaseRate sets UnderlyingRepurchaseRate, Tag 245 -func (m NoUnderlyings) SetUnderlyingRepurchaseRate(v float64) { - m.Set(field.NewUnderlyingRepurchaseRate(v)) +func (m NoUnderlyings) SetUnderlyingRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingRepurchaseRate(value, scale)) } //SetUnderlyingFactor sets UnderlyingFactor, Tag 246 -func (m NoUnderlyings) SetUnderlyingFactor(v float64) { - m.Set(field.NewUnderlyingFactor(v)) +func (m NoUnderlyings) SetUnderlyingFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFactor(value, scale)) } //SetUnderlyingCreditRating sets UnderlyingCreditRating, Tag 256 @@ -2916,8 +2917,8 @@ func (m NoUnderlyings) SetUnderlyingRedemptionDate(v string) { } //SetUnderlyingStrikePrice sets UnderlyingStrikePrice, Tag 316 -func (m NoUnderlyings) SetUnderlyingStrikePrice(v float64) { - m.Set(field.NewUnderlyingStrikePrice(v)) +func (m NoUnderlyings) SetUnderlyingStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStrikePrice(value, scale)) } //SetUnderlyingStrikeCurrency sets UnderlyingStrikeCurrency, Tag 941 @@ -2931,13 +2932,13 @@ func (m NoUnderlyings) SetUnderlyingOptAttribute(v string) { } //SetUnderlyingContractMultiplier sets UnderlyingContractMultiplier, Tag 436 -func (m NoUnderlyings) SetUnderlyingContractMultiplier(v float64) { - m.Set(field.NewUnderlyingContractMultiplier(v)) +func (m NoUnderlyings) SetUnderlyingContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingContractMultiplier(value, scale)) } //SetUnderlyingCouponRate sets UnderlyingCouponRate, Tag 435 -func (m NoUnderlyings) SetUnderlyingCouponRate(v float64) { - m.Set(field.NewUnderlyingCouponRate(v)) +func (m NoUnderlyings) SetUnderlyingCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCouponRate(value, scale)) } //SetUnderlyingSecurityExchange sets UnderlyingSecurityExchange, Tag 308 @@ -2991,38 +2992,38 @@ func (m NoUnderlyings) SetUnderlyingCurrency(v string) { } //SetUnderlyingQty sets UnderlyingQty, Tag 879 -func (m NoUnderlyings) SetUnderlyingQty(v float64) { - m.Set(field.NewUnderlyingQty(v)) +func (m NoUnderlyings) SetUnderlyingQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingQty(value, scale)) } //SetUnderlyingPx sets UnderlyingPx, Tag 810 -func (m NoUnderlyings) SetUnderlyingPx(v float64) { - m.Set(field.NewUnderlyingPx(v)) +func (m NoUnderlyings) SetUnderlyingPx(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPx(value, scale)) } //SetUnderlyingDirtyPrice sets UnderlyingDirtyPrice, Tag 882 -func (m NoUnderlyings) SetUnderlyingDirtyPrice(v float64) { - m.Set(field.NewUnderlyingDirtyPrice(v)) +func (m NoUnderlyings) SetUnderlyingDirtyPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDirtyPrice(value, scale)) } //SetUnderlyingEndPrice sets UnderlyingEndPrice, Tag 883 -func (m NoUnderlyings) SetUnderlyingEndPrice(v float64) { - m.Set(field.NewUnderlyingEndPrice(v)) +func (m NoUnderlyings) SetUnderlyingEndPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndPrice(value, scale)) } //SetUnderlyingStartValue sets UnderlyingStartValue, Tag 884 -func (m NoUnderlyings) SetUnderlyingStartValue(v float64) { - m.Set(field.NewUnderlyingStartValue(v)) +func (m NoUnderlyings) SetUnderlyingStartValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingStartValue(value, scale)) } //SetUnderlyingCurrentValue sets UnderlyingCurrentValue, Tag 885 -func (m NoUnderlyings) SetUnderlyingCurrentValue(v float64) { - m.Set(field.NewUnderlyingCurrentValue(v)) +func (m NoUnderlyings) SetUnderlyingCurrentValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCurrentValue(value, scale)) } //SetUnderlyingEndValue sets UnderlyingEndValue, Tag 886 -func (m NoUnderlyings) SetUnderlyingEndValue(v float64) { - m.Set(field.NewUnderlyingEndValue(v)) +func (m NoUnderlyings) SetUnderlyingEndValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingEndValue(value, scale)) } //SetNoUnderlyingStips sets NoUnderlyingStips, Tag 887 @@ -3031,8 +3032,8 @@ func (m NoUnderlyings) SetNoUnderlyingStips(f NoUnderlyingStipsRepeatingGroup) { } //SetUnderlyingAllocationPercent sets UnderlyingAllocationPercent, Tag 972 -func (m NoUnderlyings) SetUnderlyingAllocationPercent(v float64) { - m.Set(field.NewUnderlyingAllocationPercent(v)) +func (m NoUnderlyings) SetUnderlyingAllocationPercent(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAllocationPercent(value, scale)) } //SetUnderlyingSettlementType sets UnderlyingSettlementType, Tag 975 @@ -3041,8 +3042,8 @@ func (m NoUnderlyings) SetUnderlyingSettlementType(v int) { } //SetUnderlyingCashAmount sets UnderlyingCashAmount, Tag 973 -func (m NoUnderlyings) SetUnderlyingCashAmount(v float64) { - m.Set(field.NewUnderlyingCashAmount(v)) +func (m NoUnderlyings) SetUnderlyingCashAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCashAmount(value, scale)) } //SetUnderlyingCashType sets UnderlyingCashType, Tag 974 @@ -3061,8 +3062,8 @@ func (m NoUnderlyings) SetUnderlyingTimeUnit(v string) { } //SetUnderlyingCapValue sets UnderlyingCapValue, Tag 1038 -func (m NoUnderlyings) SetUnderlyingCapValue(v float64) { - m.Set(field.NewUnderlyingCapValue(v)) +func (m NoUnderlyings) SetUnderlyingCapValue(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingCapValue(value, scale)) } //SetNoUndlyInstrumentParties sets NoUndlyInstrumentParties, Tag 1058 @@ -3076,13 +3077,13 @@ func (m NoUnderlyings) SetUnderlyingSettlMethod(v string) { } //SetUnderlyingAdjustedQuantity sets UnderlyingAdjustedQuantity, Tag 1044 -func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(v float64) { - m.Set(field.NewUnderlyingAdjustedQuantity(v)) +func (m NoUnderlyings) SetUnderlyingAdjustedQuantity(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAdjustedQuantity(value, scale)) } //SetUnderlyingFXRate sets UnderlyingFXRate, Tag 1045 -func (m NoUnderlyings) SetUnderlyingFXRate(v float64) { - m.Set(field.NewUnderlyingFXRate(v)) +func (m NoUnderlyings) SetUnderlyingFXRate(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingFXRate(value, scale)) } //SetUnderlyingFXRateCalc sets UnderlyingFXRateCalc, Tag 1046 @@ -3106,8 +3107,8 @@ func (m NoUnderlyings) SetUnderlyingExerciseStyle(v int) { } //SetUnderlyingUnitOfMeasureQty sets UnderlyingUnitOfMeasureQty, Tag 1423 -func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingUnitOfMeasureQty(value, scale)) } //SetUnderlyingPriceUnitOfMeasure sets UnderlyingPriceUnitOfMeasure, Tag 1424 @@ -3116,8 +3117,8 @@ func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasure(v string) { } //SetUnderlyingPriceUnitOfMeasureQty sets UnderlyingPriceUnitOfMeasureQty, Tag 1425 -func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(v)) +func (m NoUnderlyings) SetUnderlyingPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingPriceUnitOfMeasureQty(value, scale)) } //SetUnderlyingContractMultiplierUnit sets UnderlyingContractMultiplierUnit, Tag 1437 @@ -3141,23 +3142,23 @@ func (m NoUnderlyings) SetUnderlyingSeniority(v string) { } //SetUnderlyingNotionalPercentageOutstanding sets UnderlyingNotionalPercentageOutstanding, Tag 1455 -func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingOriginalNotionalPercentageOutstanding sets UnderlyingOriginalNotionalPercentageOutstanding, Tag 1456 -func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(v)) +func (m NoUnderlyings) SetUnderlyingOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingOriginalNotionalPercentageOutstanding(value, scale)) } //SetUnderlyingAttachmentPoint sets UnderlyingAttachmentPoint, Tag 1459 -func (m NoUnderlyings) SetUnderlyingAttachmentPoint(v float64) { - m.Set(field.NewUnderlyingAttachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingAttachmentPoint(value, scale)) } //SetUnderlyingDetachmentPoint sets UnderlyingDetachmentPoint, Tag 1460 -func (m NoUnderlyings) SetUnderlyingDetachmentPoint(v float64) { - m.Set(field.NewUnderlyingDetachmentPoint(v)) +func (m NoUnderlyings) SetUnderlyingDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewUnderlyingDetachmentPoint(value, scale)) } //GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311 @@ -4267,8 +4268,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -4523,13 +4524,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -4538,8 +4539,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489 diff --git a/fix50sp2/tradingsessionlist/TradingSessionList.generated.go b/fix50sp2/tradingsessionlist/TradingSessionList.generated.go index 5f90255d6..48eef7994 100644 --- a/fix50sp2/tradingsessionlist/TradingSessionList.generated.go +++ b/fix50sp2/tradingsessionlist/TradingSessionList.generated.go @@ -1,6 +1,7 @@ package tradingsessionlist import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -228,8 +229,8 @@ func (m NoTradingSessions) SetTradSesEndTime(v time.Time) { } //SetTotalVolumeTraded sets TotalVolumeTraded, Tag 387 -func (m NoTradingSessions) SetTotalVolumeTraded(v float64) { - m.Set(field.NewTotalVolumeTraded(v)) +func (m NoTradingSessions) SetTotalVolumeTraded(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalVolumeTraded(value, scale)) } //SetText sets Text, Tag 58 diff --git a/fix50sp2/tradingsessionlistupdatereport/TradingSessionListUpdateReport.generated.go b/fix50sp2/tradingsessionlistupdatereport/TradingSessionListUpdateReport.generated.go index 499d8b15d..d035dd9e9 100644 --- a/fix50sp2/tradingsessionlistupdatereport/TradingSessionListUpdateReport.generated.go +++ b/fix50sp2/tradingsessionlistupdatereport/TradingSessionListUpdateReport.generated.go @@ -1,6 +1,7 @@ package tradingsessionlistupdatereport import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -228,8 +229,8 @@ func (m NoTradingSessions) SetTradSesEndTime(v time.Time) { } //SetTotalVolumeTraded sets TotalVolumeTraded, Tag 387 -func (m NoTradingSessions) SetTotalVolumeTraded(v float64) { - m.Set(field.NewTotalVolumeTraded(v)) +func (m NoTradingSessions) SetTotalVolumeTraded(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalVolumeTraded(value, scale)) } //SetText sets Text, Tag 58 diff --git a/fix50sp2/tradingsessionstatus/TradingSessionStatus.generated.go b/fix50sp2/tradingsessionstatus/TradingSessionStatus.generated.go index aa425c0e8..1d23984f8 100644 --- a/fix50sp2/tradingsessionstatus/TradingSessionStatus.generated.go +++ b/fix50sp2/tradingsessionstatus/TradingSessionStatus.generated.go @@ -1,6 +1,7 @@ package tradingsessionstatus import ( + "github.com/shopspring/decimal" "time" "github.com/quickfixgo/quickfix" @@ -113,8 +114,8 @@ func (m TradingSessionStatus) SetPutOrCall(v int) { } //SetStrikePrice sets StrikePrice, Tag 202 -func (m TradingSessionStatus) SetStrikePrice(v float64) { - m.Set(field.NewStrikePrice(v)) +func (m TradingSessionStatus) SetStrikePrice(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePrice(value, scale)) } //SetOptAttribute sets OptAttribute, Tag 206 @@ -128,8 +129,8 @@ func (m TradingSessionStatus) SetSecurityExchange(v string) { } //SetCouponRate sets CouponRate, Tag 223 -func (m TradingSessionStatus) SetCouponRate(v float64) { - m.Set(field.NewCouponRate(v)) +func (m TradingSessionStatus) SetCouponRate(value decimal.Decimal, scale int32) { + m.Set(field.NewCouponRate(value, scale)) } //SetCouponPaymentDate sets CouponPaymentDate, Tag 224 @@ -148,18 +149,18 @@ func (m TradingSessionStatus) SetRepurchaseTerm(v int) { } //SetRepurchaseRate sets RepurchaseRate, Tag 227 -func (m TradingSessionStatus) SetRepurchaseRate(v float64) { - m.Set(field.NewRepurchaseRate(v)) +func (m TradingSessionStatus) SetRepurchaseRate(value decimal.Decimal, scale int32) { + m.Set(field.NewRepurchaseRate(value, scale)) } //SetFactor sets Factor, Tag 228 -func (m TradingSessionStatus) SetFactor(v float64) { - m.Set(field.NewFactor(v)) +func (m TradingSessionStatus) SetFactor(value decimal.Decimal, scale int32) { + m.Set(field.NewFactor(value, scale)) } //SetContractMultiplier sets ContractMultiplier, Tag 231 -func (m TradingSessionStatus) SetContractMultiplier(v float64) { - m.Set(field.NewContractMultiplier(v)) +func (m TradingSessionStatus) SetContractMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewContractMultiplier(value, scale)) } //SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239 @@ -263,8 +264,8 @@ func (m TradingSessionStatus) SetEncodedText(v string) { } //SetTotalVolumeTraded sets TotalVolumeTraded, Tag 387 -func (m TradingSessionStatus) SetTotalVolumeTraded(v float64) { - m.Set(field.NewTotalVolumeTraded(v)) +func (m TradingSessionStatus) SetTotalVolumeTraded(value decimal.Decimal, scale int32) { + m.Set(field.NewTotalVolumeTraded(value, scale)) } //SetNoSecurityAltID sets NoSecurityAltID, Tag 454 @@ -373,18 +374,18 @@ func (m TradingSessionStatus) SetSettleOnOpenFlag(v string) { } //SetStrikeMultiplier sets StrikeMultiplier, Tag 967 -func (m TradingSessionStatus) SetStrikeMultiplier(v float64) { - m.Set(field.NewStrikeMultiplier(v)) +func (m TradingSessionStatus) SetStrikeMultiplier(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeMultiplier(value, scale)) } //SetStrikeValue sets StrikeValue, Tag 968 -func (m TradingSessionStatus) SetStrikeValue(v float64) { - m.Set(field.NewStrikeValue(v)) +func (m TradingSessionStatus) SetStrikeValue(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikeValue(value, scale)) } //SetMinPriceIncrement sets MinPriceIncrement, Tag 969 -func (m TradingSessionStatus) SetMinPriceIncrement(v float64) { - m.Set(field.NewMinPriceIncrement(v)) +func (m TradingSessionStatus) SetMinPriceIncrement(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrement(value, scale)) } //SetPositionLimit sets PositionLimit, Tag 970 @@ -423,13 +424,13 @@ func (m TradingSessionStatus) SetMaturityTime(v string) { } //SetMinPriceIncrementAmount sets MinPriceIncrementAmount, Tag 1146 -func (m TradingSessionStatus) SetMinPriceIncrementAmount(v float64) { - m.Set(field.NewMinPriceIncrementAmount(v)) +func (m TradingSessionStatus) SetMinPriceIncrementAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewMinPriceIncrementAmount(value, scale)) } //SetUnitOfMeasureQty sets UnitOfMeasureQty, Tag 1147 -func (m TradingSessionStatus) SetUnitOfMeasureQty(v float64) { - m.Set(field.NewUnitOfMeasureQty(v)) +func (m TradingSessionStatus) SetUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewUnitOfMeasureQty(value, scale)) } //SetSecurityGroup sets SecurityGroup, Tag 1151 @@ -468,8 +469,8 @@ func (m TradingSessionStatus) SetPriceUnitOfMeasure(v string) { } //SetPriceUnitOfMeasureQty sets PriceUnitOfMeasureQty, Tag 1192 -func (m TradingSessionStatus) SetPriceUnitOfMeasureQty(v float64) { - m.Set(field.NewPriceUnitOfMeasureQty(v)) +func (m TradingSessionStatus) SetPriceUnitOfMeasureQty(value decimal.Decimal, scale int32) { + m.Set(field.NewPriceUnitOfMeasureQty(value, scale)) } //SetSettlMethod sets SettlMethod, Tag 1193 @@ -483,8 +484,8 @@ func (m TradingSessionStatus) SetExerciseStyle(v int) { } //SetOptPayoutAmount sets OptPayoutAmount, Tag 1195 -func (m TradingSessionStatus) SetOptPayoutAmount(v float64) { - m.Set(field.NewOptPayoutAmount(v)) +func (m TradingSessionStatus) SetOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewOptPayoutAmount(value, scale)) } //SetPriceQuoteMethod sets PriceQuoteMethod, Tag 1196 @@ -503,13 +504,13 @@ func (m TradingSessionStatus) SetListMethod(v int) { } //SetCapPrice sets CapPrice, Tag 1199 -func (m TradingSessionStatus) SetCapPrice(v float64) { - m.Set(field.NewCapPrice(v)) +func (m TradingSessionStatus) SetCapPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewCapPrice(value, scale)) } //SetFloorPrice sets FloorPrice, Tag 1200 -func (m TradingSessionStatus) SetFloorPrice(v float64) { - m.Set(field.NewFloorPrice(v)) +func (m TradingSessionStatus) SetFloorPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewFloorPrice(value, scale)) } //SetProductComplex sets ProductComplex, Tag 1227 @@ -573,23 +574,23 @@ func (m TradingSessionStatus) SetSeniority(v string) { } //SetNotionalPercentageOutstanding sets NotionalPercentageOutstanding, Tag 1451 -func (m TradingSessionStatus) SetNotionalPercentageOutstanding(v float64) { - m.Set(field.NewNotionalPercentageOutstanding(v)) +func (m TradingSessionStatus) SetNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewNotionalPercentageOutstanding(value, scale)) } //SetOriginalNotionalPercentageOutstanding sets OriginalNotionalPercentageOutstanding, Tag 1452 -func (m TradingSessionStatus) SetOriginalNotionalPercentageOutstanding(v float64) { - m.Set(field.NewOriginalNotionalPercentageOutstanding(v)) +func (m TradingSessionStatus) SetOriginalNotionalPercentageOutstanding(value decimal.Decimal, scale int32) { + m.Set(field.NewOriginalNotionalPercentageOutstanding(value, scale)) } //SetAttachmentPoint sets AttachmentPoint, Tag 1457 -func (m TradingSessionStatus) SetAttachmentPoint(v float64) { - m.Set(field.NewAttachmentPoint(v)) +func (m TradingSessionStatus) SetAttachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewAttachmentPoint(value, scale)) } //SetDetachmentPoint sets DetachmentPoint, Tag 1458 -func (m TradingSessionStatus) SetDetachmentPoint(v float64) { - m.Set(field.NewDetachmentPoint(v)) +func (m TradingSessionStatus) SetDetachmentPoint(value decimal.Decimal, scale int32) { + m.Set(field.NewDetachmentPoint(value, scale)) } //SetStrikePriceDeterminationMethod sets StrikePriceDeterminationMethod, Tag 1478 @@ -603,8 +604,8 @@ func (m TradingSessionStatus) SetStrikePriceBoundaryMethod(v int) { } //SetStrikePriceBoundaryPrecision sets StrikePriceBoundaryPrecision, Tag 1480 -func (m TradingSessionStatus) SetStrikePriceBoundaryPrecision(v float64) { - m.Set(field.NewStrikePriceBoundaryPrecision(v)) +func (m TradingSessionStatus) SetStrikePriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewStrikePriceBoundaryPrecision(value, scale)) } //SetUnderlyingPriceDeterminationMethod sets UnderlyingPriceDeterminationMethod, Tag 1481 @@ -1934,8 +1935,8 @@ func (m NoEvents) SetEventDate(v string) { } //SetEventPx sets EventPx, Tag 867 -func (m NoEvents) SetEventPx(v float64) { - m.Set(field.NewEventPx(v)) +func (m NoEvents) SetEventPx(value decimal.Decimal, scale int32) { + m.Set(field.NewEventPx(value, scale)) } //SetEventText sets EventText, Tag 868 @@ -2190,13 +2191,13 @@ func (m NoComplexEvents) SetComplexEventType(v int) { } //SetComplexOptPayoutAmount sets ComplexOptPayoutAmount, Tag 1485 -func (m NoComplexEvents) SetComplexOptPayoutAmount(v float64) { - m.Set(field.NewComplexOptPayoutAmount(v)) +func (m NoComplexEvents) SetComplexOptPayoutAmount(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexOptPayoutAmount(value, scale)) } //SetComplexEventPrice sets ComplexEventPrice, Tag 1486 -func (m NoComplexEvents) SetComplexEventPrice(v float64) { - m.Set(field.NewComplexEventPrice(v)) +func (m NoComplexEvents) SetComplexEventPrice(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPrice(value, scale)) } //SetComplexEventPriceBoundaryMethod sets ComplexEventPriceBoundaryMethod, Tag 1487 @@ -2205,8 +2206,8 @@ func (m NoComplexEvents) SetComplexEventPriceBoundaryMethod(v int) { } //SetComplexEventPriceBoundaryPrecision sets ComplexEventPriceBoundaryPrecision, Tag 1488 -func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(v float64) { - m.Set(field.NewComplexEventPriceBoundaryPrecision(v)) +func (m NoComplexEvents) SetComplexEventPriceBoundaryPrecision(value decimal.Decimal, scale int32) { + m.Set(field.NewComplexEventPriceBoundaryPrecision(value, scale)) } //SetComplexEventPriceTimeType sets ComplexEventPriceTimeType, Tag 1489