forked from quickfixgo/quickfix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Confirmation.generated.go
6774 lines (5684 loc) · 207 KB
/
Confirmation.generated.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package confirmation
import (
"github.com/shopspring/decimal"
"time"
"github.com/quickfixgo/quickfix"
"github.com/quickfixgo/quickfix/enum"
"github.com/quickfixgo/quickfix/field"
"github.com/quickfixgo/quickfix/fixt11"
"github.com/quickfixgo/quickfix/tag"
)
//Confirmation is the fix50 Confirmation type, MsgType = AK
type Confirmation struct {
fixt11.Header
*quickfix.Body
fixt11.Trailer
Message *quickfix.Message
}
//FromMessage creates a Confirmation from a quickfix.Message instance
func FromMessage(m *quickfix.Message) Confirmation {
return Confirmation{
Header: fixt11.Header{&m.Header},
Body: &m.Body,
Trailer: fixt11.Trailer{&m.Trailer},
Message: m,
}
}
//ToMessage returns a quickfix.Message instance
func (m Confirmation) ToMessage() *quickfix.Message {
return m.Message
}
//New returns a Confirmation initialized with the required fields for Confirmation
func New(confirmid field.ConfirmIDField, confirmtranstype field.ConfirmTransTypeField, confirmtype field.ConfirmTypeField, confirmstatus field.ConfirmStatusField, transacttime field.TransactTimeField, tradedate field.TradeDateField, allocqty field.AllocQtyField, side field.SideField, allocaccount field.AllocAccountField, avgpx field.AvgPxField, grosstradeamt field.GrossTradeAmtField, netmoney field.NetMoneyField) (m Confirmation) {
m.Message = quickfix.NewMessage()
m.Header = fixt11.NewHeader(&m.Message.Header)
m.Body = &m.Message.Body
m.Trailer.Trailer = &m.Message.Trailer
m.Header.Set(field.NewMsgType("AK"))
m.Set(confirmid)
m.Set(confirmtranstype)
m.Set(confirmtype)
m.Set(confirmstatus)
m.Set(transacttime)
m.Set(tradedate)
m.Set(allocqty)
m.Set(side)
m.Set(allocaccount)
m.Set(avgpx)
m.Set(grosstradeamt)
m.Set(netmoney)
return
}
//A RouteOut is the callback type that should be implemented for routing Message
type RouteOut func(msg Confirmation, sessionID quickfix.SessionID) quickfix.MessageRejectError
//Route returns the beginstring, message type, and MessageRoute for this Message type
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
return router(FromMessage(msg), sessionID)
}
return "7", "AK", r
}
//SetAvgPx sets AvgPx, Tag 6
func (m Confirmation) SetAvgPx(value decimal.Decimal, scale int32) {
m.Set(field.NewAvgPx(value, scale))
}
//SetCommission sets Commission, Tag 12
func (m Confirmation) SetCommission(value decimal.Decimal, scale int32) {
m.Set(field.NewCommission(value, scale))
}
//SetCommType sets CommType, Tag 13
func (m Confirmation) SetCommType(v enum.CommType) {
m.Set(field.NewCommType(v))
}
//SetCurrency sets Currency, Tag 15
func (m Confirmation) SetCurrency(v string) {
m.Set(field.NewCurrency(v))
}
//SetSecurityIDSource sets SecurityIDSource, Tag 22
func (m Confirmation) SetSecurityIDSource(v enum.SecurityIDSource) {
m.Set(field.NewSecurityIDSource(v))
}
//SetLastMkt sets LastMkt, Tag 30
func (m Confirmation) SetLastMkt(v string) {
m.Set(field.NewLastMkt(v))
}
//SetSecurityID sets SecurityID, Tag 48
func (m Confirmation) SetSecurityID(v string) {
m.Set(field.NewSecurityID(v))
}
//SetSide sets Side, Tag 54
func (m Confirmation) SetSide(v enum.Side) {
m.Set(field.NewSide(v))
}
//SetSymbol sets Symbol, Tag 55
func (m Confirmation) SetSymbol(v string) {
m.Set(field.NewSymbol(v))
}
//SetText sets Text, Tag 58
func (m Confirmation) SetText(v string) {
m.Set(field.NewText(v))
}
//SetTransactTime sets TransactTime, Tag 60
func (m Confirmation) SetTransactTime(v time.Time) {
m.Set(field.NewTransactTime(v))
}
//SetSettlType sets SettlType, Tag 63
func (m Confirmation) SetSettlType(v enum.SettlType) {
m.Set(field.NewSettlType(v))
}
//SetSettlDate sets SettlDate, Tag 64
func (m Confirmation) SetSettlDate(v string) {
m.Set(field.NewSettlDate(v))
}
//SetSymbolSfx sets SymbolSfx, Tag 65
func (m Confirmation) SetSymbolSfx(v enum.SymbolSfx) {
m.Set(field.NewSymbolSfx(v))
}
//SetAllocID sets AllocID, Tag 70
func (m Confirmation) SetAllocID(v string) {
m.Set(field.NewAllocID(v))
}
//SetNoOrders sets NoOrders, Tag 73
func (m Confirmation) SetNoOrders(f NoOrdersRepeatingGroup) {
m.SetGroup(f)
}
//SetAvgPxPrecision sets AvgPxPrecision, Tag 74
func (m Confirmation) SetAvgPxPrecision(v int) {
m.Set(field.NewAvgPxPrecision(v))
}
//SetTradeDate sets TradeDate, Tag 75
func (m Confirmation) SetTradeDate(v string) {
m.Set(field.NewTradeDate(v))
}
//SetAllocAccount sets AllocAccount, Tag 79
func (m Confirmation) SetAllocAccount(v string) {
m.Set(field.NewAllocAccount(v))
}
//SetAllocQty sets AllocQty, Tag 80
func (m Confirmation) SetAllocQty(value decimal.Decimal, scale int32) {
m.Set(field.NewAllocQty(value, scale))
}
//SetProcessCode sets ProcessCode, Tag 81
func (m Confirmation) SetProcessCode(v enum.ProcessCode) {
m.Set(field.NewProcessCode(v))
}
//SetNoDlvyInst sets NoDlvyInst, Tag 85
func (m Confirmation) SetNoDlvyInst(f NoDlvyInstRepeatingGroup) {
m.SetGroup(f)
}
//SetIssuer sets Issuer, Tag 106
func (m Confirmation) SetIssuer(v string) {
m.Set(field.NewIssuer(v))
}
//SetSecurityDesc sets SecurityDesc, Tag 107
func (m Confirmation) SetSecurityDesc(v string) {
m.Set(field.NewSecurityDesc(v))
}
//SetNetMoney sets NetMoney, Tag 118
func (m Confirmation) SetNetMoney(value decimal.Decimal, scale int32) {
m.Set(field.NewNetMoney(value, scale))
}
//SetSettlCurrAmt sets SettlCurrAmt, Tag 119
func (m Confirmation) SetSettlCurrAmt(value decimal.Decimal, scale int32) {
m.Set(field.NewSettlCurrAmt(value, scale))
}
//SetSettlCurrency sets SettlCurrency, Tag 120
func (m Confirmation) SetSettlCurrency(v string) {
m.Set(field.NewSettlCurrency(v))
}
//SetNoMiscFees sets NoMiscFees, Tag 136
func (m Confirmation) SetNoMiscFees(f NoMiscFeesRepeatingGroup) {
m.SetGroup(f)
}
//SetSettlCurrFxRate sets SettlCurrFxRate, Tag 155
func (m Confirmation) SetSettlCurrFxRate(value decimal.Decimal, scale int32) {
m.Set(field.NewSettlCurrFxRate(value, scale))
}
//SetSettlCurrFxRateCalc sets SettlCurrFxRateCalc, Tag 156
func (m Confirmation) SetSettlCurrFxRateCalc(v enum.SettlCurrFxRateCalc) {
m.Set(field.NewSettlCurrFxRateCalc(v))
}
//SetNumDaysInterest sets NumDaysInterest, Tag 157
func (m Confirmation) SetNumDaysInterest(v int) {
m.Set(field.NewNumDaysInterest(v))
}
//SetAccruedInterestRate sets AccruedInterestRate, Tag 158
func (m Confirmation) SetAccruedInterestRate(value decimal.Decimal, scale int32) {
m.Set(field.NewAccruedInterestRate(value, scale))
}
//SetAccruedInterestAmt sets AccruedInterestAmt, Tag 159
func (m Confirmation) SetAccruedInterestAmt(value decimal.Decimal, scale int32) {
m.Set(field.NewAccruedInterestAmt(value, scale))
}
//SetSecurityType sets SecurityType, Tag 167
func (m Confirmation) SetSecurityType(v enum.SecurityType) {
m.Set(field.NewSecurityType(v))
}
//SetStandInstDbType sets StandInstDbType, Tag 169
func (m Confirmation) SetStandInstDbType(v enum.StandInstDbType) {
m.Set(field.NewStandInstDbType(v))
}
//SetStandInstDbName sets StandInstDbName, Tag 170
func (m Confirmation) SetStandInstDbName(v string) {
m.Set(field.NewStandInstDbName(v))
}
//SetStandInstDbID sets StandInstDbID, Tag 171
func (m Confirmation) SetStandInstDbID(v string) {
m.Set(field.NewStandInstDbID(v))
}
//SetSettlDeliveryType sets SettlDeliveryType, Tag 172
func (m Confirmation) SetSettlDeliveryType(v enum.SettlDeliveryType) {
m.Set(field.NewSettlDeliveryType(v))
}
//SetMaturityMonthYear sets MaturityMonthYear, Tag 200
func (m Confirmation) SetMaturityMonthYear(v string) {
m.Set(field.NewMaturityMonthYear(v))
}
//SetStrikePrice sets StrikePrice, Tag 202
func (m Confirmation) SetStrikePrice(value decimal.Decimal, scale int32) {
m.Set(field.NewStrikePrice(value, scale))
}
//SetOptAttribute sets OptAttribute, Tag 206
func (m Confirmation) SetOptAttribute(v string) {
m.Set(field.NewOptAttribute(v))
}
//SetSecurityExchange sets SecurityExchange, Tag 207
func (m Confirmation) SetSecurityExchange(v string) {
m.Set(field.NewSecurityExchange(v))
}
//SetSpread sets Spread, Tag 218
func (m Confirmation) SetSpread(value decimal.Decimal, scale int32) {
m.Set(field.NewSpread(value, scale))
}
//SetBenchmarkCurveCurrency sets BenchmarkCurveCurrency, Tag 220
func (m Confirmation) SetBenchmarkCurveCurrency(v string) {
m.Set(field.NewBenchmarkCurveCurrency(v))
}
//SetBenchmarkCurveName sets BenchmarkCurveName, Tag 221
func (m Confirmation) SetBenchmarkCurveName(v enum.BenchmarkCurveName) {
m.Set(field.NewBenchmarkCurveName(v))
}
//SetBenchmarkCurvePoint sets BenchmarkCurvePoint, Tag 222
func (m Confirmation) SetBenchmarkCurvePoint(v string) {
m.Set(field.NewBenchmarkCurvePoint(v))
}
//SetCouponRate sets CouponRate, Tag 223
func (m Confirmation) SetCouponRate(value decimal.Decimal, scale int32) {
m.Set(field.NewCouponRate(value, scale))
}
//SetCouponPaymentDate sets CouponPaymentDate, Tag 224
func (m Confirmation) SetCouponPaymentDate(v string) {
m.Set(field.NewCouponPaymentDate(v))
}
//SetIssueDate sets IssueDate, Tag 225
func (m Confirmation) SetIssueDate(v string) {
m.Set(field.NewIssueDate(v))
}
//SetRepurchaseTerm sets RepurchaseTerm, Tag 226
func (m Confirmation) SetRepurchaseTerm(v int) {
m.Set(field.NewRepurchaseTerm(v))
}
//SetRepurchaseRate sets RepurchaseRate, Tag 227
func (m Confirmation) SetRepurchaseRate(value decimal.Decimal, scale int32) {
m.Set(field.NewRepurchaseRate(value, scale))
}
//SetFactor sets Factor, Tag 228
func (m Confirmation) SetFactor(value decimal.Decimal, scale int32) {
m.Set(field.NewFactor(value, scale))
}
//SetExDate sets ExDate, Tag 230
func (m Confirmation) SetExDate(v string) {
m.Set(field.NewExDate(v))
}
//SetContractMultiplier sets ContractMultiplier, Tag 231
func (m Confirmation) SetContractMultiplier(value decimal.Decimal, scale int32) {
m.Set(field.NewContractMultiplier(value, scale))
}
//SetNoStipulations sets NoStipulations, Tag 232
func (m Confirmation) SetNoStipulations(f NoStipulationsRepeatingGroup) {
m.SetGroup(f)
}
//SetYieldType sets YieldType, Tag 235
func (m Confirmation) SetYieldType(v enum.YieldType) {
m.Set(field.NewYieldType(v))
}
//SetYield sets Yield, Tag 236
func (m Confirmation) SetYield(value decimal.Decimal, scale int32) {
m.Set(field.NewYield(value, scale))
}
//SetTotalTakedown sets TotalTakedown, Tag 237
func (m Confirmation) SetTotalTakedown(value decimal.Decimal, scale int32) {
m.Set(field.NewTotalTakedown(value, scale))
}
//SetConcession sets Concession, Tag 238
func (m Confirmation) SetConcession(value decimal.Decimal, scale int32) {
m.Set(field.NewConcession(value, scale))
}
//SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239
func (m Confirmation) SetRepoCollateralSecurityType(v int) {
m.Set(field.NewRepoCollateralSecurityType(v))
}
//SetRedemptionDate sets RedemptionDate, Tag 240
func (m Confirmation) SetRedemptionDate(v string) {
m.Set(field.NewRedemptionDate(v))
}
//SetCreditRating sets CreditRating, Tag 255
func (m Confirmation) SetCreditRating(v string) {
m.Set(field.NewCreditRating(v))
}
//SetEncodedIssuerLen sets EncodedIssuerLen, Tag 348
func (m Confirmation) SetEncodedIssuerLen(v int) {
m.Set(field.NewEncodedIssuerLen(v))
}
//SetEncodedIssuer sets EncodedIssuer, Tag 349
func (m Confirmation) SetEncodedIssuer(v string) {
m.Set(field.NewEncodedIssuer(v))
}
//SetEncodedSecurityDescLen sets EncodedSecurityDescLen, Tag 350
func (m Confirmation) SetEncodedSecurityDescLen(v int) {
m.Set(field.NewEncodedSecurityDescLen(v))
}
//SetEncodedSecurityDesc sets EncodedSecurityDesc, Tag 351
func (m Confirmation) SetEncodedSecurityDesc(v string) {
m.Set(field.NewEncodedSecurityDesc(v))
}
//SetEncodedTextLen sets EncodedTextLen, Tag 354
func (m Confirmation) SetEncodedTextLen(v int) {
m.Set(field.NewEncodedTextLen(v))
}
//SetEncodedText sets EncodedText, Tag 355
func (m Confirmation) SetEncodedText(v string) {
m.Set(field.NewEncodedText(v))
}
//SetGrossTradeAmt sets GrossTradeAmt, Tag 381
func (m Confirmation) SetGrossTradeAmt(value decimal.Decimal, scale int32) {
m.Set(field.NewGrossTradeAmt(value, scale))
}
//SetPriceType sets PriceType, Tag 423
func (m Confirmation) SetPriceType(v enum.PriceType) {
m.Set(field.NewPriceType(v))
}
//SetNoPartyIDs sets NoPartyIDs, Tag 453
func (m Confirmation) SetNoPartyIDs(f NoPartyIDsRepeatingGroup) {
m.SetGroup(f)
}
//SetNoSecurityAltID sets NoSecurityAltID, Tag 454
func (m Confirmation) SetNoSecurityAltID(f NoSecurityAltIDRepeatingGroup) {
m.SetGroup(f)
}
//SetProduct sets Product, Tag 460
func (m Confirmation) SetProduct(v enum.Product) {
m.Set(field.NewProduct(v))
}
//SetCFICode sets CFICode, Tag 461
func (m Confirmation) SetCFICode(v string) {
m.Set(field.NewCFICode(v))
}
//SetIndividualAllocID sets IndividualAllocID, Tag 467
func (m Confirmation) SetIndividualAllocID(v string) {
m.Set(field.NewIndividualAllocID(v))
}
//SetCountryOfIssue sets CountryOfIssue, Tag 470
func (m Confirmation) SetCountryOfIssue(v string) {
m.Set(field.NewCountryOfIssue(v))
}
//SetStateOrProvinceOfIssue sets StateOrProvinceOfIssue, Tag 471
func (m Confirmation) SetStateOrProvinceOfIssue(v string) {
m.Set(field.NewStateOrProvinceOfIssue(v))
}
//SetLocaleOfIssue sets LocaleOfIssue, Tag 472
func (m Confirmation) SetLocaleOfIssue(v string) {
m.Set(field.NewLocaleOfIssue(v))
}
//SetCommCurrency sets CommCurrency, Tag 479
func (m Confirmation) SetCommCurrency(v string) {
m.Set(field.NewCommCurrency(v))
}
//SetFundRenewWaiv sets FundRenewWaiv, Tag 497
func (m Confirmation) SetFundRenewWaiv(v enum.FundRenewWaiv) {
m.Set(field.NewFundRenewWaiv(v))
}
//SetMaturityDate sets MaturityDate, Tag 541
func (m Confirmation) SetMaturityDate(v string) {
m.Set(field.NewMaturityDate(v))
}
//SetInstrRegistry sets InstrRegistry, Tag 543
func (m Confirmation) SetInstrRegistry(v enum.InstrRegistry) {
m.Set(field.NewInstrRegistry(v))
}
//SetNoLegs sets NoLegs, Tag 555
func (m Confirmation) SetNoLegs(f NoLegsRepeatingGroup) {
m.SetGroup(f)
}
//SetLegalConfirm sets LegalConfirm, Tag 650
func (m Confirmation) SetLegalConfirm(v bool) {
m.Set(field.NewLegalConfirm(v))
}
//SetAllocAcctIDSource sets AllocAcctIDSource, Tag 661
func (m Confirmation) SetAllocAcctIDSource(v int) {
m.Set(field.NewAllocAcctIDSource(v))
}
//SetBenchmarkPrice sets BenchmarkPrice, Tag 662
func (m Confirmation) SetBenchmarkPrice(value decimal.Decimal, scale int32) {
m.Set(field.NewBenchmarkPrice(value, scale))
}
//SetBenchmarkPriceType sets BenchmarkPriceType, Tag 663
func (m Confirmation) SetBenchmarkPriceType(v int) {
m.Set(field.NewBenchmarkPriceType(v))
}
//SetConfirmID sets ConfirmID, Tag 664
func (m Confirmation) SetConfirmID(v string) {
m.Set(field.NewConfirmID(v))
}
//SetConfirmStatus sets ConfirmStatus, Tag 665
func (m Confirmation) SetConfirmStatus(v enum.ConfirmStatus) {
m.Set(field.NewConfirmStatus(v))
}
//SetConfirmTransType sets ConfirmTransType, Tag 666
func (m Confirmation) SetConfirmTransType(v enum.ConfirmTransType) {
m.Set(field.NewConfirmTransType(v))
}
//SetContractSettlMonth sets ContractSettlMonth, Tag 667
func (m Confirmation) SetContractSettlMonth(v string) {
m.Set(field.NewContractSettlMonth(v))
}
//SetDeliveryForm sets DeliveryForm, Tag 668
func (m Confirmation) SetDeliveryForm(v enum.DeliveryForm) {
m.Set(field.NewDeliveryForm(v))
}
//SetPool sets Pool, Tag 691
func (m Confirmation) SetPool(v string) {
m.Set(field.NewPool(v))
}
//SetYieldRedemptionDate sets YieldRedemptionDate, Tag 696
func (m Confirmation) SetYieldRedemptionDate(v string) {
m.Set(field.NewYieldRedemptionDate(v))
}
//SetYieldRedemptionPrice sets YieldRedemptionPrice, Tag 697
func (m Confirmation) SetYieldRedemptionPrice(value decimal.Decimal, scale int32) {
m.Set(field.NewYieldRedemptionPrice(value, scale))
}
//SetYieldRedemptionPriceType sets YieldRedemptionPriceType, Tag 698
func (m Confirmation) SetYieldRedemptionPriceType(v int) {
m.Set(field.NewYieldRedemptionPriceType(v))
}
//SetBenchmarkSecurityID sets BenchmarkSecurityID, Tag 699
func (m Confirmation) SetBenchmarkSecurityID(v string) {
m.Set(field.NewBenchmarkSecurityID(v))
}
//SetYieldCalcDate sets YieldCalcDate, Tag 701
func (m Confirmation) SetYieldCalcDate(v string) {
m.Set(field.NewYieldCalcDate(v))
}
//SetNoUnderlyings sets NoUnderlyings, Tag 711
func (m Confirmation) SetNoUnderlyings(f NoUnderlyingsRepeatingGroup) {
m.SetGroup(f)
}
//SetInterestAtMaturity sets InterestAtMaturity, Tag 738
func (m Confirmation) SetInterestAtMaturity(value decimal.Decimal, scale int32) {
m.Set(field.NewInterestAtMaturity(value, scale))
}
//SetBenchmarkSecurityIDSource sets BenchmarkSecurityIDSource, Tag 761
func (m Confirmation) SetBenchmarkSecurityIDSource(v string) {
m.Set(field.NewBenchmarkSecurityIDSource(v))
}
//SetSecuritySubType sets SecuritySubType, Tag 762
func (m Confirmation) SetSecuritySubType(v string) {
m.Set(field.NewSecuritySubType(v))
}
//SetNoTrdRegTimestamps sets NoTrdRegTimestamps, Tag 768
func (m Confirmation) SetNoTrdRegTimestamps(f NoTrdRegTimestampsRepeatingGroup) {
m.SetGroup(f)
}
//SetConfirmRefID sets ConfirmRefID, Tag 772
func (m Confirmation) SetConfirmRefID(v string) {
m.Set(field.NewConfirmRefID(v))
}
//SetConfirmType sets ConfirmType, Tag 773
func (m Confirmation) SetConfirmType(v enum.ConfirmType) {
m.Set(field.NewConfirmType(v))
}
//SetTerminationType sets TerminationType, Tag 788
func (m Confirmation) SetTerminationType(v enum.TerminationType) {
m.Set(field.NewTerminationType(v))
}
//SetSecondaryAllocID sets SecondaryAllocID, Tag 793
func (m Confirmation) SetSecondaryAllocID(v string) {
m.Set(field.NewSecondaryAllocID(v))
}
//SetCopyMsgIndicator sets CopyMsgIndicator, Tag 797
func (m Confirmation) SetCopyMsgIndicator(v bool) {
m.Set(field.NewCopyMsgIndicator(v))
}
//SetAllocAccountType sets AllocAccountType, Tag 798
func (m Confirmation) SetAllocAccountType(v enum.AllocAccountType) {
m.Set(field.NewAllocAccountType(v))
}
//SetQtyType sets QtyType, Tag 854
func (m Confirmation) SetQtyType(v enum.QtyType) {
m.Set(field.NewQtyType(v))
}
//SetSharedCommission sets SharedCommission, Tag 858
func (m Confirmation) SetSharedCommission(value decimal.Decimal, scale int32) {
m.Set(field.NewSharedCommission(value, scale))
}
//SetConfirmReqID sets ConfirmReqID, Tag 859
func (m Confirmation) SetConfirmReqID(v string) {
m.Set(field.NewConfirmReqID(v))
}
//SetAvgParPx sets AvgParPx, Tag 860
func (m Confirmation) SetAvgParPx(value decimal.Decimal, scale int32) {
m.Set(field.NewAvgParPx(value, scale))
}
//SetReportedPx sets ReportedPx, Tag 861
func (m Confirmation) SetReportedPx(value decimal.Decimal, scale int32) {
m.Set(field.NewReportedPx(value, scale))
}
//SetNoCapacities sets NoCapacities, Tag 862
func (m Confirmation) SetNoCapacities(f NoCapacitiesRepeatingGroup) {
m.SetGroup(f)
}
//SetNoEvents sets NoEvents, Tag 864
func (m Confirmation) SetNoEvents(f NoEventsRepeatingGroup) {
m.SetGroup(f)
}
//SetPctAtRisk sets PctAtRisk, Tag 869
func (m Confirmation) SetPctAtRisk(value decimal.Decimal, scale int32) {
m.Set(field.NewPctAtRisk(value, scale))
}
//SetNoInstrAttrib sets NoInstrAttrib, Tag 870
func (m Confirmation) SetNoInstrAttrib(f NoInstrAttribRepeatingGroup) {
m.SetGroup(f)
}
//SetDatedDate sets DatedDate, Tag 873
func (m Confirmation) SetDatedDate(v string) {
m.Set(field.NewDatedDate(v))
}
//SetInterestAccrualDate sets InterestAccrualDate, Tag 874
func (m Confirmation) SetInterestAccrualDate(v string) {
m.Set(field.NewInterestAccrualDate(v))
}
//SetCPProgram sets CPProgram, Tag 875
func (m Confirmation) SetCPProgram(v enum.CPProgram) {
m.Set(field.NewCPProgram(v))
}
//SetCPRegType sets CPRegType, Tag 876
func (m Confirmation) SetCPRegType(v string) {
m.Set(field.NewCPRegType(v))
}
//SetMaturityNetMoney sets MaturityNetMoney, Tag 890
func (m Confirmation) SetMaturityNetMoney(value decimal.Decimal, scale int32) {
m.Set(field.NewMaturityNetMoney(value, scale))
}
//SetMarginRatio sets MarginRatio, Tag 898
func (m Confirmation) SetMarginRatio(value decimal.Decimal, scale int32) {
m.Set(field.NewMarginRatio(value, scale))
}
//SetAgreementDesc sets AgreementDesc, Tag 913
func (m Confirmation) SetAgreementDesc(v string) {
m.Set(field.NewAgreementDesc(v))
}
//SetAgreementID sets AgreementID, Tag 914
func (m Confirmation) SetAgreementID(v string) {
m.Set(field.NewAgreementID(v))
}
//SetAgreementDate sets AgreementDate, Tag 915
func (m Confirmation) SetAgreementDate(v string) {
m.Set(field.NewAgreementDate(v))
}
//SetStartDate sets StartDate, Tag 916
func (m Confirmation) SetStartDate(v string) {
m.Set(field.NewStartDate(v))
}
//SetEndDate sets EndDate, Tag 917
func (m Confirmation) SetEndDate(v string) {
m.Set(field.NewEndDate(v))
}
//SetAgreementCurrency sets AgreementCurrency, Tag 918
func (m Confirmation) SetAgreementCurrency(v string) {
m.Set(field.NewAgreementCurrency(v))
}
//SetDeliveryType sets DeliveryType, Tag 919
func (m Confirmation) SetDeliveryType(v enum.DeliveryType) {
m.Set(field.NewDeliveryType(v))
}
//SetEndAccruedInterestAmt sets EndAccruedInterestAmt, Tag 920
func (m Confirmation) SetEndAccruedInterestAmt(value decimal.Decimal, scale int32) {
m.Set(field.NewEndAccruedInterestAmt(value, scale))
}
//SetStartCash sets StartCash, Tag 921
func (m Confirmation) SetStartCash(value decimal.Decimal, scale int32) {
m.Set(field.NewStartCash(value, scale))
}
//SetEndCash sets EndCash, Tag 922
func (m Confirmation) SetEndCash(value decimal.Decimal, scale int32) {
m.Set(field.NewEndCash(value, scale))
}
//SetStrikeCurrency sets StrikeCurrency, Tag 947
func (m Confirmation) SetStrikeCurrency(v string) {
m.Set(field.NewStrikeCurrency(v))
}
//SetSecurityStatus sets SecurityStatus, Tag 965
func (m Confirmation) SetSecurityStatus(v enum.SecurityStatus) {
m.Set(field.NewSecurityStatus(v))
}
//SetSettleOnOpenFlag sets SettleOnOpenFlag, Tag 966
func (m Confirmation) SetSettleOnOpenFlag(v string) {
m.Set(field.NewSettleOnOpenFlag(v))
}
//SetStrikeMultiplier sets StrikeMultiplier, Tag 967
func (m Confirmation) SetStrikeMultiplier(value decimal.Decimal, scale int32) {
m.Set(field.NewStrikeMultiplier(value, scale))
}
//SetStrikeValue sets StrikeValue, Tag 968
func (m Confirmation) SetStrikeValue(value decimal.Decimal, scale int32) {
m.Set(field.NewStrikeValue(value, scale))
}
//SetMinPriceIncrement sets MinPriceIncrement, Tag 969
func (m Confirmation) SetMinPriceIncrement(value decimal.Decimal, scale int32) {
m.Set(field.NewMinPriceIncrement(value, scale))
}
//SetPositionLimit sets PositionLimit, Tag 970
func (m Confirmation) SetPositionLimit(v int) {
m.Set(field.NewPositionLimit(v))
}
//SetNTPositionLimit sets NTPositionLimit, Tag 971
func (m Confirmation) SetNTPositionLimit(v int) {
m.Set(field.NewNTPositionLimit(v))
}
//SetUnitOfMeasure sets UnitOfMeasure, Tag 996
func (m Confirmation) SetUnitOfMeasure(v enum.UnitOfMeasure) {
m.Set(field.NewUnitOfMeasure(v))
}
//SetTimeUnit sets TimeUnit, Tag 997
func (m Confirmation) SetTimeUnit(v enum.TimeUnit) {
m.Set(field.NewTimeUnit(v))
}
//SetNoInstrumentParties sets NoInstrumentParties, Tag 1018
func (m Confirmation) SetNoInstrumentParties(f NoInstrumentPartiesRepeatingGroup) {
m.SetGroup(f)
}
//SetInstrmtAssignmentMethod sets InstrmtAssignmentMethod, Tag 1049
func (m Confirmation) SetInstrmtAssignmentMethod(v string) {
m.Set(field.NewInstrmtAssignmentMethod(v))
}
//SetMaturityTime sets MaturityTime, Tag 1079
func (m Confirmation) SetMaturityTime(v string) {
m.Set(field.NewMaturityTime(v))
}
//GetAvgPx gets AvgPx, Tag 6
func (m Confirmation) GetAvgPx() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.AvgPxField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetCommission gets Commission, Tag 12
func (m Confirmation) GetCommission() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.CommissionField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetCommType gets CommType, Tag 13
func (m Confirmation) GetCommType() (v enum.CommType, err quickfix.MessageRejectError) {
var f field.CommTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetCurrency gets Currency, Tag 15
func (m Confirmation) GetCurrency() (v string, err quickfix.MessageRejectError) {
var f field.CurrencyField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetSecurityIDSource gets SecurityIDSource, Tag 22
func (m Confirmation) GetSecurityIDSource() (v enum.SecurityIDSource, err quickfix.MessageRejectError) {
var f field.SecurityIDSourceField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetLastMkt gets LastMkt, Tag 30
func (m Confirmation) GetLastMkt() (v string, err quickfix.MessageRejectError) {
var f field.LastMktField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetSecurityID gets SecurityID, Tag 48
func (m Confirmation) GetSecurityID() (v string, err quickfix.MessageRejectError) {
var f field.SecurityIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetSide gets Side, Tag 54
func (m Confirmation) GetSide() (v enum.Side, err quickfix.MessageRejectError) {
var f field.SideField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetSymbol gets Symbol, Tag 55
func (m Confirmation) GetSymbol() (v string, err quickfix.MessageRejectError) {
var f field.SymbolField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetText gets Text, Tag 58
func (m Confirmation) GetText() (v string, err quickfix.MessageRejectError) {
var f field.TextField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetTransactTime gets TransactTime, Tag 60
func (m Confirmation) GetTransactTime() (v time.Time, err quickfix.MessageRejectError) {
var f field.TransactTimeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetSettlType gets SettlType, Tag 63
func (m Confirmation) GetSettlType() (v enum.SettlType, err quickfix.MessageRejectError) {
var f field.SettlTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetSettlDate gets SettlDate, Tag 64
func (m Confirmation) GetSettlDate() (v string, err quickfix.MessageRejectError) {
var f field.SettlDateField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetSymbolSfx gets SymbolSfx, Tag 65
func (m Confirmation) GetSymbolSfx() (v enum.SymbolSfx, err quickfix.MessageRejectError) {
var f field.SymbolSfxField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetAllocID gets AllocID, Tag 70
func (m Confirmation) GetAllocID() (v string, err quickfix.MessageRejectError) {
var f field.AllocIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetNoOrders gets NoOrders, Tag 73
func (m Confirmation) GetNoOrders() (NoOrdersRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoOrdersRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
//GetAvgPxPrecision gets AvgPxPrecision, Tag 74
func (m Confirmation) GetAvgPxPrecision() (v int, err quickfix.MessageRejectError) {
var f field.AvgPxPrecisionField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetTradeDate gets TradeDate, Tag 75
func (m Confirmation) GetTradeDate() (v string, err quickfix.MessageRejectError) {
var f field.TradeDateField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetAllocAccount gets AllocAccount, Tag 79
func (m Confirmation) GetAllocAccount() (v string, err quickfix.MessageRejectError) {
var f field.AllocAccountField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetAllocQty gets AllocQty, Tag 80
func (m Confirmation) GetAllocQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.AllocQtyField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetProcessCode gets ProcessCode, Tag 81
func (m Confirmation) GetProcessCode() (v enum.ProcessCode, err quickfix.MessageRejectError) {
var f field.ProcessCodeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetNoDlvyInst gets NoDlvyInst, Tag 85
func (m Confirmation) GetNoDlvyInst() (NoDlvyInstRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoDlvyInstRepeatingGroup()
err := m.GetGroup(f)
return f, err
}