forked from quickfixgo/quickfix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DontKnowTrade.go
878 lines (716 loc) · 25 KB
/
DontKnowTrade.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
package dontknowtrade
import (
"time"
"github.com/quickfixgo/quickfix"
"github.com/quickfixgo/quickfix/field"
"github.com/quickfixgo/quickfix/fix43"
"github.com/quickfixgo/quickfix/tag"
)
//DontKnowTrade is the fix43 DontKnowTrade type, MsgType = Q
type DontKnowTrade struct {
fix43.Header
quickfix.Body
fix43.Trailer
//ReceiveTime is the time that this message was read from the socket connection
ReceiveTime time.Time
}
//FromMessage creates a DontKnowTrade from a quickfix.Message instance
func FromMessage(m quickfix.Message) DontKnowTrade {
return DontKnowTrade{
Header: fix43.Header{Header: m.Header},
Body: m.Body,
Trailer: fix43.Trailer{Trailer: m.Trailer},
ReceiveTime: m.ReceiveTime,
}
}
//ToMessage returns a quickfix.Message instance
func (m DontKnowTrade) ToMessage() quickfix.Message {
return quickfix.Message{
Header: m.Header.Header,
Body: m.Body,
Trailer: m.Trailer.Trailer,
ReceiveTime: m.ReceiveTime,
}
}
//New returns a DontKnowTrade initialized with the required fields for DontKnowTrade
func New(orderid field.OrderIDField, execid field.ExecIDField, dkreason field.DKReasonField, side field.SideField) (m DontKnowTrade) {
m.Header = fix43.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("Q"))
m.Set(orderid)
m.Set(execid)
m.Set(dkreason)
m.Set(side)
return
}
//A RouteOut is the callback type that should be implemented for routing Message
type RouteOut func(msg DontKnowTrade, 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.3", "Q", r
}
//SetExecID sets ExecID, Tag 17
func (m DontKnowTrade) SetExecID(v string) {
m.Set(field.NewExecID(v))
}
//SetSecurityIDSource sets SecurityIDSource, Tag 22
func (m DontKnowTrade) SetSecurityIDSource(v string) {
m.Set(field.NewSecurityIDSource(v))
}
//SetLastPx sets LastPx, Tag 31
func (m DontKnowTrade) SetLastPx(v float64) {
m.Set(field.NewLastPx(v))
}
//SetLastQty sets LastQty, Tag 32
func (m DontKnowTrade) SetLastQty(v float64) {
m.Set(field.NewLastQty(v))
}
//SetOrderID sets OrderID, Tag 37
func (m DontKnowTrade) SetOrderID(v string) {
m.Set(field.NewOrderID(v))
}
//SetOrderQty sets OrderQty, Tag 38
func (m DontKnowTrade) SetOrderQty(v float64) {
m.Set(field.NewOrderQty(v))
}
//SetSecurityID sets SecurityID, Tag 48
func (m DontKnowTrade) SetSecurityID(v string) {
m.Set(field.NewSecurityID(v))
}
//SetSide sets Side, Tag 54
func (m DontKnowTrade) SetSide(v string) {
m.Set(field.NewSide(v))
}
//SetSymbol sets Symbol, Tag 55
func (m DontKnowTrade) SetSymbol(v string) {
m.Set(field.NewSymbol(v))
}
//SetText sets Text, Tag 58
func (m DontKnowTrade) SetText(v string) {
m.Set(field.NewText(v))
}
//SetSymbolSfx sets SymbolSfx, Tag 65
func (m DontKnowTrade) SetSymbolSfx(v string) {
m.Set(field.NewSymbolSfx(v))
}
//SetIssuer sets Issuer, Tag 106
func (m DontKnowTrade) SetIssuer(v string) {
m.Set(field.NewIssuer(v))
}
//SetSecurityDesc sets SecurityDesc, Tag 107
func (m DontKnowTrade) SetSecurityDesc(v string) {
m.Set(field.NewSecurityDesc(v))
}
//SetDKReason sets DKReason, Tag 127
func (m DontKnowTrade) SetDKReason(v string) {
m.Set(field.NewDKReason(v))
}
//SetCashOrderQty sets CashOrderQty, Tag 152
func (m DontKnowTrade) SetCashOrderQty(v float64) {
m.Set(field.NewCashOrderQty(v))
}
//SetSecurityType sets SecurityType, Tag 167
func (m DontKnowTrade) SetSecurityType(v string) {
m.Set(field.NewSecurityType(v))
}
//SetMaturityMonthYear sets MaturityMonthYear, Tag 200
func (m DontKnowTrade) SetMaturityMonthYear(v string) {
m.Set(field.NewMaturityMonthYear(v))
}
//SetStrikePrice sets StrikePrice, Tag 202
func (m DontKnowTrade) SetStrikePrice(v float64) {
m.Set(field.NewStrikePrice(v))
}
//SetOptAttribute sets OptAttribute, Tag 206
func (m DontKnowTrade) SetOptAttribute(v string) {
m.Set(field.NewOptAttribute(v))
}
//SetSecurityExchange sets SecurityExchange, Tag 207
func (m DontKnowTrade) SetSecurityExchange(v string) {
m.Set(field.NewSecurityExchange(v))
}
//SetCouponRate sets CouponRate, Tag 223
func (m DontKnowTrade) SetCouponRate(v float64) {
m.Set(field.NewCouponRate(v))
}
//SetCouponPaymentDate sets CouponPaymentDate, Tag 224
func (m DontKnowTrade) SetCouponPaymentDate(v string) {
m.Set(field.NewCouponPaymentDate(v))
}
//SetIssueDate sets IssueDate, Tag 225
func (m DontKnowTrade) SetIssueDate(v string) {
m.Set(field.NewIssueDate(v))
}
//SetRepurchaseTerm sets RepurchaseTerm, Tag 226
func (m DontKnowTrade) SetRepurchaseTerm(v int) {
m.Set(field.NewRepurchaseTerm(v))
}
//SetRepurchaseRate sets RepurchaseRate, Tag 227
func (m DontKnowTrade) SetRepurchaseRate(v float64) {
m.Set(field.NewRepurchaseRate(v))
}
//SetFactor sets Factor, Tag 228
func (m DontKnowTrade) SetFactor(v float64) {
m.Set(field.NewFactor(v))
}
//SetContractMultiplier sets ContractMultiplier, Tag 231
func (m DontKnowTrade) SetContractMultiplier(v float64) {
m.Set(field.NewContractMultiplier(v))
}
//SetRepoCollateralSecurityType sets RepoCollateralSecurityType, Tag 239
func (m DontKnowTrade) SetRepoCollateralSecurityType(v int) {
m.Set(field.NewRepoCollateralSecurityType(v))
}
//SetRedemptionDate sets RedemptionDate, Tag 240
func (m DontKnowTrade) SetRedemptionDate(v string) {
m.Set(field.NewRedemptionDate(v))
}
//SetCreditRating sets CreditRating, Tag 255
func (m DontKnowTrade) SetCreditRating(v string) {
m.Set(field.NewCreditRating(v))
}
//SetEncodedIssuerLen sets EncodedIssuerLen, Tag 348
func (m DontKnowTrade) SetEncodedIssuerLen(v int) {
m.Set(field.NewEncodedIssuerLen(v))
}
//SetEncodedIssuer sets EncodedIssuer, Tag 349
func (m DontKnowTrade) SetEncodedIssuer(v string) {
m.Set(field.NewEncodedIssuer(v))
}
//SetEncodedSecurityDescLen sets EncodedSecurityDescLen, Tag 350
func (m DontKnowTrade) SetEncodedSecurityDescLen(v int) {
m.Set(field.NewEncodedSecurityDescLen(v))
}
//SetEncodedSecurityDesc sets EncodedSecurityDesc, Tag 351
func (m DontKnowTrade) SetEncodedSecurityDesc(v string) {
m.Set(field.NewEncodedSecurityDesc(v))
}
//SetEncodedTextLen sets EncodedTextLen, Tag 354
func (m DontKnowTrade) SetEncodedTextLen(v int) {
m.Set(field.NewEncodedTextLen(v))
}
//SetEncodedText sets EncodedText, Tag 355
func (m DontKnowTrade) SetEncodedText(v string) {
m.Set(field.NewEncodedText(v))
}
//SetNoSecurityAltID sets NoSecurityAltID, Tag 454
func (m DontKnowTrade) SetNoSecurityAltID(f NoSecurityAltIDRepeatingGroup) {
m.SetGroup(f)
}
//SetProduct sets Product, Tag 460
func (m DontKnowTrade) SetProduct(v int) {
m.Set(field.NewProduct(v))
}
//SetCFICode sets CFICode, Tag 461
func (m DontKnowTrade) SetCFICode(v string) {
m.Set(field.NewCFICode(v))
}
//SetRoundingDirection sets RoundingDirection, Tag 468
func (m DontKnowTrade) SetRoundingDirection(v string) {
m.Set(field.NewRoundingDirection(v))
}
//SetRoundingModulus sets RoundingModulus, Tag 469
func (m DontKnowTrade) SetRoundingModulus(v float64) {
m.Set(field.NewRoundingModulus(v))
}
//SetCountryOfIssue sets CountryOfIssue, Tag 470
func (m DontKnowTrade) SetCountryOfIssue(v string) {
m.Set(field.NewCountryOfIssue(v))
}
//SetStateOrProvinceOfIssue sets StateOrProvinceOfIssue, Tag 471
func (m DontKnowTrade) SetStateOrProvinceOfIssue(v string) {
m.Set(field.NewStateOrProvinceOfIssue(v))
}
//SetLocaleOfIssue sets LocaleOfIssue, Tag 472
func (m DontKnowTrade) SetLocaleOfIssue(v string) {
m.Set(field.NewLocaleOfIssue(v))
}
//SetOrderPercent sets OrderPercent, Tag 516
func (m DontKnowTrade) SetOrderPercent(v float64) {
m.Set(field.NewOrderPercent(v))
}
//SetMaturityDate sets MaturityDate, Tag 541
func (m DontKnowTrade) SetMaturityDate(v string) {
m.Set(field.NewMaturityDate(v))
}
//SetInstrRegistry sets InstrRegistry, Tag 543
func (m DontKnowTrade) SetInstrRegistry(v string) {
m.Set(field.NewInstrRegistry(v))
}
//GetExecID gets ExecID, Tag 17
func (m DontKnowTrade) GetExecID() (f field.ExecIDField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetSecurityIDSource gets SecurityIDSource, Tag 22
func (m DontKnowTrade) GetSecurityIDSource() (f field.SecurityIDSourceField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetLastPx gets LastPx, Tag 31
func (m DontKnowTrade) GetLastPx() (f field.LastPxField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetLastQty gets LastQty, Tag 32
func (m DontKnowTrade) GetLastQty() (f field.LastQtyField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetOrderID gets OrderID, Tag 37
func (m DontKnowTrade) GetOrderID() (f field.OrderIDField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetOrderQty gets OrderQty, Tag 38
func (m DontKnowTrade) GetOrderQty() (f field.OrderQtyField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetSecurityID gets SecurityID, Tag 48
func (m DontKnowTrade) GetSecurityID() (f field.SecurityIDField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetSide gets Side, Tag 54
func (m DontKnowTrade) GetSide() (f field.SideField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetSymbol gets Symbol, Tag 55
func (m DontKnowTrade) GetSymbol() (f field.SymbolField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetText gets Text, Tag 58
func (m DontKnowTrade) GetText() (f field.TextField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetSymbolSfx gets SymbolSfx, Tag 65
func (m DontKnowTrade) GetSymbolSfx() (f field.SymbolSfxField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetIssuer gets Issuer, Tag 106
func (m DontKnowTrade) GetIssuer() (f field.IssuerField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetSecurityDesc gets SecurityDesc, Tag 107
func (m DontKnowTrade) GetSecurityDesc() (f field.SecurityDescField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetDKReason gets DKReason, Tag 127
func (m DontKnowTrade) GetDKReason() (f field.DKReasonField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetCashOrderQty gets CashOrderQty, Tag 152
func (m DontKnowTrade) GetCashOrderQty() (f field.CashOrderQtyField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetSecurityType gets SecurityType, Tag 167
func (m DontKnowTrade) GetSecurityType() (f field.SecurityTypeField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetMaturityMonthYear gets MaturityMonthYear, Tag 200
func (m DontKnowTrade) GetMaturityMonthYear() (f field.MaturityMonthYearField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetStrikePrice gets StrikePrice, Tag 202
func (m DontKnowTrade) GetStrikePrice() (f field.StrikePriceField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetOptAttribute gets OptAttribute, Tag 206
func (m DontKnowTrade) GetOptAttribute() (f field.OptAttributeField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetSecurityExchange gets SecurityExchange, Tag 207
func (m DontKnowTrade) GetSecurityExchange() (f field.SecurityExchangeField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetCouponRate gets CouponRate, Tag 223
func (m DontKnowTrade) GetCouponRate() (f field.CouponRateField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetCouponPaymentDate gets CouponPaymentDate, Tag 224
func (m DontKnowTrade) GetCouponPaymentDate() (f field.CouponPaymentDateField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetIssueDate gets IssueDate, Tag 225
func (m DontKnowTrade) GetIssueDate() (f field.IssueDateField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetRepurchaseTerm gets RepurchaseTerm, Tag 226
func (m DontKnowTrade) GetRepurchaseTerm() (f field.RepurchaseTermField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetRepurchaseRate gets RepurchaseRate, Tag 227
func (m DontKnowTrade) GetRepurchaseRate() (f field.RepurchaseRateField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetFactor gets Factor, Tag 228
func (m DontKnowTrade) GetFactor() (f field.FactorField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetContractMultiplier gets ContractMultiplier, Tag 231
func (m DontKnowTrade) GetContractMultiplier() (f field.ContractMultiplierField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetRepoCollateralSecurityType gets RepoCollateralSecurityType, Tag 239
func (m DontKnowTrade) GetRepoCollateralSecurityType() (f field.RepoCollateralSecurityTypeField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetRedemptionDate gets RedemptionDate, Tag 240
func (m DontKnowTrade) GetRedemptionDate() (f field.RedemptionDateField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetCreditRating gets CreditRating, Tag 255
func (m DontKnowTrade) GetCreditRating() (f field.CreditRatingField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetEncodedIssuerLen gets EncodedIssuerLen, Tag 348
func (m DontKnowTrade) GetEncodedIssuerLen() (f field.EncodedIssuerLenField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetEncodedIssuer gets EncodedIssuer, Tag 349
func (m DontKnowTrade) GetEncodedIssuer() (f field.EncodedIssuerField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetEncodedSecurityDescLen gets EncodedSecurityDescLen, Tag 350
func (m DontKnowTrade) GetEncodedSecurityDescLen() (f field.EncodedSecurityDescLenField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetEncodedSecurityDesc gets EncodedSecurityDesc, Tag 351
func (m DontKnowTrade) GetEncodedSecurityDesc() (f field.EncodedSecurityDescField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetEncodedTextLen gets EncodedTextLen, Tag 354
func (m DontKnowTrade) GetEncodedTextLen() (f field.EncodedTextLenField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetEncodedText gets EncodedText, Tag 355
func (m DontKnowTrade) GetEncodedText() (f field.EncodedTextField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetNoSecurityAltID gets NoSecurityAltID, Tag 454
func (m DontKnowTrade) GetNoSecurityAltID() (NoSecurityAltIDRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoSecurityAltIDRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
//GetProduct gets Product, Tag 460
func (m DontKnowTrade) GetProduct() (f field.ProductField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetCFICode gets CFICode, Tag 461
func (m DontKnowTrade) GetCFICode() (f field.CFICodeField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetRoundingDirection gets RoundingDirection, Tag 468
func (m DontKnowTrade) GetRoundingDirection() (f field.RoundingDirectionField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetRoundingModulus gets RoundingModulus, Tag 469
func (m DontKnowTrade) GetRoundingModulus() (f field.RoundingModulusField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetCountryOfIssue gets CountryOfIssue, Tag 470
func (m DontKnowTrade) GetCountryOfIssue() (f field.CountryOfIssueField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetStateOrProvinceOfIssue gets StateOrProvinceOfIssue, Tag 471
func (m DontKnowTrade) GetStateOrProvinceOfIssue() (f field.StateOrProvinceOfIssueField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetLocaleOfIssue gets LocaleOfIssue, Tag 472
func (m DontKnowTrade) GetLocaleOfIssue() (f field.LocaleOfIssueField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetOrderPercent gets OrderPercent, Tag 516
func (m DontKnowTrade) GetOrderPercent() (f field.OrderPercentField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetMaturityDate gets MaturityDate, Tag 541
func (m DontKnowTrade) GetMaturityDate() (f field.MaturityDateField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetInstrRegistry gets InstrRegistry, Tag 543
func (m DontKnowTrade) GetInstrRegistry() (f field.InstrRegistryField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//HasExecID returns true if ExecID is present, Tag 17
func (m DontKnowTrade) HasExecID() bool {
return m.Has(tag.ExecID)
}
//HasSecurityIDSource returns true if SecurityIDSource is present, Tag 22
func (m DontKnowTrade) HasSecurityIDSource() bool {
return m.Has(tag.SecurityIDSource)
}
//HasLastPx returns true if LastPx is present, Tag 31
func (m DontKnowTrade) HasLastPx() bool {
return m.Has(tag.LastPx)
}
//HasLastQty returns true if LastQty is present, Tag 32
func (m DontKnowTrade) HasLastQty() bool {
return m.Has(tag.LastQty)
}
//HasOrderID returns true if OrderID is present, Tag 37
func (m DontKnowTrade) HasOrderID() bool {
return m.Has(tag.OrderID)
}
//HasOrderQty returns true if OrderQty is present, Tag 38
func (m DontKnowTrade) HasOrderQty() bool {
return m.Has(tag.OrderQty)
}
//HasSecurityID returns true if SecurityID is present, Tag 48
func (m DontKnowTrade) HasSecurityID() bool {
return m.Has(tag.SecurityID)
}
//HasSide returns true if Side is present, Tag 54
func (m DontKnowTrade) HasSide() bool {
return m.Has(tag.Side)
}
//HasSymbol returns true if Symbol is present, Tag 55
func (m DontKnowTrade) HasSymbol() bool {
return m.Has(tag.Symbol)
}
//HasText returns true if Text is present, Tag 58
func (m DontKnowTrade) HasText() bool {
return m.Has(tag.Text)
}
//HasSymbolSfx returns true if SymbolSfx is present, Tag 65
func (m DontKnowTrade) HasSymbolSfx() bool {
return m.Has(tag.SymbolSfx)
}
//HasIssuer returns true if Issuer is present, Tag 106
func (m DontKnowTrade) HasIssuer() bool {
return m.Has(tag.Issuer)
}
//HasSecurityDesc returns true if SecurityDesc is present, Tag 107
func (m DontKnowTrade) HasSecurityDesc() bool {
return m.Has(tag.SecurityDesc)
}
//HasDKReason returns true if DKReason is present, Tag 127
func (m DontKnowTrade) HasDKReason() bool {
return m.Has(tag.DKReason)
}
//HasCashOrderQty returns true if CashOrderQty is present, Tag 152
func (m DontKnowTrade) HasCashOrderQty() bool {
return m.Has(tag.CashOrderQty)
}
//HasSecurityType returns true if SecurityType is present, Tag 167
func (m DontKnowTrade) HasSecurityType() bool {
return m.Has(tag.SecurityType)
}
//HasMaturityMonthYear returns true if MaturityMonthYear is present, Tag 200
func (m DontKnowTrade) HasMaturityMonthYear() bool {
return m.Has(tag.MaturityMonthYear)
}
//HasStrikePrice returns true if StrikePrice is present, Tag 202
func (m DontKnowTrade) HasStrikePrice() bool {
return m.Has(tag.StrikePrice)
}
//HasOptAttribute returns true if OptAttribute is present, Tag 206
func (m DontKnowTrade) HasOptAttribute() bool {
return m.Has(tag.OptAttribute)
}
//HasSecurityExchange returns true if SecurityExchange is present, Tag 207
func (m DontKnowTrade) HasSecurityExchange() bool {
return m.Has(tag.SecurityExchange)
}
//HasCouponRate returns true if CouponRate is present, Tag 223
func (m DontKnowTrade) HasCouponRate() bool {
return m.Has(tag.CouponRate)
}
//HasCouponPaymentDate returns true if CouponPaymentDate is present, Tag 224
func (m DontKnowTrade) HasCouponPaymentDate() bool {
return m.Has(tag.CouponPaymentDate)
}
//HasIssueDate returns true if IssueDate is present, Tag 225
func (m DontKnowTrade) HasIssueDate() bool {
return m.Has(tag.IssueDate)
}
//HasRepurchaseTerm returns true if RepurchaseTerm is present, Tag 226
func (m DontKnowTrade) HasRepurchaseTerm() bool {
return m.Has(tag.RepurchaseTerm)
}
//HasRepurchaseRate returns true if RepurchaseRate is present, Tag 227
func (m DontKnowTrade) HasRepurchaseRate() bool {
return m.Has(tag.RepurchaseRate)
}
//HasFactor returns true if Factor is present, Tag 228
func (m DontKnowTrade) HasFactor() bool {
return m.Has(tag.Factor)
}
//HasContractMultiplier returns true if ContractMultiplier is present, Tag 231
func (m DontKnowTrade) HasContractMultiplier() bool {
return m.Has(tag.ContractMultiplier)
}
//HasRepoCollateralSecurityType returns true if RepoCollateralSecurityType is present, Tag 239
func (m DontKnowTrade) HasRepoCollateralSecurityType() bool {
return m.Has(tag.RepoCollateralSecurityType)
}
//HasRedemptionDate returns true if RedemptionDate is present, Tag 240
func (m DontKnowTrade) HasRedemptionDate() bool {
return m.Has(tag.RedemptionDate)
}
//HasCreditRating returns true if CreditRating is present, Tag 255
func (m DontKnowTrade) HasCreditRating() bool {
return m.Has(tag.CreditRating)
}
//HasEncodedIssuerLen returns true if EncodedIssuerLen is present, Tag 348
func (m DontKnowTrade) HasEncodedIssuerLen() bool {
return m.Has(tag.EncodedIssuerLen)
}
//HasEncodedIssuer returns true if EncodedIssuer is present, Tag 349
func (m DontKnowTrade) HasEncodedIssuer() bool {
return m.Has(tag.EncodedIssuer)
}
//HasEncodedSecurityDescLen returns true if EncodedSecurityDescLen is present, Tag 350
func (m DontKnowTrade) HasEncodedSecurityDescLen() bool {
return m.Has(tag.EncodedSecurityDescLen)
}
//HasEncodedSecurityDesc returns true if EncodedSecurityDesc is present, Tag 351
func (m DontKnowTrade) HasEncodedSecurityDesc() bool {
return m.Has(tag.EncodedSecurityDesc)
}
//HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354
func (m DontKnowTrade) HasEncodedTextLen() bool {
return m.Has(tag.EncodedTextLen)
}
//HasEncodedText returns true if EncodedText is present, Tag 355
func (m DontKnowTrade) HasEncodedText() bool {
return m.Has(tag.EncodedText)
}
//HasNoSecurityAltID returns true if NoSecurityAltID is present, Tag 454
func (m DontKnowTrade) HasNoSecurityAltID() bool {
return m.Has(tag.NoSecurityAltID)
}
//HasProduct returns true if Product is present, Tag 460
func (m DontKnowTrade) HasProduct() bool {
return m.Has(tag.Product)
}
//HasCFICode returns true if CFICode is present, Tag 461
func (m DontKnowTrade) HasCFICode() bool {
return m.Has(tag.CFICode)
}
//HasRoundingDirection returns true if RoundingDirection is present, Tag 468
func (m DontKnowTrade) HasRoundingDirection() bool {
return m.Has(tag.RoundingDirection)
}
//HasRoundingModulus returns true if RoundingModulus is present, Tag 469
func (m DontKnowTrade) HasRoundingModulus() bool {
return m.Has(tag.RoundingModulus)
}
//HasCountryOfIssue returns true if CountryOfIssue is present, Tag 470
func (m DontKnowTrade) HasCountryOfIssue() bool {
return m.Has(tag.CountryOfIssue)
}
//HasStateOrProvinceOfIssue returns true if StateOrProvinceOfIssue is present, Tag 471
func (m DontKnowTrade) HasStateOrProvinceOfIssue() bool {
return m.Has(tag.StateOrProvinceOfIssue)
}
//HasLocaleOfIssue returns true if LocaleOfIssue is present, Tag 472
func (m DontKnowTrade) HasLocaleOfIssue() bool {
return m.Has(tag.LocaleOfIssue)
}
//HasOrderPercent returns true if OrderPercent is present, Tag 516
func (m DontKnowTrade) HasOrderPercent() bool {
return m.Has(tag.OrderPercent)
}
//HasMaturityDate returns true if MaturityDate is present, Tag 541
func (m DontKnowTrade) HasMaturityDate() bool {
return m.Has(tag.MaturityDate)
}
//HasInstrRegistry returns true if InstrRegistry is present, Tag 543
func (m DontKnowTrade) HasInstrRegistry() bool {
return m.Has(tag.InstrRegistry)
}
//NoSecurityAltID is a repeating group element, Tag 454
type NoSecurityAltID struct {
quickfix.Group
}
//SetSecurityAltID sets SecurityAltID, Tag 455
func (m NoSecurityAltID) SetSecurityAltID(v string) {
m.Set(field.NewSecurityAltID(v))
}
//SetSecurityAltIDSource sets SecurityAltIDSource, Tag 456
func (m NoSecurityAltID) SetSecurityAltIDSource(v string) {
m.Set(field.NewSecurityAltIDSource(v))
}
//GetSecurityAltID gets SecurityAltID, Tag 455
func (m NoSecurityAltID) GetSecurityAltID() (f field.SecurityAltIDField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//GetSecurityAltIDSource gets SecurityAltIDSource, Tag 456
func (m NoSecurityAltID) GetSecurityAltIDSource() (f field.SecurityAltIDSourceField, err quickfix.MessageRejectError) {
err = m.Get(&f)
return
}
//HasSecurityAltID returns true if SecurityAltID is present, Tag 455
func (m NoSecurityAltID) HasSecurityAltID() bool {
return m.Has(tag.SecurityAltID)
}
//HasSecurityAltIDSource returns true if SecurityAltIDSource is present, Tag 456
func (m NoSecurityAltID) HasSecurityAltIDSource() bool {
return m.Has(tag.SecurityAltIDSource)
}
//NoSecurityAltIDRepeatingGroup is a repeating group, Tag 454
type NoSecurityAltIDRepeatingGroup struct {
*quickfix.RepeatingGroup
}
//NewNoSecurityAltIDRepeatingGroup returns an initialized, NoSecurityAltIDRepeatingGroup
func NewNoSecurityAltIDRepeatingGroup() NoSecurityAltIDRepeatingGroup {
return NoSecurityAltIDRepeatingGroup{
quickfix.NewRepeatingGroup(tag.NoSecurityAltID,
quickfix.GroupTemplate{quickfix.GroupElement(tag.SecurityAltID), quickfix.GroupElement(tag.SecurityAltIDSource)})}
}
//Add create and append a new NoSecurityAltID to this group
func (m NoSecurityAltIDRepeatingGroup) Add() NoSecurityAltID {
g := m.RepeatingGroup.Add()
return NoSecurityAltID{g}
}
//Get returns the ith NoSecurityAltID in the NoSecurityAltIDRepeatinGroup
func (m NoSecurityAltIDRepeatingGroup) Get(i int) NoSecurityAltID {
return NoSecurityAltID{m.RepeatingGroup.Get(i)}
}