forked from quickfixgo/quickfix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ConfirmationRequest.generated.go
671 lines (562 loc) · 19.9 KB
/
ConfirmationRequest.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
package confirmationrequest
import (
"github.com/shopspring/decimal"
"time"
"github.com/Boklazhenko/quickfix"
"github.com/Boklazhenko/quickfix/gen/enum"
"github.com/Boklazhenko/quickfix/gen/field"
"github.com/Boklazhenko/quickfix/gen/fixt11"
"github.com/Boklazhenko/quickfix/gen/tag"
)
// ConfirmationRequest is the fix50sp2 ConfirmationRequest type, MsgType = BH.
type ConfirmationRequest struct {
fixt11.Header
*quickfix.Body
fixt11.Trailer
Message *quickfix.Message
}
// FromMessage creates a ConfirmationRequest from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) ConfirmationRequest {
return ConfirmationRequest{
Header: fixt11.Header{&m.Header},
Body: &m.Body,
Trailer: fixt11.Trailer{&m.Trailer},
Message: m,
}
}
// ToMessage returns a quickfix.Message instance.
func (m ConfirmationRequest) ToMessage() *quickfix.Message {
return m.Message
}
// New returns a ConfirmationRequest initialized with the required fields for ConfirmationRequest.
func New(confirmreqid field.ConfirmReqIDField, confirmtype field.ConfirmTypeField, transacttime field.TransactTimeField) (m ConfirmationRequest) {
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("BH"))
m.Set(confirmreqid)
m.Set(confirmtype)
m.Set(transacttime)
return
}
// A RouteOut is the callback type that should be implemented for routing Message.
type RouteOut func(msg ConfirmationRequest, 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 "9", "BH", r
}
// SetText sets Text, Tag 58.
func (m ConfirmationRequest) SetText(v string) {
m.Set(field.NewText(v))
}
// SetTransactTime sets TransactTime, Tag 60.
func (m ConfirmationRequest) SetTransactTime(v time.Time) {
m.Set(field.NewTransactTime(v))
}
// SetAllocID sets AllocID, Tag 70.
func (m ConfirmationRequest) SetAllocID(v string) {
m.Set(field.NewAllocID(v))
}
// SetNoOrders sets NoOrders, Tag 73.
func (m ConfirmationRequest) SetNoOrders(f NoOrdersRepeatingGroup) {
m.SetGroup(f)
}
// SetAllocAccount sets AllocAccount, Tag 79.
func (m ConfirmationRequest) SetAllocAccount(v string) {
m.Set(field.NewAllocAccount(v))
}
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
func (m ConfirmationRequest) SetEncodedTextLen(v int) {
m.Set(field.NewEncodedTextLen(v))
}
// SetEncodedText sets EncodedText, Tag 355.
func (m ConfirmationRequest) SetEncodedText(v string) {
m.Set(field.NewEncodedText(v))
}
// SetIndividualAllocID sets IndividualAllocID, Tag 467.
func (m ConfirmationRequest) SetIndividualAllocID(v string) {
m.Set(field.NewIndividualAllocID(v))
}
// SetAllocAcctIDSource sets AllocAcctIDSource, Tag 661.
func (m ConfirmationRequest) SetAllocAcctIDSource(v int) {
m.Set(field.NewAllocAcctIDSource(v))
}
// SetConfirmType sets ConfirmType, Tag 773.
func (m ConfirmationRequest) SetConfirmType(v enum.ConfirmType) {
m.Set(field.NewConfirmType(v))
}
// SetSecondaryAllocID sets SecondaryAllocID, Tag 793.
func (m ConfirmationRequest) SetSecondaryAllocID(v string) {
m.Set(field.NewSecondaryAllocID(v))
}
// SetAllocAccountType sets AllocAccountType, Tag 798.
func (m ConfirmationRequest) SetAllocAccountType(v enum.AllocAccountType) {
m.Set(field.NewAllocAccountType(v))
}
// SetConfirmReqID sets ConfirmReqID, Tag 859.
func (m ConfirmationRequest) SetConfirmReqID(v string) {
m.Set(field.NewConfirmReqID(v))
}
// GetText gets Text, Tag 58.
func (m ConfirmationRequest) 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 ConfirmationRequest) GetTransactTime() (v time.Time, err quickfix.MessageRejectError) {
var f field.TransactTimeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetAllocID gets AllocID, Tag 70.
func (m ConfirmationRequest) 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 ConfirmationRequest) GetNoOrders() (NoOrdersRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoOrdersRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
// GetAllocAccount gets AllocAccount, Tag 79.
func (m ConfirmationRequest) GetAllocAccount() (v string, err quickfix.MessageRejectError) {
var f field.AllocAccountField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetEncodedTextLen gets EncodedTextLen, Tag 354.
func (m ConfirmationRequest) 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 ConfirmationRequest) GetEncodedText() (v string, err quickfix.MessageRejectError) {
var f field.EncodedTextField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetIndividualAllocID gets IndividualAllocID, Tag 467.
func (m ConfirmationRequest) GetIndividualAllocID() (v string, err quickfix.MessageRejectError) {
var f field.IndividualAllocIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetAllocAcctIDSource gets AllocAcctIDSource, Tag 661.
func (m ConfirmationRequest) GetAllocAcctIDSource() (v int, err quickfix.MessageRejectError) {
var f field.AllocAcctIDSourceField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetConfirmType gets ConfirmType, Tag 773.
func (m ConfirmationRequest) GetConfirmType() (v enum.ConfirmType, err quickfix.MessageRejectError) {
var f field.ConfirmTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetSecondaryAllocID gets SecondaryAllocID, Tag 793.
func (m ConfirmationRequest) GetSecondaryAllocID() (v string, err quickfix.MessageRejectError) {
var f field.SecondaryAllocIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetAllocAccountType gets AllocAccountType, Tag 798.
func (m ConfirmationRequest) GetAllocAccountType() (v enum.AllocAccountType, err quickfix.MessageRejectError) {
var f field.AllocAccountTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetConfirmReqID gets ConfirmReqID, Tag 859.
func (m ConfirmationRequest) GetConfirmReqID() (v string, err quickfix.MessageRejectError) {
var f field.ConfirmReqIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// HasText returns true if Text is present, Tag 58.
func (m ConfirmationRequest) HasText() bool {
return m.Has(tag.Text)
}
// HasTransactTime returns true if TransactTime is present, Tag 60.
func (m ConfirmationRequest) HasTransactTime() bool {
return m.Has(tag.TransactTime)
}
// HasAllocID returns true if AllocID is present, Tag 70.
func (m ConfirmationRequest) HasAllocID() bool {
return m.Has(tag.AllocID)
}
// HasNoOrders returns true if NoOrders is present, Tag 73.
func (m ConfirmationRequest) HasNoOrders() bool {
return m.Has(tag.NoOrders)
}
// HasAllocAccount returns true if AllocAccount is present, Tag 79.
func (m ConfirmationRequest) HasAllocAccount() bool {
return m.Has(tag.AllocAccount)
}
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
func (m ConfirmationRequest) HasEncodedTextLen() bool {
return m.Has(tag.EncodedTextLen)
}
// HasEncodedText returns true if EncodedText is present, Tag 355.
func (m ConfirmationRequest) HasEncodedText() bool {
return m.Has(tag.EncodedText)
}
// HasIndividualAllocID returns true if IndividualAllocID is present, Tag 467.
func (m ConfirmationRequest) HasIndividualAllocID() bool {
return m.Has(tag.IndividualAllocID)
}
// HasAllocAcctIDSource returns true if AllocAcctIDSource is present, Tag 661.
func (m ConfirmationRequest) HasAllocAcctIDSource() bool {
return m.Has(tag.AllocAcctIDSource)
}
// HasConfirmType returns true if ConfirmType is present, Tag 773.
func (m ConfirmationRequest) HasConfirmType() bool {
return m.Has(tag.ConfirmType)
}
// HasSecondaryAllocID returns true if SecondaryAllocID is present, Tag 793.
func (m ConfirmationRequest) HasSecondaryAllocID() bool {
return m.Has(tag.SecondaryAllocID)
}
// HasAllocAccountType returns true if AllocAccountType is present, Tag 798.
func (m ConfirmationRequest) HasAllocAccountType() bool {
return m.Has(tag.AllocAccountType)
}
// HasConfirmReqID returns true if ConfirmReqID is present, Tag 859.
func (m ConfirmationRequest) HasConfirmReqID() bool {
return m.Has(tag.ConfirmReqID)
}
// 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))
}
// SetSecondaryClOrdID sets SecondaryClOrdID, Tag 526.
func (m NoOrders) SetSecondaryClOrdID(v string) {
m.Set(field.NewSecondaryClOrdID(v))
}
// SetListID sets ListID, Tag 66.
func (m NoOrders) SetListID(v string) {
m.Set(field.NewListID(v))
}
// SetNoNested2PartyIDs sets NoNested2PartyIDs, Tag 756.
func (m NoOrders) SetNoNested2PartyIDs(f NoNested2PartyIDsRepeatingGroup) {
m.SetGroup(f)
}
// SetOrderQty sets OrderQty, Tag 38.
func (m NoOrders) SetOrderQty(value decimal.Decimal, scale int32) {
m.Set(field.NewOrderQty(value, scale))
}
// SetOrderAvgPx sets OrderAvgPx, Tag 799.
func (m NoOrders) SetOrderAvgPx(value decimal.Decimal, scale int32) {
m.Set(field.NewOrderAvgPx(value, scale))
}
// SetOrderBookingQty sets OrderBookingQty, Tag 800.
func (m NoOrders) SetOrderBookingQty(value decimal.Decimal, scale int32) {
m.Set(field.NewOrderBookingQty(value, scale))
}
// GetClOrdID gets ClOrdID, Tag 11.
func (m NoOrders) GetClOrdID() (v string, err quickfix.MessageRejectError) {
var f field.ClOrdIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetOrderID gets OrderID, Tag 37.
func (m NoOrders) GetOrderID() (v string, err quickfix.MessageRejectError) {
var f field.OrderIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetSecondaryOrderID gets SecondaryOrderID, Tag 198.
func (m NoOrders) GetSecondaryOrderID() (v string, err quickfix.MessageRejectError) {
var f field.SecondaryOrderIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetSecondaryClOrdID gets SecondaryClOrdID, Tag 526.
func (m NoOrders) GetSecondaryClOrdID() (v string, err quickfix.MessageRejectError) {
var f field.SecondaryClOrdIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetListID gets ListID, Tag 66.
func (m NoOrders) GetListID() (v string, err quickfix.MessageRejectError) {
var f field.ListIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetNoNested2PartyIDs gets NoNested2PartyIDs, Tag 756.
func (m NoOrders) GetNoNested2PartyIDs() (NoNested2PartyIDsRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoNested2PartyIDsRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
// GetOrderQty gets OrderQty, Tag 38.
func (m NoOrders) GetOrderQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.OrderQtyField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetOrderAvgPx gets OrderAvgPx, Tag 799.
func (m NoOrders) GetOrderAvgPx() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.OrderAvgPxField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetOrderBookingQty gets OrderBookingQty, Tag 800.
func (m NoOrders) GetOrderBookingQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.OrderBookingQtyField
if err = m.Get(&f); err == nil {
v = f.Value()
}
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)
}
// HasSecondaryClOrdID returns true if SecondaryClOrdID is present, Tag 526.
func (m NoOrders) HasSecondaryClOrdID() bool {
return m.Has(tag.SecondaryClOrdID)
}
// HasListID returns true if ListID is present, Tag 66.
func (m NoOrders) HasListID() bool {
return m.Has(tag.ListID)
}
// HasNoNested2PartyIDs returns true if NoNested2PartyIDs is present, Tag 756.
func (m NoOrders) HasNoNested2PartyIDs() bool {
return m.Has(tag.NoNested2PartyIDs)
}
// HasOrderQty returns true if OrderQty is present, Tag 38.
func (m NoOrders) HasOrderQty() bool {
return m.Has(tag.OrderQty)
}
// HasOrderAvgPx returns true if OrderAvgPx is present, Tag 799.
func (m NoOrders) HasOrderAvgPx() bool {
return m.Has(tag.OrderAvgPx)
}
// HasOrderBookingQty returns true if OrderBookingQty is present, Tag 800.
func (m NoOrders) HasOrderBookingQty() bool {
return m.Has(tag.OrderBookingQty)
}
// NoNested2PartyIDs is a repeating group element, Tag 756.
type NoNested2PartyIDs struct {
*quickfix.Group
}
// SetNested2PartyID sets Nested2PartyID, Tag 757.
func (m NoNested2PartyIDs) SetNested2PartyID(v string) {
m.Set(field.NewNested2PartyID(v))
}
// SetNested2PartyIDSource sets Nested2PartyIDSource, Tag 758.
func (m NoNested2PartyIDs) SetNested2PartyIDSource(v string) {
m.Set(field.NewNested2PartyIDSource(v))
}
// SetNested2PartyRole sets Nested2PartyRole, Tag 759.
func (m NoNested2PartyIDs) SetNested2PartyRole(v int) {
m.Set(field.NewNested2PartyRole(v))
}
// SetNoNested2PartySubIDs sets NoNested2PartySubIDs, Tag 806.
func (m NoNested2PartyIDs) SetNoNested2PartySubIDs(f NoNested2PartySubIDsRepeatingGroup) {
m.SetGroup(f)
}
// GetNested2PartyID gets Nested2PartyID, Tag 757.
func (m NoNested2PartyIDs) GetNested2PartyID() (v string, err quickfix.MessageRejectError) {
var f field.Nested2PartyIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetNested2PartyIDSource gets Nested2PartyIDSource, Tag 758.
func (m NoNested2PartyIDs) GetNested2PartyIDSource() (v string, err quickfix.MessageRejectError) {
var f field.Nested2PartyIDSourceField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetNested2PartyRole gets Nested2PartyRole, Tag 759.
func (m NoNested2PartyIDs) GetNested2PartyRole() (v int, err quickfix.MessageRejectError) {
var f field.Nested2PartyRoleField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetNoNested2PartySubIDs gets NoNested2PartySubIDs, Tag 806.
func (m NoNested2PartyIDs) GetNoNested2PartySubIDs() (NoNested2PartySubIDsRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoNested2PartySubIDsRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
// HasNested2PartyID returns true if Nested2PartyID is present, Tag 757.
func (m NoNested2PartyIDs) HasNested2PartyID() bool {
return m.Has(tag.Nested2PartyID)
}
// HasNested2PartyIDSource returns true if Nested2PartyIDSource is present, Tag 758.
func (m NoNested2PartyIDs) HasNested2PartyIDSource() bool {
return m.Has(tag.Nested2PartyIDSource)
}
// HasNested2PartyRole returns true if Nested2PartyRole is present, Tag 759.
func (m NoNested2PartyIDs) HasNested2PartyRole() bool {
return m.Has(tag.Nested2PartyRole)
}
// HasNoNested2PartySubIDs returns true if NoNested2PartySubIDs is present, Tag 806.
func (m NoNested2PartyIDs) HasNoNested2PartySubIDs() bool {
return m.Has(tag.NoNested2PartySubIDs)
}
// NoNested2PartySubIDs is a repeating group element, Tag 806.
type NoNested2PartySubIDs struct {
*quickfix.Group
}
// SetNested2PartySubID sets Nested2PartySubID, Tag 760.
func (m NoNested2PartySubIDs) SetNested2PartySubID(v string) {
m.Set(field.NewNested2PartySubID(v))
}
// SetNested2PartySubIDType sets Nested2PartySubIDType, Tag 807.
func (m NoNested2PartySubIDs) SetNested2PartySubIDType(v int) {
m.Set(field.NewNested2PartySubIDType(v))
}
// GetNested2PartySubID gets Nested2PartySubID, Tag 760.
func (m NoNested2PartySubIDs) GetNested2PartySubID() (v string, err quickfix.MessageRejectError) {
var f field.Nested2PartySubIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetNested2PartySubIDType gets Nested2PartySubIDType, Tag 807.
func (m NoNested2PartySubIDs) GetNested2PartySubIDType() (v int, err quickfix.MessageRejectError) {
var f field.Nested2PartySubIDTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// HasNested2PartySubID returns true if Nested2PartySubID is present, Tag 760.
func (m NoNested2PartySubIDs) HasNested2PartySubID() bool {
return m.Has(tag.Nested2PartySubID)
}
// HasNested2PartySubIDType returns true if Nested2PartySubIDType is present, Tag 807.
func (m NoNested2PartySubIDs) HasNested2PartySubIDType() bool {
return m.Has(tag.Nested2PartySubIDType)
}
// NoNested2PartySubIDsRepeatingGroup is a repeating group, Tag 806.
type NoNested2PartySubIDsRepeatingGroup struct {
*quickfix.RepeatingGroup
}
// NewNoNested2PartySubIDsRepeatingGroup returns an initialized, NoNested2PartySubIDsRepeatingGroup.
func NewNoNested2PartySubIDsRepeatingGroup() NoNested2PartySubIDsRepeatingGroup {
return NoNested2PartySubIDsRepeatingGroup{
quickfix.NewRepeatingGroup(tag.NoNested2PartySubIDs,
quickfix.GroupTemplate{quickfix.GroupElement(tag.Nested2PartySubID), quickfix.GroupElement(tag.Nested2PartySubIDType)})}
}
// Add create and append a new NoNested2PartySubIDs to this group.
func (m NoNested2PartySubIDsRepeatingGroup) Add() NoNested2PartySubIDs {
g := m.RepeatingGroup.Add()
return NoNested2PartySubIDs{g}
}
// Get returns the ith NoNested2PartySubIDs in the NoNested2PartySubIDsRepeatinGroup.
func (m NoNested2PartySubIDsRepeatingGroup) Get(i int) NoNested2PartySubIDs {
return NoNested2PartySubIDs{m.RepeatingGroup.Get(i)}
}
// NoNested2PartyIDsRepeatingGroup is a repeating group, Tag 756.
type NoNested2PartyIDsRepeatingGroup struct {
*quickfix.RepeatingGroup
}
// NewNoNested2PartyIDsRepeatingGroup returns an initialized, NoNested2PartyIDsRepeatingGroup.
func NewNoNested2PartyIDsRepeatingGroup() NoNested2PartyIDsRepeatingGroup {
return NoNested2PartyIDsRepeatingGroup{
quickfix.NewRepeatingGroup(tag.NoNested2PartyIDs,
quickfix.GroupTemplate{quickfix.GroupElement(tag.Nested2PartyID), quickfix.GroupElement(tag.Nested2PartyIDSource), quickfix.GroupElement(tag.Nested2PartyRole), NewNoNested2PartySubIDsRepeatingGroup()})}
}
// Add create and append a new NoNested2PartyIDs to this group.
func (m NoNested2PartyIDsRepeatingGroup) Add() NoNested2PartyIDs {
g := m.RepeatingGroup.Add()
return NoNested2PartyIDs{g}
}
// Get returns the ith NoNested2PartyIDs in the NoNested2PartyIDsRepeatinGroup.
func (m NoNested2PartyIDsRepeatingGroup) Get(i int) NoNested2PartyIDs {
return NoNested2PartyIDs{m.RepeatingGroup.Get(i)}
}
// 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.SecondaryClOrdID), quickfix.GroupElement(tag.ListID), NewNoNested2PartyIDsRepeatingGroup(), quickfix.GroupElement(tag.OrderQty), quickfix.GroupElement(tag.OrderAvgPx), quickfix.GroupElement(tag.OrderBookingQty)})}
}
// 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)}
}