forked from quickfixgo/quickfix
/
Allocation.go
1480 lines (1207 loc) · 41.1 KB
/
Allocation.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 allocation
import (
"time"
"github.com/quickfixgo/quickfix"
"github.com/quickfixgo/quickfix/field"
"github.com/quickfixgo/quickfix/fix42"
"github.com/quickfixgo/quickfix/tag"
)
//Allocation is the fix42 Allocation type, MsgType = J
type Allocation struct {
fix42.Header
quickfix.Body
fix42.Trailer
//ReceiveTime is the time that this message was read from the socket connection
ReceiveTime time.Time
}
//FromMessage creates a Allocation from a quickfix.Message instance
func FromMessage(m quickfix.Message) Allocation {
return Allocation{
Header: fix42.Header{Header: m.Header},
Body: m.Body,
Trailer: fix42.Trailer{Trailer: m.Trailer},
ReceiveTime: m.ReceiveTime,
}
}
//ToMessage returns a quickfix.Message instance
func (m Allocation) ToMessage() quickfix.Message {
return quickfix.Message{
Header: m.Header.Header,
Body: m.Body,
Trailer: m.Trailer.Trailer,
ReceiveTime: m.ReceiveTime,
}
}
//New returns a Allocation initialized with the required fields for Allocation
func New(allocid field.AllocIDField, alloctranstype field.AllocTransTypeField, side field.SideField, symbol field.SymbolField, shares field.SharesField, avgpx field.AvgPxField, tradedate field.TradeDateField) (m Allocation) {
m.Header = fix42.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("J"))
m.Set(allocid)
m.Set(alloctranstype)
m.Set(side)
m.Set(symbol)
m.Set(shares)
m.Set(avgpx)
m.Set(tradedate)
return
}
//A RouteOut is the callback type that should be implemented for routing Message
type RouteOut func(msg Allocation, 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 "FIX.4.2", "J", r
}
//SetAvgPx sets AvgPx, Tag 6
func (m Allocation) SetAvgPx(v float64) {
m.Set(field.NewAvgPx(v))
}
//SetCurrency sets Currency, Tag 15
func (m Allocation) SetCurrency(v string) {
m.Set(field.NewCurrency(v))
}
//SetIDSource sets IDSource, Tag 22
func (m Allocation) SetIDSource(v string) {
m.Set(field.NewIDSource(v))
}
//SetLastMkt sets LastMkt, Tag 30
func (m Allocation) SetLastMkt(v string) {
m.Set(field.NewLastMkt(v))
}
//SetSecurityID sets SecurityID, Tag 48
func (m Allocation) SetSecurityID(v string) {
m.Set(field.NewSecurityID(v))
}
//SetShares sets Shares, Tag 53
func (m Allocation) SetShares(v float64) {
m.Set(field.NewShares(v))
}
//SetSide sets Side, Tag 54
func (m Allocation) SetSide(v string) {
m.Set(field.NewSide(v))
}
//SetSymbol sets Symbol, Tag 55
func (m Allocation) SetSymbol(v string) {
m.Set(field.NewSymbol(v))
}
//SetText sets Text, Tag 58
func (m Allocation) SetText(v string) {
m.Set(field.NewText(v))
}
//SetTransactTime sets TransactTime, Tag 60
func (m Allocation) SetTransactTime(v time.Time) {
m.Set(field.NewTransactTime(v))
}
//SetSettlmntTyp sets SettlmntTyp, Tag 63
func (m Allocation) SetSettlmntTyp(v string) {
m.Set(field.NewSettlmntTyp(v))
}
//SetFutSettDate sets FutSettDate, Tag 64
func (m Allocation) SetFutSettDate(v string) {
m.Set(field.NewFutSettDate(v))
}
//SetSymbolSfx sets SymbolSfx, Tag 65
func (m Allocation) SetSymbolSfx(v string) {
m.Set(field.NewSymbolSfx(v))
}
//SetAllocID sets AllocID, Tag 70
func (m Allocation) SetAllocID(v string) {
m.Set(field.NewAllocID(v))
}
//SetAllocTransType sets AllocTransType, Tag 71
func (m Allocation) SetAllocTransType(v string) {
m.Set(field.NewAllocTransType(v))
}
//SetRefAllocID sets RefAllocID, Tag 72
func (m Allocation) SetRefAllocID(v string) {
m.Set(field.NewRefAllocID(v))
}
//SetNoOrders sets NoOrders, Tag 73
func (m Allocation) SetNoOrders(f NoOrdersRepeatingGroup) {
m.SetGroup(f)
}
//SetAvgPrxPrecision sets AvgPrxPrecision, Tag 74
func (m Allocation) SetAvgPrxPrecision(v int) {
m.Set(field.NewAvgPrxPrecision(v))
}
//SetTradeDate sets TradeDate, Tag 75
func (m Allocation) SetTradeDate(v string) {
m.Set(field.NewTradeDate(v))
}
//SetOpenClose sets OpenClose, Tag 77
func (m Allocation) SetOpenClose(v string) {
m.Set(field.NewOpenClose(v))
}
//SetNoAllocs sets NoAllocs, Tag 78
func (m Allocation) SetNoAllocs(f NoAllocsRepeatingGroup) {
m.SetGroup(f)
}
//SetIssuer sets Issuer, Tag 106
func (m Allocation) SetIssuer(v string) {
m.Set(field.NewIssuer(v))
}
//SetSecurityDesc sets SecurityDesc, Tag 107
func (m Allocation) SetSecurityDesc(v string) {
m.Set(field.NewSecurityDesc(v))
}
//SetNetMoney sets NetMoney, Tag 118
func (m Allocation) SetNetMoney(v float64) {
m.Set(field.NewNetMoney(v))
}
//SetNoExecs sets NoExecs, Tag 124
func (m Allocation) SetNoExecs(f NoExecsRepeatingGroup) {
m.SetGroup(f)
}
//SetNumDaysInterest sets NumDaysInterest, Tag 157
func (m Allocation) SetNumDaysInterest(v int) {
m.Set(field.NewNumDaysInterest(v))
}
//SetAccruedInterestRate sets AccruedInterestRate, Tag 158
func (m Allocation) SetAccruedInterestRate(v float64) {
m.Set(field.NewAccruedInterestRate(v))
}
//SetSecurityType sets SecurityType, Tag 167
func (m Allocation) SetSecurityType(v string) {
m.Set(field.NewSecurityType(v))
}
//SetAllocLinkID sets AllocLinkID, Tag 196
func (m Allocation) SetAllocLinkID(v string) {
m.Set(field.NewAllocLinkID(v))
}
//SetAllocLinkType sets AllocLinkType, Tag 197
func (m Allocation) SetAllocLinkType(v int) {
m.Set(field.NewAllocLinkType(v))
}
//SetMaturityMonthYear sets MaturityMonthYear, Tag 200
func (m Allocation) SetMaturityMonthYear(v string) {
m.Set(field.NewMaturityMonthYear(v))
}
//SetPutOrCall sets PutOrCall, Tag 201
func (m Allocation) SetPutOrCall(v int) {
m.Set(field.NewPutOrCall(v))
}
//SetStrikePrice sets StrikePrice, Tag 202
func (m Allocation) SetStrikePrice(v float64) {
m.Set(field.NewStrikePrice(v))
}
//SetMaturityDay sets MaturityDay, Tag 205
func (m Allocation) SetMaturityDay(v int) {
m.Set(field.NewMaturityDay(v))
}
//SetOptAttribute sets OptAttribute, Tag 206
func (m Allocation) SetOptAttribute(v string) {
m.Set(field.NewOptAttribute(v))
}
//SetSecurityExchange sets SecurityExchange, Tag 207
func (m Allocation) SetSecurityExchange(v string) {
m.Set(field.NewSecurityExchange(v))
}
//SetCouponRate sets CouponRate, Tag 223
func (m Allocation) SetCouponRate(v float64) {
m.Set(field.NewCouponRate(v))
}
//SetContractMultiplier sets ContractMultiplier, Tag 231
func (m Allocation) SetContractMultiplier(v float64) {
m.Set(field.NewContractMultiplier(v))
}
//SetTradingSessionID sets TradingSessionID, Tag 336
func (m Allocation) SetTradingSessionID(v string) {
m.Set(field.NewTradingSessionID(v))
}
//SetEncodedIssuerLen sets EncodedIssuerLen, Tag 348
func (m Allocation) SetEncodedIssuerLen(v int) {
m.Set(field.NewEncodedIssuerLen(v))
}
//SetEncodedIssuer sets EncodedIssuer, Tag 349
func (m Allocation) SetEncodedIssuer(v string) {
m.Set(field.NewEncodedIssuer(v))
}
//SetEncodedSecurityDescLen sets EncodedSecurityDescLen, Tag 350
func (m Allocation) SetEncodedSecurityDescLen(v int) {
m.Set(field.NewEncodedSecurityDescLen(v))
}
//SetEncodedSecurityDesc sets EncodedSecurityDesc, Tag 351
func (m Allocation) SetEncodedSecurityDesc(v string) {
m.Set(field.NewEncodedSecurityDesc(v))
}
//SetEncodedTextLen sets EncodedTextLen, Tag 354
func (m Allocation) SetEncodedTextLen(v int) {
m.Set(field.NewEncodedTextLen(v))
}
//SetEncodedText sets EncodedText, Tag 355
func (m Allocation) SetEncodedText(v string) {
m.Set(field.NewEncodedText(v))
}
//SetGrossTradeAmt sets GrossTradeAmt, Tag 381
func (m Allocation) SetGrossTradeAmt(v float64) {
m.Set(field.NewGrossTradeAmt(v))
}
//GetAvgPx gets AvgPx, Tag 6
func (m Allocation) GetAvgPx() (f field.AvgPxField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetCurrency gets Currency, Tag 15
func (m Allocation) GetCurrency() (f field.CurrencyField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetIDSource gets IDSource, Tag 22
func (m Allocation) GetIDSource() (f field.IDSourceField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetLastMkt gets LastMkt, Tag 30
func (m Allocation) GetLastMkt() (f field.LastMktField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetSecurityID gets SecurityID, Tag 48
func (m Allocation) GetSecurityID() (f field.SecurityIDField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetShares gets Shares, Tag 53
func (m Allocation) GetShares() (f field.SharesField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetSide gets Side, Tag 54
func (m Allocation) GetSide() (f field.SideField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetSymbol gets Symbol, Tag 55
func (m Allocation) GetSymbol() (f field.SymbolField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetText gets Text, Tag 58
func (m Allocation) GetText() (f field.TextField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetTransactTime gets TransactTime, Tag 60
func (m Allocation) GetTransactTime() (f field.TransactTimeField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetSettlmntTyp gets SettlmntTyp, Tag 63
func (m Allocation) GetSettlmntTyp() (f field.SettlmntTypField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetFutSettDate gets FutSettDate, Tag 64
func (m Allocation) GetFutSettDate() (f field.FutSettDateField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetSymbolSfx gets SymbolSfx, Tag 65
func (m Allocation) GetSymbolSfx() (f field.SymbolSfxField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetAllocID gets AllocID, Tag 70
func (m Allocation) GetAllocID() (f field.AllocIDField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetAllocTransType gets AllocTransType, Tag 71
func (m Allocation) GetAllocTransType() (f field.AllocTransTypeField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetRefAllocID gets RefAllocID, Tag 72
func (m Allocation) GetRefAllocID() (f field.RefAllocIDField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetNoOrders gets NoOrders, Tag 73
func (m Allocation) GetNoOrders() (NoOrdersRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoOrdersRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
//GetAvgPrxPrecision gets AvgPrxPrecision, Tag 74
func (m Allocation) GetAvgPrxPrecision() (f field.AvgPrxPrecisionField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetTradeDate gets TradeDate, Tag 75
func (m Allocation) GetTradeDate() (f field.TradeDateField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetOpenClose gets OpenClose, Tag 77
func (m Allocation) GetOpenClose() (f field.OpenCloseField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetNoAllocs gets NoAllocs, Tag 78
func (m Allocation) GetNoAllocs() (NoAllocsRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoAllocsRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
//GetIssuer gets Issuer, Tag 106
func (m Allocation) GetIssuer() (f field.IssuerField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetSecurityDesc gets SecurityDesc, Tag 107
func (m Allocation) GetSecurityDesc() (f field.SecurityDescField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetNetMoney gets NetMoney, Tag 118
func (m Allocation) GetNetMoney() (f field.NetMoneyField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetNoExecs gets NoExecs, Tag 124
func (m Allocation) GetNoExecs() (NoExecsRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoExecsRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
//GetNumDaysInterest gets NumDaysInterest, Tag 157
func (m Allocation) GetNumDaysInterest() (f field.NumDaysInterestField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetAccruedInterestRate gets AccruedInterestRate, Tag 158
func (m Allocation) GetAccruedInterestRate() (f field.AccruedInterestRateField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetSecurityType gets SecurityType, Tag 167
func (m Allocation) GetSecurityType() (f field.SecurityTypeField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetAllocLinkID gets AllocLinkID, Tag 196
func (m Allocation) GetAllocLinkID() (f field.AllocLinkIDField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetAllocLinkType gets AllocLinkType, Tag 197
func (m Allocation) GetAllocLinkType() (f field.AllocLinkTypeField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetMaturityMonthYear gets MaturityMonthYear, Tag 200
func (m Allocation) GetMaturityMonthYear() (f field.MaturityMonthYearField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetPutOrCall gets PutOrCall, Tag 201
func (m Allocation) GetPutOrCall() (f field.PutOrCallField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetStrikePrice gets StrikePrice, Tag 202
func (m Allocation) GetStrikePrice() (f field.StrikePriceField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetMaturityDay gets MaturityDay, Tag 205
func (m Allocation) GetMaturityDay() (f field.MaturityDayField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetOptAttribute gets OptAttribute, Tag 206
func (m Allocation) GetOptAttribute() (f field.OptAttributeField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetSecurityExchange gets SecurityExchange, Tag 207
func (m Allocation) GetSecurityExchange() (f field.SecurityExchangeField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetCouponRate gets CouponRate, Tag 223
func (m Allocation) GetCouponRate() (f field.CouponRateField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetContractMultiplier gets ContractMultiplier, Tag 231
func (m Allocation) GetContractMultiplier() (f field.ContractMultiplierField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetTradingSessionID gets TradingSessionID, Tag 336
func (m Allocation) GetTradingSessionID() (f field.TradingSessionIDField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetEncodedIssuerLen gets EncodedIssuerLen, Tag 348
func (m Allocation) GetEncodedIssuerLen() (f field.EncodedIssuerLenField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetEncodedIssuer gets EncodedIssuer, Tag 349
func (m Allocation) GetEncodedIssuer() (f field.EncodedIssuerField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetEncodedSecurityDescLen gets EncodedSecurityDescLen, Tag 350
func (m Allocation) GetEncodedSecurityDescLen() (f field.EncodedSecurityDescLenField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetEncodedSecurityDesc gets EncodedSecurityDesc, Tag 351
func (m Allocation) GetEncodedSecurityDesc() (f field.EncodedSecurityDescField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetEncodedTextLen gets EncodedTextLen, Tag 354
func (m Allocation) GetEncodedTextLen() (f field.EncodedTextLenField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetEncodedText gets EncodedText, Tag 355
func (m Allocation) GetEncodedText() (f field.EncodedTextField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetGrossTradeAmt gets GrossTradeAmt, Tag 381
func (m Allocation) GetGrossTradeAmt() (f field.GrossTradeAmtField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//HasAvgPx returns true if AvgPx is present, Tag 6
func (m Allocation) HasAvgPx() bool {
return m.Has(tag.AvgPx)
}
//HasCurrency returns true if Currency is present, Tag 15
func (m Allocation) HasCurrency() bool {
return m.Has(tag.Currency)
}
//HasIDSource returns true if IDSource is present, Tag 22
func (m Allocation) HasIDSource() bool {
return m.Has(tag.IDSource)
}
//HasLastMkt returns true if LastMkt is present, Tag 30
func (m Allocation) HasLastMkt() bool {
return m.Has(tag.LastMkt)
}
//HasSecurityID returns true if SecurityID is present, Tag 48
func (m Allocation) HasSecurityID() bool {
return m.Has(tag.SecurityID)
}
//HasShares returns true if Shares is present, Tag 53
func (m Allocation) HasShares() bool {
return m.Has(tag.Shares)
}
//HasSide returns true if Side is present, Tag 54
func (m Allocation) HasSide() bool {
return m.Has(tag.Side)
}
//HasSymbol returns true if Symbol is present, Tag 55
func (m Allocation) HasSymbol() bool {
return m.Has(tag.Symbol)
}
//HasText returns true if Text is present, Tag 58
func (m Allocation) HasText() bool {
return m.Has(tag.Text)
}
//HasTransactTime returns true if TransactTime is present, Tag 60
func (m Allocation) HasTransactTime() bool {
return m.Has(tag.TransactTime)
}
//HasSettlmntTyp returns true if SettlmntTyp is present, Tag 63
func (m Allocation) HasSettlmntTyp() bool {
return m.Has(tag.SettlmntTyp)
}
//HasFutSettDate returns true if FutSettDate is present, Tag 64
func (m Allocation) HasFutSettDate() bool {
return m.Has(tag.FutSettDate)
}
//HasSymbolSfx returns true if SymbolSfx is present, Tag 65
func (m Allocation) HasSymbolSfx() bool {
return m.Has(tag.SymbolSfx)
}
//HasAllocID returns true if AllocID is present, Tag 70
func (m Allocation) HasAllocID() bool {
return m.Has(tag.AllocID)
}
//HasAllocTransType returns true if AllocTransType is present, Tag 71
func (m Allocation) HasAllocTransType() bool {
return m.Has(tag.AllocTransType)
}
//HasRefAllocID returns true if RefAllocID is present, Tag 72
func (m Allocation) HasRefAllocID() bool {
return m.Has(tag.RefAllocID)
}
//HasNoOrders returns true if NoOrders is present, Tag 73
func (m Allocation) HasNoOrders() bool {
return m.Has(tag.NoOrders)
}
//HasAvgPrxPrecision returns true if AvgPrxPrecision is present, Tag 74
func (m Allocation) HasAvgPrxPrecision() bool {
return m.Has(tag.AvgPrxPrecision)
}
//HasTradeDate returns true if TradeDate is present, Tag 75
func (m Allocation) HasTradeDate() bool {
return m.Has(tag.TradeDate)
}
//HasOpenClose returns true if OpenClose is present, Tag 77
func (m Allocation) HasOpenClose() bool {
return m.Has(tag.OpenClose)
}
//HasNoAllocs returns true if NoAllocs is present, Tag 78
func (m Allocation) HasNoAllocs() bool {
return m.Has(tag.NoAllocs)
}
//HasIssuer returns true if Issuer is present, Tag 106
func (m Allocation) HasIssuer() bool {
return m.Has(tag.Issuer)
}
//HasSecurityDesc returns true if SecurityDesc is present, Tag 107
func (m Allocation) HasSecurityDesc() bool {
return m.Has(tag.SecurityDesc)
}
//HasNetMoney returns true if NetMoney is present, Tag 118
func (m Allocation) HasNetMoney() bool {
return m.Has(tag.NetMoney)
}
//HasNoExecs returns true if NoExecs is present, Tag 124
func (m Allocation) HasNoExecs() bool {
return m.Has(tag.NoExecs)
}
//HasNumDaysInterest returns true if NumDaysInterest is present, Tag 157
func (m Allocation) HasNumDaysInterest() bool {
return m.Has(tag.NumDaysInterest)
}
//HasAccruedInterestRate returns true if AccruedInterestRate is present, Tag 158
func (m Allocation) HasAccruedInterestRate() bool {
return m.Has(tag.AccruedInterestRate)
}
//HasSecurityType returns true if SecurityType is present, Tag 167
func (m Allocation) HasSecurityType() bool {
return m.Has(tag.SecurityType)
}
//HasAllocLinkID returns true if AllocLinkID is present, Tag 196
func (m Allocation) HasAllocLinkID() bool {
return m.Has(tag.AllocLinkID)
}
//HasAllocLinkType returns true if AllocLinkType is present, Tag 197
func (m Allocation) HasAllocLinkType() bool {
return m.Has(tag.AllocLinkType)
}
//HasMaturityMonthYear returns true if MaturityMonthYear is present, Tag 200
func (m Allocation) HasMaturityMonthYear() bool {
return m.Has(tag.MaturityMonthYear)
}
//HasPutOrCall returns true if PutOrCall is present, Tag 201
func (m Allocation) HasPutOrCall() bool {
return m.Has(tag.PutOrCall)
}
//HasStrikePrice returns true if StrikePrice is present, Tag 202
func (m Allocation) HasStrikePrice() bool {
return m.Has(tag.StrikePrice)
}
//HasMaturityDay returns true if MaturityDay is present, Tag 205
func (m Allocation) HasMaturityDay() bool {
return m.Has(tag.MaturityDay)
}
//HasOptAttribute returns true if OptAttribute is present, Tag 206
func (m Allocation) HasOptAttribute() bool {
return m.Has(tag.OptAttribute)
}
//HasSecurityExchange returns true if SecurityExchange is present, Tag 207
func (m Allocation) HasSecurityExchange() bool {
return m.Has(tag.SecurityExchange)
}
//HasCouponRate returns true if CouponRate is present, Tag 223
func (m Allocation) HasCouponRate() bool {
return m.Has(tag.CouponRate)
}
//HasContractMultiplier returns true if ContractMultiplier is present, Tag 231
func (m Allocation) HasContractMultiplier() bool {
return m.Has(tag.ContractMultiplier)
}
//HasTradingSessionID returns true if TradingSessionID is present, Tag 336
func (m Allocation) HasTradingSessionID() bool {
return m.Has(tag.TradingSessionID)
}
//HasEncodedIssuerLen returns true if EncodedIssuerLen is present, Tag 348
func (m Allocation) HasEncodedIssuerLen() bool {
return m.Has(tag.EncodedIssuerLen)
}
//HasEncodedIssuer returns true if EncodedIssuer is present, Tag 349
func (m Allocation) HasEncodedIssuer() bool {
return m.Has(tag.EncodedIssuer)
}
//HasEncodedSecurityDescLen returns true if EncodedSecurityDescLen is present, Tag 350
func (m Allocation) HasEncodedSecurityDescLen() bool {
return m.Has(tag.EncodedSecurityDescLen)
}
//HasEncodedSecurityDesc returns true if EncodedSecurityDesc is present, Tag 351
func (m Allocation) HasEncodedSecurityDesc() bool {
return m.Has(tag.EncodedSecurityDesc)
}
//HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354
func (m Allocation) HasEncodedTextLen() bool {
return m.Has(tag.EncodedTextLen)
}
//HasEncodedText returns true if EncodedText is present, Tag 355
func (m Allocation) HasEncodedText() bool {
return m.Has(tag.EncodedText)
}
//HasGrossTradeAmt returns true if GrossTradeAmt is present, Tag 381
func (m Allocation) HasGrossTradeAmt() bool {
return m.Has(tag.GrossTradeAmt)
}
//NoOrders is a repeating group element, Tag 73
type NoOrders struct {
quickfix.Group
}
//SetClOrdID sets ClOrdID, Tag 11
func (m NoOrders) SetClOrdID(v string) {
m.Set(field.NewClOrdID(v))
}
//SetOrderID sets OrderID, Tag 37
func (m NoOrders) SetOrderID(v string) {
m.Set(field.NewOrderID(v))
}
//SetSecondaryOrderID sets SecondaryOrderID, Tag 198
func (m NoOrders) SetSecondaryOrderID(v string) {
m.Set(field.NewSecondaryOrderID(v))
}
//SetListID sets ListID, Tag 66
func (m NoOrders) SetListID(v string) {
m.Set(field.NewListID(v))
}
//SetWaveNo sets WaveNo, Tag 105
func (m NoOrders) SetWaveNo(v string) {
m.Set(field.NewWaveNo(v))
}
//GetClOrdID gets ClOrdID, Tag 11
func (m NoOrders) GetClOrdID() (f field.ClOrdIDField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetOrderID gets OrderID, Tag 37
func (m NoOrders) GetOrderID() (f field.OrderIDField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetSecondaryOrderID gets SecondaryOrderID, Tag 198
func (m NoOrders) GetSecondaryOrderID() (f field.SecondaryOrderIDField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetListID gets ListID, Tag 66
func (m NoOrders) GetListID() (f field.ListIDField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetWaveNo gets WaveNo, Tag 105
func (m NoOrders) GetWaveNo() (f field.WaveNoField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//HasClOrdID returns true if ClOrdID is present, Tag 11
func (m NoOrders) HasClOrdID() bool {
return m.Has(tag.ClOrdID)
}
//HasOrderID returns true if OrderID is present, Tag 37
func (m NoOrders) HasOrderID() bool {
return m.Has(tag.OrderID)
}
//HasSecondaryOrderID returns true if SecondaryOrderID is present, Tag 198
func (m NoOrders) HasSecondaryOrderID() bool {
return m.Has(tag.SecondaryOrderID)
}
//HasListID returns true if ListID is present, Tag 66
func (m NoOrders) HasListID() bool {
return m.Has(tag.ListID)
}
//HasWaveNo returns true if WaveNo is present, Tag 105
func (m NoOrders) HasWaveNo() bool {
return m.Has(tag.WaveNo)
}
//NoOrdersRepeatingGroup is a repeating group, Tag 73
type NoOrdersRepeatingGroup struct {
*quickfix.RepeatingGroup
}
//NewNoOrdersRepeatingGroup returns an initialized, NoOrdersRepeatingGroup
func NewNoOrdersRepeatingGroup() NoOrdersRepeatingGroup {
return NoOrdersRepeatingGroup{
quickfix.NewRepeatingGroup(tag.NoOrders,
quickfix.GroupTemplate{quickfix.GroupElement(tag.ClOrdID), quickfix.GroupElement(tag.OrderID), quickfix.GroupElement(tag.SecondaryOrderID), quickfix.GroupElement(tag.ListID), quickfix.GroupElement(tag.WaveNo)})}
}
//Add create and append a new NoOrders to this group
func (m NoOrdersRepeatingGroup) Add() NoOrders {
g := m.RepeatingGroup.Add()
return NoOrders{g}
}
//Get returns the ith NoOrders in the NoOrdersRepeatinGroup
func (m NoOrdersRepeatingGroup) Get(i int) NoOrders {
return NoOrders{m.RepeatingGroup.Get(i)}
}
//NoAllocs is a repeating group element, Tag 78
type NoAllocs struct {
quickfix.Group
}
//SetAllocAccount sets AllocAccount, Tag 79
func (m NoAllocs) SetAllocAccount(v string) {
m.Set(field.NewAllocAccount(v))
}
//SetAllocPrice sets AllocPrice, Tag 366
func (m NoAllocs) SetAllocPrice(v float64) {
m.Set(field.NewAllocPrice(v))
}
//SetAllocShares sets AllocShares, Tag 80
func (m NoAllocs) SetAllocShares(v float64) {
m.Set(field.NewAllocShares(v))
}
//SetProcessCode sets ProcessCode, Tag 81
func (m NoAllocs) SetProcessCode(v string) {
m.Set(field.NewProcessCode(v))
}
//SetBrokerOfCredit sets BrokerOfCredit, Tag 92
func (m NoAllocs) SetBrokerOfCredit(v string) {
m.Set(field.NewBrokerOfCredit(v))
}
//SetNotifyBrokerOfCredit sets NotifyBrokerOfCredit, Tag 208
func (m NoAllocs) SetNotifyBrokerOfCredit(v bool) {
m.Set(field.NewNotifyBrokerOfCredit(v))
}
//SetAllocHandlInst sets AllocHandlInst, Tag 209
func (m NoAllocs) SetAllocHandlInst(v int) {
m.Set(field.NewAllocHandlInst(v))
}
//SetAllocText sets AllocText, Tag 161
func (m NoAllocs) SetAllocText(v string) {
m.Set(field.NewAllocText(v))
}
//SetEncodedAllocTextLen sets EncodedAllocTextLen, Tag 360
func (m NoAllocs) SetEncodedAllocTextLen(v int) {
m.Set(field.NewEncodedAllocTextLen(v))
}
//SetEncodedAllocText sets EncodedAllocText, Tag 361
func (m NoAllocs) SetEncodedAllocText(v string) {
m.Set(field.NewEncodedAllocText(v))
}
//SetExecBroker sets ExecBroker, Tag 76
func (m NoAllocs) SetExecBroker(v string) {
m.Set(field.NewExecBroker(v))
}
//SetClientID sets ClientID, Tag 109
func (m NoAllocs) SetClientID(v string) {
m.Set(field.NewClientID(v))
}
//SetCommission sets Commission, Tag 12
func (m NoAllocs) SetCommission(v float64) {
m.Set(field.NewCommission(v))
}
//SetCommType sets CommType, Tag 13
func (m NoAllocs) SetCommType(v string) {
m.Set(field.NewCommType(v))
}
//SetAllocAvgPx sets AllocAvgPx, Tag 153
func (m NoAllocs) SetAllocAvgPx(v float64) {
m.Set(field.NewAllocAvgPx(v))
}
//SetAllocNetMoney sets AllocNetMoney, Tag 154
func (m NoAllocs) SetAllocNetMoney(v float64) {
m.Set(field.NewAllocNetMoney(v))
}