forked from cryptogarageinc/quickfix-go
/
MarketDataRequest.generated.go
644 lines (540 loc) · 18.8 KB
/
MarketDataRequest.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
package marketdatarequest
import (
"github.com/shopspring/decimal"
"github.com/quickfixgo/quickfix"
"github.com/quickfixgo/quickfix/enum"
"github.com/quickfixgo/quickfix/field"
"github.com/quickfixgo/quickfix/fix42"
"github.com/quickfixgo/quickfix/tag"
)
//MarketDataRequest is the fix42 MarketDataRequest type, MsgType = V
type MarketDataRequest struct {
fix42.Header
*quickfix.Body
fix42.Trailer
Message *quickfix.Message
}
//FromMessage creates a MarketDataRequest from a quickfix.Message instance
func FromMessage(m *quickfix.Message) MarketDataRequest {
return MarketDataRequest{
Header: fix42.Header{&m.Header},
Body: &m.Body,
Trailer: fix42.Trailer{&m.Trailer},
Message: m,
}
}
//ToMessage returns a quickfix.Message instance
func (m MarketDataRequest) ToMessage() *quickfix.Message {
return m.Message
}
//New returns a MarketDataRequest initialized with the required fields for MarketDataRequest
func New(mdreqid field.MDReqIDField, subscriptionrequesttype field.SubscriptionRequestTypeField, marketdepth field.MarketDepthField) (m MarketDataRequest) {
m.Message = quickfix.NewMessage()
m.Header = fix42.NewHeader(&m.Message.Header)
m.Body = &m.Message.Body
m.Trailer.Trailer = &m.Message.Trailer
m.Header.Set(field.NewMsgType("V"))
m.Set(mdreqid)
m.Set(subscriptionrequesttype)
m.Set(marketdepth)
return
}
//A RouteOut is the callback type that should be implemented for routing Message
type RouteOut func(msg MarketDataRequest, 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", "V", r
}
//SetNoRelatedSym sets NoRelatedSym, Tag 146
func (m MarketDataRequest) SetNoRelatedSym(f NoRelatedSymRepeatingGroup) {
m.SetGroup(f)
}
//SetMDReqID sets MDReqID, Tag 262
func (m MarketDataRequest) SetMDReqID(v string) {
m.Set(field.NewMDReqID(v))
}
//SetSubscriptionRequestType sets SubscriptionRequestType, Tag 263
func (m MarketDataRequest) SetSubscriptionRequestType(v enum.SubscriptionRequestType) {
m.Set(field.NewSubscriptionRequestType(v))
}
//SetMarketDepth sets MarketDepth, Tag 264
func (m MarketDataRequest) SetMarketDepth(v int) {
m.Set(field.NewMarketDepth(v))
}
//SetMDUpdateType sets MDUpdateType, Tag 265
func (m MarketDataRequest) SetMDUpdateType(v enum.MDUpdateType) {
m.Set(field.NewMDUpdateType(v))
}
//SetAggregatedBook sets AggregatedBook, Tag 266
func (m MarketDataRequest) SetAggregatedBook(v bool) {
m.Set(field.NewAggregatedBook(v))
}
//SetNoMDEntryTypes sets NoMDEntryTypes, Tag 267
func (m MarketDataRequest) SetNoMDEntryTypes(f NoMDEntryTypesRepeatingGroup) {
m.SetGroup(f)
}
//GetNoRelatedSym gets NoRelatedSym, Tag 146
func (m MarketDataRequest) GetNoRelatedSym() (NoRelatedSymRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoRelatedSymRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
//GetMDReqID gets MDReqID, Tag 262
func (m MarketDataRequest) GetMDReqID() (v string, err quickfix.MessageRejectError) {
var f field.MDReqIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetSubscriptionRequestType gets SubscriptionRequestType, Tag 263
func (m MarketDataRequest) GetSubscriptionRequestType() (v enum.SubscriptionRequestType, err quickfix.MessageRejectError) {
var f field.SubscriptionRequestTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetMarketDepth gets MarketDepth, Tag 264
func (m MarketDataRequest) GetMarketDepth() (v int, err quickfix.MessageRejectError) {
var f field.MarketDepthField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetMDUpdateType gets MDUpdateType, Tag 265
func (m MarketDataRequest) GetMDUpdateType() (v enum.MDUpdateType, err quickfix.MessageRejectError) {
var f field.MDUpdateTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetAggregatedBook gets AggregatedBook, Tag 266
func (m MarketDataRequest) GetAggregatedBook() (v bool, err quickfix.MessageRejectError) {
var f field.AggregatedBookField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetNoMDEntryTypes gets NoMDEntryTypes, Tag 267
func (m MarketDataRequest) GetNoMDEntryTypes() (NoMDEntryTypesRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoMDEntryTypesRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
//HasNoRelatedSym returns true if NoRelatedSym is present, Tag 146
func (m MarketDataRequest) HasNoRelatedSym() bool {
return m.Has(tag.NoRelatedSym)
}
//HasMDReqID returns true if MDReqID is present, Tag 262
func (m MarketDataRequest) HasMDReqID() bool {
return m.Has(tag.MDReqID)
}
//HasSubscriptionRequestType returns true if SubscriptionRequestType is present, Tag 263
func (m MarketDataRequest) HasSubscriptionRequestType() bool {
return m.Has(tag.SubscriptionRequestType)
}
//HasMarketDepth returns true if MarketDepth is present, Tag 264
func (m MarketDataRequest) HasMarketDepth() bool {
return m.Has(tag.MarketDepth)
}
//HasMDUpdateType returns true if MDUpdateType is present, Tag 265
func (m MarketDataRequest) HasMDUpdateType() bool {
return m.Has(tag.MDUpdateType)
}
//HasAggregatedBook returns true if AggregatedBook is present, Tag 266
func (m MarketDataRequest) HasAggregatedBook() bool {
return m.Has(tag.AggregatedBook)
}
//HasNoMDEntryTypes returns true if NoMDEntryTypes is present, Tag 267
func (m MarketDataRequest) HasNoMDEntryTypes() bool {
return m.Has(tag.NoMDEntryTypes)
}
//NoRelatedSym is a repeating group element, Tag 146
type NoRelatedSym struct {
*quickfix.Group
}
//SetSymbol sets Symbol, Tag 55
func (m NoRelatedSym) SetSymbol(v string) {
m.Set(field.NewSymbol(v))
}
//SetSymbolSfx sets SymbolSfx, Tag 65
func (m NoRelatedSym) SetSymbolSfx(v enum.SymbolSfx) {
m.Set(field.NewSymbolSfx(v))
}
//SetSecurityID sets SecurityID, Tag 48
func (m NoRelatedSym) SetSecurityID(v string) {
m.Set(field.NewSecurityID(v))
}
//SetIDSource sets IDSource, Tag 22
func (m NoRelatedSym) SetIDSource(v enum.IDSource) {
m.Set(field.NewIDSource(v))
}
//SetSecurityType sets SecurityType, Tag 167
func (m NoRelatedSym) SetSecurityType(v enum.SecurityType) {
m.Set(field.NewSecurityType(v))
}
//SetMaturityMonthYear sets MaturityMonthYear, Tag 200
func (m NoRelatedSym) SetMaturityMonthYear(v string) {
m.Set(field.NewMaturityMonthYear(v))
}
//SetMaturityDay sets MaturityDay, Tag 205
func (m NoRelatedSym) SetMaturityDay(v int) {
m.Set(field.NewMaturityDay(v))
}
//SetPutOrCall sets PutOrCall, Tag 201
func (m NoRelatedSym) SetPutOrCall(v enum.PutOrCall) {
m.Set(field.NewPutOrCall(v))
}
//SetStrikePrice sets StrikePrice, Tag 202
func (m NoRelatedSym) SetStrikePrice(value decimal.Decimal, scale int32) {
m.Set(field.NewStrikePrice(value, scale))
}
//SetOptAttribute sets OptAttribute, Tag 206
func (m NoRelatedSym) SetOptAttribute(v string) {
m.Set(field.NewOptAttribute(v))
}
//SetContractMultiplier sets ContractMultiplier, Tag 231
func (m NoRelatedSym) SetContractMultiplier(value decimal.Decimal, scale int32) {
m.Set(field.NewContractMultiplier(value, scale))
}
//SetCouponRate sets CouponRate, Tag 223
func (m NoRelatedSym) SetCouponRate(value decimal.Decimal, scale int32) {
m.Set(field.NewCouponRate(value, scale))
}
//SetSecurityExchange sets SecurityExchange, Tag 207
func (m NoRelatedSym) SetSecurityExchange(v string) {
m.Set(field.NewSecurityExchange(v))
}
//SetIssuer sets Issuer, Tag 106
func (m NoRelatedSym) SetIssuer(v string) {
m.Set(field.NewIssuer(v))
}
//SetEncodedIssuerLen sets EncodedIssuerLen, Tag 348
func (m NoRelatedSym) SetEncodedIssuerLen(v int) {
m.Set(field.NewEncodedIssuerLen(v))
}
//SetEncodedIssuer sets EncodedIssuer, Tag 349
func (m NoRelatedSym) SetEncodedIssuer(v string) {
m.Set(field.NewEncodedIssuer(v))
}
//SetSecurityDesc sets SecurityDesc, Tag 107
func (m NoRelatedSym) SetSecurityDesc(v string) {
m.Set(field.NewSecurityDesc(v))
}
//SetEncodedSecurityDescLen sets EncodedSecurityDescLen, Tag 350
func (m NoRelatedSym) SetEncodedSecurityDescLen(v int) {
m.Set(field.NewEncodedSecurityDescLen(v))
}
//SetEncodedSecurityDesc sets EncodedSecurityDesc, Tag 351
func (m NoRelatedSym) SetEncodedSecurityDesc(v string) {
m.Set(field.NewEncodedSecurityDesc(v))
}
//SetTradingSessionID sets TradingSessionID, Tag 336
func (m NoRelatedSym) SetTradingSessionID(v enum.TradingSessionID) {
m.Set(field.NewTradingSessionID(v))
}
//GetSymbol gets Symbol, Tag 55
func (m NoRelatedSym) GetSymbol() (v string, err quickfix.MessageRejectError) {
var f field.SymbolField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetSymbolSfx gets SymbolSfx, Tag 65
func (m NoRelatedSym) GetSymbolSfx() (v enum.SymbolSfx, err quickfix.MessageRejectError) {
var f field.SymbolSfxField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetSecurityID gets SecurityID, Tag 48
func (m NoRelatedSym) GetSecurityID() (v string, err quickfix.MessageRejectError) {
var f field.SecurityIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetIDSource gets IDSource, Tag 22
func (m NoRelatedSym) GetIDSource() (v enum.IDSource, err quickfix.MessageRejectError) {
var f field.IDSourceField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetSecurityType gets SecurityType, Tag 167
func (m NoRelatedSym) GetSecurityType() (v enum.SecurityType, err quickfix.MessageRejectError) {
var f field.SecurityTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetMaturityMonthYear gets MaturityMonthYear, Tag 200
func (m NoRelatedSym) GetMaturityMonthYear() (v string, err quickfix.MessageRejectError) {
var f field.MaturityMonthYearField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetMaturityDay gets MaturityDay, Tag 205
func (m NoRelatedSym) GetMaturityDay() (v int, err quickfix.MessageRejectError) {
var f field.MaturityDayField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetPutOrCall gets PutOrCall, Tag 201
func (m NoRelatedSym) GetPutOrCall() (v enum.PutOrCall, err quickfix.MessageRejectError) {
var f field.PutOrCallField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetStrikePrice gets StrikePrice, Tag 202
func (m NoRelatedSym) GetStrikePrice() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.StrikePriceField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetOptAttribute gets OptAttribute, Tag 206
func (m NoRelatedSym) GetOptAttribute() (v string, err quickfix.MessageRejectError) {
var f field.OptAttributeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetContractMultiplier gets ContractMultiplier, Tag 231
func (m NoRelatedSym) GetContractMultiplier() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.ContractMultiplierField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetCouponRate gets CouponRate, Tag 223
func (m NoRelatedSym) GetCouponRate() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.CouponRateField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetSecurityExchange gets SecurityExchange, Tag 207
func (m NoRelatedSym) GetSecurityExchange() (v string, err quickfix.MessageRejectError) {
var f field.SecurityExchangeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetIssuer gets Issuer, Tag 106
func (m NoRelatedSym) GetIssuer() (v string, err quickfix.MessageRejectError) {
var f field.IssuerField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetEncodedIssuerLen gets EncodedIssuerLen, Tag 348
func (m NoRelatedSym) GetEncodedIssuerLen() (v int, err quickfix.MessageRejectError) {
var f field.EncodedIssuerLenField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetEncodedIssuer gets EncodedIssuer, Tag 349
func (m NoRelatedSym) GetEncodedIssuer() (v string, err quickfix.MessageRejectError) {
var f field.EncodedIssuerField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetSecurityDesc gets SecurityDesc, Tag 107
func (m NoRelatedSym) GetSecurityDesc() (v string, err quickfix.MessageRejectError) {
var f field.SecurityDescField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetEncodedSecurityDescLen gets EncodedSecurityDescLen, Tag 350
func (m NoRelatedSym) GetEncodedSecurityDescLen() (v int, err quickfix.MessageRejectError) {
var f field.EncodedSecurityDescLenField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetEncodedSecurityDesc gets EncodedSecurityDesc, Tag 351
func (m NoRelatedSym) GetEncodedSecurityDesc() (v string, err quickfix.MessageRejectError) {
var f field.EncodedSecurityDescField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetTradingSessionID gets TradingSessionID, Tag 336
func (m NoRelatedSym) GetTradingSessionID() (v enum.TradingSessionID, err quickfix.MessageRejectError) {
var f field.TradingSessionIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//HasSymbol returns true if Symbol is present, Tag 55
func (m NoRelatedSym) HasSymbol() bool {
return m.Has(tag.Symbol)
}
//HasSymbolSfx returns true if SymbolSfx is present, Tag 65
func (m NoRelatedSym) HasSymbolSfx() bool {
return m.Has(tag.SymbolSfx)
}
//HasSecurityID returns true if SecurityID is present, Tag 48
func (m NoRelatedSym) HasSecurityID() bool {
return m.Has(tag.SecurityID)
}
//HasIDSource returns true if IDSource is present, Tag 22
func (m NoRelatedSym) HasIDSource() bool {
return m.Has(tag.IDSource)
}
//HasSecurityType returns true if SecurityType is present, Tag 167
func (m NoRelatedSym) HasSecurityType() bool {
return m.Has(tag.SecurityType)
}
//HasMaturityMonthYear returns true if MaturityMonthYear is present, Tag 200
func (m NoRelatedSym) HasMaturityMonthYear() bool {
return m.Has(tag.MaturityMonthYear)
}
//HasMaturityDay returns true if MaturityDay is present, Tag 205
func (m NoRelatedSym) HasMaturityDay() bool {
return m.Has(tag.MaturityDay)
}
//HasPutOrCall returns true if PutOrCall is present, Tag 201
func (m NoRelatedSym) HasPutOrCall() bool {
return m.Has(tag.PutOrCall)
}
//HasStrikePrice returns true if StrikePrice is present, Tag 202
func (m NoRelatedSym) HasStrikePrice() bool {
return m.Has(tag.StrikePrice)
}
//HasOptAttribute returns true if OptAttribute is present, Tag 206
func (m NoRelatedSym) HasOptAttribute() bool {
return m.Has(tag.OptAttribute)
}
//HasContractMultiplier returns true if ContractMultiplier is present, Tag 231
func (m NoRelatedSym) HasContractMultiplier() bool {
return m.Has(tag.ContractMultiplier)
}
//HasCouponRate returns true if CouponRate is present, Tag 223
func (m NoRelatedSym) HasCouponRate() bool {
return m.Has(tag.CouponRate)
}
//HasSecurityExchange returns true if SecurityExchange is present, Tag 207
func (m NoRelatedSym) HasSecurityExchange() bool {
return m.Has(tag.SecurityExchange)
}
//HasIssuer returns true if Issuer is present, Tag 106
func (m NoRelatedSym) HasIssuer() bool {
return m.Has(tag.Issuer)
}
//HasEncodedIssuerLen returns true if EncodedIssuerLen is present, Tag 348
func (m NoRelatedSym) HasEncodedIssuerLen() bool {
return m.Has(tag.EncodedIssuerLen)
}
//HasEncodedIssuer returns true if EncodedIssuer is present, Tag 349
func (m NoRelatedSym) HasEncodedIssuer() bool {
return m.Has(tag.EncodedIssuer)
}
//HasSecurityDesc returns true if SecurityDesc is present, Tag 107
func (m NoRelatedSym) HasSecurityDesc() bool {
return m.Has(tag.SecurityDesc)
}
//HasEncodedSecurityDescLen returns true if EncodedSecurityDescLen is present, Tag 350
func (m NoRelatedSym) HasEncodedSecurityDescLen() bool {
return m.Has(tag.EncodedSecurityDescLen)
}
//HasEncodedSecurityDesc returns true if EncodedSecurityDesc is present, Tag 351
func (m NoRelatedSym) HasEncodedSecurityDesc() bool {
return m.Has(tag.EncodedSecurityDesc)
}
//HasTradingSessionID returns true if TradingSessionID is present, Tag 336
func (m NoRelatedSym) HasTradingSessionID() bool {
return m.Has(tag.TradingSessionID)
}
//NoRelatedSymRepeatingGroup is a repeating group, Tag 146
type NoRelatedSymRepeatingGroup struct {
*quickfix.RepeatingGroup
}
//NewNoRelatedSymRepeatingGroup returns an initialized, NoRelatedSymRepeatingGroup
func NewNoRelatedSymRepeatingGroup() NoRelatedSymRepeatingGroup {
return NoRelatedSymRepeatingGroup{
quickfix.NewRepeatingGroup(tag.NoRelatedSym,
quickfix.GroupTemplate{quickfix.GroupElement(tag.Symbol), quickfix.GroupElement(tag.SymbolSfx), quickfix.GroupElement(tag.SecurityID), quickfix.GroupElement(tag.IDSource), quickfix.GroupElement(tag.SecurityType), quickfix.GroupElement(tag.MaturityMonthYear), quickfix.GroupElement(tag.MaturityDay), quickfix.GroupElement(tag.PutOrCall), quickfix.GroupElement(tag.StrikePrice), quickfix.GroupElement(tag.OptAttribute), quickfix.GroupElement(tag.ContractMultiplier), quickfix.GroupElement(tag.CouponRate), quickfix.GroupElement(tag.SecurityExchange), quickfix.GroupElement(tag.Issuer), quickfix.GroupElement(tag.EncodedIssuerLen), quickfix.GroupElement(tag.EncodedIssuer), quickfix.GroupElement(tag.SecurityDesc), quickfix.GroupElement(tag.EncodedSecurityDescLen), quickfix.GroupElement(tag.EncodedSecurityDesc), quickfix.GroupElement(tag.TradingSessionID)})}
}
//Add create and append a new NoRelatedSym to this group
func (m NoRelatedSymRepeatingGroup) Add() NoRelatedSym {
g := m.RepeatingGroup.Add()
return NoRelatedSym{g}
}
//Get returns the ith NoRelatedSym in the NoRelatedSymRepeatinGroup
func (m NoRelatedSymRepeatingGroup) Get(i int) NoRelatedSym {
return NoRelatedSym{m.RepeatingGroup.Get(i)}
}
//NoMDEntryTypes is a repeating group element, Tag 267
type NoMDEntryTypes struct {
*quickfix.Group
}
//SetMDEntryType sets MDEntryType, Tag 269
func (m NoMDEntryTypes) SetMDEntryType(v enum.MDEntryType) {
m.Set(field.NewMDEntryType(v))
}
//GetMDEntryType gets MDEntryType, Tag 269
func (m NoMDEntryTypes) GetMDEntryType() (v enum.MDEntryType, err quickfix.MessageRejectError) {
var f field.MDEntryTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
//HasMDEntryType returns true if MDEntryType is present, Tag 269
func (m NoMDEntryTypes) HasMDEntryType() bool {
return m.Has(tag.MDEntryType)
}
//NoMDEntryTypesRepeatingGroup is a repeating group, Tag 267
type NoMDEntryTypesRepeatingGroup struct {
*quickfix.RepeatingGroup
}
//NewNoMDEntryTypesRepeatingGroup returns an initialized, NoMDEntryTypesRepeatingGroup
func NewNoMDEntryTypesRepeatingGroup() NoMDEntryTypesRepeatingGroup {
return NoMDEntryTypesRepeatingGroup{
quickfix.NewRepeatingGroup(tag.NoMDEntryTypes,
quickfix.GroupTemplate{quickfix.GroupElement(tag.MDEntryType)})}
}
//Add create and append a new NoMDEntryTypes to this group
func (m NoMDEntryTypesRepeatingGroup) Add() NoMDEntryTypes {
g := m.RepeatingGroup.Add()
return NoMDEntryTypes{g}
}
//Get returns the ith NoMDEntryTypes in the NoMDEntryTypesRepeatinGroup
func (m NoMDEntryTypesRepeatingGroup) Get(i int) NoMDEntryTypes {
return NoMDEntryTypes{m.RepeatingGroup.Get(i)}
}