605 lines
17 KiB
Go
605 lines
17 KiB
Go
// Code generated by quickfix. DO NOT EDIT.
|
|
package quotecancel
|
|
|
|
import (
|
|
"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"
|
|
)
|
|
|
|
// QuoteCancel is the fix42 QuoteCancel type, MsgType = Z.
|
|
type QuoteCancel struct {
|
|
fix42.Header
|
|
*quickfix.Body
|
|
fix42.Trailer
|
|
Message *quickfix.Message
|
|
}
|
|
|
|
// FromMessage creates a QuoteCancel from a quickfix.Message instance.
|
|
func FromMessage(m *quickfix.Message) QuoteCancel {
|
|
return QuoteCancel{
|
|
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 QuoteCancel) ToMessage() *quickfix.Message {
|
|
return m.Message
|
|
}
|
|
|
|
// New returns a QuoteCancel initialized with the required fields for QuoteCancel.
|
|
func New(quoteid field.QuoteIDField, quotecanceltype field.QuoteCancelTypeField) (m QuoteCancel) {
|
|
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("Z"))
|
|
m.Set(quoteid)
|
|
m.Set(quotecanceltype)
|
|
|
|
return
|
|
}
|
|
|
|
// A RouteOut is the callback type that should be implemented for routing Message.
|
|
type RouteOut func(msg QuoteCancel, 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", "Z", r
|
|
}
|
|
|
|
// SetQuoteID sets QuoteID, Tag 117.
|
|
func (m QuoteCancel) SetQuoteID(v string) {
|
|
m.Set(field.NewQuoteID(v))
|
|
}
|
|
|
|
// SetQuoteReqID sets QuoteReqID, Tag 131.
|
|
func (m QuoteCancel) SetQuoteReqID(v string) {
|
|
m.Set(field.NewQuoteReqID(v))
|
|
}
|
|
|
|
// SetNoQuoteEntries sets NoQuoteEntries, Tag 295.
|
|
func (m QuoteCancel) SetNoQuoteEntries(f NoQuoteEntriesRepeatingGroup) {
|
|
m.SetGroup(f)
|
|
}
|
|
|
|
// SetQuoteCancelType sets QuoteCancelType, Tag 298.
|
|
func (m QuoteCancel) SetQuoteCancelType(v enum.QuoteCancelType) {
|
|
m.Set(field.NewQuoteCancelType(v))
|
|
}
|
|
|
|
// SetQuoteResponseLevel sets QuoteResponseLevel, Tag 301.
|
|
func (m QuoteCancel) SetQuoteResponseLevel(v enum.QuoteResponseLevel) {
|
|
m.Set(field.NewQuoteResponseLevel(v))
|
|
}
|
|
|
|
// SetTradingSessionID sets TradingSessionID, Tag 336.
|
|
func (m QuoteCancel) SetTradingSessionID(v enum.TradingSessionID) {
|
|
m.Set(field.NewTradingSessionID(v))
|
|
}
|
|
|
|
// GetQuoteID gets QuoteID, Tag 117.
|
|
func (m QuoteCancel) GetQuoteID() (v string, err quickfix.MessageRejectError) {
|
|
var f field.QuoteIDField
|
|
if err = m.Get(&f); err == nil {
|
|
v = f.Value()
|
|
}
|
|
return
|
|
}
|
|
|
|
// GetQuoteReqID gets QuoteReqID, Tag 131.
|
|
func (m QuoteCancel) GetQuoteReqID() (v string, err quickfix.MessageRejectError) {
|
|
var f field.QuoteReqIDField
|
|
if err = m.Get(&f); err == nil {
|
|
v = f.Value()
|
|
}
|
|
return
|
|
}
|
|
|
|
// GetNoQuoteEntries gets NoQuoteEntries, Tag 295.
|
|
func (m QuoteCancel) GetNoQuoteEntries() (NoQuoteEntriesRepeatingGroup, quickfix.MessageRejectError) {
|
|
f := NewNoQuoteEntriesRepeatingGroup()
|
|
err := m.GetGroup(f)
|
|
return f, err
|
|
}
|
|
|
|
// GetQuoteCancelType gets QuoteCancelType, Tag 298.
|
|
func (m QuoteCancel) GetQuoteCancelType() (v enum.QuoteCancelType, err quickfix.MessageRejectError) {
|
|
var f field.QuoteCancelTypeField
|
|
if err = m.Get(&f); err == nil {
|
|
v = f.Value()
|
|
}
|
|
return
|
|
}
|
|
|
|
// GetQuoteResponseLevel gets QuoteResponseLevel, Tag 301.
|
|
func (m QuoteCancel) GetQuoteResponseLevel() (v enum.QuoteResponseLevel, err quickfix.MessageRejectError) {
|
|
var f field.QuoteResponseLevelField
|
|
if err = m.Get(&f); err == nil {
|
|
v = f.Value()
|
|
}
|
|
return
|
|
}
|
|
|
|
// GetTradingSessionID gets TradingSessionID, Tag 336.
|
|
func (m QuoteCancel) GetTradingSessionID() (v enum.TradingSessionID, err quickfix.MessageRejectError) {
|
|
var f field.TradingSessionIDField
|
|
if err = m.Get(&f); err == nil {
|
|
v = f.Value()
|
|
}
|
|
return
|
|
}
|
|
|
|
// HasQuoteID returns true if QuoteID is present, Tag 117.
|
|
func (m QuoteCancel) HasQuoteID() bool {
|
|
return m.Has(tag.QuoteID)
|
|
}
|
|
|
|
// HasQuoteReqID returns true if QuoteReqID is present, Tag 131.
|
|
func (m QuoteCancel) HasQuoteReqID() bool {
|
|
return m.Has(tag.QuoteReqID)
|
|
}
|
|
|
|
// HasNoQuoteEntries returns true if NoQuoteEntries is present, Tag 295.
|
|
func (m QuoteCancel) HasNoQuoteEntries() bool {
|
|
return m.Has(tag.NoQuoteEntries)
|
|
}
|
|
|
|
// HasQuoteCancelType returns true if QuoteCancelType is present, Tag 298.
|
|
func (m QuoteCancel) HasQuoteCancelType() bool {
|
|
return m.Has(tag.QuoteCancelType)
|
|
}
|
|
|
|
// HasQuoteResponseLevel returns true if QuoteResponseLevel is present, Tag 301.
|
|
func (m QuoteCancel) HasQuoteResponseLevel() bool {
|
|
return m.Has(tag.QuoteResponseLevel)
|
|
}
|
|
|
|
// HasTradingSessionID returns true if TradingSessionID is present, Tag 336.
|
|
func (m QuoteCancel) HasTradingSessionID() bool {
|
|
return m.Has(tag.TradingSessionID)
|
|
}
|
|
|
|
// NoQuoteEntries is a repeating group element, Tag 295.
|
|
type NoQuoteEntries struct {
|
|
*quickfix.Group
|
|
}
|
|
|
|
// SetSymbol sets Symbol, Tag 55.
|
|
func (m NoQuoteEntries) SetSymbol(v string) {
|
|
m.Set(field.NewSymbol(v))
|
|
}
|
|
|
|
// SetSymbolSfx sets SymbolSfx, Tag 65.
|
|
func (m NoQuoteEntries) SetSymbolSfx(v enum.SymbolSfx) {
|
|
m.Set(field.NewSymbolSfx(v))
|
|
}
|
|
|
|
// SetSecurityID sets SecurityID, Tag 48.
|
|
func (m NoQuoteEntries) SetSecurityID(v string) {
|
|
m.Set(field.NewSecurityID(v))
|
|
}
|
|
|
|
// SetIDSource sets IDSource, Tag 22.
|
|
func (m NoQuoteEntries) SetIDSource(v enum.IDSource) {
|
|
m.Set(field.NewIDSource(v))
|
|
}
|
|
|
|
// SetSecurityType sets SecurityType, Tag 167.
|
|
func (m NoQuoteEntries) SetSecurityType(v enum.SecurityType) {
|
|
m.Set(field.NewSecurityType(v))
|
|
}
|
|
|
|
// SetMaturityMonthYear sets MaturityMonthYear, Tag 200.
|
|
func (m NoQuoteEntries) SetMaturityMonthYear(v string) {
|
|
m.Set(field.NewMaturityMonthYear(v))
|
|
}
|
|
|
|
// SetMaturityDay sets MaturityDay, Tag 205.
|
|
func (m NoQuoteEntries) SetMaturityDay(v int) {
|
|
m.Set(field.NewMaturityDay(v))
|
|
}
|
|
|
|
// SetPutOrCall sets PutOrCall, Tag 201.
|
|
func (m NoQuoteEntries) SetPutOrCall(v enum.PutOrCall) {
|
|
m.Set(field.NewPutOrCall(v))
|
|
}
|
|
|
|
// SetStrikePrice sets StrikePrice, Tag 202.
|
|
func (m NoQuoteEntries) SetStrikePrice(value decimal.Decimal, scale int32) {
|
|
m.Set(field.NewStrikePrice(value, scale))
|
|
}
|
|
|
|
// SetOptAttribute sets OptAttribute, Tag 206.
|
|
func (m NoQuoteEntries) SetOptAttribute(v string) {
|
|
m.Set(field.NewOptAttribute(v))
|
|
}
|
|
|
|
// SetContractMultiplier sets ContractMultiplier, Tag 231.
|
|
func (m NoQuoteEntries) SetContractMultiplier(value decimal.Decimal, scale int32) {
|
|
m.Set(field.NewContractMultiplier(value, scale))
|
|
}
|
|
|
|
// SetCouponRate sets CouponRate, Tag 223.
|
|
func (m NoQuoteEntries) SetCouponRate(value decimal.Decimal, scale int32) {
|
|
m.Set(field.NewCouponRate(value, scale))
|
|
}
|
|
|
|
// SetSecurityExchange sets SecurityExchange, Tag 207.
|
|
func (m NoQuoteEntries) SetSecurityExchange(v string) {
|
|
m.Set(field.NewSecurityExchange(v))
|
|
}
|
|
|
|
// SetIssuer sets Issuer, Tag 106.
|
|
func (m NoQuoteEntries) SetIssuer(v string) {
|
|
m.Set(field.NewIssuer(v))
|
|
}
|
|
|
|
// SetEncodedIssuerLen sets EncodedIssuerLen, Tag 348.
|
|
func (m NoQuoteEntries) SetEncodedIssuerLen(v int) {
|
|
m.Set(field.NewEncodedIssuerLen(v))
|
|
}
|
|
|
|
// SetEncodedIssuer sets EncodedIssuer, Tag 349.
|
|
func (m NoQuoteEntries) SetEncodedIssuer(v string) {
|
|
m.Set(field.NewEncodedIssuer(v))
|
|
}
|
|
|
|
// SetSecurityDesc sets SecurityDesc, Tag 107.
|
|
func (m NoQuoteEntries) SetSecurityDesc(v string) {
|
|
m.Set(field.NewSecurityDesc(v))
|
|
}
|
|
|
|
// SetEncodedSecurityDescLen sets EncodedSecurityDescLen, Tag 350.
|
|
func (m NoQuoteEntries) SetEncodedSecurityDescLen(v int) {
|
|
m.Set(field.NewEncodedSecurityDescLen(v))
|
|
}
|
|
|
|
// SetEncodedSecurityDesc sets EncodedSecurityDesc, Tag 351.
|
|
func (m NoQuoteEntries) SetEncodedSecurityDesc(v string) {
|
|
m.Set(field.NewEncodedSecurityDesc(v))
|
|
}
|
|
|
|
// SetUnderlyingSymbol sets UnderlyingSymbol, Tag 311.
|
|
func (m NoQuoteEntries) SetUnderlyingSymbol(v string) {
|
|
m.Set(field.NewUnderlyingSymbol(v))
|
|
}
|
|
|
|
// GetSymbol gets Symbol, Tag 55.
|
|
func (m NoQuoteEntries) 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 NoQuoteEntries) 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 NoQuoteEntries) 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 NoQuoteEntries) 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 NoQuoteEntries) 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 NoQuoteEntries) 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 NoQuoteEntries) 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 NoQuoteEntries) 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 NoQuoteEntries) 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 NoQuoteEntries) 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 NoQuoteEntries) 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 NoQuoteEntries) 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 NoQuoteEntries) 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 NoQuoteEntries) 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 NoQuoteEntries) 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 NoQuoteEntries) 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 NoQuoteEntries) 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 NoQuoteEntries) 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 NoQuoteEntries) GetEncodedSecurityDesc() (v string, err quickfix.MessageRejectError) {
|
|
var f field.EncodedSecurityDescField
|
|
if err = m.Get(&f); err == nil {
|
|
v = f.Value()
|
|
}
|
|
return
|
|
}
|
|
|
|
// GetUnderlyingSymbol gets UnderlyingSymbol, Tag 311.
|
|
func (m NoQuoteEntries) GetUnderlyingSymbol() (v string, err quickfix.MessageRejectError) {
|
|
var f field.UnderlyingSymbolField
|
|
if err = m.Get(&f); err == nil {
|
|
v = f.Value()
|
|
}
|
|
return
|
|
}
|
|
|
|
// HasSymbol returns true if Symbol is present, Tag 55.
|
|
func (m NoQuoteEntries) HasSymbol() bool {
|
|
return m.Has(tag.Symbol)
|
|
}
|
|
|
|
// HasSymbolSfx returns true if SymbolSfx is present, Tag 65.
|
|
func (m NoQuoteEntries) HasSymbolSfx() bool {
|
|
return m.Has(tag.SymbolSfx)
|
|
}
|
|
|
|
// HasSecurityID returns true if SecurityID is present, Tag 48.
|
|
func (m NoQuoteEntries) HasSecurityID() bool {
|
|
return m.Has(tag.SecurityID)
|
|
}
|
|
|
|
// HasIDSource returns true if IDSource is present, Tag 22.
|
|
func (m NoQuoteEntries) HasIDSource() bool {
|
|
return m.Has(tag.IDSource)
|
|
}
|
|
|
|
// HasSecurityType returns true if SecurityType is present, Tag 167.
|
|
func (m NoQuoteEntries) HasSecurityType() bool {
|
|
return m.Has(tag.SecurityType)
|
|
}
|
|
|
|
// HasMaturityMonthYear returns true if MaturityMonthYear is present, Tag 200.
|
|
func (m NoQuoteEntries) HasMaturityMonthYear() bool {
|
|
return m.Has(tag.MaturityMonthYear)
|
|
}
|
|
|
|
// HasMaturityDay returns true if MaturityDay is present, Tag 205.
|
|
func (m NoQuoteEntries) HasMaturityDay() bool {
|
|
return m.Has(tag.MaturityDay)
|
|
}
|
|
|
|
// HasPutOrCall returns true if PutOrCall is present, Tag 201.
|
|
func (m NoQuoteEntries) HasPutOrCall() bool {
|
|
return m.Has(tag.PutOrCall)
|
|
}
|
|
|
|
// HasStrikePrice returns true if StrikePrice is present, Tag 202.
|
|
func (m NoQuoteEntries) HasStrikePrice() bool {
|
|
return m.Has(tag.StrikePrice)
|
|
}
|
|
|
|
// HasOptAttribute returns true if OptAttribute is present, Tag 206.
|
|
func (m NoQuoteEntries) HasOptAttribute() bool {
|
|
return m.Has(tag.OptAttribute)
|
|
}
|
|
|
|
// HasContractMultiplier returns true if ContractMultiplier is present, Tag 231.
|
|
func (m NoQuoteEntries) HasContractMultiplier() bool {
|
|
return m.Has(tag.ContractMultiplier)
|
|
}
|
|
|
|
// HasCouponRate returns true if CouponRate is present, Tag 223.
|
|
func (m NoQuoteEntries) HasCouponRate() bool {
|
|
return m.Has(tag.CouponRate)
|
|
}
|
|
|
|
// HasSecurityExchange returns true if SecurityExchange is present, Tag 207.
|
|
func (m NoQuoteEntries) HasSecurityExchange() bool {
|
|
return m.Has(tag.SecurityExchange)
|
|
}
|
|
|
|
// HasIssuer returns true if Issuer is present, Tag 106.
|
|
func (m NoQuoteEntries) HasIssuer() bool {
|
|
return m.Has(tag.Issuer)
|
|
}
|
|
|
|
// HasEncodedIssuerLen returns true if EncodedIssuerLen is present, Tag 348.
|
|
func (m NoQuoteEntries) HasEncodedIssuerLen() bool {
|
|
return m.Has(tag.EncodedIssuerLen)
|
|
}
|
|
|
|
// HasEncodedIssuer returns true if EncodedIssuer is present, Tag 349.
|
|
func (m NoQuoteEntries) HasEncodedIssuer() bool {
|
|
return m.Has(tag.EncodedIssuer)
|
|
}
|
|
|
|
// HasSecurityDesc returns true if SecurityDesc is present, Tag 107.
|
|
func (m NoQuoteEntries) HasSecurityDesc() bool {
|
|
return m.Has(tag.SecurityDesc)
|
|
}
|
|
|
|
// HasEncodedSecurityDescLen returns true if EncodedSecurityDescLen is present, Tag 350.
|
|
func (m NoQuoteEntries) HasEncodedSecurityDescLen() bool {
|
|
return m.Has(tag.EncodedSecurityDescLen)
|
|
}
|
|
|
|
// HasEncodedSecurityDesc returns true if EncodedSecurityDesc is present, Tag 351.
|
|
func (m NoQuoteEntries) HasEncodedSecurityDesc() bool {
|
|
return m.Has(tag.EncodedSecurityDesc)
|
|
}
|
|
|
|
// HasUnderlyingSymbol returns true if UnderlyingSymbol is present, Tag 311.
|
|
func (m NoQuoteEntries) HasUnderlyingSymbol() bool {
|
|
return m.Has(tag.UnderlyingSymbol)
|
|
}
|
|
|
|
// NoQuoteEntriesRepeatingGroup is a repeating group, Tag 295.
|
|
type NoQuoteEntriesRepeatingGroup struct {
|
|
*quickfix.RepeatingGroup
|
|
}
|
|
|
|
// NewNoQuoteEntriesRepeatingGroup returns an initialized, NoQuoteEntriesRepeatingGroup.
|
|
func NewNoQuoteEntriesRepeatingGroup() NoQuoteEntriesRepeatingGroup {
|
|
return NoQuoteEntriesRepeatingGroup{
|
|
quickfix.NewRepeatingGroup(
|
|
tag.NoQuoteEntries,
|
|
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.UnderlyingSymbol),
|
|
},
|
|
),
|
|
}
|
|
}
|
|
|
|
// Add create and append a new NoQuoteEntries to this group.
|
|
func (m NoQuoteEntriesRepeatingGroup) Add() NoQuoteEntries {
|
|
g := m.RepeatingGroup.Add()
|
|
return NoQuoteEntries{g}
|
|
}
|
|
|
|
// Get returns the ith NoQuoteEntries in the NoQuoteEntriesRepeatinGroup.
|
|
func (m NoQuoteEntriesRepeatingGroup) Get(i int) NoQuoteEntries {
|
|
return NoQuoteEntries{m.RepeatingGroup.Get(i)}
|
|
}
|