forked from quickfixgo/quickfix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BidRequest.generated.go
1047 lines (880 loc) · 29.7 KB
/
BidRequest.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 bidrequest
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"
)
//BidRequest is the fix50sp1 BidRequest type, MsgType = k
type BidRequest struct {
fixt11.Header
*quickfix.Body
fixt11.Trailer
Message *quickfix.Message
}
//FromMessage creates a BidRequest from a quickfix.Message instance
func FromMessage(m *quickfix.Message) BidRequest {
return BidRequest{
Header: fixt11.Header{&m.Header},
Body: &m.Body,
Trailer: fixt11.Trailer{&m.Trailer},
Message: m,
}
}
//ToMessage returns a quickfix.Message instance
func (m BidRequest) ToMessage() *quickfix.Message {
return m.Message
}
//New returns a BidRequest initialized with the required fields for BidRequest
func New(clientbidid field.ClientBidIDField, bidrequesttranstype field.BidRequestTransTypeField, totnorelatedsym field.TotNoRelatedSymField, bidtype field.BidTypeField, bidtradetype field.BidTradeTypeField, basispxtype field.BasisPxTypeField) (m BidRequest) {
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("k"))
m.Set(clientbidid)
m.Set(bidrequesttranstype)
m.Set(totnorelatedsym)
m.Set(bidtype)
m.Set(bidtradetype)
m.Set(basispxtype)
return
}
//A RouteOut is the callback type that should be implemented for routing Message
type RouteOut func(msg BidRequest, 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 "8", "k", r
}
//SetCurrency sets Currency, Tag 15
func (m BidRequest) SetCurrency(v string) {
m.Set(field.NewCurrency(v))
}
//SetText sets Text, Tag 58
func (m BidRequest) SetText(v string) {
m.Set(field.NewText(v))
}
//SetTradeDate sets TradeDate, Tag 75
func (m BidRequest) SetTradeDate(v string) {
m.Set(field.NewTradeDate(v))
}
//SetForexReq sets ForexReq, Tag 121
func (m BidRequest) SetForexReq(v bool) {
m.Set(field.NewForexReq(v))
}
//SetEncodedTextLen sets EncodedTextLen, Tag 354
func (m BidRequest) SetEncodedTextLen(v int) {
m.Set(field.NewEncodedTextLen(v))
}
//SetEncodedText sets EncodedText, Tag 355
func (m BidRequest) SetEncodedText(v string) {
m.Set(field.NewEncodedText(v))
}
//SetBidRequestTransType sets BidRequestTransType, Tag 374
func (m BidRequest) SetBidRequestTransType(v enum.BidRequestTransType) {
m.Set(field.NewBidRequestTransType(v))
}
//SetBidID sets BidID, Tag 390
func (m BidRequest) SetBidID(v string) {
m.Set(field.NewBidID(v))
}
//SetClientBidID sets ClientBidID, Tag 391
func (m BidRequest) SetClientBidID(v string) {
m.Set(field.NewClientBidID(v))
}
//SetListName sets ListName, Tag 392
func (m BidRequest) SetListName(v string) {
m.Set(field.NewListName(v))
}
//SetTotNoRelatedSym sets TotNoRelatedSym, Tag 393
func (m BidRequest) SetTotNoRelatedSym(v int) {
m.Set(field.NewTotNoRelatedSym(v))
}
//SetBidType sets BidType, Tag 394
func (m BidRequest) SetBidType(v enum.BidType) {
m.Set(field.NewBidType(v))
}
//SetNumTickets sets NumTickets, Tag 395
func (m BidRequest) SetNumTickets(v int) {
m.Set(field.NewNumTickets(v))
}
//SetSideValue1 sets SideValue1, Tag 396
func (m BidRequest) SetSideValue1(value decimal.Decimal, scale int32) {
m.Set(field.NewSideValue1(value, scale))
}
//SetSideValue2 sets SideValue2, Tag 397
func (m BidRequest) SetSideValue2(value decimal.Decimal, scale int32) {
m.Set(field.NewSideValue2(value, scale))
}
//SetNoBidDescriptors sets NoBidDescriptors, Tag 398
func (m BidRequest) SetNoBidDescriptors(f NoBidDescriptorsRepeatingGroup) {
m.SetGroup(f)
}
//SetLiquidityIndType sets LiquidityIndType, Tag 409
func (m BidRequest) SetLiquidityIndType(v enum.LiquidityIndType) {
m.Set(field.NewLiquidityIndType(v))
}
//SetWtAverageLiquidity sets WtAverageLiquidity, Tag 410
func (m BidRequest) SetWtAverageLiquidity(value decimal.Decimal, scale int32) {
m.Set(field.NewWtAverageLiquidity(value, scale))
}
//SetExchangeForPhysical sets ExchangeForPhysical, Tag 411
func (m BidRequest) SetExchangeForPhysical(v bool) {
m.Set(field.NewExchangeForPhysical(v))
}
//SetOutMainCntryUIndex sets OutMainCntryUIndex, Tag 412
func (m BidRequest) SetOutMainCntryUIndex(value decimal.Decimal, scale int32) {
m.Set(field.NewOutMainCntryUIndex(value, scale))
}
//SetCrossPercent sets CrossPercent, Tag 413
func (m BidRequest) SetCrossPercent(value decimal.Decimal, scale int32) {
m.Set(field.NewCrossPercent(value, scale))
}
//SetProgRptReqs sets ProgRptReqs, Tag 414
func (m BidRequest) SetProgRptReqs(v enum.ProgRptReqs) {
m.Set(field.NewProgRptReqs(v))
}
//SetProgPeriodInterval sets ProgPeriodInterval, Tag 415
func (m BidRequest) SetProgPeriodInterval(v int) {
m.Set(field.NewProgPeriodInterval(v))
}
//SetIncTaxInd sets IncTaxInd, Tag 416
func (m BidRequest) SetIncTaxInd(v enum.IncTaxInd) {
m.Set(field.NewIncTaxInd(v))
}
//SetNumBidders sets NumBidders, Tag 417
func (m BidRequest) SetNumBidders(v int) {
m.Set(field.NewNumBidders(v))
}
//SetBidTradeType sets BidTradeType, Tag 418
func (m BidRequest) SetBidTradeType(v enum.BidTradeType) {
m.Set(field.NewBidTradeType(v))
}
//SetBasisPxType sets BasisPxType, Tag 419
func (m BidRequest) SetBasisPxType(v enum.BasisPxType) {
m.Set(field.NewBasisPxType(v))
}
//SetNoBidComponents sets NoBidComponents, Tag 420
func (m BidRequest) SetNoBidComponents(f NoBidComponentsRepeatingGroup) {
m.SetGroup(f)
}
//SetStrikeTime sets StrikeTime, Tag 443
func (m BidRequest) SetStrikeTime(v time.Time) {
m.Set(field.NewStrikeTime(v))
}
//GetCurrency gets Currency, Tag 15
func (m BidRequest) GetCurrency() (v string, err quickfix.MessageRejectError) {
var f field.CurrencyField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetText gets Text, Tag 58
func (m BidRequest) GetText() (v string, err quickfix.MessageRejectError) {
var f field.TextField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetTradeDate gets TradeDate, Tag 75
func (m BidRequest) GetTradeDate() (v string, err quickfix.MessageRejectError) {
var f field.TradeDateField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetForexReq gets ForexReq, Tag 121
func (m BidRequest) GetForexReq() (v bool, err quickfix.MessageRejectError) {
var f field.ForexReqField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetEncodedTextLen gets EncodedTextLen, Tag 354
func (m BidRequest) GetEncodedTextLen() (v int, err quickfix.MessageRejectError) {
var f field.EncodedTextLenField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetEncodedText gets EncodedText, Tag 355
func (m BidRequest) GetEncodedText() (v string, err quickfix.MessageRejectError) {
var f field.EncodedTextField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetBidRequestTransType gets BidRequestTransType, Tag 374
func (m BidRequest) GetBidRequestTransType() (v enum.BidRequestTransType, err quickfix.MessageRejectError) {
var f field.BidRequestTransTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetBidID gets BidID, Tag 390
func (m BidRequest) GetBidID() (v string, err quickfix.MessageRejectError) {
var f field.BidIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetClientBidID gets ClientBidID, Tag 391
func (m BidRequest) GetClientBidID() (v string, err quickfix.MessageRejectError) {
var f field.ClientBidIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetListName gets ListName, Tag 392
func (m BidRequest) GetListName() (v string, err quickfix.MessageRejectError) {
var f field.ListNameField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetTotNoRelatedSym gets TotNoRelatedSym, Tag 393
func (m BidRequest) GetTotNoRelatedSym() (v int, err quickfix.MessageRejectError) {
var f field.TotNoRelatedSymField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetBidType gets BidType, Tag 394
func (m BidRequest) GetBidType() (v enum.BidType, err quickfix.MessageRejectError) {
var f field.BidTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetNumTickets gets NumTickets, Tag 395
func (m BidRequest) GetNumTickets() (v int, err quickfix.MessageRejectError) {
var f field.NumTicketsField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetSideValue1 gets SideValue1, Tag 396
func (m BidRequest) GetSideValue1() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.SideValue1Field
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetSideValue2 gets SideValue2, Tag 397
func (m BidRequest) GetSideValue2() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.SideValue2Field
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetNoBidDescriptors gets NoBidDescriptors, Tag 398
func (m BidRequest) GetNoBidDescriptors() (NoBidDescriptorsRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoBidDescriptorsRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
//GetLiquidityIndType gets LiquidityIndType, Tag 409
func (m BidRequest) GetLiquidityIndType() (v enum.LiquidityIndType, err quickfix.MessageRejectError) {
var f field.LiquidityIndTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetWtAverageLiquidity gets WtAverageLiquidity, Tag 410
func (m BidRequest) GetWtAverageLiquidity() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.WtAverageLiquidityField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetExchangeForPhysical gets ExchangeForPhysical, Tag 411
func (m BidRequest) GetExchangeForPhysical() (v bool, err quickfix.MessageRejectError) {
var f field.ExchangeForPhysicalField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetOutMainCntryUIndex gets OutMainCntryUIndex, Tag 412
func (m BidRequest) GetOutMainCntryUIndex() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.OutMainCntryUIndexField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetCrossPercent gets CrossPercent, Tag 413
func (m BidRequest) GetCrossPercent() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.CrossPercentField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetProgRptReqs gets ProgRptReqs, Tag 414
func (m BidRequest) GetProgRptReqs() (v enum.ProgRptReqs, err quickfix.MessageRejectError) {
var f field.ProgRptReqsField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetProgPeriodInterval gets ProgPeriodInterval, Tag 415
func (m BidRequest) GetProgPeriodInterval() (v int, err quickfix.MessageRejectError) {
var f field.ProgPeriodIntervalField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetIncTaxInd gets IncTaxInd, Tag 416
func (m BidRequest) GetIncTaxInd() (v enum.IncTaxInd, err quickfix.MessageRejectError) {
var f field.IncTaxIndField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetNumBidders gets NumBidders, Tag 417
func (m BidRequest) GetNumBidders() (v int, err quickfix.MessageRejectError) {
var f field.NumBiddersField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetBidTradeType gets BidTradeType, Tag 418
func (m BidRequest) GetBidTradeType() (v enum.BidTradeType, err quickfix.MessageRejectError) {
var f field.BidTradeTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetBasisPxType gets BasisPxType, Tag 419
func (m BidRequest) GetBasisPxType() (v enum.BasisPxType, err quickfix.MessageRejectError) {
var f field.BasisPxTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetNoBidComponents gets NoBidComponents, Tag 420
func (m BidRequest) GetNoBidComponents() (NoBidComponentsRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoBidComponentsRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
//GetStrikeTime gets StrikeTime, Tag 443
func (m BidRequest) GetStrikeTime() (v time.Time, err quickfix.MessageRejectError) {
var f field.StrikeTimeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//HasCurrency returns true if Currency is present, Tag 15
func (m BidRequest) HasCurrency() bool {
return m.Has(tag.Currency)
}
//HasText returns true if Text is present, Tag 58
func (m BidRequest) HasText() bool {
return m.Has(tag.Text)
}
//HasTradeDate returns true if TradeDate is present, Tag 75
func (m BidRequest) HasTradeDate() bool {
return m.Has(tag.TradeDate)
}
//HasForexReq returns true if ForexReq is present, Tag 121
func (m BidRequest) HasForexReq() bool {
return m.Has(tag.ForexReq)
}
//HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354
func (m BidRequest) HasEncodedTextLen() bool {
return m.Has(tag.EncodedTextLen)
}
//HasEncodedText returns true if EncodedText is present, Tag 355
func (m BidRequest) HasEncodedText() bool {
return m.Has(tag.EncodedText)
}
//HasBidRequestTransType returns true if BidRequestTransType is present, Tag 374
func (m BidRequest) HasBidRequestTransType() bool {
return m.Has(tag.BidRequestTransType)
}
//HasBidID returns true if BidID is present, Tag 390
func (m BidRequest) HasBidID() bool {
return m.Has(tag.BidID)
}
//HasClientBidID returns true if ClientBidID is present, Tag 391
func (m BidRequest) HasClientBidID() bool {
return m.Has(tag.ClientBidID)
}
//HasListName returns true if ListName is present, Tag 392
func (m BidRequest) HasListName() bool {
return m.Has(tag.ListName)
}
//HasTotNoRelatedSym returns true if TotNoRelatedSym is present, Tag 393
func (m BidRequest) HasTotNoRelatedSym() bool {
return m.Has(tag.TotNoRelatedSym)
}
//HasBidType returns true if BidType is present, Tag 394
func (m BidRequest) HasBidType() bool {
return m.Has(tag.BidType)
}
//HasNumTickets returns true if NumTickets is present, Tag 395
func (m BidRequest) HasNumTickets() bool {
return m.Has(tag.NumTickets)
}
//HasSideValue1 returns true if SideValue1 is present, Tag 396
func (m BidRequest) HasSideValue1() bool {
return m.Has(tag.SideValue1)
}
//HasSideValue2 returns true if SideValue2 is present, Tag 397
func (m BidRequest) HasSideValue2() bool {
return m.Has(tag.SideValue2)
}
//HasNoBidDescriptors returns true if NoBidDescriptors is present, Tag 398
func (m BidRequest) HasNoBidDescriptors() bool {
return m.Has(tag.NoBidDescriptors)
}
//HasLiquidityIndType returns true if LiquidityIndType is present, Tag 409
func (m BidRequest) HasLiquidityIndType() bool {
return m.Has(tag.LiquidityIndType)
}
//HasWtAverageLiquidity returns true if WtAverageLiquidity is present, Tag 410
func (m BidRequest) HasWtAverageLiquidity() bool {
return m.Has(tag.WtAverageLiquidity)
}
//HasExchangeForPhysical returns true if ExchangeForPhysical is present, Tag 411
func (m BidRequest) HasExchangeForPhysical() bool {
return m.Has(tag.ExchangeForPhysical)
}
//HasOutMainCntryUIndex returns true if OutMainCntryUIndex is present, Tag 412
func (m BidRequest) HasOutMainCntryUIndex() bool {
return m.Has(tag.OutMainCntryUIndex)
}
//HasCrossPercent returns true if CrossPercent is present, Tag 413
func (m BidRequest) HasCrossPercent() bool {
return m.Has(tag.CrossPercent)
}
//HasProgRptReqs returns true if ProgRptReqs is present, Tag 414
func (m BidRequest) HasProgRptReqs() bool {
return m.Has(tag.ProgRptReqs)
}
//HasProgPeriodInterval returns true if ProgPeriodInterval is present, Tag 415
func (m BidRequest) HasProgPeriodInterval() bool {
return m.Has(tag.ProgPeriodInterval)
}
//HasIncTaxInd returns true if IncTaxInd is present, Tag 416
func (m BidRequest) HasIncTaxInd() bool {
return m.Has(tag.IncTaxInd)
}
//HasNumBidders returns true if NumBidders is present, Tag 417
func (m BidRequest) HasNumBidders() bool {
return m.Has(tag.NumBidders)
}
//HasBidTradeType returns true if BidTradeType is present, Tag 418
func (m BidRequest) HasBidTradeType() bool {
return m.Has(tag.BidTradeType)
}
//HasBasisPxType returns true if BasisPxType is present, Tag 419
func (m BidRequest) HasBasisPxType() bool {
return m.Has(tag.BasisPxType)
}
//HasNoBidComponents returns true if NoBidComponents is present, Tag 420
func (m BidRequest) HasNoBidComponents() bool {
return m.Has(tag.NoBidComponents)
}
//HasStrikeTime returns true if StrikeTime is present, Tag 443
func (m BidRequest) HasStrikeTime() bool {
return m.Has(tag.StrikeTime)
}
//NoBidDescriptors is a repeating group element, Tag 398
type NoBidDescriptors struct {
*quickfix.Group
}
//SetBidDescriptorType sets BidDescriptorType, Tag 399
func (m NoBidDescriptors) SetBidDescriptorType(v enum.BidDescriptorType) {
m.Set(field.NewBidDescriptorType(v))
}
//SetBidDescriptor sets BidDescriptor, Tag 400
func (m NoBidDescriptors) SetBidDescriptor(v string) {
m.Set(field.NewBidDescriptor(v))
}
//SetSideValueInd sets SideValueInd, Tag 401
func (m NoBidDescriptors) SetSideValueInd(v enum.SideValueInd) {
m.Set(field.NewSideValueInd(v))
}
//SetLiquidityValue sets LiquidityValue, Tag 404
func (m NoBidDescriptors) SetLiquidityValue(value decimal.Decimal, scale int32) {
m.Set(field.NewLiquidityValue(value, scale))
}
//SetLiquidityNumSecurities sets LiquidityNumSecurities, Tag 441
func (m NoBidDescriptors) SetLiquidityNumSecurities(v int) {
m.Set(field.NewLiquidityNumSecurities(v))
}
//SetLiquidityPctLow sets LiquidityPctLow, Tag 402
func (m NoBidDescriptors) SetLiquidityPctLow(value decimal.Decimal, scale int32) {
m.Set(field.NewLiquidityPctLow(value, scale))
}
//SetLiquidityPctHigh sets LiquidityPctHigh, Tag 403
func (m NoBidDescriptors) SetLiquidityPctHigh(value decimal.Decimal, scale int32) {
m.Set(field.NewLiquidityPctHigh(value, scale))
}
//SetEFPTrackingError sets EFPTrackingError, Tag 405
func (m NoBidDescriptors) SetEFPTrackingError(value decimal.Decimal, scale int32) {
m.Set(field.NewEFPTrackingError(value, scale))
}
//SetFairValue sets FairValue, Tag 406
func (m NoBidDescriptors) SetFairValue(value decimal.Decimal, scale int32) {
m.Set(field.NewFairValue(value, scale))
}
//SetOutsideIndexPct sets OutsideIndexPct, Tag 407
func (m NoBidDescriptors) SetOutsideIndexPct(value decimal.Decimal, scale int32) {
m.Set(field.NewOutsideIndexPct(value, scale))
}
//SetValueOfFutures sets ValueOfFutures, Tag 408
func (m NoBidDescriptors) SetValueOfFutures(value decimal.Decimal, scale int32) {
m.Set(field.NewValueOfFutures(value, scale))
}
//GetBidDescriptorType gets BidDescriptorType, Tag 399
func (m NoBidDescriptors) GetBidDescriptorType() (v enum.BidDescriptorType, err quickfix.MessageRejectError) {
var f field.BidDescriptorTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetBidDescriptor gets BidDescriptor, Tag 400
func (m NoBidDescriptors) GetBidDescriptor() (v string, err quickfix.MessageRejectError) {
var f field.BidDescriptorField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetSideValueInd gets SideValueInd, Tag 401
func (m NoBidDescriptors) GetSideValueInd() (v enum.SideValueInd, err quickfix.MessageRejectError) {
var f field.SideValueIndField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetLiquidityValue gets LiquidityValue, Tag 404
func (m NoBidDescriptors) GetLiquidityValue() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.LiquidityValueField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetLiquidityNumSecurities gets LiquidityNumSecurities, Tag 441
func (m NoBidDescriptors) GetLiquidityNumSecurities() (v int, err quickfix.MessageRejectError) {
var f field.LiquidityNumSecuritiesField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetLiquidityPctLow gets LiquidityPctLow, Tag 402
func (m NoBidDescriptors) GetLiquidityPctLow() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.LiquidityPctLowField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetLiquidityPctHigh gets LiquidityPctHigh, Tag 403
func (m NoBidDescriptors) GetLiquidityPctHigh() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.LiquidityPctHighField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetEFPTrackingError gets EFPTrackingError, Tag 405
func (m NoBidDescriptors) GetEFPTrackingError() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.EFPTrackingErrorField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetFairValue gets FairValue, Tag 406
func (m NoBidDescriptors) GetFairValue() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.FairValueField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetOutsideIndexPct gets OutsideIndexPct, Tag 407
func (m NoBidDescriptors) GetOutsideIndexPct() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.OutsideIndexPctField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetValueOfFutures gets ValueOfFutures, Tag 408
func (m NoBidDescriptors) GetValueOfFutures() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.ValueOfFuturesField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//HasBidDescriptorType returns true if BidDescriptorType is present, Tag 399
func (m NoBidDescriptors) HasBidDescriptorType() bool {
return m.Has(tag.BidDescriptorType)
}
//HasBidDescriptor returns true if BidDescriptor is present, Tag 400
func (m NoBidDescriptors) HasBidDescriptor() bool {
return m.Has(tag.BidDescriptor)
}
//HasSideValueInd returns true if SideValueInd is present, Tag 401
func (m NoBidDescriptors) HasSideValueInd() bool {
return m.Has(tag.SideValueInd)
}
//HasLiquidityValue returns true if LiquidityValue is present, Tag 404
func (m NoBidDescriptors) HasLiquidityValue() bool {
return m.Has(tag.LiquidityValue)
}
//HasLiquidityNumSecurities returns true if LiquidityNumSecurities is present, Tag 441
func (m NoBidDescriptors) HasLiquidityNumSecurities() bool {
return m.Has(tag.LiquidityNumSecurities)
}
//HasLiquidityPctLow returns true if LiquidityPctLow is present, Tag 402
func (m NoBidDescriptors) HasLiquidityPctLow() bool {
return m.Has(tag.LiquidityPctLow)
}
//HasLiquidityPctHigh returns true if LiquidityPctHigh is present, Tag 403
func (m NoBidDescriptors) HasLiquidityPctHigh() bool {
return m.Has(tag.LiquidityPctHigh)
}
//HasEFPTrackingError returns true if EFPTrackingError is present, Tag 405
func (m NoBidDescriptors) HasEFPTrackingError() bool {
return m.Has(tag.EFPTrackingError)
}
//HasFairValue returns true if FairValue is present, Tag 406
func (m NoBidDescriptors) HasFairValue() bool {
return m.Has(tag.FairValue)
}
//HasOutsideIndexPct returns true if OutsideIndexPct is present, Tag 407
func (m NoBidDescriptors) HasOutsideIndexPct() bool {
return m.Has(tag.OutsideIndexPct)
}
//HasValueOfFutures returns true if ValueOfFutures is present, Tag 408
func (m NoBidDescriptors) HasValueOfFutures() bool {
return m.Has(tag.ValueOfFutures)
}
//NoBidDescriptorsRepeatingGroup is a repeating group, Tag 398
type NoBidDescriptorsRepeatingGroup struct {
*quickfix.RepeatingGroup
}
//NewNoBidDescriptorsRepeatingGroup returns an initialized, NoBidDescriptorsRepeatingGroup
func NewNoBidDescriptorsRepeatingGroup() NoBidDescriptorsRepeatingGroup {
return NoBidDescriptorsRepeatingGroup{
quickfix.NewRepeatingGroup(tag.NoBidDescriptors,
quickfix.GroupTemplate{quickfix.GroupElement(tag.BidDescriptorType), quickfix.GroupElement(tag.BidDescriptor), quickfix.GroupElement(tag.SideValueInd), quickfix.GroupElement(tag.LiquidityValue), quickfix.GroupElement(tag.LiquidityNumSecurities), quickfix.GroupElement(tag.LiquidityPctLow), quickfix.GroupElement(tag.LiquidityPctHigh), quickfix.GroupElement(tag.EFPTrackingError), quickfix.GroupElement(tag.FairValue), quickfix.GroupElement(tag.OutsideIndexPct), quickfix.GroupElement(tag.ValueOfFutures)})}
}
//Add create and append a new NoBidDescriptors to this group
func (m NoBidDescriptorsRepeatingGroup) Add() NoBidDescriptors {
g := m.RepeatingGroup.Add()
return NoBidDescriptors{g}
}
//Get returns the ith NoBidDescriptors in the NoBidDescriptorsRepeatinGroup
func (m NoBidDescriptorsRepeatingGroup) Get(i int) NoBidDescriptors {
return NoBidDescriptors{m.RepeatingGroup.Get(i)}
}
//NoBidComponents is a repeating group element, Tag 420
type NoBidComponents struct {
*quickfix.Group
}
//SetListID sets ListID, Tag 66
func (m NoBidComponents) SetListID(v string) {
m.Set(field.NewListID(v))
}
//SetSide sets Side, Tag 54
func (m NoBidComponents) SetSide(v enum.Side) {
m.Set(field.NewSide(v))
}
//SetTradingSessionID sets TradingSessionID, Tag 336
func (m NoBidComponents) SetTradingSessionID(v enum.TradingSessionID) {
m.Set(field.NewTradingSessionID(v))
}
//SetTradingSessionSubID sets TradingSessionSubID, Tag 625
func (m NoBidComponents) SetTradingSessionSubID(v enum.TradingSessionSubID) {
m.Set(field.NewTradingSessionSubID(v))
}
//SetNetGrossInd sets NetGrossInd, Tag 430
func (m NoBidComponents) SetNetGrossInd(v enum.NetGrossInd) {
m.Set(field.NewNetGrossInd(v))
}
//SetSettlType sets SettlType, Tag 63
func (m NoBidComponents) SetSettlType(v enum.SettlType) {
m.Set(field.NewSettlType(v))
}
//SetSettlDate sets SettlDate, Tag 64
func (m NoBidComponents) SetSettlDate(v string) {
m.Set(field.NewSettlDate(v))
}
//SetAccount sets Account, Tag 1
func (m NoBidComponents) SetAccount(v string) {
m.Set(field.NewAccount(v))
}
//SetAcctIDSource sets AcctIDSource, Tag 660
func (m NoBidComponents) SetAcctIDSource(v enum.AcctIDSource) {
m.Set(field.NewAcctIDSource(v))
}
//GetListID gets ListID, Tag 66
func (m NoBidComponents) GetListID() (v string, err quickfix.MessageRejectError) {
var f field.ListIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetSide gets Side, Tag 54
func (m NoBidComponents) GetSide() (v enum.Side, err quickfix.MessageRejectError) {
var f field.SideField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetTradingSessionID gets TradingSessionID, Tag 336
func (m NoBidComponents) GetTradingSessionID() (v enum.TradingSessionID, err quickfix.MessageRejectError) {
var f field.TradingSessionIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetTradingSessionSubID gets TradingSessionSubID, Tag 625
func (m NoBidComponents) GetTradingSessionSubID() (v enum.TradingSessionSubID, err quickfix.MessageRejectError) {
var f field.TradingSessionSubIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetNetGrossInd gets NetGrossInd, Tag 430
func (m NoBidComponents) GetNetGrossInd() (v enum.NetGrossInd, err quickfix.MessageRejectError) {
var f field.NetGrossIndField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetSettlType gets SettlType, Tag 63
func (m NoBidComponents) 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 NoBidComponents) GetSettlDate() (v string, err quickfix.MessageRejectError) {
var f field.SettlDateField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetAccount gets Account, Tag 1
func (m NoBidComponents) GetAccount() (v string, err quickfix.MessageRejectError) {
var f field.AccountField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetAcctIDSource gets AcctIDSource, Tag 660
func (m NoBidComponents) GetAcctIDSource() (v enum.AcctIDSource, err quickfix.MessageRejectError) {
var f field.AcctIDSourceField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//HasListID returns true if ListID is present, Tag 66
func (m NoBidComponents) HasListID() bool {
return m.Has(tag.ListID)
}
//HasSide returns true if Side is present, Tag 54
func (m NoBidComponents) HasSide() bool {
return m.Has(tag.Side)
}
//HasTradingSessionID returns true if TradingSessionID is present, Tag 336
func (m NoBidComponents) HasTradingSessionID() bool {
return m.Has(tag.TradingSessionID)
}
//HasTradingSessionSubID returns true if TradingSessionSubID is present, Tag 625
func (m NoBidComponents) HasTradingSessionSubID() bool {
return m.Has(tag.TradingSessionSubID)
}