881 lines
24 KiB
Go
881 lines
24 KiB
Go
// Code generated by quickfix. DO NOT EDIT.
|
|
package email
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/shopspring/decimal"
|
|
|
|
"quantex.com/qfixdpl/quickfix"
|
|
"quantex.com/qfixdpl/quickfix/gen/enum"
|
|
"quantex.com/qfixdpl/quickfix/gen/field"
|
|
"quantex.com/qfixdpl/quickfix/gen/fix42"
|
|
"quantex.com/qfixdpl/quickfix/gen/tag"
|
|
)
|
|
|
|
// Email is the fix42 Email type, MsgType = C.
|
|
type Email struct {
|
|
fix42.Header
|
|
*quickfix.Body
|
|
fix42.Trailer
|
|
Message *quickfix.Message
|
|
}
|
|
|
|
// FromMessage creates a Email from a quickfix.Message instance.
|
|
func FromMessage(m *quickfix.Message) Email {
|
|
return Email{
|
|
Header: fix42.Header{Header: &m.Header},
|
|
Body: &m.Body,
|
|
Trailer: fix42.Trailer{Trailer: &m.Trailer},
|
|
Message: m,
|
|
}
|
|
}
|
|
|
|
// ToMessage returns a quickfix.Message instance.
|
|
func (m Email) ToMessage() *quickfix.Message {
|
|
return m.Message
|
|
}
|
|
|
|
// New returns a Email initialized with the required fields for Email.
|
|
func New(emailthreadid field.EmailThreadIDField, emailtype field.EmailTypeField, subject field.SubjectField) (m Email) {
|
|
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("C"))
|
|
m.Set(emailthreadid)
|
|
m.Set(emailtype)
|
|
m.Set(subject)
|
|
|
|
return
|
|
}
|
|
|
|
// A RouteOut is the callback type that should be implemented for routing Message.
|
|
type RouteOut func(msg Email, 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", "C", r
|
|
}
|
|
|
|
// SetClOrdID sets ClOrdID, Tag 11.
|
|
func (m Email) SetClOrdID(v string) {
|
|
m.Set(field.NewClOrdID(v))
|
|
}
|
|
|
|
// SetLinesOfText sets LinesOfText, Tag 33.
|
|
func (m Email) SetLinesOfText(f LinesOfTextRepeatingGroup) {
|
|
m.SetGroup(f)
|
|
}
|
|
|
|
// SetOrderID sets OrderID, Tag 37.
|
|
func (m Email) SetOrderID(v string) {
|
|
m.Set(field.NewOrderID(v))
|
|
}
|
|
|
|
// SetOrigTime sets OrigTime, Tag 42.
|
|
func (m Email) SetOrigTime(v time.Time) {
|
|
m.Set(field.NewOrigTime(v))
|
|
}
|
|
|
|
// SetEmailType sets EmailType, Tag 94.
|
|
func (m Email) SetEmailType(v enum.EmailType) {
|
|
m.Set(field.NewEmailType(v))
|
|
}
|
|
|
|
// SetRawDataLength sets RawDataLength, Tag 95.
|
|
func (m Email) SetRawDataLength(v int) {
|
|
m.Set(field.NewRawDataLength(v))
|
|
}
|
|
|
|
// SetRawData sets RawData, Tag 96.
|
|
func (m Email) SetRawData(v string) {
|
|
m.Set(field.NewRawData(v))
|
|
}
|
|
|
|
// SetNoRelatedSym sets NoRelatedSym, Tag 146.
|
|
func (m Email) SetNoRelatedSym(f NoRelatedSymRepeatingGroup) {
|
|
m.SetGroup(f)
|
|
}
|
|
|
|
// SetSubject sets Subject, Tag 147.
|
|
func (m Email) SetSubject(v string) {
|
|
m.Set(field.NewSubject(v))
|
|
}
|
|
|
|
// SetEmailThreadID sets EmailThreadID, Tag 164.
|
|
func (m Email) SetEmailThreadID(v string) {
|
|
m.Set(field.NewEmailThreadID(v))
|
|
}
|
|
|
|
// SetNoRoutingIDs sets NoRoutingIDs, Tag 215.
|
|
func (m Email) SetNoRoutingIDs(f NoRoutingIDsRepeatingGroup) {
|
|
m.SetGroup(f)
|
|
}
|
|
|
|
// SetEncodedSubjectLen sets EncodedSubjectLen, Tag 356.
|
|
func (m Email) SetEncodedSubjectLen(v int) {
|
|
m.Set(field.NewEncodedSubjectLen(v))
|
|
}
|
|
|
|
// SetEncodedSubject sets EncodedSubject, Tag 357.
|
|
func (m Email) SetEncodedSubject(v string) {
|
|
m.Set(field.NewEncodedSubject(v))
|
|
}
|
|
|
|
// GetClOrdID gets ClOrdID, Tag 11.
|
|
func (m Email) GetClOrdID() (v string, err quickfix.MessageRejectError) {
|
|
var f field.ClOrdIDField
|
|
if err = m.Get(&f); err == nil {
|
|
v = f.Value()
|
|
}
|
|
return
|
|
}
|
|
|
|
// GetLinesOfText gets LinesOfText, Tag 33.
|
|
func (m Email) GetLinesOfText() (LinesOfTextRepeatingGroup, quickfix.MessageRejectError) {
|
|
f := NewLinesOfTextRepeatingGroup()
|
|
err := m.GetGroup(f)
|
|
return f, err
|
|
}
|
|
|
|
// GetOrderID gets OrderID, Tag 37.
|
|
func (m Email) GetOrderID() (v string, err quickfix.MessageRejectError) {
|
|
var f field.OrderIDField
|
|
if err = m.Get(&f); err == nil {
|
|
v = f.Value()
|
|
}
|
|
return
|
|
}
|
|
|
|
// GetOrigTime gets OrigTime, Tag 42.
|
|
func (m Email) GetOrigTime() (v time.Time, err quickfix.MessageRejectError) {
|
|
var f field.OrigTimeField
|
|
if err = m.Get(&f); err == nil {
|
|
v = f.Value()
|
|
}
|
|
return
|
|
}
|
|
|
|
// GetEmailType gets EmailType, Tag 94.
|
|
func (m Email) GetEmailType() (v enum.EmailType, err quickfix.MessageRejectError) {
|
|
var f field.EmailTypeField
|
|
if err = m.Get(&f); err == nil {
|
|
v = f.Value()
|
|
}
|
|
return
|
|
}
|
|
|
|
// GetRawDataLength gets RawDataLength, Tag 95.
|
|
func (m Email) GetRawDataLength() (v int, err quickfix.MessageRejectError) {
|
|
var f field.RawDataLengthField
|
|
if err = m.Get(&f); err == nil {
|
|
v = f.Value()
|
|
}
|
|
return
|
|
}
|
|
|
|
// GetRawData gets RawData, Tag 96.
|
|
func (m Email) GetRawData() (v string, err quickfix.MessageRejectError) {
|
|
var f field.RawDataField
|
|
if err = m.Get(&f); err == nil {
|
|
v = f.Value()
|
|
}
|
|
return
|
|
}
|
|
|
|
// GetNoRelatedSym gets NoRelatedSym, Tag 146.
|
|
func (m Email) GetNoRelatedSym() (NoRelatedSymRepeatingGroup, quickfix.MessageRejectError) {
|
|
f := NewNoRelatedSymRepeatingGroup()
|
|
err := m.GetGroup(f)
|
|
return f, err
|
|
}
|
|
|
|
// GetSubject gets Subject, Tag 147.
|
|
func (m Email) GetSubject() (v string, err quickfix.MessageRejectError) {
|
|
var f field.SubjectField
|
|
if err = m.Get(&f); err == nil {
|
|
v = f.Value()
|
|
}
|
|
return
|
|
}
|
|
|
|
// GetEmailThreadID gets EmailThreadID, Tag 164.
|
|
func (m Email) GetEmailThreadID() (v string, err quickfix.MessageRejectError) {
|
|
var f field.EmailThreadIDField
|
|
if err = m.Get(&f); err == nil {
|
|
v = f.Value()
|
|
}
|
|
return
|
|
}
|
|
|
|
// GetNoRoutingIDs gets NoRoutingIDs, Tag 215.
|
|
func (m Email) GetNoRoutingIDs() (NoRoutingIDsRepeatingGroup, quickfix.MessageRejectError) {
|
|
f := NewNoRoutingIDsRepeatingGroup()
|
|
err := m.GetGroup(f)
|
|
return f, err
|
|
}
|
|
|
|
// GetEncodedSubjectLen gets EncodedSubjectLen, Tag 356.
|
|
func (m Email) GetEncodedSubjectLen() (v int, err quickfix.MessageRejectError) {
|
|
var f field.EncodedSubjectLenField
|
|
if err = m.Get(&f); err == nil {
|
|
v = f.Value()
|
|
}
|
|
return
|
|
}
|
|
|
|
// GetEncodedSubject gets EncodedSubject, Tag 357.
|
|
func (m Email) GetEncodedSubject() (v string, err quickfix.MessageRejectError) {
|
|
var f field.EncodedSubjectField
|
|
if err = m.Get(&f); err == nil {
|
|
v = f.Value()
|
|
}
|
|
return
|
|
}
|
|
|
|
// HasClOrdID returns true if ClOrdID is present, Tag 11.
|
|
func (m Email) HasClOrdID() bool {
|
|
return m.Has(tag.ClOrdID)
|
|
}
|
|
|
|
// HasLinesOfText returns true if LinesOfText is present, Tag 33.
|
|
func (m Email) HasLinesOfText() bool {
|
|
return m.Has(tag.LinesOfText)
|
|
}
|
|
|
|
// HasOrderID returns true if OrderID is present, Tag 37.
|
|
func (m Email) HasOrderID() bool {
|
|
return m.Has(tag.OrderID)
|
|
}
|
|
|
|
// HasOrigTime returns true if OrigTime is present, Tag 42.
|
|
func (m Email) HasOrigTime() bool {
|
|
return m.Has(tag.OrigTime)
|
|
}
|
|
|
|
// HasEmailType returns true if EmailType is present, Tag 94.
|
|
func (m Email) HasEmailType() bool {
|
|
return m.Has(tag.EmailType)
|
|
}
|
|
|
|
// HasRawDataLength returns true if RawDataLength is present, Tag 95.
|
|
func (m Email) HasRawDataLength() bool {
|
|
return m.Has(tag.RawDataLength)
|
|
}
|
|
|
|
// HasRawData returns true if RawData is present, Tag 96.
|
|
func (m Email) HasRawData() bool {
|
|
return m.Has(tag.RawData)
|
|
}
|
|
|
|
// HasNoRelatedSym returns true if NoRelatedSym is present, Tag 146.
|
|
func (m Email) HasNoRelatedSym() bool {
|
|
return m.Has(tag.NoRelatedSym)
|
|
}
|
|
|
|
// HasSubject returns true if Subject is present, Tag 147.
|
|
func (m Email) HasSubject() bool {
|
|
return m.Has(tag.Subject)
|
|
}
|
|
|
|
// HasEmailThreadID returns true if EmailThreadID is present, Tag 164.
|
|
func (m Email) HasEmailThreadID() bool {
|
|
return m.Has(tag.EmailThreadID)
|
|
}
|
|
|
|
// HasNoRoutingIDs returns true if NoRoutingIDs is present, Tag 215.
|
|
func (m Email) HasNoRoutingIDs() bool {
|
|
return m.Has(tag.NoRoutingIDs)
|
|
}
|
|
|
|
// HasEncodedSubjectLen returns true if EncodedSubjectLen is present, Tag 356.
|
|
func (m Email) HasEncodedSubjectLen() bool {
|
|
return m.Has(tag.EncodedSubjectLen)
|
|
}
|
|
|
|
// HasEncodedSubject returns true if EncodedSubject is present, Tag 357.
|
|
func (m Email) HasEncodedSubject() bool {
|
|
return m.Has(tag.EncodedSubject)
|
|
}
|
|
|
|
// LinesOfText is a repeating group element, Tag 33.
|
|
type LinesOfText struct {
|
|
*quickfix.Group
|
|
}
|
|
|
|
// SetText sets Text, Tag 58.
|
|
func (m LinesOfText) SetText(v string) {
|
|
m.Set(field.NewText(v))
|
|
}
|
|
|
|
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
|
|
func (m LinesOfText) SetEncodedTextLen(v int) {
|
|
m.Set(field.NewEncodedTextLen(v))
|
|
}
|
|
|
|
// SetEncodedText sets EncodedText, Tag 355.
|
|
func (m LinesOfText) SetEncodedText(v string) {
|
|
m.Set(field.NewEncodedText(v))
|
|
}
|
|
|
|
// GetText gets Text, Tag 58.
|
|
func (m LinesOfText) GetText() (v string, err quickfix.MessageRejectError) {
|
|
var f field.TextField
|
|
if err = m.Get(&f); err == nil {
|
|
v = f.Value()
|
|
}
|
|
return
|
|
}
|
|
|
|
// GetEncodedTextLen gets EncodedTextLen, Tag 354.
|
|
func (m LinesOfText) 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 LinesOfText) GetEncodedText() (v string, err quickfix.MessageRejectError) {
|
|
var f field.EncodedTextField
|
|
if err = m.Get(&f); err == nil {
|
|
v = f.Value()
|
|
}
|
|
return
|
|
}
|
|
|
|
// HasText returns true if Text is present, Tag 58.
|
|
func (m LinesOfText) HasText() bool {
|
|
return m.Has(tag.Text)
|
|
}
|
|
|
|
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
|
|
func (m LinesOfText) HasEncodedTextLen() bool {
|
|
return m.Has(tag.EncodedTextLen)
|
|
}
|
|
|
|
// HasEncodedText returns true if EncodedText is present, Tag 355.
|
|
func (m LinesOfText) HasEncodedText() bool {
|
|
return m.Has(tag.EncodedText)
|
|
}
|
|
|
|
// LinesOfTextRepeatingGroup is a repeating group, Tag 33.
|
|
type LinesOfTextRepeatingGroup struct {
|
|
*quickfix.RepeatingGroup
|
|
}
|
|
|
|
// NewLinesOfTextRepeatingGroup returns an initialized, LinesOfTextRepeatingGroup.
|
|
func NewLinesOfTextRepeatingGroup() LinesOfTextRepeatingGroup {
|
|
return LinesOfTextRepeatingGroup{
|
|
quickfix.NewRepeatingGroup(
|
|
tag.LinesOfText,
|
|
quickfix.GroupTemplate{
|
|
quickfix.GroupElement(tag.Text),
|
|
quickfix.GroupElement(tag.EncodedTextLen),
|
|
quickfix.GroupElement(tag.EncodedText),
|
|
},
|
|
),
|
|
}
|
|
}
|
|
|
|
// Add create and append a new LinesOfText to this group.
|
|
func (m LinesOfTextRepeatingGroup) Add() LinesOfText {
|
|
g := m.RepeatingGroup.Add()
|
|
return LinesOfText{g}
|
|
}
|
|
|
|
// Get returns the ith LinesOfText in the LinesOfTextRepeatinGroup.
|
|
func (m LinesOfTextRepeatingGroup) Get(i int) LinesOfText {
|
|
return LinesOfText{m.RepeatingGroup.Get(i)}
|
|
}
|
|
|
|
// NoRelatedSym is a repeating group element, Tag 146.
|
|
type NoRelatedSym struct {
|
|
*quickfix.Group
|
|
}
|
|
|
|
// SetRelatdSym sets RelatdSym, Tag 46.
|
|
func (m NoRelatedSym) SetRelatdSym(v string) {
|
|
m.Set(field.NewRelatdSym(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))
|
|
}
|
|
|
|
// GetRelatdSym gets RelatdSym, Tag 46.
|
|
func (m NoRelatedSym) GetRelatdSym() (v string, err quickfix.MessageRejectError) {
|
|
var f field.RelatdSymField
|
|
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
|
|
}
|
|
|
|
// HasRelatdSym returns true if RelatdSym is present, Tag 46.
|
|
func (m NoRelatedSym) HasRelatdSym() bool {
|
|
return m.Has(tag.RelatdSym)
|
|
}
|
|
|
|
// 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)
|
|
}
|
|
|
|
// 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.RelatdSym),
|
|
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),
|
|
},
|
|
),
|
|
}
|
|
}
|
|
|
|
// 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)}
|
|
}
|
|
|
|
// NoRoutingIDs is a repeating group element, Tag 215.
|
|
type NoRoutingIDs struct {
|
|
*quickfix.Group
|
|
}
|
|
|
|
// SetRoutingType sets RoutingType, Tag 216.
|
|
func (m NoRoutingIDs) SetRoutingType(v enum.RoutingType) {
|
|
m.Set(field.NewRoutingType(v))
|
|
}
|
|
|
|
// SetRoutingID sets RoutingID, Tag 217.
|
|
func (m NoRoutingIDs) SetRoutingID(v string) {
|
|
m.Set(field.NewRoutingID(v))
|
|
}
|
|
|
|
// GetRoutingType gets RoutingType, Tag 216.
|
|
func (m NoRoutingIDs) GetRoutingType() (v enum.RoutingType, err quickfix.MessageRejectError) {
|
|
var f field.RoutingTypeField
|
|
if err = m.Get(&f); err == nil {
|
|
v = f.Value()
|
|
}
|
|
return
|
|
}
|
|
|
|
// GetRoutingID gets RoutingID, Tag 217.
|
|
func (m NoRoutingIDs) GetRoutingID() (v string, err quickfix.MessageRejectError) {
|
|
var f field.RoutingIDField
|
|
if err = m.Get(&f); err == nil {
|
|
v = f.Value()
|
|
}
|
|
return
|
|
}
|
|
|
|
// HasRoutingType returns true if RoutingType is present, Tag 216.
|
|
func (m NoRoutingIDs) HasRoutingType() bool {
|
|
return m.Has(tag.RoutingType)
|
|
}
|
|
|
|
// HasRoutingID returns true if RoutingID is present, Tag 217.
|
|
func (m NoRoutingIDs) HasRoutingID() bool {
|
|
return m.Has(tag.RoutingID)
|
|
}
|
|
|
|
// NoRoutingIDsRepeatingGroup is a repeating group, Tag 215.
|
|
type NoRoutingIDsRepeatingGroup struct {
|
|
*quickfix.RepeatingGroup
|
|
}
|
|
|
|
// NewNoRoutingIDsRepeatingGroup returns an initialized, NoRoutingIDsRepeatingGroup.
|
|
func NewNoRoutingIDsRepeatingGroup() NoRoutingIDsRepeatingGroup {
|
|
return NoRoutingIDsRepeatingGroup{
|
|
quickfix.NewRepeatingGroup(
|
|
tag.NoRoutingIDs,
|
|
quickfix.GroupTemplate{
|
|
quickfix.GroupElement(tag.RoutingType),
|
|
quickfix.GroupElement(tag.RoutingID),
|
|
},
|
|
),
|
|
}
|
|
}
|
|
|
|
// Add create and append a new NoRoutingIDs to this group.
|
|
func (m NoRoutingIDsRepeatingGroup) Add() NoRoutingIDs {
|
|
g := m.RepeatingGroup.Add()
|
|
return NoRoutingIDs{g}
|
|
}
|
|
|
|
// Get returns the ith NoRoutingIDs in the NoRoutingIDsRepeatinGroup.
|
|
func (m NoRoutingIDsRepeatingGroup) Get(i int) NoRoutingIDs {
|
|
return NoRoutingIDs{m.RepeatingGroup.Get(i)}
|
|
}
|